/* ============================================
   HENX3D - Layout Improvements
   Optimierte Abstände, bessere visuelle Hierarchie
   ============================================ */

/* ========== CTA Section Verbesserungen ========== */
.cta-section {
    text-align: center;
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(var(--primary-rgb, 0, 229, 255), 0.06), rgba(var(--primary-rgb, 0, 229, 255), 0.02));
    border: 1px solid rgba(var(--primary-rgb, 0, 229, 255), 0.12);
}

.cta-section h2 {
    margin-bottom: var(--space-md);
}

.cta-section p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-xl);
}

/* ========== CTA Banner Verbesserungen ========== */
.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    padding: var(--space-2xl) var(--space-2xl);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(var(--primary-rgb, 0, 229, 255), 0.08), rgba(var(--primary-rgb, 0, 229, 255), 0.03));
    border: 1px solid rgba(var(--primary-rgb, 0, 229, 255), 0.15);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--primary-rgb, 0, 229, 255), 0.08), transparent 70%);
    pointer-events: none;
}

.cta-banner-content h2 {
    margin-bottom: var(--space-sm);
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-banner-content p {
    margin-bottom: 0;
    max-width: 500px;
}

.cta-banner-actions {
    display: flex;
    gap: var(--space-md);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: var(--space-xl);
    }

    .cta-banner-content p {
        margin-bottom: var(--space-md);
    }

    .cta-banner-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-banner-actions .btn {
        width: 100%;
    }
}

/* ========== Material Pills Verbesserungen ========== */
.material-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

.material-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius);
    background: rgba(var(--primary-rgb, 0, 229, 255), 0.04);
    border: 1px solid rgba(var(--primary-rgb, 0, 229, 255), 0.12);
    transition: all var(--transition-base);
    min-width: 140px;
}

.material-pill:hover {
    background: rgba(var(--primary-rgb, 0, 229, 255), 0.08);
    border-color: rgba(var(--primary-rgb, 0, 229, 255), 0.25);
    transform: translateY(-2px);
}

.material-pill strong {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 700;
}

.material-pill span {
    font-size: 0.8rem;
    color: var(--muted);
    opacity: 0.8;
}

/* ========== Icon Cards (Service Highlights) ========== */
.icon-card {
    text-align: center;
    padding: var(--space-lg);
    border-radius: var(--radius);
    background: rgba(var(--primary-rgb, 0, 229, 255), 0.03);
    border: 1px solid rgba(var(--primary-rgb, 0, 229, 255), 0.08);
    transition: all var(--transition-base);
}

.icon-card:hover {
    background: rgba(var(--primary-rgb, 0, 229, 255), 0.06);
    border-color: rgba(var(--primary-rgb, 0, 229, 255), 0.2);
    transform: translateY(-3px);
}

.icon-card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    display: block;
}

.icon-card-label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

/* ========== Highlight Bars (Portfolio) ========== */
.highlight-bar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    background: rgba(var(--primary-rgb, 0, 229, 255), 0.04);
    border: 1px solid rgba(var(--primary-rgb, 0, 229, 255), 0.1);
}

.highlight-bar-icon {
    color: var(--primary, #00e5ff);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.highlight-bar-text {
    color: var(--text);
    font-size: 0.95rem;
}

/* ========== Trust Items ========== */
.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    justify-content: center;
    padding: var(--space-sm);
}

.trust-item-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.trust-item-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

/* ========== Text Utilities ========== */
.text-accent {
    color: var(--primary, #00e5ff);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
}

.text-muted-sm {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.text-center {
    text-align: center;
}

/* ========== Card Icon Large ========== */
.card-icon-lg {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    display: block;
}

/* ========== FAQ Teaser ========== */
.faq-question-title {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    color: var(--text);
    line-height: 1.4;
}

.faq-answer-text {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ========== SEO Content Section (versteckt aber sichtbar genug) ========== */
.seo-content-section {
    padding: var(--space-md) 0 !important;
    opacity: 0.4;
}

.seo-content-wrapper {
    max-width: 800px;
    text-align: center;
}

.seo-content-wrapper p {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--muted);
}

/* ========== Page Hero (Unterseiten) ========== */
.page-hero {
    padding: var(--space-3xl) 0;
    text-align: center;
    border-bottom: 1px solid var(--line);
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(800px 300px at 50% -20%, rgba(var(--primary-rgb, 0, 229, 255), 0.07), transparent);
    pointer-events: none;
}

.page-hero .hero-content {
    max-width: 700px;
}

/* ========== Grid gap fix für engere Layouts ========== */
.grid.gap-md {
    gap: var(--space-lg);
}

/* ========== Smooth Scroll Anchor Offset ========== */
[id] {
    scroll-margin-top: 80px;
}

/* ========== Animation für Section-Einblendung ========== */
@media (prefers-reduced-motion: no-preference) {
    section {
        animation: fadeInSection 0.6s ease-out;
    }

    @keyframes fadeInSection {
        from {
            opacity: 0.8;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
