/**
 * HENX3D Homepage Polish v3
 * Visuelles Upgrade für alle Homepage-Sections
 * Kompatibel mit quantum-mesh Theme (dark, cyan accents)
 *
 * Schriftgrößen-Hierarchie (Theme-Base = 0.9rem / 14.4px):
 *   h1 Hero:     clamp(2.2-3.5rem) = 35-56px
 *   h2 Section:  1.6rem !important = 25.6px
 *   h3 Card:     1.15rem !important = 18.4px
 *   h4 Sub:      1.05rem !important = 16.8px
 *   Body/P:      0.92rem = 14.7px
 *   Small/Label: 0.82rem = 13.1px
 *   Badge/Micro: 0.72rem = 11.5px
 */

/* ══════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════ */

.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(var(--primary-rgb, 0, 229, 255), 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    background: rgba(var(--primary-rgb, 0, 229, 255), 0.1);
    border: 1px solid rgba(var(--primary-rgb, 0, 229, 255), 0.25);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #00d9ff !important;
    -webkit-text-fill-color: #00d9ff !important;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    opacity: 1 !important;
}

/* Hero Title — Theme-Gradient OK, Größe absichern */
.theme-quantum-mesh .hero-title,
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem) !important;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.2rem;
}

.hero-subtitle {
    font-size: 1.15rem !important;
    color: rgba(232, 244, 248, 0.9) !important;
    -webkit-text-fill-color: rgba(232, 244, 248, 0.9) !important;
    max-width: 540px;
    line-height: 1.65;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-trust {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-trust-item {
    color: rgba(var(--primary-rgb, 0, 229, 255), 0.9) !important;
    -webkit-text-fill-color: rgba(var(--primary-rgb, 0, 229, 255), 0.9) !important;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

/* ══════════════════════════════════════════════
   STATS — Zahlen in solidem Cyan mit Glow
   ══════════════════════════════════════════════ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    padding: 1.5rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.5rem;
    overflow: hidden;
}

/* Override theme gradient-text für stat-numbers */
.theme-quantum-mesh .stat-number,
.stat-number {
    font-size: 2.4rem !important;
    font-weight: 900;
    color: #00d9ff !important;
    -webkit-text-fill-color: #00d9ff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.4), 0 0 40px rgba(0, 217, 255, 0.15);
    font-variant-numeric: tabular-nums;
}

.theme-quantum-mesh .stat-label,
.stat-label {
    font-size: 0.92rem !important;
    color: rgba(232, 244, 248, 0.8) !important;
    -webkit-text-fill-color: rgba(232, 244, 248, 0.8) !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.3;
    word-break: break-word;
    max-width: 100%;
}

/* ══════════════════════════════════════════════
   SECTION HEADERS — einheitlich & lesbar
   ══════════════════════════════════════════════ */

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-subtitle {
    font-size: 0.78rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #00d9ff !important;
    -webkit-text-fill-color: #00d9ff !important;
    margin-bottom: 0.6rem;
    display: block;
}

/* Section Title — Gradient vom Theme OK, aber Größe absichern */
.theme-quantum-mesh .section-title,
.section-title {
    font-size: 1.7rem !important;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.section-description {
    font-size: 1.02rem !important;
    color: rgba(232, 244, 248, 0.75) !important;
    -webkit-text-fill-color: rgba(232, 244, 248, 0.75) !important;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ══════════════════════════════════════════════
   SERVICES OVERVIEW — 2x2 Cards
   ══════════════════════════════════════════════ */

/* Force services_overview to use 2-col grid */
.bg-light > .container > .grid.grid-2 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
}

.card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.25s ease;
}

.card:hover {
    border-color: rgba(var(--primary-rgb, 0, 229, 255), 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* Card-Header: Flex-Column statt Row — Badge ÜBER dem Titel */
.theme-quantum-mesh .card-header,
.card-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.35rem !important;
    margin-bottom: 0.75rem;
}

/* Card-Titel: h3 override — MUSS größer als Body sein! */
.theme-quantum-mesh .card .card-title,
.theme-quantum-mesh .card h3,
.card-title {
    font-size: 1.22rem !important;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #e8f4f8 !important;
    -webkit-text-fill-color: #e8f4f8 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    line-height: 1.3;
}

/* Card description text */
.card p,
.card .card-description {
    color: rgba(232, 244, 248, 0.75) !important;
    -webkit-text-fill-color: rgba(232, 244, 248, 0.75) !important;
    font-size: 1.0rem !important;
    line-height: 1.55;
    margin-bottom: 0.5rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.28rem 0.7rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}

.badge-primary {
    background: rgba(var(--primary-rgb, 0, 229, 255), 0.15);
    color: #00d9ff !important;
    -webkit-text-fill-color: #00d9ff !important;
    border: 1px solid rgba(var(--primary-rgb, 0, 229, 255), 0.3);
}

.badge-secondary {
    background: rgba(168, 85, 247, 0.15);
    color: #b06cf5 !important;
    -webkit-text-fill-color: #b06cf5 !important;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-accent {
    background: rgba(245, 158, 11, 0.15);
    color: #f5a623 !important;
    -webkit-text-fill-color: #f5a623 !important;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80 !important;
    -webkit-text-fill-color: #4ade80 !important;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Feature-Liste — mehr Abstand zum Symbol */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

/* Feature-List Items — Override components.css flex-Kreis-Icons */
.theme-quantum-mesh .feature-list li,
.feature-list li {
    display: block !important;
    position: relative !important;
    padding-left: 1.5rem !important;
    font-size: 0.95rem !important;
    color: rgba(232, 244, 248, 0.75) !important;
    -webkit-text-fill-color: rgba(232, 244, 248, 0.75) !important;
    line-height: 1.4;
    gap: 0 !important;
    margin-bottom: 0.3rem !important;
}

/* Häkchen statt blauer Kreis — Override components.css ::before */
.theme-quantum-mesh .feature-list li::before,
.feature-list li::before {
    content: '✓' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    display: inline !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    border-radius: 0 !important;
    color: #00d9ff !important;
    -webkit-text-fill-color: #00d9ff !important;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: unset !important;
    align-items: unset !important;
    justify-content: unset !important;
}

/* ══════════════════════════════════════════════
   PROCESS TIMELINE
   ══════════════════════════════════════════════ */

.process-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.process-step {
    text-align: center;
    flex: 1;
    min-width: 140px;
    max-width: 220px;
    padding: 1rem 0.75rem;
}

/* Step-Nummern — kein Gradient */
.theme-quantum-mesh .step-number,
.step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.85rem;
    font-size: 1.15rem !important;
    font-weight: 800;
    background: rgba(var(--primary-rgb, 0, 229, 255), 0.12) !important;
    color: #00d9ff !important;
    -webkit-text-fill-color: #00d9ff !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    border: 2px solid rgba(var(--primary-rgb, 0, 229, 255), 0.35);
    flex-shrink: 0;
}

/* Process h4 — MUSS größer als Body sein */
.theme-quantum-mesh .process-step h4,
.process-step h4 {
    font-size: 1.1rem !important;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #e8f4f8 !important;
    -webkit-text-fill-color: #e8f4f8 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    line-height: 1.3;
}

.process-step p {
    font-size: 0.92rem !important;
    color: rgba(232, 244, 248, 0.7) !important;
    -webkit-text-fill-color: rgba(232, 244, 248, 0.7) !important;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Connector — kein negatives Margin mehr */
.process-connector {
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, rgba(var(--primary-rgb, 0, 229, 255), 0.35), rgba(var(--primary-rgb, 0, 229, 255), 0.1));
    align-self: center;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════════ */

.grid.grid-3 > .card[style*="position: relative"] {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem !important;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.grid.grid-3 > .card[style*="position: relative"]:hover {
    border-color: rgba(var(--primary-rgb, 0, 229, 255), 0.2);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-rating {
    color: #fbbf24 !important;
    -webkit-text-fill-color: #fbbf24 !important;
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.testimonial-quote {
    font-size: 1.0rem !important;
    line-height: 1.6;
    color: rgba(232, 244, 248, 0.8) !important;
    -webkit-text-fill-color: rgba(232, 244, 248, 0.8) !important;
    font-style: italic;
    flex-grow: 1;
    margin-bottom: 0;
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: #e8f4f8 !important;
    -webkit-text-fill-color: #e8f4f8 !important;
}

.testimonial-company {
    font-size: 0.78rem;
    color: rgba(232, 244, 248, 0.6) !important;
    -webkit-text-fill-color: rgba(232, 244, 248, 0.6) !important;
}

/* ══════════════════════════════════════════════
   FAQ TEASER
   ══════════════════════════════════════════════ */

/* FAQ h4 — Override theme gradient, saubere Größe */
.theme-quantum-mesh .faq-question-title,
.faq-question-title {
    font-size: 1.1rem !important;
    font-weight: 700;
    color: #e8f4f8 !important;
    -webkit-text-fill-color: #e8f4f8 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    margin-bottom: 0.6rem;
    padding-left: 1.6rem;
    position: relative;
    line-height: 1.35;
}

.faq-question-title::before {
    content: '?';
    position: absolute;
    left: 0;
    top: 0;
    color: #00d9ff !important;
    -webkit-text-fill-color: #00d9ff !important;
    font-weight: 900;
    font-size: 1.1rem;
}

.faq-answer-text {
    font-size: 0.95rem !important;
    line-height: 1.6;
    color: rgba(232, 244, 248, 0.75) !important;
    -webkit-text-fill-color: rgba(232, 244, 248, 0.75) !important;
}

/* ══════════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════════ */

.cta-section,
section > .container > .cta-section {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb, 0, 229, 255), 0.08) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 1px solid rgba(var(--primary-rgb, 0, 229, 255), 0.15);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(var(--primary-rgb, 0, 229, 255), 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* CTA Heading */
.theme-quantum-mesh .cta-section h2,
.cta-section h2 {
    font-size: 1.7rem !important;
    font-weight: 800;
    margin-bottom: 0.75rem;
    position: relative;
    color: #e8f4f8 !important;
    -webkit-text-fill-color: #e8f4f8 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

.cta-section p {
    font-size: 1.02rem !important;
    color: rgba(232, 244, 248, 0.8) !important;
    -webkit-text-fill-color: rgba(232, 244, 248, 0.8) !important;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
    position: relative;
}

/* CTA Buttons — zentriert */
.cta-section .hero-buttons {
    justify-content: center;
}

/* ══════════════════════════════════════════════
   SEO CONTENT — sichtbar aber dezent
   ══════════════════════════════════════════════ */

.seo-content-section {
    padding: 2rem 0 1rem;
}

.seo-content-wrapper p {
    font-size: 0.82rem !important;
    color: rgba(232, 244, 248, 0.7) !important;
    -webkit-text-fill-color: rgba(232, 244, 248, 0.7) !important;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ══════════════════════════════════════════════
   BUTTONS — Theme-kompatibel
   ══════════════════════════════════════════════ */

.theme-quantum-mesh .hero .btn-primary,
.hero .btn-primary {
    color: var(--qm-primary-deep-space, #0a0e27) !important;
    -webkit-text-fill-color: var(--qm-primary-deep-space, #0a0e27) !important;
}

.theme-quantum-mesh .hero .btn-outline,
.theme-quantum-mesh .hero .btn-secondary,
.hero .btn-outline,
.hero .btn-secondary {
    color: #00d9ff !important;
    -webkit-text-fill-color: #00d9ff !important;
}

.theme-quantum-mesh .cta-section .btn-primary,
.cta-section .btn-primary {
    color: var(--qm-primary-deep-space, #0a0e27) !important;
    -webkit-text-fill-color: var(--qm-primary-deep-space, #0a0e27) !important;
}

/* FAQ/Testimonials Section Buttons */
.theme-quantum-mesh section .btn-primary {
    color: var(--qm-primary-deep-space, #0a0e27) !important;
    -webkit-text-fill-color: var(--qm-primary-deep-space, #0a0e27) !important;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

@media (max-width: 768px) {
    .hero {
        min-height: 50vh;
    }

    .hero-title {
        font-size: 1.8rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.8rem !important;
    }

    .process-timeline {
        flex-direction: column;
        align-items: center;
    }

    .process-step {
        max-width: 280px;
    }

    .process-connector {
        width: 2px;
        height: 24px;
        margin: 0;
        background: linear-gradient(180deg, rgba(var(--primary-rgb, 0, 229, 255), 0.35), rgba(var(--primary-rgb, 0, 229, 255), 0.1));
    }

    .hero-trust {
        flex-direction: column;
        gap: 0.5rem;
    }

    .grid.grid-3 {
        grid-template-columns: 1fr;
    }

    .bg-light > .container > .grid.grid-2,
    .grid.grid-2 {
        grid-template-columns: 1fr !important;
    }

    .section-title {
        font-size: 1.45rem !important;
    }

    .cta-section h2 {
        font-size: 1.45rem !important;
    }

    .cta-section {
        padding: 2rem 1.25rem;
    }
}
