/* ==========================================================
   Zum Goldenen Löwen – Brotzeit-Vorbestellung
   Look: Schreibmaschinen-Speisekarte, Fraktur-Kopf, Kuli-Notizen
   ========================================================== */

@font-face { font-family: "Courier Prime"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/courier-prime-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("../fonts/courier-prime-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/courier-prime-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "UnifrakturMaguntia"; font-weight: 400; font-display: swap;
  src: url("../fonts/unifrakturmaguntia-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 600; font-display: swap;
  src: url("../fonts/caveat-latin-600-normal.woff2") format("woff2"); }

:root {
  --papier: #fdfbf6;
  --tisch: #ece5d6;
  --tinte: #1c1814;
  --tinte-2: #5b544b;
  --linie: #d8d0c0;
  --kuli: #2741a3;
  --kuli-hell: rgba(39, 65, 163, .07);
  --rot: #a3271f;
  --gruen: #2f6b3a;
  --schreib: "Courier Prime", "Courier New", Courier, monospace;
  --fraktur: "UnifrakturMaguntia", "Old English Text MT", serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --rand: clamp(18px, 5.5vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0; background: var(--tisch); color: var(--tinte);
  font: 400 16px/1.45 var(--schreib);
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--kuli); }
button, input { font: inherit; color: inherit; }

/* ---------- Das Blatt ---------- */
.blatt {
  max-width: 620px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  background: var(--papier);
  padding: 22px var(--rand) calc(110px + env(safe-area-inset-bottom));
  position: relative;
}
@media (min-width: 680px) {
  body { padding: 32px 0; }
  .blatt { min-height: 0; padding-top: 40px; padding-bottom: 60px;
    box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 40px rgba(60,45,20,.14); }
}

/* ---------- Kopf ---------- */
.kopf img { width: min(64%, 280px); margin: 0 auto; }

.anlass { text-align: center; margin: 16px 0 18px; }
.anlass-unten { margin: 22px 0 8px; }
.anlass-titel { font: 400 clamp(25px, 7.2vw, 32px)/1.1 var(--fraktur); margin: 0 0 6px; }
.anlass-datum { margin: 0 0 14px; font-weight: 700; letter-spacing: .02em; }
.anlass-intro { margin: 0 auto 16px; max-width: 34em; color: var(--tinte-2); font-size: 15px; }

.status { display: inline-flex; align-items: center; gap: 8px; margin: 0; text-align: left;
  font-size: 14px; padding: 7px 14px; border: 1.5px solid currentColor; border-radius: 999px; }
.status span { flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-offen { color: var(--gruen); }
.status-offen span { animation: puls 2s ease-in-out infinite; }
.status-zu { color: var(--rot); }
@keyframes puls { 50% { opacity: .25; } }

/* ---------- Rubriken wie auf der Karte (unterstrichen) ---------- */
.rubrik {
  font: 400 16px/1.3 var(--schreib); margin: 34px 0 12px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.rubrik .u { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.anleitung { font: 600 24px/1.1 var(--hand); color: var(--kuli); margin: 8px 0 -14px; text-align: center; transform: rotate(-1.5deg); }

/* ---------- Gerichte ---------- */
.gericht { position: relative; margin: 0 0 2px; border-radius: 10px; transition: background-color .15s, opacity .15s; }
.gericht-haupt {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: start; gap: 2px 10px;
  width: 100%; padding: 10px 8px 10px 4px; min-height: 52px;
  background: transparent; border: 0; border-radius: 10px; text-align: left; cursor: pointer;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.gericht-haupt:active { background: rgba(0,0,0,.045); }
@media (hover: hover) { .gericht-haupt:hover { background: rgba(0,0,0,.03); } }
.gericht-haupt:focus-visible { outline: 2px solid var(--kuli); outline-offset: 1px; }

.gericht-stepper { display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 0 8px 10px 48px; }
.gericht-stepper[hidden] { display: none; }
.gericht-stepper button {
  width: 40px; height: 36px; border: 1.5px solid var(--kuli); border-radius: 10px; background: #fff;
  color: var(--kuli); font: 700 20px/1 var(--schreib); cursor: pointer; touch-action: manipulation;
}
.gericht-stepper button:active { background: var(--kuli); color: #fff; }
.gericht-stepper output { min-width: 3ch; text-align: center; font: 600 22px/1 var(--hand); color: var(--kuli); }
.gericht-marke { position: relative; width: 30px; height: 30px; margin-top: -3px; display: grid; place-items: center; }
.gericht-marke svg { position: absolute; inset: 0; }
.marke-zahl { position: relative; font: 600 17px/1 var(--hand); color: var(--kuli); }
.gericht.ist-gewaehlt .k-kuli { stroke-dashoffset: 0; opacity: 1; }
.gericht.ist-gewaehlt .k-leer { opacity: 0; }
.gericht.ist-gewaehlt .marke-zahl:empty::before { content: "✓"; font-size: 19px; }
.gericht-text { display: flex; flex-direction: column; min-width: 0; }
.gericht-name { overflow-wrap: anywhere; }
.gericht-zusatz { padding-left: 2ch; color: var(--tinte-2); font-size: 14.5px; }
.gericht-preis { white-space: nowrap; font-variant-numeric: tabular-nums; }

.gericht.ist-gewaehlt { background: var(--kuli-hell); }
.gericht.ist-gewaehlt .gericht-name,
.gericht.ist-gewaehlt .gericht-preis { color: var(--kuli); }
.gericht.ist-gewaehlt .gericht-name { text-decoration: underline; text-decoration-color: rgba(39,65,163,.45); text-underline-offset: 3px; }
.ist-voll .gericht:not(.ist-gewaehlt) { opacity: .45; }

/* handschriftlicher Nachtrag wie auf der Karte */
.gericht-hand .gericht-name { font: 600 22px/1.05 var(--hand); color: var(--kuli); }
.gericht-hand .gericht-preis { font: 600 22px/1.05 var(--hand); color: var(--kuli); }

.allergene { margin: 30px 0 0; font-size: 14px; color: var(--tinte-2); }

/* ---------- Formular / Auswahl ---------- */
.formular { margin-top: 10px; padding-top: 4px; border-top: 1.5px dashed var(--linie); scroll-margin-top: 10px; }
.zaehler { font: 600 22px/1 var(--hand); color: var(--kuli); text-decoration: none; }

.auswahl-leer { color: var(--tinte-2); font-size: 15px; margin: 0 0 18px; }
.auswahl-liste { display: grid; gap: 10px; }
.position {
  border: 1.5px solid var(--tinte); border-radius: 12px; padding: 12px 12px 12px 14px;
  background: #fff; animation: rein .25s ease-out;
}
@keyframes rein { from { opacity: 0; transform: translateY(6px); } }
.position-kopf { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: start; }
.position-nr { font: 600 22px/1 var(--hand); color: var(--kuli); }
.position-name { overflow-wrap: anywhere; }
.position-preis { white-space: nowrap; }
.position-weg {
  width: 32px; height: 32px; margin: -6px -6px 0 0; border: 0; border-radius: 50%;
  background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--tinte-2);
}
.position-weg:active { background: rgba(0,0,0,.06); }
.optionen { margin: 10px 0 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.optionen legend { font-size: 13.5px; color: var(--tinte-2); margin-bottom: 6px; padding: 0; }
.optionen.fehlt legend { color: var(--rot); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 8px 14px; min-height: 40px; border: 1.5px solid var(--tinte);
  border-radius: 999px; font-size: 15px; cursor: pointer; background: var(--papier);
}
.chip input:checked + span { background: var(--kuli); border-color: var(--kuli); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--kuli); outline-offset: 2px; }

.auswahl-summe { display: flex; justify-content: space-between; margin: 12px 2px 0; padding-top: 8px; border-top: 1.5px solid var(--tinte); font-weight: 700; }

.feld { display: block; margin: 20px 0 0; }
.feld > span { display: block; margin-bottom: 6px; font-weight: 700; }
.feld em { color: var(--rot); font-style: normal; }
.feld i { font-weight: 400; color: var(--tinte-2); }
.feld input {
  width: 100%; min-height: 52px; padding: 12px 14px; font-size: 17px; /* ≥16px: kein iOS-Zoom */
  background: #fff; border: 1.5px solid var(--tinte); border-radius: 12px; outline: none;
  -webkit-appearance: none; appearance: none;
}
.feld input:focus { border-color: var(--kuli); box-shadow: 0 0 0 3px rgba(39,65,163,.18); }
.feld input.fehlt { border-color: var(--rot); }
.feld-fehler { display: block; color: var(--rot); margin-top: 6px; font-size: 14px; }

.feld-fehler[hidden], .auswahl-summe[hidden], .auswahl-leer[hidden] { display: none; }
.formular .hinweis { margin: 18px 0 0; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.kleingedruckt { font-size: 13.5px; color: var(--tinte-2); margin: 12px 0 0; text-align: center; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 18px; border-radius: 12px; border: 1.5px solid var(--tinte);
  font: 700 16px/1.2 var(--schreib); text-decoration: none; cursor: pointer; color: var(--tinte); background: transparent;
  touch-action: manipulation;
}
.knopf-voll { background: var(--tinte); color: var(--papier); }
.knopf-voll:active { transform: translateY(1px); }
.knopf-rand { background: #fff; }
.knopf-leise { border-color: transparent; color: var(--rot); font-weight: 400; text-decoration: underline; padding-inline: 8px; }
.knopf-breit { width: 100%; }
.knopf-gross { min-height: 58px; font-size: 18px; margin-top: 24px; }
.knopf[disabled] { opacity: .5; cursor: progress; }

/* ---------- Hinweise ---------- */
.hinweis { border-radius: 12px; padding: 12px 14px; margin: 16px 0; font-size: 15px; }
.hinweis p { margin: 0; }
.hinweis p + p { margin-top: 6px; }
.hinweis-fehler { background: #fbeceb; border: 1.5px solid var(--rot); color: #6d1712; }
.hinweis-ok { background: #edf5ee; border: 1.5px solid var(--gruen); color: #1d4626; }
.hinweis-info { background: var(--kuli-hell); border: 1.5px solid var(--kuli); }

/* ---------- Eigene Bestellung (Beleg) ---------- */
.danke { font: 600 30px/1.05 var(--hand); color: var(--kuli); text-align: center; margin: 6px 0 -6px; transform: rotate(-1.5deg); }
.danke span { display: block; font-size: 22px; margin-top: 4px; }
.beleg {
  background: #fff; border: 1.5px solid var(--tinte); border-radius: 14px; padding: 14px 16px 12px; margin-bottom: 14px;
}
.beleg-name { margin: 0 0 8px; font-weight: 700; }
.beleg ul { list-style: none; margin: 0; padding: 0; }
.beleg li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.beleg li b, .beleg-summe b { font-weight: 400; white-space: nowrap; }
.beleg-notiz { margin: 6px 0 0; font: 600 20px/1.1 var(--hand); color: var(--kuli); }
.beleg-summe { display: flex; justify-content: space-between; margin: 8px 0 0; padding-top: 6px; border-top: 1.5px dashed var(--linie); font-weight: 700; }
.beleg-summe b { font-weight: 700; }
.beleg-aktionen { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.beleg-aktionen form { margin: 0; }

/* ---------- Liste aller Bestellungen ---------- */
.liste { margin: 36px 0 0; border-top: 1.5px dashed var(--linie); padding-top: 6px; }
.liste summary { cursor: pointer; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.liste summary::-webkit-details-marker { display: none; }
.liste summary::after { content: "+"; font-size: 22px; font-weight: 400; margin-left: 10px; }
.liste[open] summary::after { content: "–"; }
.liste summary span { margin-left: auto; font: 600 22px/1 var(--hand); color: var(--kuli); }
.liste ul { list-style: none; margin: 0; padding: 0; }
.liste li { padding: 8px 0; border-bottom: 1px solid var(--linie); font-size: 14.5px; }
.liste li b { display: block; }
.liste li span { color: var(--tinte-2); }

.fuss { margin: 44px 0 0; text-align: center; }
.fuss img { width: 54px; margin: 0 auto; opacity: .8; }
.fuss-gruss { margin: 8px 0 0; font: 600 24px/1 var(--hand); color: var(--kuli); }

/* ---------- Leiste unten ---------- */
.leiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: var(--tinte); color: var(--papier);
  box-shadow: 0 -6px 24px rgba(0,0,0,.18);
  transform: translateY(0); transition: transform .25s ease;
}
.leiste[hidden] { display: flex; transform: translateY(120%); pointer-events: none; }
.leiste-info b { font: 600 24px/1 var(--hand); color: #c9d4ff; margin-right: 8px; }
.leiste .knopf { background: var(--papier); color: var(--tinte); border-color: var(--papier); min-height: 44px; }
@media (min-width: 680px) {
  .leiste { left: 50%; right: auto; width: 620px; transform: translateX(-50%); border-radius: 14px 14px 0 0; }
  .leiste[hidden] { transform: translate(-50%, 120%); }
}

.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 30;
  transform: translateX(-50%); max-width: calc(100% - 32px);
  background: var(--kuli); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 15px; text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.toast[hidden] { display: none; }

/* ==========================================================
   Die Fahrt – Fahrschein & Fahrplan (Tinte, Schreibmaschine, Kuli)
   ========================================================== */
.fahrt { margin-top: 6px; }

/* Fahrschein: kommt aus dem Automaten, wird gedruckt und gelocht */
.fahrschein-wrap { position: relative; max-width: 470px; margin: 0 auto; filter: drop-shadow(0 6px 10px rgba(60,45,20,.16)); transform: rotate(-.8deg); will-change: transform; }
.automat { position: relative; z-index: 2; height: 22px; margin: 0 -6px; border-radius: 10px 10px 6px 6px;
  background: linear-gradient(#3a332b, #1c1814); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.automat-schlitz { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 4px; border-radius: 2px; background: #000; box-shadow: 0 1px 0 rgba(255,255,255,.12); }
.automat-led { position: absolute; right: 10px; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: #5fd17a; box-shadow: 0 0 6px #5fd17a; }
.druckt .automat-led { animation: blink .25s steps(2) infinite; background: #ffb340; box-shadow: 0 0 6px #ffb340; }
@keyframes blink { 50% { opacity: .2; } }
.fahrschein-maske { padding: 0 2px 4px; }

.fahrschein {
  --karton: #f4ecd6;
  position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr) clamp(92px, 26vw, 124px); overflow: hidden;
  background:
    repeating-radial-gradient(circle at 120% 50%, rgba(39,65,163,.07) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(115deg, rgba(39,65,163,.035) 0 1px, transparent 1px 5px),
    var(--karton);
  color: var(--tinte);
  /* Zackenrand oben und unten wie abgerissen */
  -webkit-mask: radial-gradient(circle 4px at 6px 0, transparent 97%, #000) 0 0 / 12px 51% repeat-x,
                radial-gradient(circle 4px at 6px 100%, transparent 97%, #000) 0 100% / 12px 51% repeat-x;
          mask: radial-gradient(circle 4px at 6px 0, transparent 97%, #000) 0 0 / 12px 51% repeat-x,
                radial-gradient(circle 4px at 6px 100%, transparent 97%, #000) 0 100% / 12px 51% repeat-x;
}
.druckt .fahrschein { animation: ausgabe 1s cubic-bezier(.2,.9,.3,1.25) both; }
@keyframes ausgabe {
  0% { opacity: 0; transform: translateY(-46px) rotate(-7deg) scale(.94); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
.fs-band { display: grid; place-items: center; background: var(--kuli); color: #fff; }
.fs-band span { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 12px/1 var(--schreib); letter-spacing: .32em; text-transform: uppercase; }
.fs-haupt { padding: 20px 12px 18px 14px; min-width: 0; }
.fs-kopf { display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; margin: 0 0 14px; font-size: clamp(12.5px, 3.4vw, 14.5px); color: var(--tinte-2); }
.fs-nr { font-variant-numeric: tabular-nums; color: #a3271f; white-space: nowrap; }
.fs-route { display: grid; gap: 8px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed rgba(28,24,20,.35); }
.fs-route > div { display: block; }
.fs-route small, .fs-felder small { display: block; white-space: nowrap; font-size: clamp(10.5px, 2.9vw, 12px); letter-spacing: .14em; text-transform: uppercase; color: var(--tinte-2); }
.fs-route b { display: block; font-size: clamp(19px, 5.7vw, 29px); line-height: 1.1; margin-top: 2px; }
.fs-pfeil { color: var(--kuli); font-weight: 700; padding-bottom: 2px; }
.fs-felder { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 6px; }
.fs-felder b { display: block; font-size: clamp(14px, 3.95vw, 20px); white-space: nowrap; margin-top: 2px; }
.fs-felder b i { font-style: normal; font-weight: 400; font-size: .72em; }
.fs-fuss { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.fs-fuss small { font-size: 10.5px; color: var(--tinte-2); }
.fs-barcode { width: 104px; height: 20px; opacity: .85;
  background: repeating-linear-gradient(90deg, var(--tinte) 0 2px, transparent 2px 3px, var(--tinte) 3px 4px, transparent 4px 7px,
    var(--tinte) 7px 10px, transparent 10px 11px, var(--tinte) 11px 12px, transparent 12px 15px, var(--tinte) 15px 16px, transparent 16px 17px); }
.fs-abriss {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 10px 8px; text-align: center;
  background: radial-gradient(circle, var(--papier) 2.2px, transparent 2.6px) 0 3px / 6px 9px repeat-y;  /* Perforation */
}
.fs-abriss b { font-size: clamp(28px, 8.6vw, 40px); line-height: 1; }
.fs-abriss > span { font-size: clamp(12.5px, 3.4vw, 14.5px); color: var(--tinte-2); }
.fs-abriss .fs-countdown { margin-top: 8px; font: 600 clamp(20px, 5.6vw, 26px)/1 var(--hand); color: var(--kuli); transform: rotate(-4deg); min-height: 19px; }
.fs-loch { position: absolute; top: 9px; right: 10px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--papier); box-shadow: inset 1px 1px 2px rgba(0,0,0,.35); transform: scale(0); }
.gelocht .fs-loch { animation: lochen .35s cubic-bezier(.3,1.8,.5,1) forwards; }
@keyframes lochen { to { transform: scale(1); } }
.gelocht .fahrschein { animation: zucken .25s ease-out; }
@keyframes zucken { 40% { transform: translateY(2px) rotate(.4deg); } }
.fs-glanz { position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.65) 48%, transparent 66%); }
.gelocht .fs-glanz { animation: glanz 1.1s .25s ease-in-out; }
@keyframes glanz { to { transform: translateX(120%); } }
.fahrschein:active { cursor: grabbing; }
.fp-stopp time small { display: block; font-size: 11px; font-weight: 400; color: var(--tinte-2); line-height: 1; }

/* Schreibmaschinen-Zeichen */
[data-tippen] .tz { opacity: 0; }
[data-tippen] .tz.da { opacity: 1; animation: anschlag .12s ease-out; }
@keyframes anschlag { from { transform: translateY(-1.5px); filter: blur(.3px); } }

/* Fahrplan */
.fahrplan { position: relative; margin: 26px 0 0; }
.fp-schiene, .fp-spur { position: absolute; width: 0; transform: translateX(-50%); pointer-events: none; }
.fp-schiene { border-left: 2.5px dotted #b5ab99; }
.fp-spur { border-left: 3px solid var(--kuli); border-radius: 2px; height: 0; }
.fp-bus { position: absolute; top: 0; width: 46px; height: 27px; z-index: 2; pointer-events: none; will-change: transform; }
.fp-bus .fp-bus-innen { transform-box: fill-box; transform-origin: center; transition: transform .45s cubic-bezier(.5,1.6,.5,1); }
.fp-bus.wenden .fp-bus-innen { transform: scaleX(-1); }
.fp-bus.faehrt .b-koerper { animation: ruckeln .22s ease-in-out infinite alternate; }
@keyframes ruckeln { to { transform: translateY(-.8px); } }
.b-koerper { fill: #fff; stroke: var(--tinte); stroke-width: 2; }
.b-streifen { stroke: var(--kuli); stroke-width: 2.5; }
.b-fenster { fill: none; stroke: var(--tinte); stroke-width: 1.4; }
.b-rad { fill: var(--tinte); stroke: #fff; stroke-width: 1.6; }

.fp-stopps { list-style: none; margin: 0; padding: 0; }
.fp-stopp { display: grid; grid-template-columns: 4.6em 30px minmax(0, 1fr); gap: 0 12px; padding-bottom: 22px; }
.fp-stopp:last-child { padding-bottom: 0; }
.fp-stopp time { font-weight: 700; text-align: right; padding-top: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fp-punkt { width: 30px; height: 30px; position: relative; z-index: 1; background: var(--papier); border-radius: 50%; }
.fp-punkt svg, .gericht-marke svg { width: 100%; height: 100%; display: block; overflow: visible; }
.k-leer { fill: none; stroke: #b9b0a0; stroke-width: 1.5; stroke-dasharray: 3 3; }
.k-kuli { fill: none; stroke: var(--kuli); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  opacity: 0; transition: stroke-dashoffset .45s cubic-bezier(.6,.1,.3,1), opacity .1s; }
.fp-stopp > div { padding-top: 4px; transition: opacity .4s; opacity: .5; }
.fp-stopp b { display: block; }
.fp-stopp div span { display: block; color: var(--tinte-2); font-size: 15px; }
.fp-stopp.erreicht > div { opacity: 1; }
.fp-stopp.erreicht .k-kuli { stroke-dashoffset: 0; opacity: 1; }
.fp-stopp.erreicht .k-leer { stroke: var(--tinte); stroke-dasharray: none; }
.fp-unterwegs time { font: 600 20px/1 var(--hand); color: var(--kuli); padding-top: 7px; }
.fp-kuli { color: var(--kuli) !important; }
.fp-notiz { display: inline-block; margin-top: 4px; font: 600 21px/1 var(--hand); color: var(--kuli); font-style: normal;
  transform: rotate(-3deg) translateY(4px); opacity: 0; transition: opacity .5s .2s, transform .5s .2s; }
.fp-loewe.erreicht .fp-notiz { opacity: 1; transform: rotate(-3deg); }

.buskosten { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px;
  margin: 22px 0 0; padding: 12px 14px; border: 1.5px dashed var(--tinte); border-radius: 12px; }
.buskosten small { flex-basis: 100%; color: var(--kuli); font: 600 19px/1.1 var(--hand); }

/* Hinweis: eine Anmeldung pro Person */
.pro-person { margin: 18px 0 0; padding: 12px 14px 12px 16px; border: 2px solid var(--kuli); border-radius: 12px;
  background: var(--kuli-hell); color: var(--kuli); font-size: 15px; line-height: 1.4; transform: rotate(-.4deg); }
.pro-person b { font: 600 22px/1 var(--hand); margin-right: 4px; }
.pro-person u { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.feld-hinweis { display: block; margin-top: 6px; font-size: 13.5px; color: var(--kuli); }

/* ---------- So läuft der Tag: waagrecht zum Wischen ---------- */
.tag-punkte { display: flex; gap: 7px; }
.tag-punkte i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--kuli); transition: background .3s, transform .3s; }
.tag-punkte i.an { background: var(--kuli); }
.tag-punkte i.jetzt { transform: scale(1.4); }
.tag-hinweis { font: 600 21px/1 var(--hand); color: var(--kuli); transition: opacity .4s; }
.tag-hinweis i { display: inline-block; font-style: normal; animation: wink 1.2s ease-in-out infinite; }
.tag-hinweis.weg { opacity: 0; }
@keyframes wink { 50% { transform: translateY(4px); } }

/* ---------- So läuft der Tag: Scroll-Szene ---------- */
.reise { margin: 0 calc(var(--rand) * -1); }
.reise-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 var(--rand); }
.reise-kopf .rubrik { margin: 0; }
.reise-uhr { display: none; margin: 0; font-family: var(--schreib); line-height: 1; white-space: nowrap; }
.reise-uhr b { font-size: clamp(34px, 10.5vw, 46px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; transition: color .3s; }
.reise-uhr small { font-size: 14px; margin-left: 4px; color: var(--tinte-2); }
.reise.tickt .reise-uhr b { color: var(--kuli); }
.reise-fenster, .reise-fuss { display: none; }

/* ohne Animation: einfache Liste */
.reise-karten { list-style: none; margin: 14px 0 0; padding: 0 var(--rand); display: grid; gap: 10px; }
.r-karte { border: 1.5px solid var(--tinte); border-radius: 14px; background: #fff; padding: 12px 16px 14px; }
.r-karte-kopf { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 4px; font-size: 13px; color: var(--tinte-2); letter-spacing: .04em; }
.r-karte-kopf time { font: 700 19px/1 var(--schreib); color: var(--tinte); letter-spacing: 0; }
.r-karte-fahrt .r-karte-kopf time { font: 600 25px/1 var(--hand); color: var(--kuli); }
.r-karte h3 { margin: 2px 0 4px; font: 400 clamp(27px, 8vw, 34px)/1.05 var(--fraktur); }
.r-karte-text { margin: 0; font-size: 15.5px; line-height: 1.4; }
.r-karte-kuli { margin: 6px 0 0; font: 600 21px/1.15 var(--hand); color: var(--kuli); }

/* aktiv: Bühne bleibt stehen, die Szene läuft mit dem Scrollen */
.reise.aktiv .reise-buehne { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column;
  gap: clamp(8px, 1.6svh, 14px); padding: clamp(14px, 3svh, 28px) 0 clamp(14px, 2.4svh, 22px); box-sizing: border-box; }
.reise.aktiv .reise-uhr { display: block; }
.reise.aktiv .reise-fenster { display: block; }
.reise.aktiv .reise-fuss { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--rand); min-height: 26px; }
.reise.aktiv .reise-karten { position: relative; display: block; margin: 0 var(--rand); padding: 0; height: var(--karten-h, 160px); flex: 0 0 auto; }
.reise.aktiv .r-karte { position: absolute; inset: 0; box-shadow: 0 10px 26px rgba(28,24,20,.12); will-change: transform, opacity; transform-origin: 50% 120%; }

.reise-fenster { position: relative; flex: 1 1 auto; min-height: 170px; max-height: 50svh; margin: 0 12px; overflow: hidden;
  border: 2.5px solid var(--tinte); border-radius: 26px; isolation: isolate;
  --himmel-o: #d6e2e6; --himmel-u: #f4efe2; --fern: #cfd3c6; --nah: #b3b89f; --boden: #e3dccb; --strasse: #c9c1ae;
  --haus: #fdfbf6; --strich: #1c1814; --fenster: #f3ead4; --nacht: 0; --licht: 0; --weg: 0; --S: 400px; --ankunft: 150px; }
.reise-fenster::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 5px rgba(253,251,246,.55), inset 0 -30px 40px -30px rgba(0,0,0,.25); pointer-events: none; z-index: 9; }
.reise-fenster > * { position: absolute; }
.r-himmel { inset: 0; background: linear-gradient(var(--himmel-o), var(--himmel-u) 70%); }
.r-sterne { inset: 0 0 45% 0; opacity: var(--nacht);
  background-image: radial-gradient(1.3px 1.3px at 12% 22%, #fff 99%, transparent), radial-gradient(1px 1px at 28% 58%, #fff 99%, transparent),
    radial-gradient(1.6px 1.6px at 44% 14%, #fff 99%, transparent), radial-gradient(1px 1px at 61% 40%, #fff 99%, transparent),
    radial-gradient(1.2px 1.2px at 83% 70%, #fff 99%, transparent), radial-gradient(1px 1px at 92% 18%, #fff 99%, transparent),
    radial-gradient(1.4px 1.4px at 6% 74%, #fff 99%, transparent), radial-gradient(1px 1px at 36% 86%, #fff 99%, transparent);
  animation: funkeln 3s ease-in-out infinite alternate; }
@keyframes funkeln { to { filter: brightness(.6); } }
.r-sonne { left: 70%; top: var(--sonne-y, 18%); width: 38px; height: 38px; border-radius: 50%; background: #f4c04a;
  box-shadow: 0 0 0 8px rgba(244,192,74,.22), 0 0 40px 10px rgba(244,192,74,.35); opacity: var(--sonne-op, 1); }
.r-mond { left: 76%; top: var(--mond-y, 110%); width: 30px; height: 30px; border-radius: 50%; box-shadow: 9px -5px 0 0 #f4ecd2; opacity: var(--mond-op, 0);
  filter: drop-shadow(0 0 10px rgba(244,236,210,.5)); }
.r-fern, .r-nah { left: 0; width: calc(100% + 600px); -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x; }
.r-fern { bottom: 28%; height: 44%; background: var(--fern);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='100' viewBox='0 0 600 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V62C60 40 110 30 170 44S280 70 340 50 460 18 520 38 580 60 600 62V100Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='100' viewBox='0 0 600 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V62C60 40 110 30 170 44S280 70 340 50 460 18 520 38 580 60 600 62V100Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 600px 100%; mask-size: 600px 100%;
  will-change: transform; }
.r-nah { bottom: 26%; height: 32%; background: var(--nah);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='90' viewBox='0 0 420 90' preserveAspectRatio='none'%3E%3Cpath d='M0 90V60C40 54 80 48 120 54S200 66 240 58 340 46 420 60V90Z'/%3E%3Cpath d='M60 58l10-30 10 30zM74 56l7-20 7 20zM292 52l11-34 11 34zM306 50l7-22 7 22z'/%3E%3Ccircle cx='180' cy='46' r='13'/%3E%3Cpath d='M178 46h4v14h-4z'/%3E%3Ccircle cx='380' cy='44' r='11'/%3E%3Cpath d='M378 44h4v14h-4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='90' viewBox='0 0 420 90' preserveAspectRatio='none'%3E%3Cpath d='M0 90V60C40 54 80 48 120 54S200 66 240 58 340 46 420 60V90Z'/%3E%3Cpath d='M60 58l10-30 10 30zM74 56l7-20 7 20zM292 52l11-34 11 34zM306 50l7-22 7 22z'/%3E%3Ccircle cx='180' cy='46' r='13'/%3E%3Cpath d='M178 46h4v14h-4z'/%3E%3Ccircle cx='380' cy='44' r='11'/%3E%3Cpath d='M378 44h4v14h-4z'/%3E%3C/svg%3E");
  -webkit-mask-size: 420px 100%; mask-size: 420px 100%;
  will-change: transform; }
.r-boden { left: 0; right: 0; bottom: 0; height: 27%; background: var(--boden); }
.r-strasse { left: 0; right: 0; bottom: 6%; height: 14%; overflow: hidden; background: var(--strasse); z-index: 3;
  border-top: 2px solid color-mix(in srgb, var(--strich) 55%, transparent); }
.r-linie { position: absolute; left: 0; width: calc(100% + 54px); top: 46%; height: 3px; will-change: transform;
  background: repeating-linear-gradient(90deg, rgba(253,251,246,.85) 0 22px, transparent 22px 54px); }
.r-welt { inset: 0; z-index: 2; will-change: transform; }
.r-ort { position: absolute; bottom: 19%; height: 56%; left: calc(var(--k) * var(--S) + var(--ankunft)); }
.r-ort svg { height: 100%; width: auto; max-width: var(--frei, 999px); display: block; overflow: visible; }
.r-start, .r-heim { height: 54%; }
.r-fahrt { height: 46%; bottom: 14%; }
.r-loewe { height: 58%; }
.r-ziel { height: 54%; }
.r-ort svg * { vector-effect: non-scaling-stroke; }
.r-haus { fill: var(--haus); stroke: var(--strich); stroke-width: 2; stroke-linejoin: round; }
/* Ausleger-Schild: tagsüber Holz/Papier, abends angestrahlt */
.r-tafel { fill: color-mix(in srgb, #f6e7bd calc(var(--licht) * 100%), #efe6d0); stroke: #1c1814; stroke-width: 2; stroke-linejoin: round;
  filter: drop-shadow(0 0 calc(var(--licht) * 7px) rgba(255, 214, 120, .9)); }
.r-tafel-rand { fill: none; stroke: #c8962a; stroke-width: 1.4; }
.r-ausleger { fill: none; stroke: color-mix(in srgb, #8a8478 calc(var(--nacht) * 100%), #1c1814); stroke-width: 2.4; stroke-linecap: round; }
.r-ausleger-zier { fill: none; stroke: color-mix(in srgb, #8a8478 calc(var(--nacht) * 100%), #1c1814); stroke-width: 1.4; stroke-linecap: round; }
.r-schildlampe { fill: color-mix(in srgb, #ffe08a calc(var(--licht) * 100%), #d8d2c4); stroke: #1c1814; stroke-width: 1;
  filter: drop-shadow(0 0 calc(var(--licht) * 6px) #ffd56b); }
.r-strich { fill: none; stroke: var(--strich); stroke-width: 2; stroke-linecap: round; }
.r-tuer { fill: color-mix(in srgb, var(--strich) 18%, var(--haus)); stroke: var(--strich); stroke-width: 2; }
.r-fen { fill: var(--fenster); stroke: var(--strich); stroke-width: 1.6; }
.r-fen.r-aus { fill: var(--haus); }
.r-h { fill: #f2c84b; stroke: var(--strich); stroke-width: 2; }
.r-h-t { font: 700 20px/1 Arial, sans-serif; fill: #2f6b3a; text-anchor: middle; }
.r-schild { fill: #f2c84b; stroke: #1c1814; stroke-width: 2; }
.r-schild-t { font: 700 11px/1 Arial, sans-serif; fill: #1c1814; text-anchor: middle; }
.r-ab { fill: var(--kuli); stroke: #fdfbf6; stroke-width: 2.5; }
.r-ab-t { font: 700 13px/1 Arial, sans-serif; fill: #fff; text-anchor: middle; }
.r-ab-p { font-size: 16px; }
.r-wirt { font: 400 14px/1 var(--fraktur); text-anchor: middle;
  fill: color-mix(in srgb, #ffd978 calc(var(--licht) * 100%), var(--strich));
  filter: drop-shadow(0 0 calc(var(--licht) * 3px) rgba(255, 210, 110, .85)); }
.r-glas { fill: color-mix(in srgb, var(--fenster) calc(var(--licht) * 100%), #bcd3e0); stroke-width: 1.2; }
.r-kante { stroke: var(--strich); stroke-width: 2; }
.r-stele { fill: var(--kuli); stroke: var(--strich); stroke-width: 1.6; }
.r-stele-k { stroke: #fdfbf6; stroke-width: 1.6; }
.r-busch { fill: color-mix(in srgb, #6f8a5c calc((1 - var(--nacht)) * 100%), #1d2436); stroke: var(--strich); stroke-width: 1.4; }
.r-noten text { font: 700 20px/1 serif; fill: #f4c04a; opacity: 0; }
.r-ort.da .r-noten text { animation: note 2.4s ease-out infinite; }
.r-ort.da .r-noten text:nth-child(2) { animation-delay: .8s; }
.r-ort.da .r-noten text:nth-child(3) { animation-delay: 1.6s; }
@keyframes note { from { opacity: 0; transform: translateY(0); } 25% { opacity: 1; } to { opacity: 0; transform: translate(10px, -34px) rotate(14deg); } }

.r-bus { left: 2.5%; bottom: 5%; width: min(55%, 290px); height: auto; overflow: visible; z-index: 4; }
.r-bus .b-koerper { fill: #f7f5ef; stroke: #1c1814; stroke-width: 1.6; }
.r-bus .b-klima { fill: #dcd8cf; stroke: #1c1814; stroke-width: 1.2; }
.r-bus .b-glas { fill: color-mix(in srgb, #f2c867 calc(var(--licht) * 70%), #2f3c52); stroke: #1c1814; stroke-width: 1.2; }
.r-bus .b-holm { stroke: #f7f5ef; stroke-width: 3; }
.r-bus .b-dekor { fill: var(--kuli); }
.r-bus .b-tuer { fill: none; stroke: #1c1814; stroke-width: 1.2; }
.r-bus .b-spiegel { fill: none; stroke: #1c1814; stroke-width: 2.2; stroke-linecap: round; }
.r-bus .b-scheinwerfer { fill: color-mix(in srgb, #fff3b0 calc(var(--licht) * 100%), #e9e4d6); stroke: #1c1814; stroke-width: 1; }
.r-bus .b-ruecklicht { fill: #b3261e; }
.r-bus .b-kasten { fill: #2a2622; }
.r-bus .b-rad circle { fill: #1c1814; }
.r-bus .b-rad circle + circle { fill: #9b968c; stroke: #1c1814; stroke-width: 1; }
.r-licht { fill: url(#r-lichtkegel); opacity: var(--licht); }
.r-bus .r-wagen { transform-box: fill-box; transform-origin: 50% 100%; }
.r-bus.rollt .r-wagen { animation: schaukeln .28s ease-in-out infinite alternate; }
@keyframes schaukeln { from { transform: translateY(0) rotate(-.4deg); } to { transform: translateY(-1.5px) rotate(.4deg); } }

/* Abschnitte in zeitlicher Reihenfolge */
.abschnitt { margin-top: 8px; }
.abschnitt-kopf { display: flex; align-items: center; gap: 12px; margin: 34px 0 14px; font: 400 clamp(24px, 6.6vw, 30px)/1.05 var(--fraktur); }
.abschnitt-kopf small { display: block; font: 700 13px/1.3 var(--schreib); color: var(--tinte-2); margin-bottom: 3px; }
.abschnitt-nr { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--kuli);
  border-radius: 52% 46% 55% 47% / 50% 55% 45% 50%; font: 600 24px/1 var(--hand); color: var(--kuli); transform: rotate(-5deg); }

/* Kuli-Unterstreichung, die sich zieht */
.rubrik .u.strich { text-decoration: none; background: linear-gradient(var(--tinte), var(--tinte)) 0 100% / 0 1.5px no-repeat;
  padding-bottom: 3px; transition: background-size .6s cubic-bezier(.6,.1,.3,1); }
.rubrik .u.strich.gezogen { background-size: 100% 1.5px; }
.abschnitt-kopf.strich .abschnitt-nr { transform: rotate(-5deg) scale(.4); opacity: 0; transition: transform .45s cubic-bezier(.3,1.6,.5,1), opacity .2s; }
.abschnitt-kopf.strich.gezogen .abschnitt-nr { transform: rotate(-5deg) scale(1); opacity: 1; }

/* ---------- Formular: Bus, Bier, Snacks ---------- */
.bus-optionen { display: grid; gap: 12px; }
.schalter { display: grid; grid-template-columns: 50px 1fr; gap: 12px; align-items: center; cursor: pointer;
  padding: 12px 14px; border: 1.5px solid var(--tinte); border-radius: 12px; background: #fff; }
.schalter input { position: absolute; opacity: 0; pointer-events: none; }
.schalter-knopf { position: relative; width: 48px; height: 28px; border-radius: 999px; background: #d9d1c1; transition: background .2s; }
.schalter-knopf::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s cubic-bezier(.3,1.4,.5,1); }
.schalter input:checked + .schalter-knopf { background: var(--kuli); }
.schalter input:checked + .schalter-knopf::after { transform: translateX(20px); }
.schalter input:focus-visible + .schalter-knopf { outline: 2px solid var(--kuli); outline-offset: 2px; }
.schalter-text b { display: block; }
.schalter-text small { display: block; color: var(--tinte-2); font-size: 13.5px; }

.bus-frage { margin: 6px 0 -4px; font-weight: 700; }
.kisten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kiste { position: relative; cursor: pointer; }
.kiste input { position: absolute; opacity: 0; pointer-events: none; }
.kiste > span { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%;
  padding: 14px 8px 12px; border: 1.5px solid var(--tinte); border-radius: 12px; background: #fff; text-align: center;
  transition: background .15s, border-color .15s, transform .15s; }
.kiste svg { width: 46px; height: 34px; fill: none; stroke: var(--tinte); stroke-width: 2; stroke-linejoin: round; }
.kiste b { font-size: 14.5px; line-height: 1.25; }
.kiste input:checked + span { background: var(--kuli-hell); border-color: var(--kuli); border-width: 2px; color: var(--kuli); }
.kiste input:checked + span svg { stroke: var(--kuli); animation: hops .45s cubic-bezier(.3,1.6,.5,1); }
.kiste input:checked + span::after { content: "✓"; position: absolute; top: 6px; right: 10px; font: 600 24px/1 var(--hand); color: var(--kuli); }
.kiste input:focus-visible + span { outline: 2px solid var(--kuli); outline-offset: 2px; }
@keyframes hops { 40% { transform: translateY(-5px) rotate(-6deg); } }
.feld-snack { margin-top: 0; }
.feld-snack[hidden] { display: none; }
.snack-schon { margin: 0; font-size: 14px; color: var(--tinte-2); }

.beleg-leer { margin: 0; color: var(--tinte-2); }
.beleg-extra { margin: 8px 0 0; font-size: 14px; color: var(--kuli); }
.liste-bus { margin: 0 0 8px; font-size: 14.5px; color: var(--kuli); }
.liste li small { display: block; color: var(--kuli); font-size: 13px; margin-top: 2px; }

/* ---------- Beleg: Bus & Stempel ---------- */
.beleg { position: relative; }
.beleg-bus { display: flex; justify-content: space-between; margin: 4px 0 0; font-size: 14.5px; color: var(--tinte-2); }
.beleg-bus b { font-weight: 400; white-space: nowrap; }
.stempel {
  position: absolute; top: 10px; right: 12px; z-index: 1; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; padding: 5px 10px 4px;
  border: 2.5px solid #3b3fb0; border-radius: 6px; outline: 1px solid #3b3fb0; outline-offset: 2px;
  color: #3b3fb0; transform: rotate(-9deg); opacity: .78; mix-blend-mode: multiply;
  -webkit-mask: radial-gradient(circle at 30% 40%, #000 55%, rgba(0,0,0,.75) 70%, #000 85%);
          mask: radial-gradient(circle at 30% 40%, #000 55%, rgba(0,0,0,.75) 70%, #000 85%);
}
.stempel b { font: 700 15px/1 var(--schreib); letter-spacing: .08em; text-transform: uppercase; }
.stempel small { font: 700 11px/1.2 var(--schreib); }
.stempel-neu { opacity: 0; transform: rotate(-9deg) scale(2.4); }
.stempel-neu.knall { animation: stempeln .38s cubic-bezier(.5,0,.75,0) forwards; }
@keyframes stempeln { 70% { opacity: .9; transform: rotate(-9deg) scale(.92); } 100% { opacity: .78; transform: rotate(-9deg) scale(1); } }
.stempel-neu.knall ~ * { animation: wackel .3s .3s; }
@keyframes wackel { 40% { transform: translateY(1px); } }
.meine .beleg-name { padding-right: 130px; min-height: 50px; }

/* ---------- Bestätigungs-Sheet ---------- */
.gesperrt, .gesperrt body { overflow: hidden; }
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-hg { position: absolute; inset: 0; background: rgba(28,24,20,.45); opacity: 0; transition: opacity .25s; }
.sheet-blatt {
  position: relative; width: 100%; max-width: 620px; max-height: 88vh; max-height: 88dvh; overflow-y: auto;
  background: var(--papier); border-radius: 20px 20px 0 0; padding: 10px var(--rand) calc(18px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.9,.3,1);
  box-shadow: 0 -10px 40px rgba(0,0,0,.25);
}
.sheet.offen .sheet-hg { opacity: 1; }
.sheet.offen .sheet-blatt { transform: none; }
.sheet-griff { display: block; width: 44px; height: 5px; border-radius: 3px; background: #cfc6b5; margin: 0 auto 10px; }
.sheet-titel { margin: 4px 0 12px; font: 400 30px/1.1 var(--fraktur); text-align: center; }
.sheet-beleg { margin: 0; }
.sheet-hinweis { margin: 14px 0 0; text-align: center; font: 600 21px/1.15 var(--hand); color: var(--kuli); }
.sheet .knopf-gross { margin-top: 12px; }
.sheet-zurueck { margin-top: 4px; color: var(--tinte); }

/* ---------- Kleine Effekte ---------- */
.flieger { position: fixed; z-index: 60; pointer-events: none; font: 600 26px/1 var(--hand); color: var(--kuli);
  transform: translate(-50%, -50%); text-shadow: 0 0 6px #fff; }
#leiste-anzahl.hupf { display: inline-block; animation: hupf .35s cubic-bezier(.3,1.8,.5,1); }
@keyframes hupf { 50% { transform: scale(1.45) rotate(-6deg); } }
.toast.rein { animation: toastRein .3s cubic-bezier(.3,1.5,.5,1); }
@keyframes toastRein { from { opacity: 0; transform: translate(-50%, 12px) scale(.96); } }
.position.raus { animation: raus .18s ease-in forwards; }
@keyframes raus { to { opacity: 0; transform: translateX(30px); } }
.gericht-haupt:active .gericht-marke { transform: scale(.9); }

/* Prost-Overlay */
.prost { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; cursor: pointer;
  background: rgba(253,251,246,.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: prostRein .25s ease-out; }
.prost.aus { opacity: 0; transition: opacity .35s; }
.prost canvas { position: absolute; inset: 0; pointer-events: none; }
.prost-karte { position: relative; display: grid; justify-items: center; gap: 4px; padding: 24px 30px 22px; text-align: center;
  background: var(--papier); border: 2px solid var(--kuli); border-radius: 18px; box-shadow: 0 16px 50px rgba(28,24,20,.25);
  transform: rotate(-3deg); animation: prostKarte .55s cubic-bezier(.3,1.7,.5,1); }
.prost-karte svg { width: 74px; height: 56px; fill: none; stroke: var(--kuli); stroke-width: 2; stroke-linejoin: round; animation: anstossen .5s .35s ease-in-out 2; }
.prost-karte b { font: 400 clamp(52px, 16vw, 76px)/1 var(--fraktur); color: var(--tinte); }
.prost-karte span { font: 600 clamp(24px, 7vw, 32px)/1.1 var(--hand); color: var(--kuli); }
@keyframes prostRein { from { opacity: 0; } }
@keyframes prostKarte { from { opacity: 0; transform: rotate(-12deg) scale(.4); } }
@keyframes anstossen { 50% { transform: rotate(-10deg) translateY(-4px); } }

/* Papierstruktur */
.blatt::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .3 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}
.blatt > * { position: relative; }

/* ---------- Scroll-Effekte ---------- */
.lesefortschritt { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 40; background: var(--kuli);
  transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.kopf { overflow: visible; }

.einblenden { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .6s cubic-bezier(.2,.8,.3,1);
  transition-delay: calc(var(--i, 0) * 55ms); }
.einblenden.sichtbar { opacity: 1; transform: none; }
.gericht.einblenden { transform: translateX(-14px); }
.gericht.einblenden.sichtbar { transform: none; }
.kiste.einblenden { transform: translateY(18px) rotate(-2deg); }
.kiste.einblenden.sichtbar { transform: none; }
.fuss.einblenden img { transform: translateY(24px) scale(.8); transition: transform .7s cubic-bezier(.3,1.6,.5,1) .1s; }
.fuss.einblenden.sichtbar img { transform: none; }
.fuss.einblenden .fuss-gruss { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(.6,.1,.3,1) .5s; }
.fuss.einblenden.sichtbar .fuss-gruss { clip-path: inset(0 0 0 0); }

/* Schritt-Navigation (klebt oben im Formularbereich) */
.schritte { position: sticky; top: 0; z-index: 15; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px;
  margin: 16px calc(var(--rand) * -1) 0; padding: 8px var(--rand); background: rgba(253,251,246,.94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-bottom: 1.5px solid var(--linie); }
.schritte a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 4px 6px;
  border-radius: 10px; text-decoration: none; color: var(--tinte-2); font-size: 14px; font-weight: 700; transition: color .25s, background .25s; }
.schritte a i { flex: none; font: 600 19px/1 var(--hand); font-style: normal; width: 26px; height: 26px; display: grid; place-items: center;
  border: 1.5px solid currentColor; border-radius: 52% 46% 55% 47% / 50% 55% 45% 50%; }
.schritte a.aktiv { color: var(--kuli); background: var(--kuli-hell); }
.schritte a.aktiv i { background: var(--kuli); border-color: var(--kuli); color: #fff; transform: rotate(-6deg); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }

/* Bier-Kiste als breite Karte */
.kiste-breit > span { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 14px 16px; text-align: left; }
.kiste-breit svg { flex: none; }
.kiste-text { display: flex; flex-direction: column; gap: 2px; }
.kiste-text small { font: 600 18px/1.15 var(--hand); color: var(--kuli); }
.kiste-breit input:checked + span::after { top: 50%; right: 16px; transform: translateY(-50%); }
.fahrplan-titel { margin-top: 30px; }
.stepper-text { margin-right: auto; font-size: 13.5px; color: var(--tinte-2); }
.gericht-stepper { padding-left: 48px; }

/* Getränke & Snacks */
.wahl-titel { margin: 14px 0 0; font-weight: 700; }
.wahl-titel i { font-weight: 400; color: var(--tinte-2); }
.wahl { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; min-width: 0; }
.wahl legend { padding: 0; margin-bottom: 10px; font-weight: 700; }
.wahl legend i { font-weight: 400; color: var(--tinte-2); }
.wahl.fehlt .kiste > span { border-color: var(--rot); }
.wahl .kiste input[type=radio] + span::after { content: ""; }
.wahl .kiste input[type=radio]:checked + span::after { content: "✓"; }
.feld-getraenke { margin: 0 0 4px 16px; }
.feld-getraenke[hidden] { display: none; }
.feld-getraenke:not([hidden]) { animation: aufklappen .3s cubic-bezier(.2,.8,.3,1); }

.anleitung-zeile { white-space: nowrap; font-size: clamp(13px, 4.35vw, 24px); margin-left: -6px; margin-right: -6px; }

/* Sortenwahl direkt beim Gericht */
.gericht-sorten { display: grid; gap: 8px; padding: 0 8px 12px 48px; }
.gericht-sorten[hidden] { display: none; }
.sorte-portion { display: grid; gap: 6px; }
.sorte-portion > span { font: 600 18px/1 var(--hand); color: var(--kuli); }
.gericht-sorten .optionen { margin: 0; }
.gericht-sorten .optionen legend { margin-bottom: 4px; }
.position-variante { display: block; font-size: 13.5px; color: var(--kuli); }
.position-variante.fehlt { color: var(--rot); }

/* Bier-Hinweise */
.bus-hinweis { margin: -2px 0 0; font: 600 19px/1.2 var(--hand); color: var(--kuli); }
.bus-stand { margin: 0; font-size: 14.5px; color: var(--tinte-2); }
.bus-stand b { font: 600 24px/1 var(--hand); color: var(--kuli); }
.feld-snack:not([hidden]) { animation: aufklappen .3s cubic-bezier(.2,.8,.3,1); }
@keyframes aufklappen { from { opacity: 0; transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  [data-tippen] .tz { opacity: 1; }
  .fs-loch { transform: none; }
  .stempel-neu { opacity: .78; transform: rotate(-9deg); }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Fahrschein auf sehr schmalen Handys */
@media (max-width: 380px) {
  .fahrschein { grid-template-columns: 20px minmax(0, 1fr) 80px; }
  .fs-band span { font-size: 9.5px; letter-spacing: .24em; }
  .fs-haupt { padding: 12px 8px 10px; }
  .fs-route b { font-size: 17px; overflow-wrap: anywhere; }
  .fs-felder { grid-template-columns: auto auto; gap: 4px 10px; justify-content: start; }
  .fs-felder > div:last-child { grid-column: 1 / -1; }
  .fs-felder b { font-size: 14px; }
  .fs-barcode { width: 70px; }
  .fs-abriss b { font-size: 24px; }
  .fs-abriss > span { font-size: 10.5px; }
  .fs-abriss .fs-countdown { font-size: 16px; }
}
.reise-kopf .rubrik { white-space: nowrap; }
@media (max-width: 380px) { .reise-kopf .rubrik { font-size: 14px; } .reise-uhr b { font-size: 32px; } }

/* Bedienung der Tagesreise */
.reise.aktiv { position: relative; }
.reise.aktiv .reise-buehne { touch-action: pan-y; }
.reise.aktiv .reise-fenster, .reise.aktiv .r-karte { cursor: pointer; }
.reise.aktiv .tag-punkte i { cursor: pointer; position: relative; }
.reise.aktiv .tag-punkte i::after { content: ""; position: absolute; inset: -10px; }
.reise.aktiv .tag-punkte { gap: 12px; }
.reise.aktiv .reise-buehne { overflow: hidden; }
body { overflow-x: clip; }

/* Schon dabei – zum Aufklappen */
.schon { margin: 2px 0 0; font-size: 14.5px; color: var(--tinte-2); }
.schon summary { cursor: pointer; list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; padding: 4px 0; min-width: 0; }
.schon summary::-webkit-details-marker { display: none; }
.schon summary b { font: 600 22px/1 var(--hand); color: var(--kuli); }
.schon summary::after { content: "anzeigen ▾"; margin-left: auto; white-space: nowrap; font: 600 18px/1 var(--hand); color: var(--kuli); }
.schon[open] summary::after { content: "zuklappen ▴"; }
.schon ul { list-style: none; margin: 4px 0 6px; padding: 8px 12px; border-left: 2px solid var(--kuli); background: var(--kuli-hell); border-radius: 0 10px 10px 0; display: grid; gap: 4px; }
.schon li { color: var(--tinte); }
.schon li i { font: 600 20px/1 var(--hand); color: var(--kuli); margin-right: 4px; font-style: normal; }

/* Detailzeichnungen der Szene */
.r-mast { stroke: #8d877c; stroke-width: 3.2; stroke-linecap: round; }
.r-scheibe { fill: rgba(188,211,224,.45); stroke: var(--strich); stroke-width: 1.4; }
.r-h-rand { fill: none; stroke: #2f6b3a; stroke-width: 1.6; }
.r-fahrplan { stroke: #8d877c; stroke-width: 1.2; }
.r-schild-rand { fill: none; stroke: #1c1814; stroke-width: 1.2; }
.r-ab-rand { fill: none; stroke: #fff; stroke-width: 1.6; }
.r-ab-pfeil { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.r-planke { fill: none; stroke: #9a958a; stroke-width: 3; }
.r-spiegel { stroke: rgba(255,255,255,.55); stroke-width: 2; opacity: calc(1 - var(--licht)); }
.r-laden { fill: #2f6b3a; stroke: var(--strich); stroke-width: 1; opacity: calc(1 - var(--nacht) * .5); }
.r-ziegel { stroke: color-mix(in srgb, var(--strich) 35%, transparent); stroke-width: 1.2; }
.r-dach { fill: color-mix(in srgb, #9a3b2a calc((1 - var(--nacht)) * 100%), var(--haus)); }
.r-kasten { fill: #7a4b2a; }
.r-blume { stroke: #c0392b; stroke-width: 3; stroke-linecap: round; }
.r-lampe { fill: color-mix(in srgb, #ffd56b calc(var(--licht) * 100%), #d8d2c4); stroke: var(--strich); stroke-width: 1;
  filter: drop-shadow(0 0 calc(var(--licht) * 6px) #ffd56b); }
.r-fen { stroke-width: 1.2; }

/* Infos direkt im Bild statt Karten */
.reise.aktiv .reise-karten { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; padding: 0; }
.reise.aktiv .reise-fenster { max-height: none; }
.r-infos { inset: 0 0 auto 0; z-index: 5; pointer-events: none; height: 52%; }
.r-info { position: absolute; inset: 0; padding: clamp(16px, 3svh, 26px) 20px 0; color: #1c1814; transition: color .5s; opacity: 0; visibility: hidden; will-change: opacity, transform;
  text-shadow: 0 0 14px var(--himmel-o), 0 0 4px var(--himmel-o); }
.r-info-kopf { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; font: 700 clamp(21px, 6vw, 26px)/1 var(--schreib); }
.r-info-kopf span { font-size: 14px; font-weight: 400; letter-spacing: .06em; opacity: .7; }
.r-info-fahrt .r-info-kopf time { font: 600 clamp(30px, 8.6vw, 36px)/1 var(--hand); color: var(--kuli-text, var(--kuli)); }
.r-info-titel { margin: 0 0 8px; font: 400 clamp(38px, 11.6vw, 52px)/1.02 var(--fraktur); }
.r-info-text { margin: 0; max-width: 30ch; font-size: clamp(17px, 4.8vw, 20px); line-height: 1.4; }
.r-info-kuli { margin: 8px 0 0; max-width: 30ch; font: 600 clamp(24px, 7vw, 30px)/1.15 var(--hand); color: var(--kuli-text, var(--kuli)); }
.r-sonne { left: 80%; }
.r-mond { left: 80%; }

.reise-fenster.dunkel .r-info { color: #fdfbf6; }
.reise-fenster.dunkel { --kuli-text: #b9c6ff; }
.r-info-fahrt .r-info-kopf time, .r-info-kuli { transition: color .5s; }

.wahl, .schon { min-width: 0; max-width: 100%; }
.schon li { overflow-wrap: anywhere; }
.schon .nw { white-space: nowrap; }
.fs-platz { margin-top: 12px; padding-top: 10px; border-top: 1.5px dashed #b5ab99; }
.fs-platz small { display: block; font-size: clamp(10.5px, 2.9vw, 12px); letter-spacing: .14em; text-transform: uppercase; color: var(--tinte-2); }
.fs-platz b { display: block; margin-top: 2px; font-size: clamp(15px, 4.3vw, 21px); white-space: nowrap; }

/* Leute: steigen bei der Firma aus, gehen in die Wirtschaft, um 23:45 wieder in den Bus */
.r-leute { position: absolute; inset: 0; pointer-events: none; }
.r-mensch { position: absolute; left: 0; bottom: 19.5%; transform-origin: 50% 96%; height: var(--mensch-h, 28px); width: auto; overflow: visible; opacity: 0; will-change: transform, opacity; }
.r-mensch .m-bein { stroke: #2a2622; stroke-width: 2.4; stroke-linecap: round; transform-box: fill-box; transform-origin: 50% 0; }
.r-mensch .m-mantel { fill: var(--mantel); stroke: #1c1814; stroke-width: .8; }
.r-mensch .m-arm { stroke: var(--mantel); stroke-width: 2.2; stroke-linecap: round; }
.r-mensch .m-kopf { fill: #e9c6a2; stroke: #1c1814; stroke-width: .7; }
.r-mensch .m-haar { fill: var(--haar); }
@keyframes schrittA { from { transform: rotate(18deg); } to { transform: rotate(-18deg); } }
@keyframes schrittB { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
@keyframes wippen { to { translate: 0 -1px; } }
.r-bus .r-licht { transition: opacity .6s; }
.r-bus.parkt .r-licht { opacity: 0; }
.r-bus.parkt .b-glas { fill: #3a4558; transition: fill .6s; }

/* Kopf: Löwe schrumpft beim Scrollen in die Leiste, daneben „Ausflug zum Goldenen Löwen“ */
.kopf .kopf-bild { position: relative; width: min(64%, 280px); margin: 0 auto; }
.kopf .kopf-bild img { margin: 0; }
.kopf .kopf-text { width: 100%; display: block; transition: none; }
.kopf .kopf-loewe { position: absolute; left: 32.3%; top: 13.52%; width: 39.34%; height: auto; }
.blatt > .loewe-anker { position: sticky; top: 0; height: 0; margin: 0; padding: 0; z-index: 37; }
.flug-loewe { position: absolute; z-index: 37; margin: 0; pointer-events: none; transform-origin: 0 0; will-change: transform; backface-visibility: hidden; }
.flug-loewe.klickbar { pointer-events: auto; cursor: pointer; }
.kopf .kopf-text { will-change: opacity; }
.kopfleiste { display: none; }
html.mit-kopfleiste .kopfleiste { display: block; position: fixed; top: 0; left: 0; right: 0; height: var(--leiste-h); z-index: 36; pointer-events: none;
  background: rgba(253,251,246,var(--leiste-op, 0));
  -webkit-backdrop-filter: blur(calc(var(--leiste-op, 0) * 6px)); backdrop-filter: blur(calc(var(--leiste-op, 0) * 6px)); }
html.mit-kopfleiste .kopfleiste.an { pointer-events: auto; cursor: pointer; }
.kl-innen { max-width: 620px; height: 100%; margin: 0 auto; padding: 0 var(--rand); display: flex; align-items: center; gap: 10px; box-sizing: border-box; }
.kl-platz { flex: 0 0 auto; width: 38px; height: 40px; }
.kl-text { font: 400 clamp(17px, 5.4vw, 24px)/1 var(--fraktur); color: var(--tinte); white-space: nowrap;
  clip-path: inset(-10% calc((1 - var(--schrift, 0)) * 100%) -10% 0); }
html.mit-kopfleiste { --leiste-h: 54px; scroll-padding-top: 124px; }
html.mit-kopfleiste .schritte { top: var(--leiste-h); }
html.mit-kopfleiste .reise.aktiv .reise-buehne { top: var(--leiste-h); height: calc(100vh - var(--leiste-h)); height: calc(100svh - var(--leiste-h)); }
.kiste svg .flaschen path, .prost-karte svg .flaschen path { stroke-width: 1.5; stroke-linecap: round; }
.kiste svg .rippen, .prost-karte svg .rippen { stroke-width: 1.5; stroke-linecap: round; }

/* Startbild: Logo, Titel und Fahrkarte füllen den ersten Bildschirm */
.blatt > .start { display: flex; flex-direction: column; justify-content: space-evenly; gap: 8px;
  min-height: calc(100vh - 22px); min-height: calc(100svh - 22px); padding-bottom: 8px; box-sizing: border-box; }
.start .kopf .kopf-bild { width: min(80%, 360px, 46svh); }
.start .anlass { margin: 4px 0 0; }
.start .anlass-titel { font-size: clamp(28px, 8.4vw, 38px); }
.start .anlass-datum { margin-bottom: 0; font-size: clamp(15px, 4.2vw, 18px); }
.start .fahrschein-wrap { max-width: 500px; }
.start-hinweis { margin: 0; text-align: center; font: 600 22px/1 var(--hand); color: var(--kuli); }
.start-hinweis i { display: inline-block; font-style: normal; animation: wink 1.2s ease-in-out infinite; }
@media (min-width: 680px) { .blatt > .start { min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); } }
.fahrt { margin-top: 0; }
@media (max-height: 640px) {
  .start .kopf .kopf-bild { width: min(70%, 40svh); }
  .start .anlass-titel { font-size: 26px; margin-bottom: 2px; }
  .start .anlass-datum { font-size: 14px; }
  .blatt > .start { gap: 4px; }
  .start-hinweis { font-size: 19px; }
}
.r-mensch .m-bein-a { transform: rotate(var(--bein, 0deg)); }
.r-mensch .m-bein-b { transform: rotate(calc(var(--bein, 0deg) * -1)); }
.r-mensch .m-arm { transform-box: fill-box; transform-origin: 50% 0; }

/* Name ganz oben */
.abschnitt-name { margin-top: 18px; }
.feld-name > span { font: 400 clamp(24px, 6.6vw, 30px)/1.1 var(--fraktur); }
.feld-name input { font-size: 19px; padding-top: 14px; padding-bottom: 14px; }

/* Wichtig-Hinweis unter dem Namensfeld */
.abschnitt-name .pro-person { margin-top: 14px; }

/* Nur Hochformat: im Querformat auf dem Handy Hinweis statt Seite */
.quer-hinweis { display: none; }
@media (orientation: landscape) and (max-height: 520px) and (hover: none) and (pointer: coarse) {
  .quer-hinweis { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    background: var(--papier); color: var(--tinte); text-align: center; }
  .quer-hinweis svg { width: 84px; height: 84px; fill: none; stroke: var(--kuli); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  .quer-hinweis .qh-handy { transform-box: fill-box; transform-origin: center; animation: hochkant 2.2s ease-in-out infinite; }
  .quer-hinweis p { margin: 0; font: 400 28px/1.15 var(--fraktur); }
  html, body { overflow: hidden !important; }
}
@keyframes hochkant { 0%, 25% { transform: rotate(-90deg); } 55%, 100% { transform: rotate(0deg); } }

/* Beleg: nur Essen und Mitbringsel */
.beleg-titel { margin: 12px 0 4px; font: 400 21px/1.1 var(--fraktur); }
.beleg-name + .beleg-titel { margin-top: 4px; }
.beleg .beleg-liste li { display: block; padding: 3px 0 3px 16px; position: relative; }
.beleg .beleg-liste li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--tinte); }
.beleg .beleg-mit li { color: var(--kuli); }
.beleg .beleg-mit li::before { background: var(--kuli); }
.bild-speichern { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.bild-speichern svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bild-speichern[disabled] { opacity: .6; }
