/* seite.css · ACHTEL, Pizzeria in Graz (Beispiel). Grundfassung = ruhige Fassung (ohne Skript und bei Bewegung reduzieren).
 * Die Bühne mit Fahrt, Schnitt und Wechsel steht im Block Bewegung am Ende. Bewegung nur über transform, opacity, clip-path. */

html { scroll-padding-top: calc(var(--kopf-hoehe) + 16px); }
body { background: var(--braun); }
:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; border-radius: 4px; }
.knopf:focus-visible, .kopf a:focus-visible { outline-color: var(--weiss); box-shadow: 0 0 0 6px var(--braun); }
.sprung { position: fixed; left: 12px; top: -64px; z-index: 90; padding: 12px 18px; background: var(--weiss); color: var(--braun); border-radius: 999px; text-decoration: none; font-weight: 700; }
.sprung:focus { top: 12px; }

/* ---------- Kopfzeile: Logo auf der linken Inhaltskante, dazu die Achtel-Anzeige */
.kopf { position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; align-items: center; gap: var(--a3); min-height: var(--kopf-hoehe); padding: 10px var(--rand); background: var(--braun); color: var(--weiss); }
.logo { margin-right: 0; min-height: 44px; display: inline-flex; align-items: baseline; gap: 8px; color: var(--kopf-l, inherit); text-decoration: none; font-weight: 780; font-size: 1.2rem; letter-spacing: -0.01em; line-height: 44px; }
.logo .beispiel { font-weight: 480; font-size: var(--g-klein); }
.kopf-nav { display: flex; gap: var(--a3); margin-left: auto; color: var(--kopf-r, inherit); }
.kopf-nav a { min-height: 44px; display: inline-flex; align-items: center; color: inherit; text-decoration: none; font-weight: 560; }
.kopf-nav a:hover { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 2px; }
.anzeige { width: 34px; height: 34px; flex: none; margin-left: -8px; color: var(--kopf-l, inherit); }
.anzeige .seg { fill: currentColor; opacity: 0.28; }
.anzeige .seg.an { opacity: 1; }
.kopf .knopf { color: var(--kopf-r, inherit); }
@media (max-width: 760px) { .kopf-nav { display: none; } .kopf .knopf { margin-left: auto; } .kopf { gap: var(--a2); } .kopf .knopf { padding: 6px 16px; } }
@media (max-width: 480px) { .logo .beispiel { display: none; } }

/* ---------- Knöpfe: ein gefüllter Typ (Mozzarella-Weiß auf Farbe, Krustenbraun auf Weiß), zweite Aktion als Rahmen */
.knopf { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 28px; border: 0; border-radius: 999px; background: var(--weiss); color: var(--braun); font: inherit; font-weight: 700; line-height: 1.15; text-decoration: none; cursor: pointer; white-space: nowrap; transition: color 0.3s ease; }
.knopf--braun { background: var(--braun); color: var(--weiss); }
.knopf--rahmen { background: transparent; color: var(--weiss); box-shadow: inset 0 0 0 2px currentColor; min-height: 44px; padding: 6px 20px; font-size: 0.95rem; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
/* Beim Überfahren dreht sich ein Sektor auf (hart, ohne Leuchten) */
.knopf::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: conic-gradient(from 0deg, var(--braun) 0 var(--ang), transparent 0); transition: --ang 0.55s var(--aus); }
.knopf--braun::before { background: conic-gradient(from 0deg, var(--rot) 0 var(--ang), transparent 0); }
@media (hover: hover) and (pointer: fine) { .knopf:hover { color: var(--weiss); } .knopf:hover::before { --ang: 360deg; } }

/* ---------- Der erste Bildschirm (Grundfassung: Foto deckt die Bühne, Wort hinter dem Bäcker, Text links unten) */
.film { position: relative; background: var(--rot); }
.buehne { position: relative; background: var(--boden, var(--rot)); }
.rahmen { position: absolute; inset: 0; }
.rahmen img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; max-width: none; }
.wort-hulle { position: absolute; left: 0; right: 0; top: var(--wort-oben, 8svh); }
.wort { margin: 0; display: flex; justify-content: space-between; white-space: nowrap; color: var(--weiss); font-family: var(--schrift-display); font-weight: 800; font-size: var(--g-wort); line-height: 0.8; letter-spacing: var(--wort-sperr, -0.05em); opacity: var(--wo, 1); transform: translate(calc(var(--mx, 0) * -22px), calc(var(--wl, 0px) + var(--my, 0) * -10px)); }
.kopftext { position: absolute; left: var(--rand); bottom: clamp(28px, 6svh, 64px); z-index: 9; width: min(31vw, 30rem); color: var(--weiss); opacity: calc(1 - var(--kt, 0) * 1.5); transform: translate(calc(var(--kt, 0) * -62vw), calc(var(--kt, 0) * 22svh)); }
.kopftext h1 { margin: 0; font-size: var(--g-zeile); line-height: 0.98; letter-spacing: -0.03em; text-wrap: balance; }
.kopftext .zeile { margin: var(--a2) 0 var(--a3); max-width: 26rem; font-size: var(--g-text); line-height: 1.4; }
.kopftext .satz { margin: var(--a1) 0 0; font-size: var(--g-klein); }
.hinweis { position: absolute; right: var(--rand); bottom: clamp(28px, 6svh, 64px); z-index: 9; margin: 0; text-align: right; font-family: var(--schrift-mono); font-size: var(--g-klein); line-height: 1.45; color: var(--weiss); opacity: var(--ho, 1); }
.hinweis span { display: block; }
.hinweis .nur-bewegung { display: none; }

/* Ruhige Fassung: Bühnenteile der Bewegung ausblenden, Sorten als Farbbänder darunter */
.sektoren, .leinwand, .roller, .zutaten, .sorten, .alle, .bon-fach, .pizza-ziel { display: none; }
.ruhig-sorten { position: relative; }
.marke { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--a4); padding: var(--a6) var(--rand); min-height: 60svh; }
.band img { width: min(100%, 36rem); height: auto; justify-self: center; }
.band h2 { margin: 0 0 var(--a2); font-size: var(--g-zeile); line-height: 1; letter-spacing: -0.03em; }
.band p { margin: 0 0 var(--a2); max-width: 28rem; }
.band .kl { font-family: var(--schrift-mono); font-size: var(--g-klein); }
.band.b4 { background: var(--weiss); color: var(--braun); grid-template-columns: minmax(0, 1fr); }
.band.b4 h2 { font-size: var(--g-zeile); } .band.b4 .knopf { margin-top: var(--a2); }
.band.b0 { background: var(--rot); color: var(--weiss); } .band.b1 { background: var(--gruen); } .band.b2 { background: var(--glut); } .band.b3 { background: var(--gelb); }
@media (max-width: 760px) { .band { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 760px) and (max-aspect-ratio: 1/1) {
  .buehne { --boden: var(--rot); --g-wort: 17.5vw; }
  .rahmen { inset: 0 0 auto 0; height: 62svh; }
  .rahmen img { object-position: 46% 0; }
  .wort-hulle { top: calc(var(--kopf-hoehe) + 2svh); left: var(--rand); right: var(--rand); }
  .kopftext { width: auto; right: var(--rand); bottom: 18px; }
  .hinweis { display: none; }
}
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  .buehne { --wort-oben: 15svh; --g-wort: min(17.5vw, 33svh); }
  .wort-hulle { left: var(--rand); right: var(--rand); }   /* ACH links, TEL rechts, dazwischen der Bäcker: beide Hälften bleiben ganz im Bild */
  .kopftext { width: min(36vw, 22rem); bottom: 14px; }
  .kopftext .zeile { display: none; }
  .kopftext h1 { font-size: clamp(1.4rem, 7svh, 2.2rem); }
  .hinweis { display: none; }
}

/* ================= Bewegung: nur mit Skript und ohne Bewegung reduzieren ================= */
@media (prefers-reduced-motion: no-preference) {
  html.js .film { height: calc(100svh + var(--laenge, 308) * 1svh); }
  html.js .buehne { position: sticky; }
  html.js .sektoren, html.js .leinwand, html.js .zutaten, html.js .sorten, html.js .alle, html.js .bon-fach { display: block; }
  html.js .roller { display: block; }
  html.js .pizza-ziel { display: block; }
  html.js .ruhig-sorten { position: static; }
  html.js .marke { top: calc(150 * 1svh + var(--kopf-hoehe) + 16px); }
  html.js .kopf { background: transparent; }
  html.js .kopf.fest { background: var(--braun); }
  html.js .ruhig-sorten .band { position: absolute; width: 1px; height: 1px; padding: 0; min-height: 0; overflow: clip; clip: rect(0 0 0 0); white-space: nowrap; }
  html.js .rahmen { inset: auto; left: 0; top: 0; width: 2816px; height: 1584px; transform-origin: 0 0; will-change: transform;
    transform: translate3d(calc(var(--fx, 0px) + var(--mx, 0) * 8px), calc(var(--fy, 0px) + var(--my, 0) * 8px), 0) scale(var(--fs, 1)); }
  html.js .rahmen img { width: 2816px; height: 1584px; object-fit: fill; }
  html.js .frei { opacity: var(--co, 1); }
  html.js .sektoren { opacity: var(--so, 0); }
  html.js .leinwand { opacity: var(--po, 0); }
  .foto { z-index: 1; } .wort-hulle { z-index: 2; } .sektoren { z-index: 3; } .frei { z-index: 4; }
  .leinwand { z-index: 5; } .roller { z-index: 6; } .zutaten { z-index: 7; } .sorten { z-index: 8; } .bon-fach { z-index: 8; }

  /* Beim Laden: nur der erste Bildschirm, nichts klebt links oben (Startbild ohne Springen) */
  html.js:not(.bereit) .buehne > * { visibility: hidden; animation: zeigen 0s 3.5s forwards; }
  /* Das Kopffoto steht schon vor dem Skript da (gleicher Ausschnitt wie die spätere Fahrt: Deckung, oben verankert, mittig), alles andere folgt mit „bereit“; Handy und flaches Fenster warten wie bisher */
  @media (min-width: 761px) and (min-height: 521px) {
    html.js:not(.bereit) .buehne > .foto { visibility: visible; animation: none; }
    html.js:not(.bereit) .rahmen.foto { width: 100%; height: 100%; transform: none; will-change: auto; }
    html.js:not(.bereit) .rahmen.foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
  }
  html.js .wort-hulle { animation: wortein 0.9s var(--aus) both; animation-play-state: paused; }
  /* Das Wort fährt erst ein, wenn auch der Freisteller (Bäcker vor dem Wort) da ist; bis dahin steht es verborgen, damit es nie vor dem Bäcker liegt */
  html.js:not(.frei-da) .buehne > .wort-hulle { visibility: hidden; }
  html.js.frei-da .wort-hulle { animation-play-state: running; }
  html.js:not(.bereit) .bon-fach { display: none; }
  html.js .kopftext > *, html.js .hinweis > span { animation: textein 0.7s ease 0.75s both; animation-play-state: paused; }
  html.js.bereit .kopftext > *, html.js.bereit .hinweis > span { animation-play-state: running; }
  @keyframes zeigen { to { visibility: visible; } }
  @keyframes wortein { from { translate: 0 62svh; } to { translate: 0 0; } }
  @keyframes textein { from { opacity: 0; } to { opacity: 1; } }


  html.js .hinweis .nur-bewegung { display: block; }
  /* Sortentext links neben der Pizza; die Karte „Alle vier“ steht an derselben Stelle (eckige Mozzarella-Fläche, weil dahinter vier Farben liegen) */
  .sorten { position: absolute; left: var(--rand); top: 50%; width: calc(var(--cx) - var(--D) / 2 - var(--rand) * 1.5); height: 0; }
  .sorten .sname { top: 0; transform: translateY(calc(-50% + var(--e) * 24px)); }
  .sorten .st { font-size: var(--g-text); line-height: 1.4; max-width: 100%; }
  .alle { --e: 1; --ea: 1; position: absolute; z-index: 9; left: var(--rand); top: 50%; width: calc(var(--cx) - var(--D) / 2 - var(--rand) * 1.5); padding: var(--a3); background: var(--weiss); color: var(--braun);
    transform: translateY(calc(-50% + var(--e) * 44px)); opacity: calc(1 - var(--ea) * 1.8); }
  .alle.aus { visibility: hidden; pointer-events: none; }
  .al-t { margin: 0 0 var(--a2); font-size: calc(var(--g-name) * 0.88); line-height: 1.02; letter-spacing: -0.03em; }
  .al-p { margin: 0 0 var(--a3); font-size: var(--g-text); line-height: 1.4; }

  /* Küchenbon rechts, kommt aus einem Schlitz am oberen Rand */
  .bon-fach { position: absolute; right: var(--rand); top: calc(var(--kopf-hoehe) + 2.5svh); width: clamp(240px, 20vw, 280px); height: 70svh; clip-path: inset(0 -60vw -100vh -60vw); pointer-events: none; }
  .schlitz { position: absolute; left: -10px; right: -10px; top: 0; height: 8px; z-index: 3; background: var(--braun); opacity: var(--bs, 0); }
  .bon { position: absolute; left: 0; top: 4px; width: 100%; padding: 16px 18px 26px; background: var(--weiss); color: var(--braun); font-family: var(--schrift-mono); font-size: 0.9375rem; line-height: 1.35;
    transform-origin: 30% 0; transform: translate(calc(var(--ab, 0) * 22px), calc((var(--druck, 0) - 1) * 104% + var(--ab, 0) * 90svh)) rotate(calc(var(--ab, 0) * 17deg)); visibility: hidden;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), 91% 100%, 82% calc(100% - 9px), 73% 100%, 64% calc(100% - 9px), 55% 100%, 46% calc(100% - 9px), 37% 100%, 28% calc(100% - 9px), 19% 100%, 10% calc(100% - 9px), 0 100%); }
  .bon.an { visibility: visible; }
  .bon-kopf { margin: 0 0 var(--a1); font-family: var(--schrift-display); font-weight: 780; font-size: 1.25rem; display: flex; justify-content: space-between; }
  .bon-kopf small { font-family: var(--schrift-display); font-weight: 400; font-size: 0.8rem; align-self: flex-end; }
  .bon ul { list-style: none; margin: 0; padding: 0; }
  .bon li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed rgb(35 18 12 / 0.45); }
  .bon li[hidden] { display: none; }
  .bon li b { font-weight: 700; }
  .bon-sum { margin: 8px 0 0; font-weight: 700; }

  /* Zutaten-Ebene (Tiefe): liegen wie auf dem Tisch um die Pizza, teils vom Rand angeschnitten, bewegen sich bei Maus und Scroll deutlich stärker als die Pizza */
  .zutaten { position: absolute; inset: 0; pointer-events: none; --zs: 1; }
  .zt { position: absolute; max-width: none; height: auto; --zt: 0; opacity: min(1, calc(var(--zt) * 1.6)); visibility: hidden; will-change: transform;
    transform: translate(calc((1 - var(--zt)) * var(--vx, 0px) - var(--mx, 0) * var(--tf, 20) * 1px), calc((1 - var(--zt)) * var(--vy, 0px) - var(--my, 0) * var(--tf, 20) * 1px + var(--sd, 0px) * var(--td, 0.1) * -1)) rotate(var(--rot, 0deg)); }
  .zt.an { visibility: visible; }
  .pl-bl { left: -5vmin; bottom: -3svh; --vx: -40vw; }
  .pl-br { right: -4vmin; bottom: -3svh; --vx: 42vw; }
  .pl-rm { right: -5vmin; top: 58svh; --vx: 44vw; }
  .pl-tl { left: 2vmin; top: 15svh; --vx: -40vw; }
  .z-basil { width: calc(20vmin * var(--zs)); --rot: 14deg; --tf: 70; --td: 0.14; }
  .z-tomaten { width: calc(26vmin * var(--zs)); --rot: -10deg; --tf: 92; --td: 0.09; }
  .z-halb { width: calc(16vmin * var(--zs)); --rot: 18deg; --tf: 60; --td: 0.13; }
  .z-mort { width: calc(26vmin * var(--zs)); --rot: -8deg; --tf: 90; --td: 0.1; }
  .z-pist { width: calc(25vmin * var(--zs)); --rot: 12deg; --tf: 80; --td: 0.12; }
  .z-pa { width: calc(15vmin * var(--zs)); --rot: -20deg; --tf: 56; --td: 0.13; }
  .z-pb { width: calc(16vmin * var(--zs)); --rot: 24deg; --tf: 64; --td: 0.11; }
  .z-sal { width: calc(25vmin * var(--zs)); --rot: -14deg; --tf: 86; --td: 0.1; }
  .z-ca { width: calc(27vmin * var(--zs)); --rot: 20deg; --tf: 76; --td: 0.12; }
  .z-cb { width: calc(16vmin * var(--zs)); --rot: -26deg; --tf: 58; --td: 0.13; }
  .z-kue { width: calc(26vmin * var(--zs)); --rot: 8deg; --tf: 90; --td: 0.1; }
  .z-ker { width: calc(24vmin * var(--zs)); --rot: -12deg; --tf: 78; --td: 0.12; }
  .z-sa { width: calc(15vmin * var(--zs)); --rot: 22deg; --tf: 56; --td: 0.13; }
  .z-sb { width: calc(17vmin * var(--zs)); --rot: -18deg; --tf: 66; --td: 0.11; }

  @media (max-width: 760px) and (max-aspect-ratio: 1/1) {
    .sorten { left: var(--rand); right: var(--rand); width: auto; top: calc(var(--cy) - var(--D) / 2 - 14px); }
    .sorten .sname { top: auto; bottom: 0; transform: translateY(calc(var(--e) * 24px)); }
    .sorten .st { font-size: 0.9375rem; max-width: none; margin-top: var(--a1); line-height: 1.3; }
    .sorten .sp { display: none; }
    .alle { left: var(--rand); right: var(--rand); width: auto; top: auto; bottom: calc(100% - var(--cy) + var(--D) / 2 + 14px); padding: var(--a2); transform: translateY(calc(var(--e) * 44px)); }
    .al-t { font-size: 1.5rem; margin-bottom: var(--a1); }
    .al-p { display: none; }
    .bon-fach { left: var(--rand); right: var(--rand); top: auto; bottom: 10px; width: auto; height: 152px; clip-path: inset(-100vh -60vw 0 -60vw); }
    .schlitz { top: auto; bottom: 0; }
    .bon { top: auto; bottom: 4px; padding: 10px 14px 12px; font-size: 0.8125rem; transform: translate(calc(var(--ab, 0) * 22px), calc((1 - var(--druck, 0)) * 104% + var(--ab, 0) * 40svh)) rotate(calc(var(--ab, 0) * 14deg)); clip-path: none; }
    .bon-kopf { font-size: 1rem; margin-bottom: 2px; }
    .bon li { padding: 2px 0; }
    .zt { --vy: 0px; }
    .zutaten { z-index: 4; }   /* hinter der Pizza: sie schauen nur am Rand heraus und decken weder Pizza noch Text noch Bon zu */
    .pl-bl { left: -9vw; bottom: 22svh; --vx: -40vw; } .pl-br { right: -9vw; bottom: 21svh; --vx: 42vw; } .pl-rm { right: -10vw; top: 47svh; --vx: 44vw; } .pl-tl { display: none; }
    .z-basil, .z-mort, .z-sal, .z-kue { width: 34vw; } .z-tomaten, .z-pist, .z-ca, .z-ker { width: 36vw; } .z-halb, .z-pa, .z-cb, .z-sa { width: 26vw; }
  }
  @media (max-height: 520px) and (min-aspect-ratio: 1/1) {
    .zutaten { --zs: 0.82; }
    .bon-fach { display: none !important; }
    .sorten .st { font-size: 0.875rem; }
    .sorten .sk { display: none; }
    .alle { padding: var(--a2); }
    .al-p { display: none; }
    .al-t { margin-bottom: var(--a1); }
  }
}

/* ================= Stationen 2 bis 4 und Fuß: Grundfassung (ohne Skript und bei Bewegung reduzieren) ================= */
/* Übergang: der Roller schneidet; hier steht er in der Mitte, mit Bewegung fährt er mit dem Scrollen quer durchs Bild */
.schnitt { position: relative; height: clamp(110px, 24svh, 35svh); overflow: clip; --rw: clamp(220px, 30vw, 420px); --lc: var(--rot); }
.s-oben, .s-unten { position: absolute; left: 0; right: 0; height: 50%; }
.s-oben { top: 0; } .s-unten { bottom: 0; }
.s-linie { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--lc); transform-origin: 0 50%; transform: scaleX(var(--p, 0.5)); }
.schnitt[data-r="l"] .s-linie { transform-origin: 100% 50%; }
.s-roller { position: absolute; left: 0; top: 50%; width: var(--rw); max-width: none; transform: translate(calc(var(--p, 0.5) * (100vw + var(--rw)) - var(--rw)), -52%); }
.schnitt[data-r="l"] .s-roller { transform: translate(calc((1 - var(--p, 0.5)) * (100vw + var(--rw)) - var(--rw)), -52%) scaleX(-1); }
.sn-1 .s-oben { background: var(--weiss); } .sn-1 .s-unten { background: var(--braun); } .sn-1 { --lc: var(--rot); }
.sn-2 .s-oben { background: var(--braun); } .sn-2 .s-unten { background: var(--rot); } .sn-2 { --lc: var(--weiss); }
.sn-3 .s-oben { background: var(--rot); } .sn-3 .s-unten { background: var(--gruen); } .sn-3 { --lc: var(--braun); }

/* Station 2 · Teig und Ofen */
.ofen { background: var(--braun); color: var(--weiss); }
.ofen-buehne { display: grid; }
.ofen-text { order: 1; padding: var(--a6) var(--rand) var(--a5); }
.mund { order: 2; position: relative; }
.mund img, .teig img { display: block; width: 100%; height: auto; }
.teig { order: 3; position: relative; margin: 0; }
.teig figcaption { position: absolute; left: var(--rand); bottom: var(--a3); max-width: min(36rem, calc(100% - var(--rand) * 2)); padding: var(--a3) var(--a4) var(--a3) var(--a3); background: var(--weiss); color: var(--braun); font-size: var(--g-ueber); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.ofen h2, .abend h2, .reservieren h2 { margin: 0; font-size: var(--g-zeile); line-height: 0.98; letter-spacing: -0.03em; text-wrap: balance; }
.zahlen { list-style: none; margin: var(--a4) 0 0; padding: 0; display: grid; gap: var(--a2); }
.zahlen li { display: flex; align-items: baseline; gap: var(--a2); }
.zahl { font-size: var(--g-zeile); font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--gelb); }
.zahlen li > span { font-family: var(--schrift-mono); font-size: var(--g-klein); }
.zahl.rollt { display: inline-flex; height: 1em; overflow: clip; }
.ziffer { display: block; height: 1em; width: 0.62em; overflow: clip; }
.rolle { display: block; transform: translateY(calc(var(--ro, 1) * var(--ziel, 0) * -9.0909%)); will-change: transform; }
.rolle i { display: block; height: 1em; font-style: normal; text-align: center; }

/* Station 3 · Der Abend */
.abend { background: var(--rot); color: var(--weiss); }
.abend-bild img { display: block; width: 100%; height: auto; }
.abend-text { padding: var(--a5) var(--rand) var(--a6); }
.abend-text p { margin: var(--a2) 0 0; max-width: 30rem; }
.abend-text .adresse { font-family: var(--schrift-mono); font-size: var(--g-klein); }
.lauf { overflow: clip; background: var(--braun); color: var(--weiss); padding: var(--a3) var(--rand); font-size: var(--g-zeile); font-weight: 780; letter-spacing: -0.03em; line-height: 1; }
.spur { display: block; }
.spur .teil { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3em 0.45em; }
.spur .kopie { display: none; }
.achtel { position: relative; flex: none; width: 0.6em; height: 0.6em; border-radius: 50%; box-shadow: inset 0 0 0 0.05em currentColor; }
.achtel::after { content: ""; position: absolute; inset: 0; background: var(--gelb); clip-path: polygon(50% 50%, 50% 0%, 69.1% 3.8%, 85.4% 14.6%); }

/* Station 4 · Reservieren: Pistaziengrün, links das Brett mit der gemischten Pizza, rechts das Formular als großer Küchenbon */
.reservieren { background: var(--gruen); color: var(--braun); }
.res-buehne { display: grid; gap: var(--a4); padding: var(--a5) var(--rand) var(--a6); align-items: start; }
.res-brett { display: grid; justify-items: center; align-content: start; }
.brett-feld { position: relative; width: min(72vw, 32rem); aspect-ratio: 1; }
.brett-feld .brett { position: absolute; inset: 0; width: 100%; height: 100%; }
.mix-ersatz { position: absolute; left: 50%; top: 50%; width: 74%; height: auto; transform: translate(-50%, -50%); }
.mix { display: none; position: absolute; left: 50%; top: 50%; width: var(--lw, 170.2%); height: var(--lw, 170.2%); transform: translate(-50%, -50%); pointer-events: none; }
/* Bon-Zettel auf dem leeren Brett (landet, wenn das letzte Achtel gegessen ist) */
.leer { position: absolute; left: 50%; top: 50%; width: 52%; margin: 0; padding: 16px 16px 24px; background: var(--weiss); color: var(--braun); text-align: center; font-family: var(--schrift-mono); font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.35rem); line-height: 1.25; pointer-events: none; opacity: min(1, calc(var(--lr, 0) * 6));
  transform: translate(-50%, calc(-50% - (1 - var(--lr, 0)) * 90px)) rotate(calc(-9deg + var(--lr, 0) * 5deg));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 91% 100%, 82% calc(100% - 8px), 73% 100%, 64% calc(100% - 8px), 55% 100%, 46% calc(100% - 8px), 37% 100%, 28% calc(100% - 8px), 19% 100%, 10% calc(100% - 8px), 0 100%); }
.res-form { max-width: 38rem; width: 100%; justify-self: center; }
.bon-gross { background: var(--weiss); color: var(--braun); padding: var(--a3) clamp(20px, 3vw, 36px) 52px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 95% 100%, 90% calc(100% - 14px), 85% 100%, 80% calc(100% - 14px), 75% 100%, 70% calc(100% - 14px), 65% 100%, 60% calc(100% - 14px), 55% 100%, 50% calc(100% - 14px), 45% 100%, 40% calc(100% - 14px), 35% 100%, 30% calc(100% - 14px), 25% 100%, 20% calc(100% - 14px), 15% 100%, 10% calc(100% - 14px), 5% 100%, 0 calc(100% - 14px)); }
.bg-kopf { display: flex; justify-content: space-between; gap: var(--a2); margin: 0 0 var(--a2); padding-bottom: 10px; border-bottom: 2px dashed rgb(35 18 12 / 0.5); font-family: var(--schrift-mono); font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; }
.res-form h2 { margin: 0 0 var(--a3); font-size: var(--g-zeile); }
.feld { margin-bottom: 14px; }
.reihe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--a2); }
.feld label { display: block; margin-bottom: 6px; font-family: var(--schrift-mono); font-weight: 700; font-size: 1rem; }
.feld input, .feld select { display: block; width: 100%; min-height: 54px; padding: 8px 14px; border: 2px solid var(--braun); border-radius: 0; background: #fffaf0; color: var(--braun); font: inherit; font-size: 1.0625rem; }
.feld input:focus-visible, .feld select:focus-visible { outline: 4px solid var(--rot); outline-offset: 2px; border-color: var(--rot); }
.feld input[aria-invalid="true"] { border-color: var(--fehler); }
.feld .fehler { margin: 4px 0 0; min-height: 0; font-size: 0.95rem; color: var(--fehler); font-weight: 700; }
.formular .knopf { width: 100%; margin-top: var(--a2); min-height: 62px; font-size: 1.1875rem; }
.formular-meldung { margin: var(--a2) 0 0; min-height: 1.4em; font-weight: 700; }
.formular-meldung:focus { outline: none; }
.res-form .satz { margin: var(--a1) 0 0; font-size: 1rem; color: var(--text-2); }
.res-form :focus-visible { outline-color: var(--rot); }
.reservieren { overflow: clip; }
@media (min-width: 900px) {
  .res-buehne { grid-template-columns: minmax(0, 1fr) minmax(0, 36rem); gap: var(--a6); align-items: center; }
  .res-form { justify-self: end; }
  .brett-feld { width: min(42vw, 68svh, 44rem); }
}

/* Fuß */
.fuss { position: relative; overflow: clip; background: var(--braun); color: var(--weiss); padding: var(--a6) 0 0; border-top: 0; font-size: inherit; text-align: left; }
.fuss p { margin: 0 0 10px; max-width: none; }
.fuss-innen { display: grid; gap: var(--a4); padding: 0 var(--rand); }
@media (min-width: 900px) { .fuss-innen { grid-template-columns: 1.2fr 1fr; } .fuss-hinweis { grid-column: 1 / -1; } }
.fuss-name { margin: 0 0 var(--a2); font-size: var(--g-ueber); font-weight: 780; letter-spacing: -0.02em; }
.fuss-name span { font-size: var(--g-klein); font-weight: 480; }
.fuss address { font-style: normal; line-height: 1.7; }
.fuss a { color: inherit; text-underline-offset: 0.2em; }
.fuss-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.zeichen-liste { list-style: none; margin: var(--a2) 0 0; padding: 0; display: flex; gap: var(--a2); }
.zeichen-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; }
.zeichen-link:hover { background: var(--weiss); color: var(--braun); }
.zeichen { width: 20px; height: 20px; }
.fuss-hinweis { margin: 0; font-size: var(--g-klein); color: #d8c7ae; }
.fuss .fuss-wort { margin: var(--a5) 0 0; text-align: center; white-space: nowrap; font-family: var(--schrift-display); font-weight: 800; font-size: 24vw; line-height: 0.74; letter-spacing: -0.05em; color: var(--rot); transform: translateY(16%); user-select: none; }

/* ================= Bewegung der Stationen 2 bis 4 ================= */
@media (prefers-reduced-motion: no-preference) {
  html.js .lauf { padding: var(--a3) 0; }
  html.js .spur { display: flex; width: max-content; will-change: transform; transform: translateX(var(--lx, 0px)); }
  html.js .spur .teil { flex-wrap: nowrap; flex: none; padding-right: 0.45em; white-space: nowrap; }
  html.js .spur .kopie { display: flex; }

  /* Station 2: Ofenmund (Kreis) öffnet sich, Zahlen rollen, der Teig schiebt sich darüber */
  html.js .ofen { height: calc(100svh + 280svh); }
  html.js .ofen-buehne { position: sticky; top: 0; height: 100svh; overflow: clip; display: block; }
  /* Ofenmund: vom ersten Moment an ein glühendes rundes Loch rechts der Mitte (Feuer und Pizza darin), der Text steht links */
  html.js .ofen { --mx0: 66%; --my0: 50%; --mr0: 25vmin; --itx: 20.5vw; --ity: -16vh; --iox: 46%; --ioy: 66%; }
  html.js .mund { position: absolute; inset: 0; clip-path: circle(calc(var(--mr0) + var(--o, 0) * (62vmax - var(--mr0))) at calc(var(--mx0) + (50% - var(--mx0)) * var(--o, 0)) calc(var(--my0) + (50% - var(--my0)) * var(--o, 0))); }
  html.js .mund img { width: 100%; height: 100%; object-fit: cover; transform-origin: var(--iox) var(--ioy); transform: translate(calc((1 - var(--o, 0)) * var(--itx)), calc((1 - var(--o, 0)) * var(--ity))) scale(calc(1.12 - var(--o, 0) * 0.12)); }
  html.js .mund::after { content: ""; position: absolute; inset: 0; background: rgb(35 18 12 / 0.22); }
  html.js .zahlen { opacity: min(1, calc(var(--ro, 1) * 10)); }
  html.js .ofen-text { position: absolute; z-index: 3; left: var(--rand); top: 50%; width: min(46vw, 40rem); padding: 0; transform: translateY(-50%); opacity: calc(1 - var(--t, 0) * 1.4); }
  html.js .teig { position: absolute; inset: 0; z-index: 4; overflow: clip; transform: translateY(calc((1 - var(--t, 0)) * 101%)); visibility: hidden; }
  html.js .teig.an { visibility: visible; }
  html.js .teig img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; transform: translateY(calc((1 - var(--t, 0)) * -5%)); }
  html.js .teig figcaption { z-index: 2; left: var(--rand); bottom: clamp(24px, 8svh, 80px); }

  /* Station 3: der Abend fährt ins Weite und wird von oben freigegeben */
  html.js .abend { height: calc(100svh + 150svh); }
  html.js .abend-buehne { position: sticky; top: 0; height: 100svh; overflow: clip; background: var(--rot); }
  html.js .abend-bild { position: absolute; inset: 0; clip-path: inset(calc((1 - var(--r, 0)) * 9svh) calc((1 - var(--r, 0)) * 7vw)); }
  html.js .abend-bild img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--sc, 1.18)); transform-origin: 50% 35%; }
  html.js .abend-text { position: absolute; left: var(--rand); bottom: clamp(24px, 8svh, 80px); width: min(34rem, 44vw); padding: var(--a4); background: var(--rot); opacity: calc(0.0 + var(--tx, 0)); transform: translateY(calc((1 - var(--tx, 0)) * 70px)); }
  html.js .abend-text h2 { font-size: min(var(--g-zeile), 8.4svh); }

  /* Station 4: nur auf großen Bildschirmen angeheftet: das Brett bleibt stehen, rechts zieht der Bon vorbei, die Pizza wird Achtel um Achtel gegessen */
  html.js .mix-ersatz { display: none; }
  html.js .mix { display: block; }
  @media (min-width: 900px) and (min-height: 640px) {
    html.js .res-buehne { align-items: stretch; padding-top: 0; padding-bottom: 0; }
    html.js .res-brett { position: sticky; top: 0; height: 100svh; align-content: center; padding-top: var(--kopf-hoehe); }
    html.js .res-form { align-self: start; padding: calc(var(--kopf-hoehe) + 4svh) 0 72svh; }
  }
}

/* Handy und flaches Fenster */
@media (max-width: 760px) {
  .lauf { font-size: clamp(2rem, 11vw, 3rem); }
  .zahlen { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--a1); }
  .zahlen li { display: block; }
  .zahlen li > span { display: block; margin-top: 4px; }
  .fuss-wort { font-size: 23vw; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 760px) {
  html.js .ofen { --mx0: 50%; --my0: 68%; --mr0: 40vw; --itx: 0px; --ity: 0px; --iox: 50%; --ioy: 66%; }
  html.js .ofen-text { top: calc(var(--kopf-hoehe) + var(--a4)); width: auto; right: var(--rand); transform: none; }
  html.js .abend-text { left: 0; right: 0; bottom: 0; width: auto; padding: var(--a3) var(--rand) var(--a4); }
  html.js .abend-text h2 { font-size: min(var(--g-zeile), 6.4svh); }
  html.js .abend-text p { margin-top: var(--a1); font-size: 0.9375rem; }
}
@media (prefers-reduced-motion: no-preference) and (max-height: 520px) and (min-aspect-ratio: 1/1) {
  html.js .ofen-text { width: min(52vw, 30rem); }
  html.js .zahlen { margin-top: var(--a2); gap: 4px; }
  html.js .abend-text { width: min(46vw, 28rem); padding: var(--a2) var(--a3); }
  html.js .abend-text h2 { font-size: 1.5rem; }
  html.js .abend-text p { margin-top: 8px; font-size: 0.875rem; }
}

.knopf:focus-visible { transition: none; }
