/* =========================================================
   deine-geniale-landingpage.de — Nischen-Landingpage
   Hausfarben: Navy (Blautoene) + Gold. KEIN Orange.
   Display: Space Grotesk · Text: Open Sans. Fonts lokal (DSGVO).
   Animationen: CSS-only, reduced-motion-safe (Opt-in via @supports).
   ========================================================= */

:root {
    --navy:       #182440;   /* Haupt-Dunkel */
    --navy-deep:  #0f1830;   /* noch dunkler, fuer Tiefe */
    --navy-soft:  #202e52;   /* Karten auf dunkel */
    --gold:       #FBB03B;   /* Akzent — nur auf dunklem Grund (8.3:1 auf Navy) */
    --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:       1120px;
}

*, *::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: 800px; }
h1, h2, h3, .brand, .btn, .eyebrow, .num {
    font-family: 'Space Grotesk', 'Open Sans', sans-serif;
}
h1 { font-weight: 700; line-height: 1.02; letter-spacing: -.02em; margin: 0 0 1.2rem;
     font-size: clamp(2.8rem, 8vw, 5.2rem); }
h2 { font-weight: 700; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 1rem;
     font-size: clamp(1.9rem, 4.5vw, 3.1rem); }
h3 { font-weight: 700; font-size: 1.3rem; margin: 0 0 .5rem; }
p  { margin: 0 0 1rem; }
a  { color: inherit; }
.gold { color: var(--gold); }

/* ---- Sektions-System: dark = Navy, hell = Paper ---- */
section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
section.dark, .hero, .cta-final {
    background: var(--navy); color: var(--white);
}
section.dark h1, section.dark h2, .hero h1, .cta-final h2 { color: var(--white); }
section:not(.dark):not(.hero):not(.cta-final) { background: var(--paper); }
section:nth-of-type(even):not(.dark):not(.hero):not(.cta-final) { background: var(--paper-alt); }
/* Auf hellem Grund darf Gold nicht als Text stehen -> Navy */
section:not(.dark):not(.hero):not(.cta-final) .gold { color: var(--ink); border-bottom: 3px solid var(--gold); }
.section-intro { font-size: 1.15rem; max-width: 40em; margin-bottom: 2.5rem; color: inherit; opacity: .92; }
section.dark .section-intro, .hero .section-intro, .cta-final .section-intro { color: var(--white-dim); opacity: 1; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(24,36,64,.85);
    backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { font-weight: 700; font-size: 1.05rem; color: var(--white); text-decoration: none; letter-spacing: -.01em; }
.brand span { color: var(--gold); }
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a { color: var(--white-dim); text-decoration: none; font-size: .95rem; font-weight: 600; }
.main-nav a:hover { color: var(--gold); }
.main-nav .btn { background: var(--gold); color: var(--navy); padding: 9px 20px; font-size: .9rem;
    box-shadow: 0 4px 18px -6px rgba(251,176,59,.6); }
.main-nav .btn:hover { background: var(--gold-deep); color: var(--navy); 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,.6); }
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-3px); box-shadow: 0 14px 40px -8px rgba(251,176,59,.7); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-big { padding: 20px 44px; font-size: 1.2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ---- Hero ---- */
.hero { padding: clamp(5rem, 13vw, 9rem) 0 clamp(4rem, 10vw, 7rem); overflow: hidden;
    background-color: var(--navy);
    background-image:
        linear-gradient(180deg, rgba(15,24,48,.93) 0%, rgba(17,26,50,.80) 55%, rgba(20,30,56,.52) 100%),
        url("img/hero-mobile.webp");
    background-size: cover; background-position: center; background-repeat: no-repeat; }
/* ab iPad-Breite: Querformat, rechts fokussiert (Mobile nutzt das Hochformat oben) */
@media (min-width: 768px) {
    .hero { background-image:
        linear-gradient(100deg, rgba(15,24,48,.96) 0%, rgba(17,26,50,.86) 40%, rgba(24,36,64,.55) 74%, rgba(24,36,64,.62) 100%),
        url("img/hero-1100.webp");
        background-position: right top; }
}
@media (min-width: 900px) {
    .hero { background-image:
        linear-gradient(100deg, rgba(15,24,48,.96) 0%, rgba(17,26,50,.84) 38%, rgba(24,36,64,.48) 70%, rgba(24,36,64,.58) 100%),
        url("img/hero-1920.webp");
        background-position: right top; }
}
.hero .eyebrow { font-size: .95rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
    color: var(--gold); margin: 0 0 1.3rem; }
.hero h1 { max-width: 14ch; }
.hero .lead { font-size: 1.3rem; line-height: 1.6; color: var(--white-dim); max-width: 30em; margin-bottom: 1rem; }
.hero .lead-punch { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 1.5rem;
    color: var(--gold); margin: 0 0 .5rem; }
.hero .hero-glow { position: absolute; top: -20%; right: -10%; width: 55vw; height: 55vw; max-width: 620px; max-height: 620px;
    background: radial-gradient(circle, rgba(251,176,59,.22) 0%, rgba(251,176,59,0) 68%); pointer-events: none; }
.hero-note { font-size: .88rem; color: var(--white-faint); margin-top: 1.4rem; }

/* ---- Anatomie (dark, grosse Nummern) ---- */
.anatomy { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.anatomy li { display: flex; gap: 1.4rem; align-items: flex-start;
    background: var(--navy-soft); border: 1px solid rgba(255,255,255,.07); border-radius: 14px;
    padding: 1.6rem 1.8rem; }
.anatomy .num { font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--gold); opacity: .9; min-width: 2.4ch; }
.anatomy h3 { color: var(--white); }
.anatomy p { color: var(--white-dim); margin: 0; }
@media (min-width: 720px){ .anatomy { grid-template-columns: 1fr 1fr; } .anatomy li:first-child { grid-column: 1 / -1; } }

/* ---- Unterschied (hell, mit einer dunklen Highlight-Karte) ---- */
.split { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 720px){ .split { grid-template-columns: 1fr 1fr; } }
.split-card { border-radius: 16px; padding: 2rem 2rem 2.2rem; border: 1px solid #e3e7f0; background: #fff; }
.split-card h3 { font-size: 1.5rem; }
.split-note { font-size: .95rem; color: var(--ink-soft); margin-top: 1rem; margin-bottom: 0; }
.split-card.highlight { background: var(--navy); color: var(--white); border-color: var(--navy);
    box-shadow: 0 24px 60px -20px rgba(24,36,64,.5); }
.split-card.highlight h3 { color: var(--gold); }
.split-card.highlight .split-note { color: var(--white-faint); }

/* ---- FAQ ---- */
.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: 'Space Grotesk', sans-serif;
    font-weight: 500; font-size: 1.08rem; list-style: none; position: relative; }
.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; }
.legal .wrap { max-width: 800px; }
.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 (Keyframe, ueberall unterstuetzt) */
    .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; }

    /* Scroll-Reveal fuer alle uebrigen Sektionen — nur wenn unterstuetzt,
       sonst bleibt .reveal sichtbar (opacity:1 oben). */
    @supports (animation-timeline: view()) {
        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; }
}
