/* ============================================================
   pilot.css - shared design system for the "...pilot" satellite
   landing pages (hundeschulpilot.de, schwimmschulpilot.de, ...).
   Brand accent tokens are overridden per page in a small
   :root block inside each index.html.
   Theme: single locked light theme (deliberate, brand pages).
   ============================================================ */

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url('/pilot/fonts/outfit-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-2019, U+201C-201D, U+20AC;
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url('/pilot/fonts/outfit-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+1E00-1EFF;
}

:root {
    /* neutrals (shared across the family) */
    --paper:  #FAFBFC;
    --card:   #FFFFFF;
    --ink:    #1F242C;
    --mid:    #4E5865;
    --border: #E3E7EC;

    /* brand tokens - overridden per page */
    --accent:      #C2542B; /* buttons, marks */
    --accent-ink:  #9C3F1D; /* accent-colored text on light bg (AA) */
    --accent-soft: #F8EAE3; /* tinted section/cell background */
    --accent-line: #EBD2C6; /* tinted borders */
    --accent-deep: #7C3115; /* dark accent surfaces (bento contrast cell) */

    --radius: 12px;
    --font: 'Outfit', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --shadow: 0 14px 40px rgba(31, 36, 44, .08);
    --wrap: 1160px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1.05rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); }
::selection { background: var(--accent-soft); }

h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.12rem; letter-spacing: -.01em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
section[id] { scroll-margin-top: 80px; }

a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- buttons ---------- */
.btn {
    display: inline-block;
    font: 700 1rem/1 var(--font);
    padding: 16px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    white-space: nowrap;
    transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(31,36,44,.14); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { color: var(--ink); border: 1.5px solid var(--border); background: var(--card); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-invert { background: #fff; color: var(--accent-ink); }
.btn-invert:hover { background: var(--accent-soft); }

/* ---------- nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 20;
    background: rgba(250, 251, 252, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--mid); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }
.nav .btn { padding: 11px 20px; font-size: .92rem; }

/* wordmark: <a class="brand"><svg class="mark">...</svg><span class="brand-name">hundeschul<b>pilot</b></span></a> */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .mark { width: 30px; height: 30px; flex: none; color: var(--accent); }
.hero-panel .mark, .footer .mark { color: #fff; }
.brand-name { font-size: 1.22rem; font-weight: 500; letter-spacing: -.02em; }
.brand-name b { font-weight: 800; color: var(--accent-ink); }
.footer .brand-name, .footer .brand-name b { color: #fff; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 84px; }
.hero .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
.eyebrow {
    display: inline-block;
    font-size: .8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .14em;
    color: var(--accent-ink);
    margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
.hero .lead { color: var(--mid); font-size: 1.18rem; margin: 20px 0 30px; max-width: 34ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* brand panel: graphic color field with the compass mark (photo slot later) */
.hero-panel {
    position: relative;
    border-radius: calc(var(--radius) * 2);
    background: linear-gradient(150deg, var(--accent) 0%, var(--accent-deep) 100%);
    min-height: 380px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.hero-panel .mark {
    position: absolute; right: -12%; bottom: -14%;
    width: 72%; height: auto; opacity: .3;
}
.hero-panel .panel-claim {
    position: absolute; left: 30px; top: 30px; right: 30px;
    color: #fff; font-weight: 700; font-size: 1.25rem; line-height: 1.35;
    letter-spacing: -.01em;
}

/* ---------- generic section rhythm ---------- */
.section { padding: 84px 0; }
.section-tint { background: var(--accent-soft); }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head p { color: var(--mid); margin-top: 14px; }

/* ---------- pain / narrative ---------- */
.pain .wrap { max-width: 860px; }
.pain p { color: var(--mid); max-width: 65ch; margin-top: 16px; }
.pain-list { list-style: none; margin-top: 30px; display: grid; gap: 12px; }
.pain-list li {
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 16px 20px;
    font-weight: 600;
}

/* ---------- feature bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bento-cell {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 26px;
}
.bento-cell p { color: var(--mid); font-size: .98rem; margin-top: 10px; }
.bento-featured {
    grid-column: span 2;
    background: var(--accent-soft);
    border-color: var(--accent-line);
}
.bento-wide { grid-column: 1 / -1; }
.bento-dark { background: var(--accent-deep); border-color: var(--accent-deep); }
.bento-dark h3 { color: #fff; }
.bento-dark p { color: rgba(255, 255, 255, .82); }

/* ---------- branch detail (term/description grid) ---------- */
.detail .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.detail-copy p { color: var(--mid); margin-top: 14px; }
.detail-list { display: grid; gap: 0; border-top: 1px solid var(--border); }
.detail-list > div { padding: 20px 0; border-bottom: 1px solid var(--border); }
.detail-list dt { font-weight: 800; letter-spacing: -.01em; }
.detail-list dd { color: var(--mid); margin-top: 6px; font-size: .98rem; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.step { position: relative; padding-top: 74px; }
.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute; top: 0; left: 0;
    font-size: 3.4rem; font-weight: 800; line-height: 1;
    color: var(--accent);
    opacity: .9;
}
.step p { color: var(--mid); font-size: .98rem; margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq .wrap { max-width: 820px; }
.faq details {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
}
.faq summary {
    cursor: pointer;
    list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 18px 22px;
    font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    font-size: 1.5rem; font-weight: 400; line-height: 1;
    color: var(--accent-ink);
    transition: transform .2s var(--ease);
    flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 22px 20px; color: var(--mid); }

/* ---------- closing CTA band ---------- */
.cta-band { background: linear-gradient(140deg, var(--accent) 0%, var(--accent-deep) 100%); }
.cta-band .wrap { padding-top: 84px; padding-bottom: 84px; text-align: left; }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 16px 0 30px; max-width: 52ch; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .75); }
.footer .wrap {
    padding: 44px 24px;
    display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.footer .brand { color: #fff; }
.footer .powered { font-size: .95rem; }
.footer .powered a { color: #fff; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: rgba(255, 255, 255, .75); text-decoration: none; font-size: .95rem; }
.footer-links a:hover { color: #fff; }

/* ---------- motion (subtle, gated) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .hero h1, .hero .lead, .hero-cta { animation: rise .6s var(--ease) both; }
    .hero .lead { animation-delay: .08s; }
    .hero-cta { animation-delay: .16s; }
    .hero-panel { animation: rise .7s var(--ease) .1s both; }
    @keyframes rise {
        from { opacity: 0; transform: translateY(14px); }
        to { opacity: 1; transform: none; }
    }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .hero .wrap, .detail .wrap { grid-template-columns: 1fr; gap: 40px; }
    .bento { grid-template-columns: 1fr 1fr; }
    .bento-featured { grid-column: span 2; }
    .steps { grid-template-columns: 1fr; gap: 28px; }
    .hero-panel { min-height: 280px; }
}
@media (max-width: 640px) {
    .nav-links { display: none; }
    .section, .hero { padding: 56px 0; }
    .bento { grid-template-columns: 1fr; }
    .bento-featured { grid-column: auto; }
    .hero h1 { font-size: 2.1rem; }
}
