/* =========================================================
   deine-perfekte-landingpage.de — Nischen-Landingpage (Nische #4)
   Eigenes Gesicht: BLAUPAUSE/BAUPLAN — feines Konstruktions-Raster,
   Mono-Labels (IBM Plex Mono), Praezisions-Anmutung.
   Hausfarben: Navy + Gold. KEIN Orange.
   Display: Sora · Labels: IBM Plex Mono · Text: Open Sans. Fonts lokal (DSGVO).
   Signatur-Element: Perfektions-Check mit echten Checkboxen (CSS-only, kein JS).
   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;
    --navy-deep:  #0f1830;
    --navy-soft:  #202e52;
    --gold:       #FBB03B;   /* Akzent — als Text nur auf dunklem Grund (8.3:1) */
    --gold-deep:  #f7931e;
    --ink:        #182440;
    --ink-soft:   #4a5578;
    --paper:      #ffffff;
    --paper-alt:  #f4f6fb;
    --white:      #ffffff;
    --white-dim:  rgba(255,255,255,.82);
    --white-faint:rgba(255,255,255,.55);
    --grid-line:  rgba(24,36,64,.055);  /* Blaupausen-Raster auf hell */
    --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 { font-family: 'Sora', 'Open Sans', sans-serif; }
.eyebrow, .phase-label { font-family: 'IBM Plex Mono', monospace; }
h1 { font-weight: 800; line-height: 1.06; letter-spacing: -.02em; margin: 0 0 1.3rem;
     font-size: clamp(2.3rem, 6.4vw, 4.1rem); }
h2 { font-weight: 800; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 1rem;
     font-size: clamp(1.8rem, 4.4vw, 2.9rem); }
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 ---- */
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); }
/* 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); }

/* ---- Blaupausen-Raster (Signatur, nur helle Sektionen) ---- */
.blueprint {
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 44px 44px;
}

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9);
    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: 700; font-size: 1rem; 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: 760px) { .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: rgba(255,255,255,.75); 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 (Blaupause, technisches Eyebrow) ---- */
.hero { padding: clamp(5rem, 12vw, 8.5rem) 0 clamp(4rem, 9vw, 6.5rem); overflow: hidden; }
.hero .eyebrow { font-size: .85rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
    color: var(--ink-soft); margin: 0 0 1.4rem; padding: .35em .9em; display: inline-block;
    border: 1px dashed rgba(24,36,64,.35); border-radius: 6px; background: rgba(255,255,255,.7); }
.hero h1 { max-width: 20ch; }
.hero .lead { font-size: 1.28rem; 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 */
.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%;
}

/* ---- Bauplan-Phasen (dark, Mono-Label) ---- */
.phasen { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
@media (min-width: 860px){ .phasen { grid-template-columns: 1fr 1fr 1fr; } }
.phasen li { background: var(--navy-soft); border: 1px solid rgba(255,255,255,.07); border-radius: 14px;
    padding: 1.6rem 1.7rem 1.5rem; }
.phase-label { display: inline-block; font-size: .78rem; font-weight: 500; letter-spacing: .18em;
    text-transform: uppercase; color: var(--gold); border: 1px dashed rgba(251,176,59,.55);
    border-radius: 6px; padding: .25em .8em; margin-bottom: 1rem; }
.phasen h3 { color: var(--white); }
.phasen p { color: var(--white-dim); margin: 0; }

/* ---- Perfektions-Check (Signatur: echte Checkboxen, CSS-only) ---- */
.checkliste { display: grid; gap: .8rem; margin-top: 2.2rem; }
.check-item { display: flex; align-items: flex-start; gap: 1rem; cursor: pointer;
    background: #fff; border: 1px solid #e3e7f0; border-radius: 12px; padding: 1.05rem 1.3rem;
    transition: border-color .15s ease, box-shadow .15s ease; }
.check-item:hover { border-color: #b6bed2; }
.check-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-item .box { flex: 0 0 auto; width: 26px; height: 26px; margin-top: .1em;
    border: 2px solid #b6bed2; border-radius: 7px; background: #fff; position: relative;
    transition: background .15s ease, border-color .15s ease; }
.check-item .box::after { content: ''; position: absolute; left: 7px; top: 2px; width: 7px; height: 13px;
    border: solid var(--navy); border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0);
    transition: transform .18s cubic-bezier(.2,.7,.2,1); }
.check-item input:checked + .box { background: var(--gold); border-color: var(--gold-deep); }
.check-item input:checked + .box::after { transform: rotate(45deg) scale(1); }
.check-item input:focus-visible + .box { outline: 3px solid var(--navy); outline-offset: 2px; }
.check-item .check-text { font-weight: 600; }
.check-item input:checked ~ .check-text { color: var(--ink-soft); }
.check-note { font-size: 1rem; color: var(--ink-soft); margin-top: 1.6rem; font-style: italic; }

/* ---- 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: 'Sora', sans-serif;
    font-weight: 700; font-size: 1.05rem; 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-Reveals — nur wenn unterstuetzt, sonst bleibt .reveal sichtbar */
    @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; }
}
@keyframes mark {
    from { background-size: 0% .38em; }
    to   { background-size: 100% .38em; }
}
