/* ZEIT-Kapsel-Suche – Gästeseiten.
   Mobile first: Die Grundregeln gelten fürs Handy, ganz unten steht die einzige Erweiterung für breitere Schirme.
   Stil: Schnee und Eis. Weiße Glasflächen über einer hellen Winterlandschaft, Nachtblau für Schrift und
   Buttons, ein klares Pistenblau als Akzent. Bewusst flach: feine Linien statt Wölbungen und Glanz.
   Leitmotiv ist die Kapselform: Buttons, Stationen und die Kapselreihe, die sich mit jedem Fund füllt. */
/* Open Sans: Hausschrift laut CI-Manual. Variable Schrift (300–800), selbst gehostet, Lizenz OFL (assets/fonts/OFL-OpenSans.txt). */
@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/open-sans-latin.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/open-sans-latin-ext.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Gunny Rewritten: Handschrift der Marke für Claims und einzelne Headline-Wörter (CI 4.1). Nur ein Schnitt (Regular).
   Aus der Originaldatei auf lateinische Zeichen verkleinert und als WOFF2 gespeichert. */
@font-face {
  font-family: "Gunny Rewritten";
  src: url("/assets/fonts/gunny-rewritten-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
:root {
  /* Palette */
  --schnee: #ffffff;
  --firn: #f4f8f8;            /* Seitengrund */
  --eis: #dcebea;             /* helle Flächen, Tönungen */
  --nacht: #2f2f31;           /* Schrift: Grau der Marke, für draußen etwas dunkler als #4b4b4d */
  --nacht-leise: #4b4b4d;     /* Nebentext, dunkel genug für Sonnenlicht */
  --piste: #358f8c;           /* BLAUGRÜN, Primärfarbe laut MBN Corporate Identity 2024+ (zugleich Motivfarbe Natur Aktiv Winter) */
  --piste-tief: #256f6c;      /* Blaugrün abgedunkelt: für normalen Text und Schaltflächen, Kontrast zu Weiß über 4,5:1 */
  --piste-hauch: rgba(53, 143, 140, .08);
  --linie: rgba(47, 47, 49, .3);
  --linie-stark: rgba(47, 47, 49, .62);
  --hinweis: #b4690e;         /* einziger warmer Ton, nur für Hinweise */
  --hinweis-grund: rgba(255, 249, 238, .9);
  --fehler: #b3261e;
  /* Glas */
  --glas: rgba(255, 255, 255, .88);    /* fast deckend: draußen zählt Kontrast */
  --glas-kante: rgba(255, 255, 255, .9);
  --glas-schatten: 0 18px 40px -30px rgba(47, 47, 49, .45);
  --unschaerfe: none;         /* Unschärfe nur am Desktop, siehe unten: am Handy kostet sie über bewegtem Grund Akku */
  /* Maße */
  --rand: 16px;
  --radius: 26px;
  --radius-feld: 14px;
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-hand: "Gunny Rewritten", "Segoe Script", "Bradley Hand", cursive;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  font: 400 1.1875rem/1.5 var(--font);
  color: var(--nacht);
  background: var(--firn);
}
a { color: var(--piste-tief); text-underline-offset: 4px; text-decoration-thickness: 2px; }
/* Überschriften laut CI: Open Sans Bold, immer in Großbuchstaben (versal), linksbündig */
h1, h2 { margin: 0 0 .45em; font-weight: 700; letter-spacing: .01em; line-height: 1.14; text-wrap: balance; text-transform: uppercase; }
h1 { font-size: 1.85rem; }
h2 { font-size: 1.1rem; letter-spacing: .05em; color: var(--piste-tief); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--piste); outline-offset: 3px; }

/* Szene: Winterhimmel und die runden Kuppen der Nockberge. Liegt fest hinter allem.
   Farbstaffelung wie in der Natur: ferne Ketten hell und hoch, die nächste Kette in der Primärfarbe. */
.scene {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: linear-gradient(180deg, #d5e9e8 0%, #e3f0ef 28%, #eff6f6 54%, #f8fbfb 76%, #fdfefe 100%);
}
/* Die Landschaft endet etwas über dem unteren Rand: Dort liegt am Seitenende die weiße Schneekuppe des Fußes,
   die sonst Hütte, Bäume und Seilbahn verdecken würde. Darunter ist Schnee. */
.scene { --fuss: 36px; }
.scene svg { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - var(--fuss)); display: block; }
/* Kurze Hinweisseiten am Handy: Der Fuß nimmt dort viel Höhe ein, also rückt die Landschaft weiter hinauf. */
body:has(.intro-msg) .scene { --fuss: 230px; }
/* Farben und Formen der Szene stehen direkt im SVG (app/views/layout.php), damit sie nicht vom Stylesheet abhängen. */

/* Glasflächen */
.card, .top .brand {
  background: var(--glas);
  -webkit-backdrop-filter: var(--unschaerfe);
  backdrop-filter: var(--unschaerfe);
  border: 1px solid var(--glas-kante);
  box-shadow: var(--glas-schatten);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glas: rgba(255, 255, 255, .94); }
}

/* Kopf: schwebende Kapsel mit Wortmarke */
.top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 12px var(--rand) 0; }
.brand {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  min-height: 56px; padding: 8px 14px 8px 12px; border-radius: 999px;
  color: var(--nacht); text-decoration: none;
}
.brand-mark, .foot-mark { flex: none; fill: none; stroke-linecap: round; stroke-linejoin: round; }
/* Designelement der Marke (Nockberge, Linie, Welle), Variante für weißen Grund: Linien in Blaugrün */
.brand-mark { width: 34px; height: 28px; stroke: var(--piste); stroke-width: 2.6; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-family: var(--font-hand); font-weight: 400; font-size: 1.3rem; line-height: 1; color: var(--nacht); white-space: nowrap; }
.brand-text small { display: none; font-size: 1rem; line-height: 1.2; color: var(--nacht-leise); }
/* Logo rechts oben in der „Logozone“ (CI 2.x): mindestens 30 mm breit (113 px), Neigung 3° und Schatten stecken in der Grafik. */
.partner { flex: none; width: 113px; height: auto; margin: -2px -4px 0 0; }

/* Inhalt */
.wrap { width: 100%; max-width: 520px; margin: 0 auto; padding: 14px var(--rand) 8px; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.card { border-radius: var(--radius); padding: 22px 20px; }
.card > :last-child { margin-bottom: 0; }
.card-warn { background: #fff8ec; border: 2px solid var(--hinweis); }
.eyebrow { margin: 0 0 .15em; color: var(--nacht-leise); }
.lead { font-size: 1.2rem; }
.note, .hint { color: var(--nacht-leise); }
.hint { margin: .9em 0 0; }
.alert { margin: 0 0 1em; padding: 12px 16px; border-radius: var(--radius-feld); font-weight: 600; background: var(--hinweis-grund); border: 1px solid rgba(180, 105, 14, .5); }

/* Buttons: flache Kapseln */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 66px; padding: 16px 32px; border: 2px solid var(--nacht); border-radius: 999px;
  font: 700 1.25rem/1.2 var(--font); letter-spacing: -.005em; text-decoration: none;
  color: #fff; background: var(--piste-tief);
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, border-color .15s ease, transform .09s ease;
}
.btn:hover { background: #1d5856; border-color: #1d5856; }
.btn:active { transform: scale(.96); background: var(--piste); border-color: var(--piste); color: #fff; }
.btn-block { width: 100%; }
.btn-secondary { color: var(--nacht); background: rgba(255, 255, 255, .7); border-color: var(--linie-stark); }
.btn-secondary:hover { background: #fff; border-color: var(--nacht); }
.btn-danger { background: var(--fehler); border-color: var(--fehler); }
.btn-danger:hover { background: #8f1d17; border-color: #8f1d17; }

/* Formular */
.form { margin-top: 10px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 700; margin: 0 0 4px 4px; }
.field input {
  width: 100%; min-height: 62px; padding: 12px 18px;
  font: inherit; color: inherit;
  background: rgba(255, 255, 255, .92);
  border: 2px solid var(--linie-stark); border-radius: var(--radius-feld);
  -webkit-appearance: none; appearance: none;
}
.field input.pin { min-height: 76px; font-size: 2.2rem; font-weight: 700; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.field input:focus { border-color: var(--piste); background: #fff; outline: 3px solid rgba(53, 143, 140, .35); outline-offset: 0; }
.field input[aria-invalid="true"] { border-color: var(--fehler); border-width: 2px; }
.field-error { color: var(--fehler); font-weight: 600; margin: .4em 0 .75em 4px; }
.check { display: flex; gap: 16px; align-items: flex-start; padding: 10px 0; min-height: 60px; line-height: 1.35; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.check:active { background: var(--piste-hauch); border-radius: var(--radius-feld); }
.check input { flex: none; width: 40px; height: 40px; margin: 0; accent-color: var(--piste); }
.form .btn { margin-top: 14px; }
/* Honeypot: für Menschen unsichtbar */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Seitenraster: am Handy untereinander, am Desktop zweispaltig (siehe unten) */
.home, .kap, .sign { display: grid; gap: 14px; }

/* Einleitung: steht frei auf der Landschaft, ohne Karte */
.intro { padding: 18px 4px 6px; }
.intro h1 { font-size: 2rem; line-height: 1.1; letter-spacing: .005em; margin-bottom: .35em; overflow-wrap: anywhere; }
.intro h1 span { display: block; }
.intro h1.hand { font-family: var(--font-hand); font-weight: 400; font-size: 3.4rem; line-height: 1; letter-spacing: 0; text-transform: none; }
.intro .lead { max-width: 30em; margin-bottom: 1.1em; }
.intro > :last-child { margin-bottom: 4px; }
/* Helle Fläche unter frei stehendem Text: Dahinter fahren Kabinen und liegen Bergketten, die den Text sonst stören.
   Die Überschrift bleibt frei über dem Himmel. */
.plate { padding: 16px 18px; border-radius: 22px; background: var(--glas); border: 1px solid var(--glas-kante); box-shadow: var(--glas-schatten); }
.plate > :last-child { margin-bottom: 0; }
.plate .note { color: var(--nacht-leise); }
.hero .plate { margin-top: 10px; }
.home .intro h1 { font-size: 2.3rem; line-height: 1.08; letter-spacing: .005em; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.intro-msg { padding-top: 12vh; }
.found-tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 8px 18px 8px 8px; border-radius: 999px; font-weight: 700; color: #fff; background: var(--piste); }
.found-tag svg { width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: rgba(255, 255, 255, .22); fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.home-draw p { margin-bottom: .2em; }
.prose p { max-width: 38em; }

/* Drei Schritte als Weg: Symbole an einer durchgehenden Linie */
.steps { list-style: none; padding: 0; margin: 4px 0 0; }
.steps li { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; padding-bottom: 22px; }
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 25px; top: 58px; bottom: 6px; width: 2px; background: var(--piste); opacity: .45; transform-origin: top; }
.step-ico {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid var(--piste); color: var(--piste);
}
.step-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.steps h3 { margin: 3px 0 2px; font-size: 1.15rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.steps p { margin: 0; color: var(--nacht-leise); line-height: 1.4; }

/* Ergebnis: steht frei auf der Szene, ohne Glas */
.hero { text-align: center; padding: 14px 8px 6px; }
.hero h1 { font-family: var(--font-hand); font-weight: 400; font-size: 4rem; line-height: 1; letter-spacing: 0; text-transform: none; margin-bottom: .15em; color: var(--nacht); }
/* Die Handschrift gehört dem Erfolgsmoment; die anderen Meldungen bleiben sachlich */
.hero-duplicate h1, .hero-rate_limited h1 { font-family: var(--font); font-weight: 700; font-size: 1.7rem; line-height: 1.14; letter-spacing: .01em; text-transform: uppercase; margin-bottom: .4em; }
.hero .lead { margin-bottom: .5em; }
.hero .note { margin-bottom: 0; }
.lens {
  width: 92px; height: 92px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--piste); box-shadow: 0 0 0 8px rgba(53, 143, 140, .14), 0 0 0 16px rgba(53, 143, 140, .07);
}
.lens svg { width: 46px; height: 46px; fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-duplicate .lens, .hero-rate_limited .lens { background: var(--nacht-leise); box-shadow: 0 0 0 8px rgba(75, 75, 77, .14), 0 0 0 16px rgba(75, 75, 77, .07); }

/* Fortschritt: große Zahl, Kapselreihe */
.count { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.count-n { font-size: 4.2rem; font-weight: 800; letter-spacing: -.05em; line-height: .85; color: var(--piste); font-variant-numeric: tabular-nums; }
.caps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.caps li { height: 16px; border-radius: 999px; background: rgba(47, 47, 49, .2); }
.caps li.is-found { background: var(--piste); }
.tickets { margin: 0 0 .3em; font-weight: 700; font-size: 1.2rem; }

/* Stationen: nach Bereich gruppiert, eine Kapsel pro Zeile */
.stations { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.station {
  display: flex; align-items: center; gap: 12px;
  min-height: 62px; padding: 6px 18px 6px 6px; border-radius: 999px;
  border: 2px solid var(--linie);
}
.station-nr {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--nacht); border: 2px solid var(--linie-stark);
}
.station-nr svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.station-name { flex: 1; min-width: 0; font-weight: 700; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; }
/* Am Handy trägt der Haken die Aussage, der Text bleibt für Screenreader; ab 600 px steht er sichtbar daneben */
.station-state { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; color: var(--nacht-leise); font-weight: 500; }
.station { position: relative; }
.station.is-found { background: rgba(53, 143, 140, .12); border-color: var(--piste); }
.station.is-found .station-nr { background: var(--piste); border-color: var(--piste); }
.station.is-found .station-state { color: var(--piste-tief); font-weight: 700; }
.kap-list .note { margin-top: 18px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.draw-when { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .2em; }

/* Fuß: die Welle der Marke in Blaugrün über die ganze Breite (CI 5.3 und 5.5). Darin die Service-Links,
   links das Designelement in Weiß, rechts die Domain – wie auf den Titelseiten der Region. */
.foot-wrap { --kante: 44px; margin-top: 26px; padding-bottom: env(safe-area-inset-bottom); color: #fff; background: linear-gradient(to bottom, transparent calc(var(--kante) - 2px), var(--piste) calc(var(--kante) - 2px)); }
.foot-edge { display: block; width: 100%; height: var(--kante); fill: var(--piste); }
.foot { width: 100%; max-width: 520px; margin: 0 auto; padding: 2px calc(var(--rand) + 6px) 20px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 26px; }
/* Weiß auf Blaugrün erreicht 3,9:1 – das genügt nur für große, fette Schrift. Deshalb stehen die Links fett in 19 px. */
.foot a { display: inline-flex; align-items: center; min-height: 56px; padding: 0 2px; font-weight: 700; color: #fff; text-decoration-color: rgba(255, 255, 255, .6); }
.foot a:focus-visible { outline-color: #fff; }
.foot-brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 14px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .35); }
.foot-mark { width: 62px; height: 52px; stroke: #fff; stroke-width: 2; }
.foot-brand p { margin: 0; text-align: right; font-weight: 700; line-height: 1.3; }
.foot-domain { display: block; letter-spacing: .06em; }
.foot-brand span { display: block; font-size: 1.1875rem; }

/* ---------- Bewegung ----------
   Alles hier läuft nur, wenn das Gerät nicht „Bewegung reduzieren“ meldet, und nutzt ausschließlich
   transform und opacity. Bedienelemente sind nie von einer Animation abhängig: Sie sind sofort antippbar. */
@media (prefers-reduced-motion: no-preference) {
  /* Landschaft: Kabinen fahren am Seil, Schnee fällt in zwei Ebenen. Berge und Boden bewegen sich nicht. */
  /* Berge, Boden, Bäume, Hütte, Masten und Wolken stehen still. In der Landschaft bewegen sich nur die Kabinen. */
  /* Vier Kabinen fahren in gleichem Abstand von links nach rechts über das ganze Seil. */
  .gondola { animation: gondel 108s linear infinite; }
  .g1 { animation-delay: -13.5s; } .g2 { animation-delay: -40.5s; } .g3 { animation-delay: -67.5s; } .g4 { animation-delay: -94.5s; }
  /* Die Kabinen folgen dem durchhängenden Seil (Stützpunkte aus der Seilkurve berechnet). */
  @keyframes gondel {
    0% { transform: translate(-60px, 668px); }
    3.8% { transform: translate(5.3px, 666.7px); }
    7.6% { transform: translate(71.2px, 664.8px); }
    11.5% { transform: translate(137.8px, 662.2px); }
    15.4% { transform: translate(205px, 659px); }
    19.3% { transform: translate(272.8px, 655.2px); }
    23.3% { transform: translate(341.2px, 650.8px); }
    27.3% { transform: translate(410.3px, 645.7px); }
    31.4% { transform: translate(480px, 640px); }
    34.2% { transform: translate(527.5px, 651.7px); }
    36.9% { transform: translate(575px, 661.9px); }
    39.7% { transform: translate(622.5px, 670.5px); }
    42.4% { transform: translate(670px, 677.5px); }
    45.2% { transform: translate(717.5px, 683px); }
    48% { transform: translate(765px, 686.9px); }
    50.7% { transform: translate(812.5px, 689.2px); }
    53.5% { transform: translate(860px, 690px); }
    57.4% { transform: translate(927.5px, 689.2px); }
    61.3% { transform: translate(995px, 686.6px); }
    65.3% { transform: translate(1062.5px, 682.4px); }
    69.2% { transform: translate(1130px, 676.5px); }
    73.1% { transform: translate(1197.5px, 668.9px); }
    77% { transform: translate(1265px, 659.6px); }
    81% { transform: translate(1332.5px, 648.7px); }
    84.9% { transform: translate(1400px, 636px); }
    86.6% { transform: translate(1430.3px, 641px); }
    88.4% { transform: translate(1461.2px, 645.1px); }
    90.3% { transform: translate(1492.8px, 648.3px); }
    92.2% { transform: translate(1525px, 650.5px); }
    94.1% { transform: translate(1557.8px, 651.8px); }
    96% { transform: translate(1591.2px, 652.1px); }
    98% { transform: translate(1625.3px, 651.5px); }
    100% { transform: translate(1660px, 650px); }
  }
  .scene::before, .scene::after {
    content: ""; position: absolute; left: 0; right: 0; top: -440px; height: calc(100% + 440px); pointer-events: none; will-change: transform;
    background-image:
      radial-gradient(circle, #fff 0 2.5px, rgba(255, 255, 255, 0) 3.5px),
      radial-gradient(circle, rgba(255, 255, 255, .85) 0 1.6px, rgba(255, 255, 255, 0) 2.6px),
      radial-gradient(circle, rgba(255, 255, 255, .9) 0 2px, rgba(255, 255, 255, 0) 3px);
    background-size: 220px 220px, 110px 220px, 220px 440px;
    background-position: 40px 30px, 85px 140px, 150px 260px;
    animation: schnee 26s linear infinite;
  }
  .scene::after { z-index: 1; opacity: .9; background-position: 120px 90px, 20px 10px, 60px 350px; animation-duration: 15s; }
  @keyframes schnee { to { transform: translateY(440px); } }

  /* Auftritt beim Laden: erst die Einleitung Zeile für Zeile, danach die Karten */
  .intro > *, .intro h1 span, .wrap .card, .hero h1, .hero .lead { animation: hoch .55s cubic-bezier(.2, .8, .2, 1) both; }
  .home .intro h1 { animation: none; }
  .intro h1 span:nth-child(2) { animation-delay: .09s; }
  .intro h1 span:nth-child(3) { animation-delay: .18s; }
  .intro > :nth-child(2) { animation-delay: .14s; }
  .intro > :nth-child(3) { animation-delay: .26s; }
  .intro > :nth-child(4) { animation-delay: .36s; }
  .wrap .card { animation-delay: .2s; }
  .wrap .card ~ .card { animation-delay: .32s; }
  .wrap .card ~ .card ~ .card { animation-delay: .44s; }
  .hero h1 { animation-delay: .15s; }
  .hero .lead { animation-delay: .25s; }
  @keyframes hoch { from { opacity: 0; transform: translateY(18px); } }
  /* Die große Zahl zählt sichtbar hoch: Sie rutscht von unten ein */
  .count-n { animation: hoch .6s cubic-bezier(.2, 1.3, .4, 1) .45s both; }

  /* Die drei Schritte erscheinen nacheinander, die Linie wächst von oben nach unten */
  .steps .step-ico { animation: punkt .45s cubic-bezier(.2, 1.4, .4, 1) both; }
  .steps li:not(:last-child)::before { animation: linie .5s ease-out both; }
  .steps li:nth-child(1) .step-ico { animation-delay: .5s; }
  .steps li:nth-child(1)::before { animation-delay: .75s; }
  .steps li:nth-child(2) .step-ico { animation-delay: 1s; }
  .steps li:nth-child(2)::before { animation-delay: 1.25s; }
  .steps li:nth-child(3) .step-ico { animation-delay: 1.5s; }
  @keyframes punkt { from { opacity: 0; transform: scale(.4); } }
  @keyframes linie { from { transform: scaleY(0); } }

  /* Ergebnis: Die Scheibe erscheint, der Haken zeichnet sich, die Ringe atmen weiter */
  .hero-counted .lens { animation: auf .5s cubic-bezier(.2, .9, .3, 1) both, ringe 2.8s ease-in-out .6s infinite; }
  .hero-counted .lens path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: haken .45s .25s ease-out forwards; }
  @keyframes auf { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
  @keyframes haken { to { stroke-dashoffset: 0; } }
  @keyframes ringe { 50% { box-shadow: 0 0 0 12px rgba(53, 143, 140, .16), 0 0 0 24px rgba(53, 143, 140, .06); } }

  /* Fortschritt: Die gefundenen Kapseln füllen sich der Reihe nach */
  .caps li.is-found { animation: fuellen .4s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
  .caps li:nth-child(1) { animation-delay: .5s; } .caps li:nth-child(2) { animation-delay: .58s; }
  .caps li:nth-child(3) { animation-delay: .66s; } .caps li:nth-child(4) { animation-delay: .74s; }
  .caps li:nth-child(5) { animation-delay: .82s; } .caps li:nth-child(6) { animation-delay: .9s; }
  .caps li:nth-child(7) { animation-delay: .98s; } .caps li:nth-child(8) { animation-delay: 1.06s; }
  .caps li:nth-child(9) { animation-delay: 1.14s; } .caps li:nth-child(10) { animation-delay: 1.22s; }
  @keyframes fuellen { from { transform: scaleX(0); opacity: 0; } }
}
/* Wer weniger Transparenz oder mehr Kontrast eingestellt hat, bekommt feste Flächen und kräftigere Linien */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  :root { --glas: #fff; --unschaerfe: none; --linie: rgba(47, 47, 49, .5); --nacht-leise: #3a3a3c; }
}

/* Ab Tablet-Breite: mehr Luft, Stationen zweispaltig */
@media (min-width: 600px) {
  :root { --rand: 24px; }
  .top { width: 100%; max-width: 640px; margin: 0 auto; padding-top: 20px; }
  .wrap { max-width: 640px; padding-top: 28px; gap: 18px; }
  .card { padding: 30px; }
  .foot { max-width: 640px; }
  .brand-text strong { font-size: 1.9rem; }
  .brand-mark { width: 44px; height: 36px; stroke-width: 2.2; }
  .brand { gap: 10px; min-height: 60px; padding: 8px 20px 8px 14px; }
  .brand-text small { display: block; }
  .partner { width: 136px; margin-top: -6px; }
  .foot-wrap { --kante: 64px; }
  .scene, body:has(.intro-msg) .scene { --fuss: 56px; }
  h1 { font-size: 2.3rem; }
  .hero h1 { font-size: 5rem; }
  /* Hinweise („Schon gefunden“, „Zu schnell unterwegs“) bleiben sachlich klein; nur der Erfolg steht groß in Handschrift. */
  .hero-duplicate h1, .hero-rate_limited h1 { font-size: 2rem; }
  .station-state { position: static; width: auto; height: auto; overflow: visible; clip-path: none; flex: none; }
}

/* Ab Desktop-Breite: zweispaltig. Links die Einleitung, rechts das, was man bedient oder liest. */
@media (min-width: 940px) {
  body:has(.home, .kap, .sign) .top, body:has(.home, .kap, .sign) .wrap, body:has(.home, .kap, .sign) .foot { max-width: 1080px; }
  .wrap:has(.home, .sign) { justify-content: center; padding-top: 12px; }
  .home, .sign { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 20px 56px; align-items: center; }
  .home .intro { grid-row: span 2; padding: 0 0 8px 8px; }
  .home .intro h1 { font-size: 3.5rem; }
  .intro h1 { font-size: 2.7rem; }
  .intro .lead { font-size: 1.3rem; }
  .home-steps { padding: 34px 32px; }
  .sign .intro { padding: 0 0 8px 8px; }
  /* Kapselseite: links Stand und Verlosung, rechts die Stationsliste über die ganze Höhe */
  .kap { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px 40px; align-items: start; }
  .kap > * { grid-column: 1; }
  .kap > .kap-list { grid-column: 2; grid-row: 1 / span 6; }
  .kap .hero, .kap .intro { padding-top: 28px; }
  .intro-msg { max-width: 640px; }
}

/* Am Desktop mit Maus: echtes Milchglas. Am Handy bleibt es bei der fast deckenden Fläche. */
@media (min-width: 940px) and (hover: hover) {
  :root { --glas: rgba(255, 255, 255, .72); --unschaerfe: blur(18px) saturate(140%); }
}
