/* lp-299 Kebap-Kaiser · Die Uhr am Stand. Größen nur aus den Variablen (SCHRIFT.md). */
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-var.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --inhalt: 1600px;
  --rand: clamp(18px, 3.2vw, 56px);
  --grund: #fff3dc;
  --tinte: #1b1410;
  --tinte-fest: #1b1410;
  --creme: #fff3dc;
  --gelb: #ffd45a;
  --koralle: #ff9a6b;
  --nacht: #1f3b57;
  --chili: #e2321b;
  --gut: #16794a;
  --s-riesig: clamp(4.5rem, 11.5vw, 13rem);
  --s-kopf: clamp(2.3rem, 5vw, 5.4rem);
  --s-titel: clamp(1.9rem, 3.9vw, 4rem);
  --s-gross: clamp(1.15rem, 1.5vw, 1.55rem);
  --s-text: clamp(1rem, 1.12vw, 1.2rem);
  --s-klein: clamp(.82rem, .9vw, .95rem);
  --a1: clamp(10px, 1vw, 16px);
  --a2: clamp(18px, 2vw, 32px);
  --a3: clamp(36px, 5vw, 88px);
  --a4: clamp(72px, 10vw, 170px);
  --ecke: 14px;
  --kante: 3px solid var(--tinte-fest);
  --wurf: 6px 6px 0 var(--tinte-fest);
  --kopf-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--kopf-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--tinte); font-family: "Nunito", system-ui, sans-serif; font-size: var(--s-text); line-height: 1.5; font-weight: 600; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: "Poppins", system-ui, sans-serif; font-weight: 700; line-height: 1.02; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--s-kopf); }
h2 { font-size: var(--s-titel); }
h3 { font-size: var(--s-titel); }
p { margin: 0; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
.rahmen { width: 100%; max-width: calc(var(--inhalt) + 2 * var(--rand)); margin-inline: auto; padding-inline: var(--rand); }
.lauf { font-size: var(--s-gross); }
.sprung { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--tinte-fest); color: var(--creme); padding: 12px 16px; border-radius: var(--ecke); }
.sprung:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--chili); outline-offset: 3px; border-radius: 6px; }

/* Knopf: ein gefüllter Typ, zweiter als Rahmen */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 26px; background: var(--chili); color: #fff; font-family: "Poppins", sans-serif; font-weight: 700; font-size: var(--s-text); text-decoration: none; border: var(--kante); border-radius: 999px; box-shadow: var(--wurf); cursor: pointer; transition: transform .16s cubic-bezier(.2, .8, .2, 1), box-shadow .16s cubic-bezier(.2, .8, .2, 1); }
.knopf:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--tinte-fest); }
.knopf:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--tinte-fest); }
.knopf.klein { min-height: 44px; padding: 8px 18px; box-shadow: 4px 4px 0 var(--tinte-fest); font-size: var(--s-klein); }
.knopf.rahmenknopf { background: var(--creme); color: var(--tinte-fest); }

/* Kopfzeile: im selben Rahmen wie der Inhalt */
.kopf { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--kopf-h); background: color-mix(in srgb, var(--grund) 88%, transparent); border-bottom: 2px solid color-mix(in srgb, var(--tinte) 14%, transparent); }
.kopf-innen { height: 100%; display: flex; align-items: center; gap: var(--a2); }
.marke { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: "Poppins", sans-serif; font-weight: 700; text-decoration: none; font-size: var(--s-text); white-space: nowrap; }
.menue { display: flex; gap: var(--a2); margin-left: auto; font-weight: 800; font-size: var(--s-klein); }
.menue a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.menue a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--chili); }
.anzeige { display: inline-flex; gap: 10px; align-items: baseline; padding: 6px 14px; background: var(--tinte-fest); color: var(--creme); border-radius: 10px; font-family: "Poppins", sans-serif; font-weight: 700; font-variant-numeric: tabular-nums; font-size: var(--s-klein); white-space: nowrap; }
.anzeige-kassa { color: #ffb4a6; min-width: 8.2ch; text-align: right; }
.anzeige-kassa.plus { color: #9be7b8; }

/* ===== Bühne ===== */
.tag { position: relative; }
.buehne { position: relative; }
.bilder { position: relative; }
.bild { width: 100%; }
.zeiger, .lupe, .schleier, .grossuhr, .hinweis-scroll { display: none; }
.buehne-innen { padding-block: var(--a3); display: grid; gap: var(--a3); }
.zustand { display: grid; gap: var(--a1); justify-items: start; }
.marke-zeit { font-family: "Poppins", sans-serif; font-weight: 700; font-size: var(--s-klein); letter-spacing: .04em; text-transform: uppercase; display: inline-block; padding: 4px 12px; background: var(--tinte-fest); color: var(--creme); border-radius: 8px; }
.beleg { font-weight: 800; font-size: var(--s-text); }
.zeile-knopf { margin-top: var(--a1); }
.unter-knopf { font-size: var(--s-klein); font-weight: 700; }

/* Ohne JavaScript und in der ruhigen Fassung: die sechs Bilder stehen als Bildfolge untereinander, der Text darunter. */
html:not(.film) .bild.b0 { grid-column: 1 / -1; height: 54vh; object-fit: cover; object-position: 50% 0; }
html:not(.film) .buehne { display: flex; flex-direction: column; }
html:not(.film) .bilder { display: contents; }
html:not(.film) .bild.b0 { order: 0; margin-top: var(--kopf-h); }
html:not(.film) .buehne-innen { order: 1; }
html:not(.film) .bild:not(.b0) { display: none; }

/* Film: angeheftete Bühne, Scrollen dreht die Uhr */
html.film .tag { height: 760vh; }
html.film .buehne { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
html.film .bilder { position: absolute; inset: 0; }
html.film .bild { position: absolute; inset: 0 0 auto 0; width: 100%; height: 71%; object-fit: cover; object-position: 50% 0; }
html.film .bild:not(.b0) { visibility: hidden; clip-path: polygon(50% 50%, 50% 50%, 50% 50%); }
html.film .bild.an { visibility: visible; }
html.film .bild.voll { clip-path: none; }
html.film .zeiger { display: block; position: absolute; left: 50%; top: 35.5%; width: 6px; height: 150vmax; margin-left: -3px; background: var(--chili); border-radius: 3px; transform-origin: 50% 0; transform: rotate(180deg); opacity: 0; box-shadow: 0 0 0 2px var(--tinte-fest); }
html.film .zeiger::after { content: ""; position: absolute; left: 50%; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--chili); border: var(--kante); }
html.film .schleier { display: block; position: absolute; inset: 50% 0 0 0; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--grund) 70%, transparent) 24%, var(--grund) 44%); pointer-events: none; }
html.film .buehne-innen { position: absolute; inset: 0; left: 0; right: 0; margin-inline: auto; padding-block: 0; display: block; pointer-events: none; }
html.film .zustand { position: absolute; left: var(--rand); bottom: clamp(28px, 6vh, 72px); width: calc(64% - var(--rand)); opacity: 0; visibility: hidden; transform: translateY(26px); transition: opacity .35s ease, transform .5s cubic-bezier(.2, .8, .2, 1), visibility 0s .35s; pointer-events: none; }
html.film .zustand.aktiv { opacity: 1; visibility: visible; transform: none; transition-delay: .12s, .12s, 0s; pointer-events: auto; }
html.film .grossuhr { display: grid; justify-items: end; position: absolute; right: var(--rand); bottom: clamp(20px, 5vh, 60px); font-family: "Poppins", sans-serif; font-weight: 700; font-size: var(--s-riesig); line-height: .86; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
html.film .grossuhr small { font-size: var(--s-gross); letter-spacing: 0; line-height: 1.2; margin-top: .5em; padding: 4px 14px; background: var(--tinte-fest); color: #ffb4a6; border-radius: 8px; }
html.film .grossuhr small.plus { color: #9be7b8; }
html.film .hinweis-scroll { display: flex; align-items: center; gap: 10px; position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: var(--s-klein); font-weight: 800; transition: opacity .3s; white-space: nowrap; }
html.film.gescrollt .hinweis-scroll { opacity: 0; }
.rad { width: 22px; height: 34px; border: var(--kante); border-radius: 12px; position: relative; }
.rad::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; background: var(--chili); border-radius: 2px; animation: rad 1.6s ease-in-out infinite; }
@keyframes rad { 50% { transform: translateY(9px); opacity: .3; } }
html.film .lupe { display: block; position: absolute; left: 0; top: 0; width: 230px; height: 230px; margin: -115px 0 0 -115px; border-radius: 50%; border: 5px solid var(--tinte-fest); box-shadow: var(--wurf); background-repeat: no-repeat; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s cubic-bezier(.2, .8, .2, 1); pointer-events: none; will-change: transform; }
html.film .lupe.an { opacity: 1; transform: scale(1); }
.lupe-zeit { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); padding: 2px 10px; background: var(--chili); color: #fff; border: var(--kante); border-radius: 8px; font-family: "Poppins", sans-serif; font-weight: 700; font-size: var(--s-klein); white-space: nowrap; }
/* Startbild ohne Springen: bis zum ersten Zeichnen nur der erste Zustand */
html.film:not(.bereit) .zustand:not(.z0), html.film:not(.bereit) .bild:not(.b0) { visibility: hidden; }

/* ===== Stationen: vier Bänder, die sich stapeln ===== */
.stationen { position: relative; background: var(--creme); color: var(--tinte-fest); }
.stationen-kopf { padding-block: var(--a4) var(--a3); display: grid; gap: var(--a2); }
.station { --p: 1; position: sticky; top: 0; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; overflow: clip; color: var(--tinte-fest); border-top: var(--kante); }
.s-brot { background: #f9ead6; }
.s-spiess { background: #f6c861; }
.s-gemuese { background: #f79274; }
.s-sauce { background: #13294a; color: var(--creme); }
.station-foto { position: absolute; inset: 0 0 0 auto; width: 64%; }
.station-foto img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.18 - .18 * var(--p))) translateX(calc((1 - var(--p)) * 6%)); transform-origin: 60% 50%; -webkit-mask-image: linear-gradient(to right, transparent, #000 22%); mask-image: linear-gradient(to right, transparent, #000 22%); }
.station-innen { position: relative; }
.station-text { width: 36%; display: grid; gap: var(--a2); justify-items: start; transform: translateY(calc((1 - var(--p)) * 60px)); opacity: calc(.15 + .85 * var(--p)); }
.station-text h3 { font-size: var(--s-kopf); }
.taste { display: inline-flex; align-items: center; gap: 12px; font-family: "Poppins", sans-serif; font-weight: 700; font-size: var(--s-klein); text-transform: uppercase; letter-spacing: .04em; }
kbd { display: inline-grid; place-items: center; width: 56px; height: 56px; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.6rem; background: #fff; color: var(--tinte-fest); border: var(--kante); border-radius: 12px; box-shadow: 0 calc(8px - 6px * var(--druck, 0)) 0 var(--tinte-fest); transform: translateY(calc(6px * var(--druck, 0))); }

html.film .station { --p: 0; }

/* ===== Team ===== */
.team { position: relative; background: var(--creme); color: var(--tinte-fest); padding-block: var(--a4); border-top: var(--kante); overflow: clip; }
.team-kopf { display: grid; gap: var(--a2); margin-bottom: var(--a3); }
.karten { --p: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--a2); perspective: 1400px; }
.karten li { --i: 0; transform: translateX(calc((1 - var(--p)) * var(--zug, 0px))) rotate(calc((1 - var(--p)) * var(--dreh, 0deg))); }
.karte { position: relative; display: block; width: 100%; padding: 0; background: none; border: var(--kante); border-radius: var(--ecke); box-shadow: var(--wurf); overflow: hidden; cursor: pointer; font: inherit; color: inherit; text-align: left; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.karte:hover { box-shadow: 10px 10px 0 var(--tinte-fest); }
.karte img { width: 100%; }
.karte-rueck { position: absolute; inset: auto 0 0 0; display: grid; gap: 6px; padding: 14px 16px 16px; background: var(--creme); border-top: var(--kante); font-size: var(--s-klein); transform: translateY(101%); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.karte[aria-expanded="true"] .karte-rueck { transform: none; }
.karte-rueck strong { font-family: "Poppins", sans-serif; font-size: var(--s-text); }
.karte-rueck em { font-style: normal; font-weight: 800; color: var(--chili); }
.werte { display: grid; gap: 4px; margin-top: 4px; }
.werte i { font-style: normal; display: grid; grid-template-columns: 1fr 5.4rem; align-items: center; gap: 8px; }
.werte i::after { content: ""; height: 10px; border-radius: 5px; border: 2px solid var(--tinte-fest); background: linear-gradient(to right, var(--chili) var(--wert), transparent var(--wert)); }
.werte i[data-w="2"] { --wert: 40%; } .werte i[data-w="3"] { --wert: 60%; } .werte i[data-w="4"] { --wert: 80%; } .werte i[data-w="5"] { --wert: 100%; }

/* ===== Geräte ===== */
.geraete { position: relative; background: var(--gelb); color: var(--tinte-fest); padding-block: var(--a4); border-top: var(--kante); }
.geraete-kopf { display: grid; grid-template-columns: 1fr auto; gap: var(--a3); align-items: end; margin-bottom: var(--a3); }
.geraete-kopf > div { display: grid; gap: var(--a2); }
.gewinn { display: grid; justify-items: end; gap: 4px; font-family: "Poppins", sans-serif; font-weight: 700; position: sticky; top: calc(var(--kopf-h) + 10px); }
.gewinn small { font-size: var(--s-klein); text-transform: uppercase; letter-spacing: .04em; }
#gewinn-zahl { font-size: var(--s-kopf); line-height: 1; font-variant-numeric: tabular-nums; }
.gewinn-balken { width: min(60vw, 320px); height: 16px; border: var(--kante); border-radius: 8px; background: #fff; overflow: hidden; }
#gewinn-fuell { display: block; height: 100%; width: 100%; background: var(--gut); transform-origin: 0 50%; transform: scaleX(var(--g, 1)); }
.regal { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--a2); }
@media (max-width: 1500px) { .regal { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1100px) { .regal { grid-template-columns: repeat(3, 1fr); } }
.regal li { position: relative; display: grid; gap: 4px; align-content: start; padding: 0 0 14px; background: #fff; border: var(--kante); border-radius: var(--ecke); box-shadow: var(--wurf); overflow: hidden; font-size: var(--s-klein); transition: transform .45s cubic-bezier(.2, .9, .3, 1.3), filter .4s, box-shadow .3s; }
.regal li img { width: 100%; border-bottom: var(--kante); }
.regal li strong, .regal li span { padding-inline: 14px; }
.regal li strong { font-family: "Poppins", sans-serif; font-size: var(--s-text); margin-top: 8px; line-height: 1.15; }
.regal li b { position: absolute; top: 10px; right: 10px; padding: 3px 10px; background: var(--tinte-fest); color: var(--creme); border-radius: 8px; font-family: "Poppins", sans-serif; transition: background .3s, transform .45s cubic-bezier(.2, .9, .3, 1.3); }
html.film .regal li:not(.gekauft) { filter: grayscale(1) contrast(.85); transform: scale(.94); box-shadow: 2px 2px 0 var(--tinte-fest); }
html.film .regal li.gekauft b { background: var(--gut); transform: rotate(-6deg) scale(1.08); }

/* ===== Schluss ===== */
.schluss { position: relative; background: var(--nacht); color: var(--creme); border-top: var(--kante); overflow: clip; }
.schluss-bild { width: 100%; height: min(72vh, 56vw); object-fit: cover; object-position: 50% 32%; transform: scale(calc(1.14 - .14 * var(--p, 1))); transform-origin: 50% 40%; -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent); mask-image: linear-gradient(to bottom, #000 62%, transparent); }
.schluss-innen { position: relative; margin-top: calc(-1 * var(--a3)); padding-bottom: var(--a4); display: grid; gap: var(--a2); justify-items: start; }
.schluss .marke-zeit { background: var(--chili); color: #fff; }
.schluss h2 { font-size: var(--s-kopf); }
.anfrage { margin-top: var(--a3); width: 100%; padding: var(--a2); background: var(--creme); color: var(--tinte-fest); border: var(--kante); border-radius: var(--ecke); box-shadow: 6px 6px 0 #0c1a2b; display: grid; gap: var(--a2); }
.anfrage h3 { font-size: var(--s-gross); letter-spacing: 0; }
.felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--a2); }
.felder p { display: grid; gap: 6px; }
label { font-weight: 800; font-size: var(--s-klein); }
input { min-height: 50px; padding: 10px 14px; font: inherit; color: var(--tinte-fest); background: #fff; border: var(--kante); border-radius: 10px; width: 100%; }
.meldung { font-weight: 800; min-height: 1.5em; }

/* ===== Fuß ===== */
.fuss { background: #0f2135; color: var(--creme); padding-block: var(--a2); font-size: var(--s-klein); }
.fuss-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--a2); }
.sozial { display: flex; gap: 4px; }
.sozial a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; }
.sozial img { width: 22px; height: 22px; filter: invert(1); }
.fuss a { min-height: 44px; display: inline-flex; align-items: center; }

/* Rechtliches */
.recht { padding-block: calc(var(--kopf-h) + var(--a3)) var(--a4); display: grid; gap: var(--a2); }
.recht h1 { font-size: var(--s-titel); } .recht h2 { font-size: var(--s-gross); letter-spacing: 0; margin-top: var(--a2); }

/* ===== Schmal ===== */
@media (max-width: 899px) {
  .menue { display: none; }
  .anzeige { margin-left: auto; }
  .kopf .knopf.klein { display: none; }
  html.film .bild { height: 46%; }
  html.film .zeiger { top: 23%; }
  html.film .schleier { inset: 34% 0 0 0; background: linear-gradient(to bottom, transparent, var(--grund) 20%); }
  html.film .grossuhr { right: var(--rand); top: auto; bottom: 55%; font-size: clamp(3.4rem, 19vw, 6rem); }
  html.film .grossuhr small { font-size: var(--s-klein); }
  html.film .zustand { bottom: 56px; width: calc(100% - 2 * var(--rand)); }
  .station-text { width: 100%; }
  html.film .hinweis-scroll { bottom: 8px; }
  .station { align-items: end; }
  .station-foto { inset: 0 0 auto 0; width: 100%; height: 58%; }
  .station-foto img { -webkit-mask-image: linear-gradient(to top, transparent, #000 26%); mask-image: linear-gradient(to top, transparent, #000 26%); transform-origin: 50% 40%; }
  .station-innen { padding-bottom: var(--a3); }
  .geraete-kopf { grid-template-columns: 1fr; }
  .gewinn { justify-items: start; position: static; }
  .karten { grid-template-columns: repeat(2, 1fr); }
  .regal { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .regal li span { display: none; }
}
/* Flach und breit (z. B. 640 × 440, Handy quer) */
@media (max-height: 520px) and (min-width: 600px) {
  html.film .zustand { width: 60%; bottom: 14px; }
  html.film .zustand .lauf { font-size: var(--s-klein); }
  html.film .zustand .beleg, html.film .hinweis-scroll { display: none; }
  html.film .grossuhr { font-size: clamp(2.6rem, 9vw, 4.4rem); top: auto; bottom: 14px; }
  html.film .grossuhr small { margin-top: .3em; }
  html.film .bild { height: 100%; }
  html.film .schleier { inset: 0; background: linear-gradient(to right, var(--grund) 30%, transparent 75%); }
  h1 { font-size: clamp(1.8rem, 4.6vw, 2.6rem); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .station { position: relative; }
  .station-foto img, .station-text, .schluss-bild { transform: none; opacity: 1; }
}
