/* THE UNDERGROUND 3.0 – Gestaltung (Überarbeitung 22.10.2026: ruhig, typografisch, ohne Effekte).
   Marken-Tokens aus Version 14. Bronze nur im Logo. Keine Glas-Boxen, keine pulsierenden Ringe,
   keine Körnung: das Bild trägt, die Schrift ordnet. */
@font-face { font-family: "Space Grotesk"; font-weight: 400; font-display: swap; src: url("/fonts/space-grotesk-400.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("/fonts/space-grotesk-500.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 400; font-display: swap; src: url("/fonts/fraunces-400.woff2") format("woff2"); }

:root {
  --night: #0b0a09; --carbon: #141110; --ivory: #f1ece4; --paper: #e6dfd4; --ash: #ab9f94;
  --rule: rgba(241, 236, 228, .14);
  --sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Iowan Old Style", serif;
  --pad: clamp(20px, 2.6vw, 40px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 1px 14px rgba(0, 0, 0, .55);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--night); color: var(--ivory); }
body { font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
p { margin: 0; }
:focus-visible { outline: 1px solid var(--ivory); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skiplink { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ivory); color: var(--night); padding: 8px 12px; }
.skiplink:focus { top: 12px; }

/* Textschaltflächen: Schrift statt Kästen */
.tl { font: 400 13px/1.2 var(--sans); color: var(--paper); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.tl:hover { color: var(--ivory); border-bottom-color: var(--rule); }
.tl.is-on, .tl[aria-pressed="true"], .tl[aria-selected="true"] { color: var(--ivory); border-bottom-color: var(--ivory); }
.tl.arrow::after { content: " →"; }
.tl:disabled { opacity: .3; pointer-events: none; }
.btn-solid { display: inline-block; font: 500 13px/1 var(--sans); color: var(--night); background: var(--ivory); padding: 14px 20px; text-decoration: none; transition: background .25s; }
.btn-solid:hover { background: var(--paper); }

/* ---------- Bühne ---------- */
.viewport { position: fixed; inset: 0; overflow: hidden; background: var(--night); }
.world { position: absolute; inset: 0; overflow: hidden; contain: strict; }
.art { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.art::before { content: ""; position: fixed; inset: 0; background: var(--art-bg); }
.layer { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; pointer-events: none; }
.layer-img { position: absolute; max-width: none; user-select: none; -webkit-user-drag: none; }
.fx { position: absolute; pointer-events: none; }
.fx-anim { position: absolute; inset: 0; }
.edge { position: absolute; pointer-events: none; background:
  linear-gradient(to bottom, var(--art-bg) 0, transparent 7%, transparent 92%, var(--art-bg) 100%),
  linear-gradient(to right, var(--art-bg) 0, transparent 5%, transparent 95%, var(--art-bg) 100%); }

/* Lichtstimmung (z. B. blaue Stunde): zweites Render über dem Standbild */
.mood { opacity: 0; pointer-events: none; }
/* 3D-Parallaxe: überblendete Render-Ansichten über dem Standbild (in Ruhe unsichtbar) */
.parallax { position: absolute; pointer-events: none; opacity: 0; }

/* Trefferflächen im Render (Fotos an der Wand, Tablet, Konsole): unsichtbar, beim Zeigen eine Haarlinie */
.hits { position: absolute; pointer-events: none; }
.hit { position: absolute; display: block; pointer-events: auto; background: none; border: 0; padding: 0; cursor: pointer;
  outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .35s var(--ease), background-color .35s var(--ease); }
.hit:hover, .hit:focus-visible { outline-color: rgba(241, 236, 228, .75); background-color: rgba(241, 236, 228, .04); }
/* Masse in Bildpixeln (die Ebene ist skaliert): 20 px ≈ 13 px am Bildschirm bei 1280 px Breite */
.hit span { position: absolute; left: 0; bottom: calc(100% + 14px); white-space: nowrap; font: 400 20px/1.2 var(--sans); color: var(--ivory);
  text-shadow: var(--shadow); opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .4s var(--ease); pointer-events: none; }
.hit:hover span, .hit:focus-visible span { opacity: 1; transform: none; }
body.moving .hit { pointer-events: none; }
/* Leises Licht (nur Helligkeit, keine Bewegung von Bildteilen) */
.anim-breathe { animation: breathe 5.5s ease-in-out infinite; }
.anim-breathe2 { animation: breathe 7.5s ease-in-out -2s infinite; }
.anim-flicker { animation: flicker 9s steps(1) infinite; }
@keyframes breathe { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }
@keyframes flicker { 0%, 100% { opacity: 1; } 41% { opacity: .88; } 42% { opacity: 1; } }

/* Video der Kamerafahrt */
.cine { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cine.off { display: none; }
/* Tablet hochkant: die Fahrt läuft im Bildband (stage.js S.band, gleiche Masse) */
body.band .cine { top: 56px; bottom: auto; height: 46vh; }
/* Tablet: Fahrt wird geladen (stage.js, bis 6 s, kein Vorladen beim Zeigen) – feine Linie oben */
body.fahrt-laedt::after { content: ""; position: fixed; top: 0; left: 0; z-index: 70; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--ivory), transparent) no-repeat; background-size: 40% 100%; animation: fahrt-laedt 1.1s linear infinite; pointer-events: none; }
@keyframes fahrt-laedt { from { background-position: -60% 0; } to { background-position: 160% 0; } }

/* Lesbarkeit der Schrift über dem Bild: weiche Abdunklung an den Rändern (kein Kasten) */
.viewport::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; transition: opacity .8s;
  background: linear-gradient(90deg, rgba(8, 7, 6, .62), rgba(8, 7, 6, 0) 32%), linear-gradient(0deg, rgba(8, 7, 6, .5), rgba(8, 7, 6, 0) 26%),
              linear-gradient(180deg, rgba(8, 7, 6, .55), rgba(8, 7, 6, 0) 16%); }

/* ---------- Orte im Bild ---------- */
.marks { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.mark { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: auto; text-decoration: none; transition: opacity .5s; }
.mark.off { opacity: 0; pointer-events: none; }
/* Trefferfläche seit 29.10.2026 72 px (vorher 44 px; Inhaber: „einfacher zu drücken“) */
.mark::before { content: ""; position: absolute; left: -36px; top: -36px; width: 72px; height: 72px; border-radius: 50%; }
/* Puls (seit 29.10.2026, Inhaber: damit man versteht, dass man draufdrücken soll): ein Ring wächst ruhig aus dem Punkt */
.mark i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(241, 236, 228, .7); animation: mark-puls 2.6s var(--ease) infinite; pointer-events: none; }
.marks .mark:nth-child(2) i::after { animation-delay: .5s; } .marks .mark:nth-child(3) i::after { animation-delay: 1s; }
.marks .mark:nth-child(4) i::after { animation-delay: 1.5s; } .marks .mark:nth-child(5) i::after { animation-delay: 2s; }
@keyframes mark-puls { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(3.4); opacity: 0; } }
.mark:hover i::after, .mark:focus-visible i::after, .mark.hot i::after { animation: none; opacity: 0; }
body.reduced .mark i::after { animation: none; opacity: 0; }
/* ausserhalb der Hauptansicht: Klick aufs Bild führt zurück (app.js) */
body:not([data-scene="main"]):not(.moving) .world { cursor: zoom-out; }
.mark i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--ivory); box-shadow: 0 0 0 5px rgba(241, 236, 228, .16), 0 0 14px rgba(0, 0, 0, .6); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.mark span { position: absolute; left: 16px; top: -13px; white-space: nowrap; opacity: 0; transform: translateX(-4px); transition: opacity .3s, transform .4s var(--ease); pointer-events: none; text-shadow: var(--shadow); }
.mark.flip span { left: auto; right: 16px; text-align: right; transform: translateX(4px); }
.mark b { display: block; font: 400 19px/1.1 var(--serif); color: var(--ivory); }
.mark small { display: block; margin-top: 2px; font: 400 12px/1.3 var(--sans); color: var(--paper); }
.mark:hover i, .mark:focus-visible i, .mark.hot i { box-shadow: 0 0 0 9px rgba(241, 236, 228, .22), 0 0 14px rgba(0, 0, 0, .6); }
.mark:hover span, .mark:focus-visible span, .mark.hot span { opacity: 1; transform: none; }
.mark:focus-visible { outline: none; }

/* ---------- Kopfzeile ---------- */
.top { position: fixed; left: 0; right: 0; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: var(--pad) var(--pad) 0; pointer-events: none; }
.top > * { pointer-events: auto; }
.logo { height: 30px; width: auto; }
.tools { display: flex; gap: 22px; align-items: center; }

/* ---------- Titel im Hauptraum ---------- */
.titleblock { position: fixed; left: var(--pad); top: calc(var(--pad) + 60px); z-index: 10; max-width: 620px; transition: opacity .6s, transform .7s var(--ease); }
.kicker { font: 500 11px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ash); margin-bottom: 14px; }
.titleblock h1 { margin: 0 0 12px; font: 400 clamp(38px, 3.9vw, 60px)/1 var(--serif); white-space: nowrap; letter-spacing: -.02em; text-shadow: var(--shadow); }
.hint { font-size: 14px; color: var(--paper); text-shadow: var(--shadow); }
.hint-touch { display: none; }
/* Nur noch die Pflichtlinks (Inhaber 25.10.2026: Hinweissatz zur 3D-Umgebung weglassen) – klein und ruhig */
.note { position: fixed; left: var(--pad); bottom: var(--pad); z-index: 10; max-width: 360px; font-size: 11.5px; line-height: 1.5; color: var(--ash); transition: opacity .6s; }
body:not([data-scene="main"]) .titleblock, body.moving .titleblock, body.intro .titleblock { opacity: 0; transform: translateY(8px); pointer-events: none; }
body:not([data-scene="main"]) .note, body.moving .note, body.intro .note { opacity: 0; pointer-events: none; }
/* Cookie-Dialog der Standardseite (consent.js, nur in der Website) erst nach dem Intro – wie auf der Startseite */
body.intro .consent { visibility: hidden; }
/* .note-btn = „Cookie-Einstellungen“, setzt der Build der Standardseite ein (consent.js) */
.note a, .note-btn { color: var(--ash); font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .25em; transition: color .3s, text-decoration-color .3s; }
.note a:hover, .note a:focus-visible, .note-btn:hover, .note-btn:focus-visible { color: var(--ivory); text-decoration-color: currentColor; }
/* „Lizenzen“: Namensnennung Fahrzeugmodell (CC BY 4.0) als Popover über der Zeile (seit 27.10.2026 statt eigener Zeile) */
.lizenzen { position: fixed; inset: auto auto calc(var(--pad) + 30px) var(--pad); margin: 0; max-width: 340px; padding: 16px 18px; border: 1px solid var(--rule); background: rgba(11, 10, 9, .94); color: var(--paper); font-size: 12.5px; line-height: 1.55; }
.lizenzen::backdrop { background: transparent; }
.lizenzen-titel { margin-bottom: 10px; font: 500 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ash); }
.lizenzen a { color: var(--ivory); text-underline-offset: .2em; }
.lizenzen .note-btn { margin-top: 12px; }

/* ---------- Orte (Liste) ---------- */
/* Ortsliste: kompakt, rechts auf halber Höhe zwischen Lounge (Bild-y 168) und Wagen (585), damit kein
   Ortspunkt darunter liegt (Inhaber 25.10.2026: „der Button fürs Auto ist hinter der Liste“).
   Mitte 376 liegt 34 Bildpixel über der Kameramitte 410; Massstab des Bildes = max(vw/1456, vh/819). */
.index { position: fixed; right: var(--pad); top: calc(50% - max(2.3vw, 4.1vh)); z-index: 10; width: 264px; transform: translateY(-50%); transition: opacity .5s, transform .7s var(--ease); }
.index ol { list-style: none; margin: 0 0 12px; padding: 0; border-top: 1px solid var(--rule); }
.index li { border-bottom: 1px solid var(--rule); }
.index ol a { display: grid; grid-template-columns: 22px 1fr auto; align-items: baseline; gap: 8px; padding: 6px 0 5px; text-decoration: none; text-shadow: var(--shadow); }
.index .n { font: 500 11px/1 var(--sans); color: var(--ash); }
.index .t { font: 400 18px/1.15 var(--serif); color: var(--ivory); transition: transform .35s var(--ease); }
.index .w { font: 400 12px/1 var(--sans); color: var(--ash); }
.index ol a:hover .t, .index ol a:focus-visible .t, .index ol a.hot .t { transform: translateX(5px); }
.index ol a:focus-visible { outline: none; }
.index ol a:focus-visible .t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.index-cta { font: 400 14px/1 var(--sans); color: var(--ivory); text-decoration: none; border-bottom: 1px solid var(--ivory); padding-bottom: 4px; text-shadow: var(--shadow); }
.index-cta::after { content: " →"; }
body.moving .index, body.intro .index { opacity: 0; pointer-events: none; }
/* in den Unterszenen: schmale Buchstabenleiste am rechten Rand */
body:not([data-scene="main"]) .index { width: auto; right: 14px; top: 50%; bottom: auto; transform: translateY(-50%); }
body:not([data-scene="main"]) .index ol { border: 0; margin: 0; }
body:not([data-scene="main"]) .index li { border: 0; }
body:not([data-scene="main"]) .index ol a { display: block; padding: 7px 6px; }
body:not([data-scene="main"]) .index .t, body:not([data-scene="main"]) .index .w, body:not([data-scene="main"]) .index-cta { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body:not([data-scene="main"]) .index a.cur .n, body:not([data-scene="main"]) .index a:hover .n { color: var(--ivory); }
body:not([data-scene="main"]) .index a.cur .n { border-bottom: 1px solid var(--ivory); padding-bottom: 3px; }

/* ---------- Panels der Unterszenen ---------- */
.panel { position: fixed; top: 0; bottom: 0; z-index: 12; width: min(460px, 38vw); overflow: auto; overscroll-behavior: contain;
  padding: calc(var(--pad) + 84px) 44px 40px; opacity: 0; transition: opacity .6s, transform .8s var(--ease);
  scrollbar-width: none; }
.panel::-webkit-scrollbar { display: none; }
.panel.side-right { right: 46px; background: linear-gradient(270deg, rgba(11, 10, 9, .94) 72%, rgba(11, 10, 9, 0)); padding-left: 64px; transform: translateX(14px); }
.panel.side-left { left: 0; background: linear-gradient(90deg, rgba(11, 10, 9, .94) 72%, rgba(11, 10, 9, 0)); padding-right: 64px; transform: translateX(-14px); }
.panel.on { opacity: 1; transform: none; }
.panel .back { display: inline-block; margin-bottom: 34px; }
.panel h2 { margin: 0 0 18px; font: 400 clamp(34px, 3vw, 46px)/1.02 var(--serif); letter-spacing: -.015em; }
.panel .lead { margin-bottom: 22px; color: var(--paper); font-size: 15px; }
.panel .note-s { margin-top: 18px; font-size: 12.5px; color: var(--ash); }
.points { margin: 0 0 24px; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.points li { padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--paper); }
.points b { font-weight: 500; color: var(--ivory); }
.thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.thumbs button { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--carbon); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.thumbs button:hover img, .thumbs button:focus-visible img { transform: scale(1.04); }
.cats { margin: 18px 0 0; font-size: 13px; color: var(--ash); line-height: 2; }
.cats button { color: var(--paper); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.cats button:hover { color: var(--ivory); border-bottom-color: var(--ivory); }
.cats span { margin: 0 8px; opacity: .5; }
.prints { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }
.prints button { display: block; text-align: left; }
.prints img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.prints small { display: block; margin-top: 8px; font-size: 11.5px; color: var(--ash); }
.switch { display: flex; gap: 22px; margin: 0 0 26px; }
.sub { margin: 26px 0 12px; font: 500 11px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ash); }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }

/* ---------- Intro ---------- */
/* Intro-Video (seit 27.10.2026): deckungsgleich über dem Hauptbild (beide 16:9, „cover“ wie die Bühne);
   an sofort (schwarz statt kurz das Standbild), aus mit Überblendung ins Standbild. */
.introvid { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; object-fit: cover; background: #000; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s; }
.introvid.on { opacity: 1; visibility: visible; transition: none; }
body.intro .marks, body.intro .top .logo-link { opacity: 0; pointer-events: none; }
body.intro .top .tools { opacity: 0; pointer-events: none; }
.skip { position: fixed; right: var(--pad); bottom: var(--pad); z-index: 21; }

/* ---------- Lichtbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 40; display: grid; grid-template-columns: 1fr 360px; background: #090807; opacity: 0; transition: opacity .35s; }
.lightbox.on { opacity: 1; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 56px 40px 56px 56px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 112px); width: auto; height: auto; object-fit: contain; opacity: 0; transition: opacity .5s; }
.lb-stage img.in { opacity: 1; }
.lb-side { padding: 96px 44px 40px 8px; display: flex; flex-direction: column; overflow: auto; }
.lb-meta { display: flex; gap: 14px; font: 500 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ash); margin-bottom: 22px; }
.lb-alt { font: 400 24px/1.25 var(--serif); margin-bottom: 18px; }
.lb-text { max-width: 34ch; margin-bottom: 20px; font-size: 14.5px; line-height: 1.55; color: var(--paper); }
.lb-cap { font-size: 13px; color: var(--ash); }
.lb-exif { margin: 6px 0 26px; font-size: 12.5px; color: var(--ash); }
.lb-nav { display: flex; gap: 24px; margin-bottom: 14px; }
.lb-foot { margin-top: auto; font-size: 11.5px; color: var(--ash); }
.lb-close { position: absolute; right: var(--pad); top: var(--pad); }

/* ---------- Laden ---------- */
.loader { position: fixed; inset: 0; z-index: 60; display: grid; place-content: center; justify-items: center; gap: 26px; background: var(--night); transition: opacity .8s .1s, visibility .8s .1s; }
.loader img { width: 150px; height: auto; }
.loader .bar { width: 150px; height: 1px; background: var(--rule); overflow: hidden; }
.loader .bar i { display: block; height: 100%; background: var(--ivory); transform: scaleX(.05); transform-origin: left; transition: transform .6s var(--ease); }
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; } /* sofort durchklickbar, auch während des Ausblendens */
/* Seitenübergang wie auf der Website (seit 27.10.2026, dort 90-motion.css): beide Seiten nehmen teil –
   vom Splitscreen blendet das Raumbild weich ins gleiche Ladebild über; ohne Teilnahme brach der
   Browser den Übergang der Website ab (Fehlermeldung in der Konsole). */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
/* Ankunft aus dem Splitscreen der Startseite (js/ankunft.js): dasselbe Hauptbild wie dort, Balken unten */
.ankunft .loader { place-content: end center; padding-bottom: 44px; background: var(--night) image-set(url(../assets/scenes/main/main@1x.webp) 1x, url(../assets/scenes/main/main@2x.webp) 2x) center / cover no-repeat; }
.ankunft .loader img { display: none; }
.ankunft .loader .bar { background: rgba(239, 233, 224, .22); }
/* Tablet hochkant: dort steht das ganze Bild unter der Kopfzeile (Splitscreen der Startseite, 06-intro.css) */
@media (orientation: portrait) { .ankunft .loader { background-size: 100% auto; background-position: 50% 56px; } }
.noscript { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: var(--night); }

/* ---------- Reduzierte Bewegung ---------- */
body.reduced .anim-breathe, body.reduced .anim-breathe2, body.reduced .anim-flicker, body.reduced .playhead { animation: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ---------- Schmal / Hochformat (Touch) ---------- */
@media (max-width: 760px), (orientation: portrait) and (max-width: 1024px) {
  body { font-size: 14px; }
  .top { padding: 16px 16px 0; }
  .logo { height: 24px; }
  .tools { gap: 16px; } .tools [data-replay] { display: none; }
  .titleblock { left: 18px; right: 18px; top: auto; bottom: 96px; max-width: none; }
  .titleblock h1 { font-size: 40px; }
  .hint-desk { display: none; } .hint-touch { display: inline; }
  /* Hinweis mit Impressum/Datenschutz/Cookies auch auf dem Handy: kompakt über der Ortsleiste */
  .note { left: 18px; right: 18px; bottom: calc(66px + env(safe-area-inset-bottom)); max-width: none; font-size: 11px; }
  .lizenzen { inset: auto 18px calc(96px + env(safe-area-inset-bottom)) 18px; max-width: none; }
  .index { left: 0; right: 0; top: auto; bottom: 0; width: auto; transform: none; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: var(--night); border-top: 1px solid var(--rule); }
  .index ol { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; margin: 0; border: 0; }
  .index li { flex: 0 0 auto; border: 0; }
  .index ol a { display: flex; gap: 6px; padding: 6px 0; }
  .index .w, .index-cta { display: none; }
  .index .t { font-size: 18px; }
  body:not([data-scene="main"]) .index { top: auto; bottom: 0; right: 0; transform: none; padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); }
  body:not([data-scene="main"]) .index ol a { display: flex; padding: 4px 2px; }
  .panel, .panel.side-left, .panel.side-right { left: 0; right: 0; top: auto; bottom: 46px; width: auto; max-height: 56vh; padding: 22px 20px 26px; transform: translateY(14px); background: var(--night); border-top: 1px solid var(--rule); }
  .panel.on { transform: none; }
  .panel .back { margin-bottom: 18px; }
  .panel h2 { font-size: 30px; }
  .viewport::after { background: linear-gradient(0deg, rgba(8, 7, 6, .7), rgba(8, 7, 6, 0) 40%), linear-gradient(180deg, rgba(8, 7, 6, .5), rgba(8, 7, 6, 0) 14%); }
  .mark span { display: none; }
  .lightbox { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .lb-stage { padding: 64px 12px 12px; }
  .lb-stage img { max-height: 56vh; }
  .lb-side { padding: 10px 20px 24px; }
  .lb-alt { font-size: 18px; }
}
/* Hochformat-Handy: Bildband oben (46vh), Bedienung darunter (stage.js → S.band) */
body.band .titleblock { top: calc(56px + 46vh + 22px); bottom: auto; }
body.band .panel, body.band .panel.side-left, body.band .panel.side-right { top: calc(56px + 46vh - 8px); bottom: 46px; max-height: none; }
body.band .viewport::after { background: linear-gradient(to bottom, transparent calc(56px + 40vh), var(--night) calc(56px + 46vh)); }
