/* seite.css · KASTEN (Beispiel): hell, schwarzer Stahl auf Cremeweiß und Eschenholz, eine Akzentfarbe Limette (nur Knöpfe, leuchtende
 * Größen, Zähler, Lautsprecher, aktives Teil). Die Pflichtteile (Bühne, Startbild, Knöpfe ab 44 px, Fußzeile, ruhige Fassung) kommen aus
 * grund.css und werden hier nur umgefärbt. */
@font-face { font-family: 'Big Shoulders Display'; src: url('../fonts/big-shoulders-display-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('../fonts/schibsted-grotesk-var.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }

:root {
  --grund: #f4eee0;
  --text: #121214;
  --text-2: #2d2d31;
  --text-3: #55555b;
  --akzent: #c6f24a;
  --stahl: #1a1a1e;
  --linie: rgba(18, 18, 20, 0.18);
  --rund-feld: 18px;
  --schrift: 'Schibsted Grotesk', system-ui, 'Segoe UI', sans-serif;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --schutz-dunst: #f6f0e2;
  --halo: 0 0 16px rgba(246, 240, 226, 0.95), 0 0 5px rgba(246, 240, 226, 0.95);
  color-scheme: light;
}
html { scrollbar-gutter: stable; }
html.standbild { scrollbar-gutter: auto; }   /* Werkzeug-Standbild: kein reservierter Streifen, sonst ist das Startbild 15 px breiter als die Bühne */
html.nah-an, html.kassa-an { overflow: hidden; }
html.teil-hover, html.teil-hover body, html.teil-hover main { cursor: pointer; }
body { font-size: 1.0625rem; }
/* Fokus: Limette allein hebt sich von Creme nicht ab, darum schwarzer Ring innen und Limette außen */
:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; box-shadow: 0 0 0 7px var(--akzent); border-radius: 8px; }

/* ---------- Kopf: Logo links auf der Inhaltskante, Korb rechts auf derselben Kante */
.kopfzeile { background: linear-gradient(to bottom, rgba(244, 238, 224, 0.92), rgba(244, 238, 224, 0)); min-height: 84px; }
.kopf-fest .kopfzeile { background: rgba(244, 238, 224, 0.96); box-shadow: 0 1px 0 var(--linie); }
.marke { font-family: var(--display); font-weight: 800; font-size: 1.9rem; letter-spacing: 0.1em; color: var(--text); }
.menue a { color: var(--text-2); font-weight: 600; }
.ton { background: transparent; border: 1.5px solid var(--text); color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.ton[aria-pressed="true"] { background: var(--akzent); }
.ton-zeichen { width: 20px; height: 20px; }
@media (max-width: 720px) { .ton-text { display: none; } .ton { padding: 0 11px; } }

.korb-knopf { position: relative; width: 64px; height: 56px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; border-radius: 18px; transform-origin: 50% 20%; }
.korb-bild { width: 54px; height: 50px; overflow: visible; }
.korb-hinten { fill: rgba(18, 18, 20, 0.08); stroke: var(--stahl); stroke-width: 2.6; stroke-linejoin: round; }
.korb-draht { fill: none; stroke: var(--stahl); stroke-width: 1.7; stroke-linecap: round; }
.korb-henkel { fill: none; stroke: var(--stahl); stroke-width: 2.8; stroke-linecap: round; }
.korb-zahl { position: absolute; right: -2px; top: -4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--akzent); color: var(--text); box-shadow: 0 0 0 2px var(--stahl); font: 800 0.86rem/24px var(--schrift); text-align: center; font-variant-numeric: tabular-nums; }
.korb-knopf.wippt { animation: wippt 0.62s var(--aus); }
.korb-knopf.wippt .korb-zahl { animation: springt 0.5s var(--aus); }
@keyframes wippt { 0% { transform: rotate(0) scale(1); } 22% { transform: rotate(-9deg) scale(1.1); } 52% { transform: rotate(6deg) scale(1.05); } 100% { transform: rotate(0) scale(1); } }
@keyframes springt { 0% { transform: scale(0.4); } 55% { transform: scale(1.35); } 100% { transform: scale(1); } }
html:not(.laden-lebt) .korb-knopf { pointer-events: auto; }

/* Korb-Kasten: klappt unter dem Korb auf */
.korbkasten { position: fixed; z-index: 40; top: 84px; right: var(--rand); width: min(25rem, calc(100vw - 2 * var(--rand))); padding: 20px 22px 22px; border-radius: 26px; background: rgba(250, 246, 236, 0.98); box-shadow: 0 18px 48px rgba(18, 18, 20, 0.22), 0 0 0 1.5px var(--stahl); max-height: calc(100svh - 110px); overflow: auto; }
.korbkasten[hidden] { display: none; }
.korbkasten p { margin: 0; }
.korb-leer { color: var(--text-2); }
.korb-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.korb-liste li { display: grid; grid-template-columns: 44px 1fr auto; gap: 4px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.korb-liste .mini { grid-row: span 2; width: 44px; height: 52px; object-fit: contain; }
.korb-text { font-weight: 640; }
.korb-preis { font-variant-numeric: tabular-nums; font-weight: 700; }
.korb-zurueck { grid-column: 2 / 4; justify-self: start; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--text); border-radius: 999px; background: transparent; color: var(--text); font: 640 0.9rem var(--schrift); cursor: pointer; }
.korb-zurueck:hover { background: var(--akzent); }
.korb-summe { display: flex; justify-content: space-between; margin-top: 12px !important; font-weight: 700; }
.korb-hinweis { margin: 6px 0 12px !important; font-size: 0.86rem; color: var(--text-3); }

/* ---------- Knöpfe: Limette mit schwarzer Schrift, Rahmen-Knopf schwarz */
.knopf { background: var(--akzent); color: var(--text); font-weight: 700; box-shadow: inset 0 0 0 2px var(--stahl); }
.knopf--rahmen { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--stahl); }
@media (hover: hover) and (pointer: fine) { .knopf:hover { background: var(--stahl); color: var(--akzent); box-shadow: inset 0 0 0 2px var(--stahl); } .knopf--rahmen:hover { background: var(--stahl); color: #fff; } }

/* ---------- Erster Bildschirm (D32): Überschrift über der Stange, Hinweis beim Objekt, Knopf und Satz unten */
.fahrt .station { min-height: 165lvh; }
.fahrt .station--start { min-height: 150lvh; }
.held { position: sticky; top: 0; min-height: 100svh; max-width: none; padding: 92px var(--rand) clamp(22px, 6vh, 64px); display: block; }
.held-kopf { position: relative; }
.titel-block { width: fit-content; max-width: 100%; }
.titel { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(3.2rem, 6.4vw, 6.4rem); line-height: 0.92; letter-spacing: -0.005em; color: var(--text); text-wrap: balance; text-shadow: var(--halo); }
.info-block { position: absolute; right: 0; top: 8px; width: min(23rem, 30vw); display: grid; gap: 4px; text-shadow: var(--halo); }
.unterzeile { margin: 0; font-size: 1.05rem; line-height: 1.4; color: var(--text); font-weight: 560; }
.beleg { margin: 0; font-size: 0.92rem; color: var(--text-2); }
.hinweis-stange { position: absolute; left: 50%; top: 82%; transform: translateX(-50%); margin: 0; padding: 8px 16px; font-size: 0.92rem; font-weight: 640; color: var(--text); text-align: center; white-space: nowrap; text-shadow: var(--halo); }
.hinweis-finger { display: none; }
@media (hover: none) { .hinweis-maus { display: none; } .hinweis-finger { display: inline; } }
.handlung { position: absolute; left: var(--rand); bottom: clamp(22px, 6vh, 64px); display: grid; justify-items: start; gap: 10px; margin: 0; }
.beruhigung { color: var(--text); font-size: 0.95rem; font-weight: 600; margin: 0; text-shadow: var(--halo); }

/* ---------- Texte der Stationen: links neben der Szene (breit) oder oben über der Szene (schmal) */
.station-text { position: sticky; top: 22vh; max-width: 25rem; margin: 0; padding: 24px var(--rand); text-shadow: var(--halo); }
.station-text h2 { margin: 0 0 14px; font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 4.6vw, 4.4rem); line-height: 0.94; color: var(--text); text-wrap: balance; }
.station-text p { margin: 0 0 10px; color: var(--text); }
.station-text .st-unter { font-weight: 640; font-size: 1.1rem; }
.st-hinweis { font-weight: 600; }
.beispiel-zeile { font-size: 0.95rem; }
.beispiel-zahl { display: inline-block; min-width: 1.4em; padding: 0 0.3em; border-radius: 999px; background: var(--akzent); box-shadow: 0 0 0 1.5px var(--stahl); text-align: center; font-weight: 800; text-shadow: none; }
.station-text--kasten { max-width: 34rem; top: 16vh; }
.kasten-karte { padding: 4px 0; }
.kasten-liste { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.kasten-liste li { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 12px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--linie); font-weight: 600; font-size: 0.95rem; }
.k-preis { font-variant-numeric: tabular-nums; font-weight: 700; }
.k-zurueck { min-height: 44px; padding: 0 12px; border: 1.5px solid var(--text); border-radius: 999px; background: transparent; color: var(--text); font: 600 0.85rem var(--schrift); cursor: pointer; text-shadow: none; }
.k-zurueck:hover { background: var(--akzent); }
.kasten-summe { display: flex; justify-content: space-between; font-weight: 800; margin-top: 12px !important; font-size: 1.1rem; }
.kasten-hinweis { font-size: 0.9rem; font-weight: 700; }
.schluss { margin-top: 18px !important; font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1; }

/* Liste der Teile je Station: sichtbar ohne Szene (ruhige Fassung, ohne JavaScript), sonst nur für Tastatur und Vorlesen */
.preisliste { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.preisliste li { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 6px 0; border-bottom: 1px solid var(--linie); }
.preisliste .ansehen { grid-row: span 2; justify-self: start; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--text); font: 700 1rem var(--schrift); text-align: left; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.pl-marke { font-size: 0.82rem; color: var(--text-3); grid-column: 2; grid-row: 1; justify-self: end; }
.pl-preis { font-weight: 700; font-variant-numeric: tabular-nums; grid-column: 2; grid-row: 2; justify-self: end; }
html.laden-lebt .preisliste { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.laden-lebt .preisliste:focus-within { position: fixed; z-index: 35; left: var(--rand); bottom: 18px; width: min(26rem, calc(100vw - 2 * var(--rand))); height: auto; padding: 12px 18px; overflow: auto; max-height: 50svh; clip: auto; white-space: normal; border-radius: 22px; background: rgba(250, 246, 236, 0.98); box-shadow: 0 14px 40px rgba(18, 18, 20, 0.25), 0 0 0 1.5px var(--stahl); }

/* ---------- Nahansicht: Panel links, das Teil steht in der Bildmitte (gerechnet), Seite scrollt nicht */
.nah { position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0; transition: opacity 0.3s var(--aus); }
.nah.an { opacity: 1; }
.nah[hidden] { display: none; }
.nah-panel { position: absolute; left: var(--rand); top: 50%; transform: translateY(-46%); width: min(21rem, calc(100vw - 2 * var(--rand))); max-height: calc(100svh - 110px); overflow: auto; padding: 24px 26px 26px; border-radius: 30px; background: rgba(250, 246, 236, 0.97); box-shadow: 0 22px 60px rgba(18, 18, 20, 0.2), 0 0 0 1.5px var(--stahl); pointer-events: auto; display: grid; gap: 10px; transition: transform 0.4s var(--aus); text-shadow: none; }
.nah.an .nah-panel { transform: translateY(-50%); }
.nah-panel p { margin: 0; }
.nah-marke { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.nah-name { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 0.98; }
.nah-preis { font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.nah-text { color: var(--text-2); font-size: 0.95rem; }
.nah-gruppen { display: grid; gap: 4px; }
.groessen { border: 0; margin: 4px 0 0; padding: 0; min-width: 0; }
.groessen legend { padding: 0; margin-bottom: 8px; font-size: 0.86rem; font-weight: 700; color: var(--text-2); }
.groessen-felder { display: flex; flex-wrap: wrap; gap: 8px; }
.groesse { position: relative; }
.groesse input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.groesse span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 2px solid rgba(18, 18, 20, 0.22); color: rgba(18, 18, 20, 0.4); font-weight: 700; font-size: 0.95rem; background: transparent; transition: background-color 0.2s, color 0.2s; }
.groesse.da span { border-color: var(--stahl); color: var(--text); background: var(--akzent); }
.groesse.breit span { width: auto; min-width: 50px; padding: 0 20px; border-radius: 999px; }
.groesse input:disabled { cursor: not-allowed; }
.groesse input:checked + span { background: var(--stahl); color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent), 0 0 0 5px var(--stahl); }
.groesse input:focus-visible + span { outline: 3px solid var(--text); outline-offset: 4px; }
.groessen--schuh .groesse span { width: 44px; height: 44px; font-size: 0.85rem; }
.nah-vorrat { font-size: 0.86rem; color: var(--text-3); }
.nah-panel .knopf { width: 100%; }
.nah-hinweis { position: absolute; left: 0; right: 0; bottom: clamp(18px, 5vh, 48px); text-align: center; margin: 0; font-weight: 700; color: var(--text); pointer-events: none; text-shadow: var(--halo); }
.nah-bild { display: none; position: absolute; right: 12%; top: 50%; transform: translateY(-50%); width: min(26rem, 40vw); height: auto; max-height: 70svh; object-fit: contain; pointer-events: none; }
html.nah-ohne-szene .nah-bild { display: block; }
html.nah-ohne-szene .nah-hinweis { display: none; }
html.nah-an .held, html.nah-an .station-text { visibility: hidden; }
html.nah-an .kopfzeile .menue { visibility: hidden; }

/* ---------- Kassa-Vorschau (kein Kauf): Blatt in der Mitte, Szene bleibt dahinter */
.kassa { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(18, 18, 20, 0.42); opacity: 0; transition: opacity 0.25s var(--aus); }
.kassa.an { opacity: 1; }
.kassa[hidden] { display: none; }
.kassa-blatt { width: min(32rem, 100%); max-height: calc(100svh - 40px); overflow: auto; padding: 26px 28px 28px; border-radius: 30px; background: #faf6ec; box-shadow: 0 24px 70px rgba(18, 18, 20, 0.35), 0 0 0 2px var(--stahl); display: grid; gap: 10px; }
.kassa-blatt p, .kassa-blatt h2 { margin: 0; }
.kassa-hinweis { justify-self: start; padding: 6px 14px; border-radius: 999px; background: var(--akzent); box-shadow: 0 0 0 2px var(--stahl); font-weight: 800; font-size: 0.92rem; }
.kassa-blatt h2 { font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; }
.kassa-liste { list-style: none; margin: 0; padding: 0; display: grid; }
.kassa-liste li { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 8px 0; border-bottom: 1px solid var(--linie); font-weight: 640; }
.k-marke { grid-column: 1; font-size: 0.82rem; color: var(--text-3); font-weight: 500; }
.kassa-liste .k-preis { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.kassa-summe { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.2rem; }
.kassa-klein { font-size: 0.86rem; color: var(--text-3); }
.kassa-leer { color: var(--text-2); }

/* ---------- Schmal (Fenster bis 1100 px oder fast quadratisch): Text über der Szene, Überschrift bricht um, nichts liegt über den Teilen */
@media (max-width: 1100px), (max-aspect-ratio: 7/5) {
  .titel { font-size: clamp(2.6rem, 7.6vw, 5rem); }
  .held { padding-top: 84px; }
  .info-block { position: static; width: auto; max-width: 32rem; margin-top: 10px; }
  .hinweis-stange { top: 84%; }
  .station-text { top: 76px; max-width: none; padding: 12px var(--rand); }
  .station-text > div:first-child { max-width: 36rem; }
  .station-text h2 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: 8px; }
  .station-text p { font-size: 0.98rem; }
  .station-text .st-unter { font-size: 1rem; }
  .station-text--kasten { max-width: none; }
  .kasten-karte { max-width: 36rem; }
}
/* ---------- Handy: Teile antippen, Nahansicht als Blatt unten */
@media (max-aspect-ratio: 4/5), (max-width: 720px) {
  .held { padding-top: 80px; }
  .titel { font-size: clamp(2.4rem, 12.5vw, 4.6rem); }
  .unterzeile { font-size: 0.95rem; line-height: 1.35; }
  .beleg { font-size: 0.8rem; }
  .hinweis-stange { top: 83%; font-size: 0.86rem; white-space: normal; width: 17rem; padding: 4px 8px; }
  .handlung { right: var(--rand); }
  .handlung .knopf { width: 100%; }
  .nah-panel { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 52svh; transform: translateY(24px); border-radius: 28px 28px 0 0; padding: 16px var(--rand) calc(16px + env(safe-area-inset-bottom)); gap: 6px; }
  .nah.an .nah-panel { transform: none; }
  .nah-text, .nah-vorrat { display: none; }
  .nah-name { font-size: 1.5rem; }
  .groessen-felder { gap: 6px; }
  .groesse span { width: 46px; height: 46px; }
  .groessen--schuh .groesse span { width: 44px; height: 44px; }
  .nah-hinweis { bottom: auto; top: 86px; }
  .korbkasten { top: 72px; }
  .station-text { top: 68px; }
  .station-text h2 { font-size: clamp(2rem, 9.5vw, 3rem); }
  .nah-bild { right: 50%; transform: translate(50%, -60%); width: 60vw; }
}

/* ---------- Ohne Szene (ruhige Fassung, ohne JavaScript): Standbild je Station, Texte und Teile als Liste, alles bedienbar */
html:not(.laden-lebt) .hinweis-stange, html:not(.laden-lebt) .hinweis-maus, html:not(.laden-lebt) .hinweis-finger, html:not(.laden-lebt) .st-hinweis { display: none; }
html:not(.laden-lebt) .station-text > div:first-child { padding: 18px 22px; border-radius: 26px; background: rgba(246, 240, 226, 0.9); text-shadow: none; }
html:not(.laden-lebt) .preisliste { background: rgba(246, 240, 226, 0.9); padding: 8px 22px; border-radius: 22px; }
html:not(.laden-lebt) .fahrt .station { min-height: 100svh; }

/* Der Kopf des ersten Bildschirms räumt das Feld, sobald die Kamera zu fahren beginnt */
.held > * { transition: opacity 0.25s ease, visibility 0s linear 0s; }
html.held-weg .held > * { opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0s linear 0.25s; pointer-events: none; }

/* ---------- Impressum und Datenschutz */
.recht { max-width: 44rem; margin: 0 auto; padding: 120px var(--rand) 72px; text-shadow: none; }
.recht h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 0.95; margin: 0 0 16px; }
.recht h2 { font-family: var(--display); font-weight: 800; font-size: 1.8rem; margin: 36px 0 10px; }
.recht dl { display: grid; gap: 8px; }
.recht dl div { display: grid; grid-template-columns: 11rem 1fr; gap: 12px; }
.recht dt { font-weight: 700; }
.recht dd { margin: 0; }
.recht-hinweis { font-weight: 640; }
body.rechtliches { background: var(--grund); }
