/* ============================================================
   Outdoor Escape · Public Theme
   Mobile-first · paper + navy · blue · cyan
   Used by: index.php, game.php, contact.php, newsletter.php, legal pages
   ============================================================ */

:root {
    /* paper + surfaces */
    --paper:   #dde4ef;
    --paper-2: #e6ecf5;
    --surface: #f5f7fb;
    /* Placeholder tone behind images. Kept at the paper value so it never drags
       a text token below AA if it is ever used as a text background. */
    --tint:    #dde4ef;
    /* Light sections never go below the paper tone — otherwise the text ramp
       below loses its AA headroom (the old #d3dbe7 cost every meta label .3:1). */
    --slab:    #e6ecf5;

    /* brand inks */
    --ink-0: #020616;
    --ink-1: #091744;
    --ink-2: #0d2160;
    --ink-3: #1f3a6e;

    /* dark section surfaces — the two-tone rhythm alternates these with paper */
    --navy:      #1c2750;
    --navy-deep: #141d3e;

    /* text ramp — every step clears WCAG AA (4.5:1) on --paper */
    --text:   #091744;  /* 13.5:1 — headings, strong */
    --text-2: #3b4a6b;  /*  6.9:1 — body copy */
    --text-3: #566581;  /*  4.6:1 — meta, mono labels */
    --text-4: #9aa5be;  /*  1.9:1 — decoration only, never text */

    --blue:      #0e78b1;   /* surface colour (buttons, dots) */
    --blue-2:    #095d8a;   /* the same hue as text: 5.6:1 on paper */
    --blue-soft: #d6e6f1;
    /* Inline links. Flips to cyan inside dark sections, where the blues sit at
       roughly 2:1 against the navy background. */
    --link:      var(--blue-2);

    --cyan:      #14f1d9;
    --cyan-ink:  #0a8b7e;
    --cyan-soft: #c4f0e8;

    --danger: #d04050;
    --warn:   #b87a16;

    /* Angebot. Eigene Farbe, weil jede vorhandene schon belegt ist: Cyan ist
       der CTA (ein cyanfarbener Badge neben "Jetzt buchen" schwaecht ihn),
       Amber ist "Coming Soon", Blau ist der Link. Gedaempftes Rose-Rot statt
       Signalrot — ein Preisnachlass ist keine Fehlermeldung.
       --sale-ink auf --sale-soft: 5.9:1. Weiss auf --sale: 5.0:1. */
    --sale:      #c2405a;
    --sale-ink:  #9c2f46;
    --sale-soft: #fbe3e8;

    --line:   rgba(9, 23, 68, .10);
    --line-2: rgba(9, 23, 68, .18);

    --sh-1: 0 1px 2px rgba(9,23,68,.06);
    --sh-2: 0 8px 22px -10px rgba(9,23,68,.22);
    --sh-3: 0 18px 44px -20px rgba(9,23,68,.3);

    --font-display: 'Sora', system-ui, sans-serif;
    --font-body:    'DM Sans', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, monospace;

    --maxw: 1200px;
    --gutter: clamp(18px, 4vw, 44px);

    /* Nav height feeds scroll-padding and the mobile sheet offset — keep in sync. */
    --nav-h: 56px;
    --focus: var(--ink-2);
}
@media (min-width: 861px) { :root { --nav-h: 64px; } }

/* ─── reset ─── */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    /* Anchor targets used to land underneath the sticky nav. */
    scroll-padding-top: calc(var(--nav-h) + 12px);
}
html, body {
    margin: 0;
    padding: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* Keyboard focus was invisible everywhere before. --focus flips to cyan inside
   dark sections (see .s-dark below). */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Skip link — first focusable element on every page. */
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 200;
    background: var(--ink-1); color: #fff;
    font-family: var(--font-display); font-size: 14px; font-weight: 600;
    padding: 12px 18px; border-radius: 0 0 10px 10px;
    transition: top .15s;
}
.skip-link:focus { top: 0; }

@media (prefers-reduced-motion: reduce) {
    /* Kill durations, not transforms — the old blanket `transform: none`
       also flattened static layout transforms. */
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* ─── layout ─── */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(48px, 8vw, 104px) 0; position: relative; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0; }
/* ─── section tone ───
   Light and dark sections alternate to give the page a rhythm. Each tone
   redefines its own text/line tokens, so a component dropped inside a dark
   section adapts without needing an "on-dark" variant of its own.
   `.slab` stays as the alias game.php already uses. */
.s-light, .slab { background: var(--slab); }
.s-light.tone-paper     { background: var(--paper); }
.s-dark, .s-deep {
    background: var(--navy);
    --text:    #ffffff;
    --text-2:  rgba(255, 255, 255, .80);
    --text-3:  rgba(255, 255, 255, .66);
    --line:    rgba(255, 255, 255, .14);
    --line-2:  rgba(255, 255, 255, .26);
    --surface: rgba(255, 255, 255, .05);
    --focus:   var(--cyan);
    --link:    var(--cyan);
    /* Die helle Fuellung braennte auf Navy aus; die dunkle Tinte verschwaende
       darin. Beide drehen mit — 7.8:1 im Ergebnis. */
    --sale-soft: rgba(194, 64, 90, .24);
    --sale-ink:  #ffc0cb;
    color: var(--text-2);
}
.s-deep { background: var(--navy-deep); }
.s-dark  h1, .s-dark  h2, .s-dark  h3, .s-dark  h4,
.s-deep  h1, .s-deep  h2, .s-deep  h3, .s-deep  h4 { color: #fff; }

/* ─── typography ─── */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin: 0;
    color: var(--ink-1);
}
h1 { font-size: clamp(34px, 5.4vw, 72px); font-weight: 700; letter-spacing: -.03em; }
h2 { font-size: clamp(26px, 3.4vw, 44px); letter-spacing: -.02em; }
h3 { font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; line-height: 1.25; }
h4 { font-size: 16px; font-weight: 600; }

p { margin: 0; color: var(--text-2); }
.lead { font-size: clamp(15.5px, 1.25vw, 18px); color: var(--text-2); max-width: 60ch; line-height: 1.6; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-3); }

.cyan-mark { color: var(--ink-1); white-space: nowrap; box-shadow: inset 0 -.16em 0 var(--cyan); }
.cyan-mark.on-dark { color: #fff; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
    color: var(--blue-2);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--blue-2); opacity: .7; }
.eyebrow.on-dark { color: var(--cyan); }
.eyebrow.on-dark::before { background: var(--cyan); }

/* ─── section label ("ABLAUF ────────") ───
   Mono label followed by a hairline that runs to the container edge. Used on the
   home page and on game detail. Wraps rather than overflows, so a long label
   still fits a 320px viewport. */
.file-label {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
    font-family: var(--font-mono); font-weight: 500;
    font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
    color: var(--text-3);
    margin: 0 0 clamp(18px, 3vw, 26px);
}
.file-label span { min-width: 0; }
.file-label::after { content: ""; flex: 1 1 24px; height: 1px; min-width: 24px; background: var(--line-2); }

/* ─── buttons ─── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 48px; padding: 0 22px;
    border-radius: 11px;
    font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -.005em;
    border: 1px solid transparent; cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, transform .12s;
    white-space: nowrap;
    touch-action: manipulation;  /* drops the 300ms tap delay */
}
.btn:active { transform: scale(.98); }
.btn-navy   { background: var(--ink-1); color: #fff; }
.btn-navy:hover   { background: var(--ink-2); }
.btn-cyan   { background: var(--cyan); color: var(--ink-1); }
.btn-cyan:hover   { background: #11d8c2; }
.btn-blue   { background: var(--blue); color: #fff; }
.btn-blue:hover   { background: var(--blue-2); }
.btn-ghost  { background: var(--surface); color: var(--ink-1); border-color: var(--line); }
.btn-ghost:hover  { border-color: var(--ink-1); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
/* 44px is the platform minimum for a touch target — the old 38px missed it. */
.btn-sm { height: 44px; padding: 0 18px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ─── chips ─── */
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    height: 26px; padding: 0 11px; border-radius: 999px;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
    background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
}
.chip.cyan  { background: var(--cyan-soft); border-color: transparent; color: var(--cyan-ink); }
.chip.blue  { background: var(--blue-soft); border-color: transparent; color: var(--blue-2); }
.chip.glass { background: rgba(255,255,255,.16); border-color: transparent; color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.chip.warn  { background: rgba(184,122,22,.15); border-color: transparent; color: var(--warn); }
.dotc { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(20,241,217,.2); }

/* ─── Angebot ───
   Der Badge erbt Geometrie und Typo von .chip; nur die Farbe kommt dazu.
   Zwei Varianten, weil er an zwei Untergruenden sitzt: soft auf Papier und
   Oberflaechen, solid auf Cover-Fotos (dort braucht er Deckkraft statt
   Transparenz, sonst haengt seine Lesbarkeit am Bildmotiv).

   Der Badge traegt IMMER Text ("−20 %"). Farbe allein darf die Information
   nicht tragen — sonst verschwindet das Angebot fuer jeden, der Rot nicht von
   Amber unterscheidet. */
.chip.sale          { background: var(--sale-soft); border-color: transparent; color: var(--sale-ink); }
.chip.sale.on-media { background: var(--sale); color: #fff; }

/* Preis-Gruppe. Dieselbe Struktur an jeder Render-Stelle — die Groesse kommt
   vom Kontext (em), damit ein und dasselbe Markup in der 16px-Kartenzeile und
   im 38px-Buchungspanel funktioniert. */
.price-offer { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-offer .po-was {
    font-size: .62em; font-weight: 500; color: var(--text-4);
    text-decoration-line: line-through;
    /* Duenner Rose-Strich statt schwarzem Balken: der alte Preis bleibt lesbar
       und gehoert sichtbar zum Badge. */
    text-decoration-color: var(--sale);
    text-decoration-thickness: 1.5px;
}
.price-offer .po-now { color: var(--ink-1); }
.s-dark .price-offer .po-now, .s-deep .price-offer .po-now { color: #fff; }

.po-save {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em;
    color: var(--sale-ink);
}
.po-until {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
    text-transform: uppercase; color: var(--text-3);
}

/* Fehlte bisher. Die Streichpreis-Gruppe braucht eine ausformulierte
   Zusammenfassung fuer Screenreader, weil <s> uneinheitlich angesagt wird. */
.visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* difficulty dots */
.diff { display: inline-flex; gap: 3px; align-items: center; }
.diff b { width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.diff[data-l="1"] b:nth-child(-n+1),
.diff[data-l="2"] b:nth-child(-n+2),
.diff[data-l="3"] b:nth-child(-n+3),
.diff[data-l="4"] b:nth-child(-n+4),
.diff[data-l="5"] b:nth-child(-n+5) { background: var(--link); }
.diff.on-dark b { background: rgba(255,255,255,.25); }
.diff.on-dark[data-l="3"] b:nth-child(-n+3),
.diff.on-dark[data-l="4"] b:nth-child(-n+4),
.diff.on-dark[data-l="5"] b:nth-child(-n+5) { background: var(--cyan); }

/* ─── photo placeholders (cover fallback) ─── */
.photo {
    position: relative;
    background:
        radial-gradient(ellipse 80% 60% at 70% 25%, rgba(14,120,177,.45), transparent 60%),
        linear-gradient(160deg, #1f3a6e, #091744);
    overflow: hidden;
}
.photo::before {
    content: "";
    position: absolute; inset: 0; z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
            mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    opacity: .5; pointer-events: none;
}
/* When a real cover image is present, hide the grid pattern entirely — it
   muddies the photo. <picture> counts as an image here (responsive variants). */
.photo:has(> img)::before,
.photo:has(> picture)::before { display: none; }
.photo > picture { position: absolute; inset: 0; z-index: 1; display: block; }
.photo > img,
.photo > picture > img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 1;
}
.photo > .ph-lab {
    position: absolute; left: 14px; top: 14px; z-index: 2;
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
    color: rgba(255,255,255,.72);
    background: rgba(0,0,0,.3); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    padding: 5px 9px; border-radius: 6px;
}
/* tint variants */
.ph-1 { background: linear-gradient(160deg, #0e78b1, #091744); }
.ph-2 { background: linear-gradient(160deg, #1f3a6e, #091744); }
.ph-3 { background: linear-gradient(160deg, #2a5b56, #091744); }
.ph-4 { background: linear-gradient(160deg, #142f7e, #091744); }
.ph-5 { background: linear-gradient(160deg, #4a4226, #091744); }
.ph-6 { background: linear-gradient(160deg, #095d8a, #0d2160); }

/* ─── nav ─── */
.nav {
    position: sticky; top: 0; z-index: 60;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    background: rgba(221,228,239,.82);
    border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; gap: 20px; height: var(--nav-h); }
.logo {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.01em;
    color: var(--ink-1);
}
.logo-mark {
    width: 30px; height: 30px; border-radius: 8px;
    background: var(--ink-1); display: grid; place-items: center; position: relative; flex-shrink: 0;
}
.logo-mark::after {
    content: ""; position: absolute; inset: 7px;
    border: 1.5px solid var(--cyan); border-radius: 50%;
    border-right-color: transparent; border-bottom-color: transparent;
    transform: rotate(-30deg);
}
.nav-links { display: flex; gap: 26px; margin-left: 8px; }
.nav-links a { font-size: 14.5px; color: var(--text-2); font-weight: 500; white-space: nowrap; transition: color .15s; }
.nav-links a:hover { color: var(--ink-1); }
.nav-spacer { flex: 1; }

.lang {
    display: inline-flex; align-items: center; padding: 3px;
    border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
    font-size: 12px; font-family: var(--font-mono); letter-spacing: .08em;
}
.lang a, .lang button {
    background: transparent; border: 0; color: var(--text-3);
    min-height: 44px; padding: 0 14px; border-radius: 6px; cursor: pointer;
    display: inline-flex; align-items: center; text-decoration: none;
    font: inherit; line-height: 1;
}
.lang a.on, .lang button.on { background: var(--ink-1); color: #fff; }

.nav-burger {
    display: none; width: 44px; height: 44px; border-radius: 10px;
    background: var(--surface); border: 1px solid var(--line); color: var(--ink-1);
    place-items: center;
    touch-action: manipulation;
}

.nav-sheet {
    display: none;
    position: fixed; left: 0; right: 0; top: var(--nav-h); z-index: 55;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) calc(22px + env(safe-area-inset-bottom));
    box-shadow: var(--sh-2);
    /* dvh, not vh — vh includes the retracted URL bar and cuts the sheet off. */
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;
}
.nav-sheet.open { display: block; }
/* Scroll lock while the sheet is open. */
body.nav-open { overflow: hidden; }
.nav-sheet a {
    display: block; padding: 14px 4px;
    font-family: var(--font-display); font-weight: 500; font-size: 17px; color: var(--ink-1);
    border-bottom: 1px solid var(--line);
}
.nav-sheet .sheet-cta { margin-top: 16px; text-align: center; }
.nav-sheet .sheet-lang {
    margin-top: 18px; display: flex; justify-content: center;
}

@media (max-width: 860px) {
    .nav-links { display: none; }
    .nav .lang.lang-desktop { display: none; }
    .nav .nav-book { display: none; }
    .nav-burger { display: grid; }
}

/* ─── section head ─── */
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-top: 12px; }
.section-head .lead { margin-top: 14px; }

/* ─── gallery ───
   The photos are portrait; the previous bento grid forced them into 220px-high
   landscape cells and cropped two thirds of each one away. Tiles now keep their
   proportion (--g-aspect, overridden per page) and turn into a snap rail on the
   phone, where the next tile peeking in is the swipe affordance — no "← swipe →"
   caption needed. */
.gallery-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; gap: 14px; flex-wrap: wrap; }
.gallery {
    --g-aspect: 3 / 4;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.gallery .g {
    position: relative; aspect-ratio: var(--g-aspect);
    border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
    background: var(--tint); cursor: pointer; display: block;
    transition: transform .2s, box-shadow .2s;
}
.gallery .g img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.gallery .g:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.gallery .g:active { transform: scale(.99); }
.gallery .g .sc { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 45%, rgba(9,23,68,.8)); }
.gallery .g .cap { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; color: #fff; }
.gallery .g .cap .t { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.3; }
.gallery .g .cap .s { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-top: 3px; }
@media (max-width: 980px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
    .gallery {
        display: flex; gap: 12px;
        overflow-x: auto; scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        margin: 0 calc(var(--gutter) * -1);
        padding: 2px var(--gutter) 10px;
        scroll-padding-left: var(--gutter);
        scrollbar-width: none;
    }
    .gallery::-webkit-scrollbar { display: none; }
    .gallery .g { flex: 0 0 62%; scroll-snap-align: start; }
}

/* ─── steps (numbered) ─── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
/* Variable Schrittzahl (Homepage-Editor): Spaltenzahl folgt der Anzahl bis 4 */
.steps.cols-1 { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
.steps.cols-2 { grid-template-columns: repeat(2, 1fr); }
.steps.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .steps.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
    .steps,
    .steps.cols-2, .steps.cols-3, .steps.cols-4 { grid-template-columns: 1fr; gap: 10px; }
}
/* Editorial columns, not cards: a hairline over a mono number. Cards for every
   block was what made the page read flat. */
.step {
    padding: 20px 0 0; border-top: 1px solid var(--line-2);
    display: flex; flex-direction: column; gap: 10px;
}
.step .nn {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1.5px solid currentColor; color: var(--text-3);
    display: grid; place-items: center;
    font-family: var(--font-mono); font-weight: 500; font-size: 13px;
    flex-shrink: 0;
}
.step h4 { font-size: 17px; }
.step p { font-size: 14.5px; }

/* Phone: one vertical rail instead of three stacked blocks — the number sits on
   the rail, which removes roughly 40% of the section height. */
@media (max-width: 760px) {
    .steps, .steps.cols-2, .steps.cols-3, .steps.cols-4 { gap: 0; }
    .steps .step {
        border-top: 0; padding: 0 0 24px 46px; position: relative; gap: 6px;
    }
    .steps .step::before {
        content: ""; position: absolute; left: 17px; top: 40px; bottom: 0;
        width: 1px; background: var(--line-2);
    }
    .steps .step:last-child { padding-bottom: 0; }
    .steps .step:last-child::before { display: none; }
    .steps .step .nn { position: absolute; left: 0; top: 0; }
}

/* ─── FAQ ─── */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); transition: background .15s; }
.faq details[open] { background: var(--surface); }
.faq summary {
    list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
    /* Same padding open and closed — it used to jump from 4px to 20px and the
       question text visibly shifted sideways on every click. */
    padding: 18px 16px; cursor: pointer; min-height: 44px;
    font-family: var(--font-display); font-weight: 500; font-size: clamp(15px, 1.6vw, 17px); color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex-shrink: 0; color: var(--text-3); transition: transform .25s, color .25s; }
.faq details[open] summary svg { transform: rotate(180deg); color: var(--text); }
.faq .body { padding: 0 16px 20px; color: var(--text-2); font-size: 15px; line-height: 1.65; max-width: 66ch; }

/* ─── press strip ─── */
.press { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 56px); flex-wrap: wrap; }
/* No opacity here: --text-3 at .75 landed around 2.6:1. */
.press .p-logo { font-family: var(--font-display); font-weight: 700; font-size: clamp(15px, 1.8vw, 20px); color: var(--text-3); letter-spacing: -.01em; }
.press a.p-logo { text-decoration: none; }
.press a.p-logo:hover { color: var(--text); }
/* Hochgeladene Logo-Bilder: höhennormiert, entsättigt im Stil der Text-Logos */
.press .p-logo-img { display: block; height: 30px; width: auto; filter: grayscale(1); }

/* ─── big CTA ───
   .cta-card is the boxed variant (game detail, sits on a light section).
   .cta-inner is the flat variant used inside an already dark section — a navy
   card on navy would just be an invisible box. */
.cta-card {
    background: var(--ink-1); border-radius: 20px; color: #fff; text-align: center;
    padding: clamp(36px, 6vw, 64px) clamp(22px, 5vw, 56px); position: relative; overflow: hidden;
}
.cta-inner { text-align: center; }
.cta-card h2, .cta-inner h2 { color: #fff; max-width: 720px; margin: 0 auto; }
.cta-card .lead { color: rgba(255,255,255,.78); margin: 16px auto 26px; max-width: 50ch; }
.cta-inner .lead { color: var(--text-2); margin: 16px auto 28px; max-width: 50ch; }
.cta-card .actions, .cta-inner .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 520px) {
    .cta-card .actions .btn, .cta-inner .actions .btn { width: 100%; }
}

/* ─── footer ─── */
.footer { background: var(--ink-1); color: rgba(255,255,255,.7); padding: clamp(36px, 5vw, 56px) 0 32px; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .logo { color: #fff; }
.footer .f-tag { color: rgba(255,255,255,.6); font-size: 14px; margin-top: 12px; max-width: 36ch; }
.footer-cols { display: flex; gap: clamp(32px, 6vw, 72px); flex-wrap: wrap; }
.footer-col h5 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.45); margin: 0 0 14px; }
.footer-col a { display: block; color: rgba(255,255,255,.75); font-size: 14px; padding: 11px 0; transition: color .15s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 13px; color: rgba(255,255,255,.5); }
.footer-bottom .f-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   HOME-SPECIFIC
   ============================================================ */
.hero { position: relative; background: var(--ink-1); }
/* svh, not vh: with vh the hero grows by the height of the retracted URL bar
   and the fact row drops below the fold on first paint. The vh line stays as a
   fallback for browsers without small-viewport units. */
.hero-media { position: relative; display: flex; min-height: min(78vh, 660px); }
.hero-media { min-height: min(78svh, 660px); }
.hero-media .photo { position: absolute; inset: 0; }
.hero-media .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media .scrim {
    position: absolute; inset: 0; z-index: 2;
    background:
        linear-gradient(180deg, rgba(9,23,68,.35) 0%, transparent 30%, rgba(9,23,68,.72) 74%, rgba(9,23,68,.96) 100%),
        linear-gradient(90deg, rgba(9,23,68,.45) 0%, transparent 60%);
    pointer-events: none;
}
.hero-inner {
    position: relative; z-index: 3;
    width: 100%; max-width: var(--maxw); margin: 0 auto;
    padding: 0 var(--gutter) clamp(28px, 4vw, 52px);
    align-self: flex-end;
}
.hero h1 { color: #fff; max-width: 17ch; font-size: clamp(38px, 9vw, 72px); }
.hero .hero-sub { color: rgba(255,255,255,.86); font-size: clamp(15.5px, 1.5vw, 19px); margin-top: 16px; max-width: 44ch; }

/* Fact row — price, duration, group size above the fold. Hairline over it so it
   reads as a data strip and not as body copy. */
.hero-facts {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 8px 14px;
    margin: 22px 0 0; padding: 16px 0 0;
    border-top: 1px solid rgba(255,255,255,.22);
    font-family: var(--font-mono); font-size: 12px; font-weight: 500;
    letter-spacing: .1em; text-transform: uppercase;
    color: rgba(255,255,255,.92);
}
.hero-facts li { list-style: none; display: inline-flex; align-items: center; gap: 14px; }
.hero-facts li + li::before {
    content: ""; width: 1px; height: 12px; background: rgba(255,255,255,.32);
}
.hero-facts b { font-weight: 500; color: var(--cyan); }
.hero-cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
@media (max-width: 560px) {
    .hero-cta .btn { width: 100%; }
    .hero-facts { font-size: 11.5px; letter-spacing: .08em; }
}

/* games grid */
.games-grid {
    /* min(100%, 300px): a bare 300px track overflowed the container on 320px
       viewports and gave the whole page a horizontal scrollbar. */
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px;
}
/* ─── product card ───
   With one or two games a catalogue grid reads like a building site. The lead
   game gets a single wide card instead: photo left, facts right on desktop,
   stacked on the phone. */
.product-card {
    display: grid; grid-template-columns: 1.05fr 1fr;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 18px; overflow: hidden; box-shadow: var(--sh-2);
    color: inherit;
}
.product-card { position: relative; transition: border-color .2s, box-shadow .2s; }
.product-card:hover { border-color: var(--line-2); box-shadow: var(--sh-3); }
/* The title link covers the card, so the visible focus ring has to move to the
   card itself. */
.product-card:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.product-card .pc-link { color: inherit; }
.product-card .pc-link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.product-card .pc-media { position: relative; aspect-ratio: 16 / 11; background: var(--tint); }
.product-card .pc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-card .pc-place {
    position: absolute; left: 14px; top: 14px; z-index: 2;
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
    color: #fff; background: rgba(9,23,68,.62);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    padding: 6px 10px; border-radius: 6px;
}
/* Reifegrad und Angebot koennen nebeneinander stehen — deshalb ein Flex-Behaelter
   statt eines einzelnen Chips. */
.product-card .pc-flag {
    position: absolute; right: 14px; top: 14px; z-index: 2;
    display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end;
    max-width: calc(100% - 28px);
}
.product-card .pc-body {
    padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px;
}
.product-card .pc-body h3 { font-size: clamp(22px, 2.6vw, 30px); }
.product-card .pc-body p { font-size: 15px; line-height: 1.6; }
.product-card .pc-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
    padding: 14px 0; margin-top: auto;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--text-3);
}
.product-card .pc-meta span { display: inline-flex; align-items: center; gap: 7px; }
.product-card .pc-price {
    font-family: var(--font-display); font-weight: 700; font-size: 26px;
    color: var(--text); letter-spacing: -.02em; margin-left: auto;
    font-variant-numeric: tabular-nums;
}
.product-card .pc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.product-card .pc-actions .btn { flex: 1 1 auto; }
@media (max-width: 820px) {
    .product-card { grid-template-columns: 1fr; }
    .product-card .pc-media { aspect-ratio: 16 / 10; }
}

/* ─── trust row ───
   Four facts we can actually stand behind, hairline-separated, no icons that
   pretend to be information. */
.trust-row {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px; background: var(--line-2);
    border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
    margin: 0; padding: 0;
}
.trust-row li { list-style: none; background: var(--surface); padding: 18px 20px; }
.trust-row .t-key {
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em;
    text-transform: uppercase; color: var(--blue-2); display: block; margin-bottom: 6px;
}
.trust-row .t-val { font-size: 14.5px; color: var(--text-2); line-height: 1.45; }
@media (max-width: 860px) { .trust-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .trust-row { grid-template-columns: 1fr; } }

/* ─── voices (real player quotes + rating) ─── */
.voices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 760px) { .voices { grid-template-columns: 1fr; } }
.voice {
    background: var(--surface); border: 1px solid var(--line);
    border-left: 2px solid var(--cyan-ink);
    border-radius: 0 14px 14px 0; padding: 22px 24px; margin: 0;
    display: flex; flex-direction: column; gap: 14px;
}
.voice blockquote {
    margin: 0; font-family: var(--font-display); font-size: 17px; line-height: 1.5;
    color: var(--text); font-weight: 400;
}
.voice .v-by {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
    text-transform: uppercase; color: var(--text-3);
    margin-top: auto;
}
.voice .v-stars { display: inline-flex; gap: 3px; color: var(--cyan-ink); }
.rating-line {
    display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
    margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-2);
}
.rating-line .r-num {
    font-family: var(--font-display); font-weight: 700; font-size: 30px;
    color: var(--text); letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.rating-line .r-of { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }

/* ─── occasion rail ───
   Same content as the old four cards, but a snap rail on the phone so the
   section costs one screen instead of four. */
.occasions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.occasion {
    border: 1px solid var(--line-2); border-radius: 14px;
    padding: 20px; display: flex; flex-direction: column; gap: 8px;
    background: var(--surface);
}
.occasion h4 { font-size: 16.5px; }
.occasion p { font-size: 14px; }
@media (max-width: 900px) { .occasions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
    .occasions {
        display: flex; gap: 12px; grid-template-columns: none;
        overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
        margin: 0 calc(var(--gutter) * -1);
        padding: 2px var(--gutter) 10px;
        scroll-padding-left: var(--gutter);
        scrollbar-width: none;
    }
    .occasions::-webkit-scrollbar { display: none; }
    .occasion { flex: 0 0 68%; scroll-snap-align: start; }
}

/* ─── scroll reveal ───
   Opacity plus a short lift, staggered by index in JS. Scoped to html.js (set
   in <head>) so a blocked or failed script can never leave the page invisible.
   Reduced motion switches it off entirely. */
html.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease-out, transform .5s ease-out; }
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html.js .reveal { opacity: 1; transform: none; }
}

.game-card {
    display: flex; flex-direction: column; background: var(--surface);
    border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: inherit;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.game-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--sh-3); }
.game-card.is-coming-soon { opacity: .92; }
.game-cover { aspect-ratio: 16/10; position: relative; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; }
.game-cover .top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 2; gap: 8px; }
.game-cover .top .card-flags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.game-cover .city {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
    color: rgba(255,255,255,.82); background: rgba(0,0,0,.3); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    padding: 5px 9px; border-radius: 6px;
}
.game-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-body h3 { color: var(--ink-1); }
.game-body p { font-size: 14.5px; line-height: 1.5; flex: 1; }
.game-meta {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    font-family: var(--font-mono); font-size: 12px; color: var(--text-2);
    padding-top: 14px; border-top: 1px solid var(--line); margin-top: 6px;
}
.game-meta span { display: inline-flex; align-items: center; gap: 5px; }
.game-meta .price { margin-left: auto; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink-1); }

/* Home: the sticky booking bar stays out of the way until the hero (and its
   own CTA) has scrolled past. Hidden with visibility as well as transform, so a
   keyboard user cannot tab into an off-screen button. */
body.home .book-bar {
    transform: translateY(110%); visibility: hidden;
    transition: transform .25s ease-out, visibility .25s;
}
body.home.book-bar-on .book-bar { transform: none; visibility: visible; }

/* ============================================================
   GAME-DETAIL-SPECIFIC
   ============================================================ */
.crumbs {
    padding-top: 18px;
    display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
}
.crumbs a:hover { color: var(--ink-1); }
.crumbs-current { color: var(--ink-1); }

.game-hero { padding: clamp(18px, 3vw, 28px) 0 clamp(32px, 5vw, 48px); }
.game-hero-grid {
    display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(20px, 3vw, 32px); align-items: stretch;
    margin-top: 16px;
}
@media (max-width: 900px) { .game-hero-grid { grid-template-columns: 1fr; } }

.gh-media {
    position: relative; border-radius: 18px; overflow: hidden;
    min-height: clamp(320px, 42vw, 460px); display: flex;
    border: 1px solid var(--line);
}
.gh-media .photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.gh-media .scrim { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(9,23,68,.6) 75%, rgba(9,23,68,.9) 100%); pointer-events: none; }
.gh-media .gh-inner { position: relative; z-index: 3; align-self: flex-end; padding: clamp(20px, 3vw, 30px); color: #fff; }
.gh-tags { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.gh-media h1 { color: #fff; font-size: clamp(34px, 5vw, 60px); }
.gh-media .gh-sub { color: rgba(255,255,255,.85); font-size: clamp(14px, 1.4vw, 17px); margin-top: 12px; max-width: 42ch; }

/* booking panel */
.booking {
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
    padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 16px;
    box-shadow: var(--sh-2); align-self: start; position: sticky; top: 84px;
}
@media (max-width: 900px) { .booking { position: static; } }
/* Der Badge sitzt ueber der Preiszeile, nicht daneben: neben einem 38px-Preis
   wirkte eine 26px-Pille wie ein zweiter Preis. */
.booking .offer-flag { display: flex; }
.booking .offer-note {
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
    margin: -6px 0 0;
}
.booking .price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.booking .price { font-family: var(--font-display); font-weight: 700; font-size: 38px; color: var(--ink-1); letter-spacing: -.02em; }
.booking .price-sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--text-3); text-transform: uppercase; }
.booking .b-list { display: flex; flex-direction: column; padding: 0; margin: 0; }
.booking .b-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); list-style: none; font-size: 14px; color: var(--text-2); }
.booking .b-list li:last-child { border-bottom: 0; }
.booking .b-list svg { color: var(--blue); flex-shrink: 0; }
.booking .b-list strong { color: var(--ink-1); font-weight: 600; }
.booking .b-note { font-size: 12.5px; color: var(--text-3); text-align: center; }

/* story */
.story-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
@media (max-width: 820px) { .story-grid { grid-template-columns: 1fr; } }
.story-body { display: flex; flex-direction: column; gap: 16px; }
.story-body p { color: var(--text-2); font-size: 16px; line-height: 1.7; max-width: 64ch; }
.story-body .rich-text { color: var(--text-2); font-size: 16px; line-height: 1.7; }
.story-body .rich-text p { margin-bottom: 16px; }
.story-body .rich-text :last-child { margin-bottom: 0; }
.story-body .rich-text a { color: var(--link); text-decoration: underline; text-decoration-color: var(--link); text-underline-offset: 2px; }
@supports (color: color-mix(in srgb, red, blue)) {
    .story-body .rich-text a { text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent); }
}
.story-body .rich-text a:hover { text-decoration-color: var(--link); }
.story-body .rich-text ul, .story-body .rich-text ol { margin: 0 0 16px 22px; padding: 0; }
.story-body .rich-text li { margin-bottom: 6px; }
.story-quote {
    display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px;
    background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--link); border-radius: 0 10px 10px 0; margin-top: 6px;
}
.story-quote svg { color: var(--link); flex-shrink: 0; margin-top: 2px; }
/* var(--text), not --ink-1: this block also sits inside dark sections, where
   navy-on-navy was invisible. */
.story-quote p { color: var(--text); font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 17px; line-height: 1.5; }

/* startpunkt + map */
.start-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
@media (max-width: 820px) { .start-grid { grid-template-columns: 1fr; } }
.start-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.start-list li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.start-list li > a { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: inherit; width: 100%; }
.start-list svg { color: var(--blue); flex-shrink: 0; margin-top: 3px; }
.start-list strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink-1); }
.start-list span { display: block; font-size: 13.5px; color: var(--text-3); margin-top: 2px; }

.map-frame {
    position: relative; border-radius: 16px; overflow: hidden;
    background: var(--ink-1); border: 1px solid var(--line); box-shadow: var(--sh-2);
    aspect-ratio: 4 / 3;
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map-chrome { position: absolute; inset: 14px 14px auto 14px; display: flex; justify-content: flex-end; align-items: center; z-index: 2; pointer-events: none; }
.map-pulse { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .14em; color: var(--ink-1); background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 8px; }
.map-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 14px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.55)); font-size: 9.5px; letter-spacing: .14em; color: rgba(255,255,255,.75); text-align: center; z-index: 2; pointer-events: none; }

@media (max-width: 760px) {
    .map-frame { aspect-ratio: 16 / 11; }
}

/* sticky mobile booking bar */
.book-bar {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    align-items: center; gap: 14px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: rgba(245,247,251,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
}
.book-bar .pr { display: flex; flex-direction: column; }
.book-bar .pr .a { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink-1); line-height: 1; }
.book-bar .pr .b { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; color: var(--text-3); margin-top: 3px; text-transform: uppercase; }
.book-bar .btn { flex: 1; }
@media (max-width: 900px) {
    .book-bar { display: flex; }
    body.has-book-bar { padding-bottom: 78px; }
}

/* coming-soon alert in hero */
.alert-coming-soon {
    background: rgba(184,122,22,.12); border: 1px solid rgba(184,122,22,.35);
    color: #fff; padding: 14px 18px; border-radius: 10px;
    font-size: 14px; line-height: 1.55; max-width: 42ch;
}

/* ─── legal pages (imprint/privacy/terms/withdrawal) ─── */
.legal-wrap a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.legal-wrap a:hover { color: var(--ink-2); }

/* ============================================================
   FORMS  ·  used by contact.php
   ============================================================ */
.form-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: clamp(24px, 4vw, 36px);
    box-shadow: var(--sh-2);
}

.form-row { display: grid; gap: 18px; }
.form-row.two-col { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) {
    .form-row.two-col { grid-template-columns: 1fr; }
}

.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field + .form-field { margin-top: 18px; }

.form-label {
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
    color: var(--text-3);
    display: inline-flex; align-items: baseline; gap: 8px;
}
.form-label .optional {
    font-size: 10px; color: var(--text-3);
    text-transform: none; letter-spacing: 0;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line-2);
    border-radius: 11px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    padding: 13px 15px;
    line-height: 1.4;
    transition: border-color .15s, box-shadow .15s;
    outline: 0;
}
/* Placeholders are text and have to clear 4.5:1 too — --text-4 was at 2.5:1. */
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-3); }
.form-input:hover,
.form-textarea:hover,
.form-select:hover { border-color: var(--text-4); }
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--cyan-ink);
    box-shadow: 0 0 0 3px rgba(20,241,217,.25);
}
/* The `outline: 0` above would otherwise swallow the global focus ring. */
.form-input:focus-visible,
.form-textarea:focus-visible,
.form-select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.form-textarea { resize: vertical; min-height: 140px; }
.form-select {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23475878' stroke-width='2' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 42px;
}

.form-submit { width: 100%; margin-top: 24px; justify-content: center; }
.form-submit[disabled] { opacity: .6; cursor: progress; }

.form-alert {
    display: none;
    padding: 14px 18px; border-radius: 11px;
    font-size: 14.5px; line-height: 1.5; margin-bottom: 18px;
    border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
}
.form-alert.is-visible { display: block; }
.form-alert.is-success {
    background: var(--cyan-soft); border-color: transparent; color: var(--cyan-ink);
}
.form-alert.is-error {
    background: rgba(208,64,80,.1); border-color: rgba(208,64,80,.35); color: var(--danger);
}

.spinner {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid currentColor; border-right-color: transparent;
    border-radius: 50%; animation: spin .8s linear infinite;
}
.spinner.hidden { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Honeypot — visually hidden but available to bots */
.form-honeypot {
    position: absolute; left: -9999px; top: -9999px;
    width: 1px; height: 1px; overflow: hidden; pointer-events: none;
}
.alert-coming-soon strong { color: #ffd089; }
