/* =========================================================
   genialewebsite.de — Nischen-Landingpage (Nische #3)
   Eigenes Gesicht: HELL-first, editorial, ruhige Klarheit —
   bewusste Umkehrung der dunklen Schwester (geniale-landingpage).
   Hausfarben: Navy + Gold. KEIN Orange.
   Display: Bricolage Grotesque · Text: Open Sans. Fonts lokal (DSGVO).
   Signatur-Element: goldener Scroll-Fortschrittsbalken (CSS-only).
   Animationen: CSS-only, reduced-motion-safe (Opt-in via @supports).
   WCAG: Gold nie als Text auf hellem Grund (dann Navy + Gold-Unterstrich).
   ========================================================= */

:root {
    --navy:       #182440;   /* Haupt-Dunkel */
    --navy-deep:  #0f1830;   /* noch dunkler, fuer Tiefe */
    --navy-soft:  #202e52;   /* Karten auf dunkel */
    --gold:       #FBB03B;   /* Akzent — als Text nur auf dunklem Grund (8.3:1) */
    --gold-deep:  #f7931e;
    --ink:        #182440;   /* Text auf hell */
    --ink-soft:   #4a5578;
    --paper:      #ffffff;
    --paper-alt:  #f4f6fb;
    --white:      #ffffff;
    --white-dim:  rgba(255,255,255,.82);
    --white-faint:rgba(255,255,255,.55);
    --maxw:       1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Open Sans', system-ui, sans-serif;
    font-size: 17px; line-height: 1.7;
    color: var(--ink); background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }
h1, h2, h3, .brand, .btn, .eyebrow, .vs {
    font-family: 'Bricolage Grotesque', 'Open Sans', sans-serif;
}
h1 { font-weight: 800; line-height: 1.04; letter-spacing: -.02em; margin: 0 0 1.3rem;
     font-size: clamp(2.5rem, 7vw, 4.6rem); }
h2 { font-weight: 800; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 1rem;
     font-size: clamp(1.9rem, 4.5vw, 3rem); }
h3 { font-weight: 700; font-size: 1.25rem; margin: 0 0 .5rem; }
p  { margin: 0 0 1rem; }
a  { color: inherit; }
.gold { color: var(--gold); }

/* ---- Sektions-System: HELL ist Standard, dark = Navy-Inseln ---- */
section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
section.dark, .cta-final { background: var(--navy); color: var(--white); }
section.dark h2, .cta-final h2 { color: var(--white); }
section:not(.dark):not(.cta-final):not(.hero) { background: var(--paper-alt); }
/* Auf hellem Grund: Gold nicht als Text -> Navy mit Gold-Unterstrich */
section:not(.dark):not(.cta-final) .gold { color: var(--ink); border-bottom: 4px solid var(--gold); }
.section-intro { font-size: 1.15rem; max-width: 42em; margin-bottom: 2.5rem; color: var(--ink-soft); }
section.dark .section-intro, .cta-final .section-intro { color: var(--white-dim); }

/* ---- Scroll-Fortschrittsbalken (Signatur, CSS-only) ---- */
.progress {
    position: fixed; top: 0; left: 0; z-index: 100;
    width: 100%; height: 4px; background: var(--gold);
    transform-origin: 0 50%; transform: scaleX(0);
    pointer-events: none;
}

/* ---- Header (hell, klar) ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88);
    backdrop-filter: blur(10px); border-bottom: 1px solid #e3e7f0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { font-weight: 800; font-size: 1.08rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand span { color: var(--ink); border-bottom: 3px solid var(--gold); }
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 600; }
.main-nav a:hover { color: var(--ink); }
.main-nav .btn { background: var(--navy); color: var(--white); padding: 9px 20px; font-size: .9rem; }
.main-nav .btn:hover { background: var(--navy-deep); color: var(--white); transform: translateY(-2px); }
@media (max-width: 720px) { .main-nav a:not(.btn) { display: none; } }
/* Sehr schmale Screens: Brand + Button untereinander, Button volle Breite */
@media (max-width: 480px) {
    .site-header .wrap { flex-direction: column; align-items: stretch; height: auto; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
    .brand { text-align: center; }
    .main-nav { width: 100%; }
    .main-nav .btn { display: block; width: 100%; text-align: center; box-sizing: border-box; }
}

/* ---- Buttons ---- */
.btn {
    display: inline-block; padding: 15px 30px; border-radius: 10px;
    font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
    border: 2px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 8px 30px -8px rgba(251,176,59,.55); }
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-3px); box-shadow: 0 14px 40px -8px rgba(251,176,59,.65); }
.btn-line { background: transparent; color: var(--ink); border-color: #cdd4e4; }
.btn-line:hover { border-color: var(--navy); background: #fff; }
.btn-big { padding: 20px 44px; font-size: 1.2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ---- Hero (hell, typografisch, Gold-Highlighter) ---- */
.hero { background: var(--paper); padding: clamp(5rem, 12vw, 8.5rem) 0 clamp(4rem, 9vw, 6.5rem); overflow: hidden; }
.hero .eyebrow { font-size: .95rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
    color: var(--ink-soft); margin: 0 0 1.3rem; }
.hero .eyebrow::before { content: ''; display: inline-block; width: 2.2em; height: 3px;
    background: var(--gold); vertical-align: middle; margin-right: .9em; }
.hero h1 { max-width: 17ch; }
.hero .lead { font-size: 1.3rem; line-height: 1.6; color: var(--ink-soft); max-width: 33em; margin-bottom: 1rem; }
.hero-note { font-size: .88rem; color: var(--ink-soft); opacity: .75; margin-top: 1.4rem; }
section.dark .hero-note, .cta-final .hero-note { color: var(--white-faint); opacity: 1; }

/* Gold-Highlighter hinter dem Keyword (Textmarker-Effekt) */
.hl {
    background-image: linear-gradient(0deg, rgba(251,176,59,.45) 0%, rgba(251,176,59,.45) 100%);
    background-repeat: no-repeat;
    background-size: 100% .38em;
    background-position: 0 88%;
}

/* ---- Merkmale (dark, 6 Karten mit Gold-Kante) ---- */
.merkmale { display: grid; gap: 1.4rem; }
@media (min-width: 680px)  { .merkmale { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .merkmale { grid-template-columns: 1fr 1fr 1fr; } }
.merkmal {
    background: var(--navy-soft); border: 1px solid rgba(255,255,255,.07); border-radius: 14px;
    padding: 1.6rem 1.7rem 1.5rem; border-top: 4px solid var(--gold);
}
.merkmal h3 { color: var(--gold); }
.merkmal p { color: var(--white-dim); margin: 0; }

/* ---- Duell: gewoehnlich vs. genial (hell) ---- */
h2 .vs { font-weight: 700; font-size: .55em; color: var(--ink-soft); vertical-align: middle; padding: 0 .3em; }
.duell { display: grid; gap: .9rem; margin-top: 2.2rem; }
.duell-row { display: grid; gap: .9rem; }
@media (min-width: 720px) { .duell-row { grid-template-columns: 1fr 1fr; } }
.duell-cell { border-radius: 12px; padding: 1.15rem 1.4rem 1.15rem 3rem; position: relative; }
.duell-cell p { margin: 0; }
.duell-cell::before { position: absolute; left: 1.15rem; top: 1.05rem; font-weight: 700; font-size: 1.05rem; }
.duell-cell.plain { background: #fff; border: 1px solid #e3e7f0; color: var(--ink-soft); }
.duell-cell.plain::before { content: '✕'; color: #b6bed2; }
.duell-cell.genial { background: var(--navy); color: var(--white); box-shadow: 0 18px 44px -18px rgba(24,36,64,.45); }
.duell-cell.genial::before { content: '✓'; color: var(--gold); }

/* ---- FAQ (hell) ---- */
.faq { margin-top: 2rem; display: grid; gap: .8rem; }
.faq details { border: 1px solid #e3e7f0; border-radius: 12px; background: #fff; overflow: hidden; }
.faq summary { cursor: pointer; padding: 1.1rem 1.4rem; font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600; font-size: 1.08rem; list-style: none; position: relative; padding-right: 3rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%);
    color: var(--gold-deep); font-size: 1.5rem; font-weight: 700; transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 1.4rem 1.2rem; }
.faq .answer p { margin: 0; color: var(--ink-soft); }

/* ---- CTA final ---- */
.cta-final { background: radial-gradient(120% 120% at 50% 0%, #22315a 0%, var(--navy) 55%, var(--navy-deep) 100%); }
.cta-final .btn-big { margin-top: 1.2rem; }

/* ---- Legal-Seiten (Impressum/Datenschutz) ---- */
.legal { padding: 4rem 0 5rem; background: var(--paper) !important; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.4rem; margin-top: 2.2rem; color: var(--ink); }
.legal a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); }

/* ---- Footer ---- */
.site-footer { background: var(--navy-deep); color: var(--white-faint); padding: 2.5rem 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--white-dim); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer nav { display: flex; gap: 1.4rem; }

/* =========================================================
   ANIMATIONEN — reduced-motion-safe, CSS-only, kein JS.
   Basis: alles sichtbar. Effekte NUR bei no-preference UND
   Browser-Support fuer scroll-driven animations (@supports).
   ========================================================= */
.reveal { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {

    /* Hero: gestaffelter Aufbau beim Laden */
    .hero .reveal { opacity: 0; animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
    .hero .reveal:nth-child(1) { animation-delay: .05s; }
    .hero .reveal:nth-child(2) { animation-delay: .18s; }
    .hero .reveal:nth-child(3) { animation-delay: .32s; }
    .hero .reveal:nth-child(4) { animation-delay: .44s; }
    .hero .reveal:nth-child(5) { animation-delay: .56s; }

    /* Textmarker zieht sich einmalig unters Keyword */
    .hero .hl { animation: mark .9s ease-out .5s both; }

    /* Scroll-Fortschrittsbalken + Scroll-Reveals — nur wenn unterstuetzt,
       sonst bleibt .reveal sichtbar und der Balken unsichtbar (scaleX(0)). */
    @supports (animation-timeline: scroll()) {
        .progress { animation: grow linear both; animation-timeline: scroll(root); }
        section:not(.hero) .reveal {
            opacity: 0; animation: rise linear both;
            animation-timeline: view(); animation-range: entry 0% entry 38%;
        }
    }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(34px); }
    to   { opacity: 1; transform: none; }
}
@keyframes mark {
    from { background-size: 0% .38em; }
    to   { background-size: 100% .38em; }
}
@keyframes grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}
