/* ==========================================================================
   Spielhalle — Hero-Bühne (GESTALTUNG.md, Fassung 2)
   Eine Seite, ein Schirm: elf Bilder (Start, neun Spiele, AI Media Halle), seitlich gewechselt.
   Animiert werden nur transform, opacity und clip-path.
   ========================================================================== */

@font-face { font-family: "Anybody"; src: url("../assets/schrift/Anybody-variabel.woff2") format("woff2"); font-weight: 100 900; font-stretch: 50% 150%; font-display: swap; }
@font-face { font-family: "Sora"; src: url("../assets/schrift/Sora-variabel-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../assets/schrift/Manrope-variabel-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/schrift/JetBrainsMono-variabel-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Bowlby One"; src: url("../assets/schrift/bowlby-one-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --halle: #0b0c10; --beton: #16181e; --fuge: #2a2d36; --kreide: #f2efe6; --staub: #9b9fa8;
  --gelb: #EEEE00; --rosa: #ee6aa7;
  --wucht: "Anybody", "Arial Narrow", Impact, sans-serif;
  --struktur: "Sora", system-ui, sans-serif;
  --lesen: "Manrope", system-ui, sans-serif;
  --technik: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --rand: clamp(20px, 4.6vw, 80px);
  --kopf: 72px; --fuss: 76px;
  /* Inhalt höchstens 1180 px breit und mittig: auf breiten Schirmen rücken Text und Video zusammen, statt an den
     Rändern zu kleben. --seite ist der Abstand zum Schirmrand; Kopf, Leiste und Bilder benutzen ihn gemeinsam. */
  --inhalt: 1180px;
  --seite: max(var(--rand), calc((100vw - var(--inhalt)) / 2));
  --legen: cubic-bezier(.2, .7, .2, 1);
  --rollen: cubic-bezier(.62, 0, .18, 1);
  --schnitt: cubic-bezier(.76, 0, .24, 1);
  --ui: 160ms;
  /* Farbe der festen Bedienteile (Kopf, Leiste): folgt dem Bild, das gerade zu sehen ist */
  --chrom: var(--kreide); --chrom-akzent: var(--gelb); --chrom-auf: #101114;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--halle); color: var(--kreide); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--lesen); overflow-x: clip; -webkit-font-smoothing: antialiased; }
.js body:not(.recht) { height: 100vh; height: 100dvh; overflow: hidden; overscroll-behavior: none; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--chrom-akzent); outline-offset: 3px; }
::selection { background: var(--gelb); color: var(--halle); }
.sprung { position: fixed; left: 12px; top: -80px; z-index: 300; background: var(--gelb); color: var(--halle); padding: 10px 14px; font: 600 14px var(--technik); }
.sprung:focus { top: 12px; }
.gelb { color: var(--gelb); } .rosa { color: var(--rosa); }
[hidden] { display: none !important; }
.ansage { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------------------------------------------------------------- Knöpfe */
.knopf { --ecke: 11px; --linie: transparent; position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 54px; padding: 0 26px; font: 700 15px/1 var(--struktur); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  /* zwei gekappte Ecken wie ein gestanztes Blechschild; die Schräge bekommt ihre eigene Linie (der Rahmen wird dort abgeschnitten) */
  clip-path: polygon(var(--ecke) 0, 100% 0, 100% calc(100% - var(--ecke)), calc(100% - var(--ecke)) 100%, 0 100%, 0 var(--ecke));
  background-image: linear-gradient(135deg, transparent calc(var(--ecke) * .707 - .2px), var(--linie) calc(var(--ecke) * .707 - .2px) calc(var(--ecke) * .707 + 1.1px), transparent calc(var(--ecke) * .707 + 1.1px)), linear-gradient(315deg, transparent calc(var(--ecke) * .707 - .2px), var(--linie) calc(var(--ecke) * .707 - .2px) calc(var(--ecke) * .707 + 1.1px), transparent calc(var(--ecke) * .707 + 1.1px));
  transition: transform var(--ui) var(--legen), background-color var(--ui), color var(--ui), box-shadow var(--ui), filter var(--ui); }
.knopf:active { transform: scale(.96); }
.knopf:focus-visible { outline-offset: -5px; }
/* Beschriftung rollt beim Überfahren nach oben weg, ihre Kopie (der Schatten) rollt von unten nach */
.knopf > span { display: inline-block; text-shadow: 0 60px 0 currentColor; transition: transform .42s var(--rollen); }
.knopf:not(.knopf--bald):hover > span { transform: translateY(-60px); }
/* Lichtfleck folgt dem Zeiger (--mx/--my setzt js/effekte.js) */
.knopf::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(130px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, #fff 42%, transparent), transparent 72%); }
.knopf:not(.knopf--bald):hover::after { opacity: 1; }
/* Druckwelle am Klickpunkt */
.welle { position: absolute; z-index: -1; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: currentColor; opacity: .32; pointer-events: none; animation: welle .6s ease-out forwards; }
@keyframes welle { to { transform: scale(30); opacity: 0; } }
.pfeil { display: inline-block; width: 18px; height: 12px; background: currentColor; clip-path: polygon(0 42%, 64% 42%, 64% 0, 100% 50%, 64% 100%, 64% 58%, 0 58%); transition: transform var(--ui) var(--legen); }
.pfeil--links { transform: scaleX(-1); }
/* der Pfeil fliegt rechts hinaus und kommt von links wieder herein */
.knopf:hover .pfeil { animation: pfeilflug .55s var(--rollen); }
@keyframes pfeilflug { 0% { transform: translateX(0); opacity: 1; } 44% { transform: translateX(22px); opacity: 0; } 45% { transform: translateX(-22px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
.knopf--haupt { background-color: var(--akzent); color: var(--auf-akzent); }
.knopf--haupt:hover { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--akzent) 45%, transparent)); }
.knopf--haupt:focus-visible { outline-color: var(--auf-akzent); }
.knopf--neben, .knopf--leise { --linie: color-mix(in srgb, currentColor 38%, transparent); box-shadow: inset 0 0 0 1px var(--linie); }
.knopf--neben::before, .knopf--leise::before { content: ""; position: absolute; inset: 0 -14px; z-index: -2; background: color-mix(in srgb, currentColor 14%, transparent); transform: translateX(-104%) skewX(-18deg); transition: transform .5s var(--rollen); }
.knopf--neben:hover::before, .knopf--leise:hover::before { transform: translateX(0) skewX(-18deg); }
.knopf--neben:hover, .knopf--leise:hover { --linie: currentColor; }
.knopf--bald { --linie: color-mix(in srgb, currentColor 24%, transparent); box-shadow: inset 0 0 0 1px var(--linie); color: color-mix(in srgb, currentColor 62%, transparent); cursor: default; font-weight: 600; }
.knopf--bald::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--akzent); opacity: .9; }
.knopf--bald > span { text-shadow: none; }

/* ---------------------------------------------------------------- Kopf */
.kopf { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--kopf); padding: 0 var(--seite); display: flex; align-items: center; gap: 30px; color: var(--chrom); transition: transform .6s var(--legen), color .5s; }
.mit-vorfilm:not(.vorfilm-weg) .kopf, .nur-tor:not(.vorfilm-weg) .kopf, .mit-vorfilm:not(.vorfilm-weg) .leiste, .nur-tor:not(.vorfilm-weg) .leiste { opacity: 0; }
.marke { display: grid; text-decoration: none; line-height: 1; margin-right: auto; }
.marke__haus { font: 800 10px/1 var(--struktur); letter-spacing: .34em; }
.marke__haus b { font-weight: 800; }
/* über hellen Bildern: Rosa und Gelb wären dort kaum lesbar */
.kopf-hell .marke__haus .rosa { color: #b3266c; } .kopf-hell .marke__haus .gelb { color: #6d6a00; }
.marke__wort { display: inline-flex; align-items: baseline; font: 850 23px/1 var(--wucht); font-stretch: 62%; text-transform: uppercase; margin-top: 3px; transform-origin: left center; }
.marke__wort .fein { margin-right: .04em; }
.marke__wort .wucht { color: var(--chrom-akzent); transition: font-stretch .45s var(--legen), letter-spacing .45s var(--legen); }
.marke:hover .marke__wort .wucht { font-stretch: 92%; letter-spacing: .02em; }
.marke__haus { transition: letter-spacing .45s var(--legen); }
.marke:hover .marke__haus { letter-spacing: .4em; }
.marke:active { transform: scale(.97); }
.kopf__nav { position: relative; isolation: isolate; display: flex; gap: 2px; padding: 4px; font: 500 12px var(--technik); letter-spacing: .12em; text-transform: uppercase;
  background: color-mix(in srgb, currentColor 6%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 18%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.kopf__nav a { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; text-decoration: none; opacity: .7; transition: opacity .2s, color .2s, transform var(--ui) var(--legen); }
.kopf__nav a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .32; transition: background-color .25s, opacity .25s, box-shadow .25s, transform .25s var(--legen); }   /* Lämpchen */
.kopf__nav a:hover, .kopf__nav a[aria-current] { opacity: 1; }
.kopf__nav a:hover::before { opacity: .9; transform: scale(1.5); }
.kopf__nav a[aria-current]::before { background: var(--chrom-akzent); opacity: 1; box-shadow: 0 0 9px 1px var(--chrom-akzent); }
.kopf__nav a:active { transform: scale(.94); }
/* Marke: gleitet zum überfahrenen Eintrag und ruht sonst auf dem aktuellen; Strich: bleibt unter dem aktuellen (js/effekte.js) */
.kopf__nav::before { content: ""; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 0; width: var(--w, 0px); transform: translateX(var(--x, 0px));
  background: radial-gradient(90px circle at calc(var(--mx, -200px) - var(--x, 0px)) 50%, color-mix(in srgb, currentColor 26%, transparent), transparent 80%), color-mix(in srgb, currentColor 12%, transparent);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.kopf__nav::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: var(--aw, 0px); transform: translateX(var(--ax, 0px)); background: var(--chrom-akzent); box-shadow: 0 0 10px var(--chrom-akzent); }
.kopf__nav.bereit::before, .kopf__nav.bereit::after { transition: transform .42s var(--legen), width .42s var(--legen), background-color .2s; }
.kopf__nav.klick::before { background: var(--chrom-akzent); }
.kopf__nav.klick a.gedrueckt { color: var(--chrom-auf); }
.kopf__nav.klick a.gedrueckt::before { background: var(--chrom-auf); box-shadow: none; }
.tonknopf { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 9px; height: 43px; padding: 0 14px; transition: background-color var(--ui), transform var(--ui) var(--legen); font: 500 11px var(--technik); letter-spacing: .1em; text-transform: uppercase; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 30%, transparent); border-radius: 2px; }
.tonknopf:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.tonknopf:hover .tonknopf__balken i { opacity: 1; animation: pegel .5s ease-in-out infinite alternate; height: 12px; }
.tonknopf:hover .tonknopf__balken i:nth-child(2) { animation-delay: -.2s; } .tonknopf:hover .tonknopf__balken i:nth-child(3) { animation-delay: -.38s; }
.tonknopf:active { transform: scale(.95); }
.tonknopf__balken { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.tonknopf__balken i { width: 3px; height: 3px; background: currentColor; opacity: .6; transform-origin: bottom; }
.tonknopf[aria-pressed="true"] { box-shadow: inset 0 0 0 1px currentColor; }
.tonknopf[aria-pressed="true"] .tonknopf__balken i { opacity: 1; height: 12px; animation: pegel .7s ease-in-out infinite alternate; }
.tonknopf[aria-pressed="true"] .tonknopf__balken i:nth-child(2) { animation-delay: -.3s; } .tonknopf[aria-pressed="true"] .tonknopf__balken i:nth-child(3) { animation-delay: -.55s; }
@keyframes pegel { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@media (max-width: 820px) { .kopf__nav { display: none; } :root { --kopf: 60px; --fuss: 64px; } }

/* ---------------------------------------------------------------- Vorfilm und Rolltor */
.vorfilm { position: fixed; inset: 0; z-index: 200; background: #000; overflow: hidden; contain: strict; }
.ohne-vorfilm .vorfilm { display: none; }
.vorfilm__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.08) saturate(1.12); }
.vorfilm__blitz { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.vorfilm__wort { position: absolute; left: 50%; top: 50%; margin: 0; white-space: nowrap; font: 900 clamp(64px, 20vw, 340px)/.82 var(--wucht); font-stretch: 55%; text-transform: uppercase; color: #fff;
  transform: translate(-50%, -50%); text-shadow: 0 0 0 #000, .035em .04em 0 #000; will-change: transform; }
.vorfilm__wort[data-art="1"] { color: var(--gelb); transform: translate(-50%, -50%) rotate(-5deg); font-stretch: 50%; }
.vorfilm__wort[data-art="2"] { left: 6%; top: auto; bottom: 12%; transform: none; color: #fff; font-stretch: 80%; font-size: clamp(48px, 13vw, 220px); }
.vorfilm__wort[data-art="3"] { color: var(--rosa); transform: translate(-50%, -50%) rotate(4deg) scale(1.08); }
.vorfilm__wort[data-art="4"] { left: auto; right: 5%; top: 9%; transform: none; color: var(--halle); background: var(--gelb); padding: .06em .12em 0; text-shadow: none; font-size: clamp(44px, 11vw, 190px); }
.vorfilm__wort[data-art="5"] { color: var(--gelb); font-stretch: 50%; font-size: clamp(60px, 17.5vw, 330px); letter-spacing: -.01em; }
.vorfilm__leiste { position: absolute; inset: auto var(--rand) 22px var(--rand); display: flex; justify-content: space-between; font: 600 12px var(--technik); letter-spacing: .18em; color: #fff; mix-blend-mode: difference; }
.vorfilm__lauf { position: absolute; inset: 0 0 auto 0; height: 4px; background: rgb(255 255 255 / .16); }
.vorfilm__lauf i { display: block; height: 100%; background: var(--gelb); transform: scaleX(0); transform-origin: left; }
.nur-tor .vorfilm__film, .nur-tor .vorfilm__wort, .nur-tor .vorfilm__leiste, .nur-tor .vorfilm__lauf { display: none; }
.vorfilm.offen { background: transparent; }
.vorfilm.offen > :not(.tor) { display: none; }

/* Das Tor: Lamellen fallen von oben zu, dann fährt das ganze Tor hoch */
.tor { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(var(--lamellen, 12), 1fr); will-change: transform; }
.tor__lamelle { background: linear-gradient(#262a33, #14161b 58%, #0d0e12); box-shadow: inset 0 1px 0 rgb(255 255 255 / .09), inset 0 -2px 0 rgb(0 0 0 / .55); transform: scaleY(0); transform-origin: top; }
.nur-tor .tor__lamelle, .tor.zu .tor__lamelle { transform: none; }
.tor__lamelle:last-child { background: repeating-linear-gradient(-45deg, var(--gelb) 0 22px, #101114 22px 44px); }
.tor__schild { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; opacity: 0; }
.nur-tor .tor__schild, .tor.zu .tor__schild { opacity: 1; }
.tor__nr { font: 600 12px var(--technik); letter-spacing: .3em; color: var(--gelb); }
.tor__wort { font: 900 clamp(52px, 13vw, 210px)/.9 var(--wucht); font-stretch: 55%; text-transform: uppercase; color: var(--kreide); }
.flugwort { position: fixed; z-index: 210; margin: 0; left: 0; top: 0; transform-origin: left top; font: 900 100px/1 var(--wucht); font-stretch: 55%; text-transform: uppercase; color: var(--kreide); pointer-events: none; white-space: nowrap; }

/* ---------------------------------------------------------------- Bühne und Bild */
.buehne { position: relative; }
.js .buehne { position: fixed; inset: 0; overflow: hidden; background: var(--halle); touch-action: pan-y; }
.bild { --tinte: var(--kreide); position: relative; min-height: 100vh; color: var(--tinte); background: var(--welt); overflow: hidden; isolation: isolate; }
.bild--hell { --tinte: #15161b; }
.js .bild { position: absolute; inset: 0; min-height: 0; display: none; }
.js .bild.aktiv, .js .bild.kommt, .js .bild.geht { display: block; }
.js .bild.kommt { z-index: 2; will-change: clip-path; }
/* Farbblende des Wechsels: liegt zwischen altem und neuem Bild, haupt.js schneidet sie in Lamellen */
.blende { position: absolute; z-index: 1; inset: 0; opacity: 0; pointer-events: none; will-change: clip-path; }

.bild__grund { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.bild__grund img, .bild__grund video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; will-change: transform; }
/* Startbild ohne Video (die Videoschleife ruckelte an der Nahtstelle): das Standbild atmet, Dunst zieht in zwei
   Schichten verschieden schnell, und im Licht schwebt Staub (Leinwand, haupt.js). Alles läuft hin und zurück oder
   endlos weiter – es gibt keine Stelle, an der etwas neu ansetzt. */
.bild--start .bild__grund img { animation: halle-atem 30s ease-in-out infinite alternate; transform-origin: 72% 58%; will-change: transform; }
.bild--start .bild__grund::before, .bild__dunst { content: ""; position: absolute; z-index: 1; inset: -12% -34%; pointer-events: none; mix-blend-mode: screen; will-change: transform; }
.bild--start .bild__grund::before { opacity: .62;
  background: radial-gradient(34% 26% at 28% 64%, rgb(238 106 167 / .2), transparent 70%), radial-gradient(30% 24% at 60% 46%, rgb(150 185 255 / .17), transparent 70%), radial-gradient(38% 22% at 84% 68%, rgb(238 238 0 / .1), transparent 70%);
  animation: halle-dunst 44s ease-in-out infinite alternate; }
.bild__staub { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.bild--start .bild__grund::after { z-index: 2; }
@keyframes halle-atem { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.07) translate3d(-.8%, .4%, 0); } }
@keyframes halle-dunst { from { transform: translate3d(-10%, 1.5%, 0) scale(1); } to { transform: translate3d(10%, -2.5%, 0) scale(1.12); } }
.bild__schleife { opacity: 0; transition: opacity 1.2s; } .bild__schleife.laeuft { opacity: 1; }
/* Fläche in der Farbe des Spiels läuft von links ins Bild aus; oben und unten Platz für Kopf und Leiste */
.bild__grund::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, color-mix(in srgb, var(--welt) 92%, transparent), color-mix(in srgb, var(--welt) 30%, transparent) 16%, transparent 30%),
    linear-gradient(180deg, color-mix(in srgb, var(--welt) 70%, transparent), transparent 18%),
    linear-gradient(90deg, var(--welt) 0, var(--welt) calc(var(--seite) + 150px), color-mix(in srgb, var(--welt) 94%, transparent) calc(var(--seite) + 330px), color-mix(in srgb, var(--welt) 62%, transparent) calc(var(--seite) + 560px), color-mix(in srgb, var(--welt) 12%, transparent) calc(var(--seite) + 840px), transparent calc(var(--seite) + 1040px)); }
/* Key-Arts der Spiele: gespiegelt (Ansage vom 14.11.), damit das Motiv nicht unter dem Videofenster rechts liegt.
   Das Bild beginnt erst bei 20 % – links davon steht ohnehin die volle Grundfarbe mit dem Text – und zeigt den
   Teil mit dem Motiv; so landet es in der Mitte. object-position zählt im ungespiegelten Bild. */
.bild--spiel .bild__grund img { --ab: calc(var(--seite) + 150px); transform: scaleX(-1); left: var(--ab); width: calc(100% - var(--ab)); object-position: 100% 50%; }
[data-spiel="paper-sting"] .bild__grund img, [data-spiel="kiwi-chaos"] .bild__grund img, [data-spiel="stage-kings"] .bild__grund img { object-position: 62% 50%; }
/* Nicht gespiegelt (Ansage vom 14.11.): Zwergenalarm. Und Himmelsbrocken: dort ist der linke Bildrand die schwarze
   Tintenflut des Spiels, die in die dunkle Grundfarbe übergeht – gespiegelt stand sie rechts und links blieb ein
   schwarzer Balken vor dem hellen Himmel. */
[data-spiel="zwergenalarm"] .bild__grund img { --ab: calc(var(--seite) + 170px); transform: none; object-position: 30% 50%; }
[data-spiel="himmelsbrocken"] .bild__grund img { --ab: calc(var(--seite) + 80px); transform: none; object-position: 100% 50%; }

.bild__inhalt { position: absolute; inset: var(--kopf) 0 var(--fuss) 0; padding: clamp(8px, 2vh, 28px) var(--seite); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 3vw, 56px); align-items: center; }
.bild__text { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(8px, 1.45vh, 20px); max-width: 660px; container-type: inline-size; align-content: center; }

.kennzeile { font: 500 12px/1.4 var(--technik); letter-spacing: .16em; text-transform: uppercase; display: flex; align-items: center; gap: 14px; color: color-mix(in srgb, currentColor 74%, transparent); }
.kennzeile__nr { font-weight: 700; color: var(--tinte); padding-right: 14px; border-right: 1px solid color-mix(in srgb, currentColor 40%, transparent); }
/* Betriebszähler: steht gleich neben den Knöpfen – wie oft und wie lange das Spiel lief */
.betrieb { display: inline-flex; align-items: center; align-self: center; gap: 7px; margin-left: 6px; white-space: nowrap; font: 500 12px/1.4 var(--technik); letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--tinte) 78%, transparent); }
.betrieb i { width: 0; height: 0; border-left: 7px solid var(--akzent); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.bild--hell .betrieb i { border-left-color: var(--tinte); }
.betrieb b { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--tinte); }
.betrieb__zeit:empty { display: none; }
.kennzeile__punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--akzent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--akzent) 22%, transparent); }

/* Titel: Größe so, dass das längste Wort in die Spalte passt (--zeichen kommt aus dem Markup, --fz je Schrift) */
.bild__titel { --fz: .5; font: 900 min(clamp(54px, 8.4vw, 150px), calc(100cqi / (var(--zeichen, 10) * var(--fz))))/.88 var(--wucht); font-stretch: 58%; text-transform: uppercase; letter-spacing: -.005em; text-wrap: balance; margin-left: -.03em; }
.bild--start .bild__titel { --fz: .44; font-stretch: 55%; }
/* Wortmarke aus einer Schrift (Anybody): „SPIEL“ als Umriss, „HALLE“ gefüllt im Gelb der Halle */
.bild__titel--marke { display: flex; align-items: baseline; flex-wrap: wrap; }
.bild__titel--marke .fein { color: transparent; -webkit-text-stroke: .018em var(--tinte); margin-right: .03em; }   /* „SPIEL“ nur als Umriss, „HALLE“ voll in Gelb: eine Schrift, zwei Gewichte */
.bild__titel--marke .wucht { color: var(--akzent); }
.kennzeile--fein i { font-style: normal; color: var(--tinte); }
.kennzeile__strich { width: 34px; height: 1px; background: color-mix(in srgb, currentColor 50%, transparent); }
.bild__zeile--fein { display: grid; gap: 6px; }
.bild__zeile--fein .fein { font: 700 clamp(21px, 2.1vw, 30px)/1.12 var(--struktur); letter-spacing: -.015em; }
.bild__zeile--fein .klar { font: 500 clamp(14px, 1.15vw, 16px)/1.4 var(--struktur); letter-spacing: .03em; color: color-mix(in srgb, currentColor 78%, transparent); }
[data-spiel="paper-sting"] .bild__titel { --fz: .58; font: 300 min(clamp(48px, 8vw, 132px), calc(100cqi / (var(--zeichen) * var(--fz))))/1 "Bahnschrift", "DIN Alternate", "Segoe UI", system-ui, sans-serif; text-transform: lowercase; letter-spacing: .02em; }
[data-spiel="stage-kings"] .bild__titel, [data-spiel="halbe-halbe"] .bild__titel { --fz: .74; font-family: var(--struktur); font-weight: 800; font-stretch: 100%; letter-spacing: -.03em; line-height: .92; }
[data-spiel="halbe-halbe"] .bild__titel { text-transform: none; }
[data-spiel="himmelsbrocken"] .bild__titel { --fz: .78; font-family: "Bowlby One", var(--wucht); font-weight: 400; font-stretch: 100%; line-height: .96; letter-spacing: 0; }
[data-spiel="zwergenalarm"] .bild__titel, [data-spiel="mega-crash"] .bild__titel { --fz: .76; font-stretch: 100%; font-weight: 850; }
[data-spiel="blechschaden"] .bild__titel { --fz: .56; font-stretch: 72%; font-style: oblique 8deg; }
[data-spiel="leuchtfeuer"] .bild__titel { --fz: .5; font-stretch: 50%; font-weight: 600; letter-spacing: .05em; }
[data-spiel="kiwi-chaos"] .bild__titel { --fz: .6; font-stretch: 80%; }

.bild__zeile { font: 600 clamp(18px, 1.75vw, 25px)/1.3 var(--struktur); text-wrap: balance; max-width: 26em; }
.bild__beschreibung { max-width: 54ch; font-size: clamp(15px, 1.05vw, 17px); color: color-mix(in srgb, currentColor 80%, transparent); text-wrap: pretty; }
.bild__kenn { display: flex; flex-wrap: wrap; gap: 6px 0; font: 600 12px var(--technik); letter-spacing: .08em; text-transform: uppercase; }
.bild__kenn li { padding: 0 14px; border-left: 1px solid color-mix(in srgb, currentColor 34%, transparent); }
.bild__kenn li:first-child { padding-left: 0; border-left: 0; }
.bild__knoepfe { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; }
.klein { font-size: 13px; color: color-mix(in srgb, currentColor 62%, transparent); max-width: 60ch; }

/* ---------------------------------------------------------------- Fenster: Trailer oder Szenen aus dem Spiel */
/* Fenster rechts: hochkant-Trailer groß und mittig, Spielszenen quer unten rechts. Klick öffnet die Kino-Ansicht.
   Damit das Fenster das Hauptmotiv nicht verdeckt, sind die Key-Arts gespiegelt und nach rechts gerückt (siehe oben). */
.fenster { justify-self: end; align-self: end; width: min(100%, 520px); display: grid; gap: 10px; margin-bottom: clamp(0px, 2vh, 20px); }
/* schmale Rechner und Tablets quer: das breite Fenster ragte sonst in Wertung und Patch-Knopf */
@media (min-width: 821px) and (max-width: 1120px) { .fenster--quer { width: min(100%, clamp(270px, 36vw, 390px)); } }
.fenster--hoch { align-self: center; width: auto; height: min(72vh, 660px, calc(100vh - var(--kopf) - var(--fuss) - 48px)); aspect-ratio: 9 / 16.9; grid-template-rows: 1fr auto; margin-bottom: 0; }
.fenster__bild { position: relative; aspect-ratio: 16 / 10; background: #000; border-radius: 4px; overflow: hidden;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--tinte) 26%, transparent), 0 36px 70px -28px rgb(0 0 0 / .75); }
.fenster--hoch .fenster__bild { aspect-ratio: auto; min-height: 0; }
.fenster__bild::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--akzent); transform: scaleX(var(--lauf, 0)); transform-origin: left; }
.fenster__bild img, .fenster__bild video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fenster__bild video { opacity: 0; transition: opacity .4s; }
.fenster.laeuft video { opacity: 1; }
.fenster figcaption { display: flex; justify-content: space-between; align-items: center; font: 500 11px var(--technik); letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--tinte) 72%, transparent); }
.fenster__knopf { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 2px; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--tinte); }
.fenster__knopf i { width: 9px; height: 11px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.fenster.laeuft:not(.pause) .fenster__knopf i { clip-path: polygon(0 0, 36% 0, 36% 100%, 0 100%, 0 0, 64% 0, 100% 0, 100% 100%, 64% 100%, 64% 0); }
.fenster__knopf:hover span { text-decoration: underline; text-underline-offset: .3em; }
.fenster__bild { cursor: zoom-in; transition: transform .4s var(--legen), box-shadow .3s; }
.fenster:not(.kino) .fenster__bild:hover { transform: scale(1.015); box-shadow: 0 0 0 1px var(--akzent), 0 36px 70px -28px rgb(0 0 0 / .75); }
.fenster__gross { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--tinte); text-decoration: underline; text-underline-offset: .3em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.fenster__gross:hover { text-decoration-color: currentColor; }
/* Kino: das Fenster füllt den Schirm, Kopf und Leiste treten zurück */
.fenster.kino { position: fixed; inset: 0; place-self: stretch; z-index: 80; width: auto; height: auto; aspect-ratio: auto; margin: 0; padding: 20px; display: grid; grid-template-rows: none; place-content: center; justify-items: center; gap: 14px; background: color-mix(in srgb, var(--welt) 95%, transparent); cursor: zoom-out; animation: kino-auf .35s var(--legen); }
.fenster.kino .fenster__bild { cursor: zoom-out; aspect-ratio: 16 / 10; width: min(94vw, calc(84vh * 1.6)); min-height: 0; }
.fenster--hoch.kino .fenster__bild { aspect-ratio: 9 / 16; width: auto; height: min(86vh, calc(94vw * 16 / 9)); }
.fenster.kino figcaption { width: 100%; font-size: 12px; }
.kino-an .kopf, .kino-an .leiste { opacity: 0; pointer-events: none; }
@keyframes kino-auf { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------------- Stimmzeile: Lichter (Wertung) oder „Tor aufdrücken" (Wunschliste) */
.stimme { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; max-width: 600px; margin-top: 2px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.lichter { display: flex; }
.lichter button { width: 30px; height: 36px; padding: 0 3px; display: grid; align-items: center; }
.lichter i { display: block; height: 6px; border-radius: 1px; background: currentColor; opacity: .26; transition: opacity .15s, background-color .15s, box-shadow .2s, transform .2s var(--legen); }
.lichter button.an i { background: var(--akzent); opacity: 1; box-shadow: 0 0 14px color-mix(in srgb, var(--akzent) 60%, transparent); }
.lichter:hover button i { background: currentColor; opacity: .26; box-shadow: none; }
.lichter button:hover i, .lichter button:has(~ button:hover) i { background: var(--akzent); opacity: 1; transform: scaleY(1.5); }
.stimme__zahl { flex: 1 1 210px; font: 500 12px/1.4 var(--technik); letter-spacing: .05em; color: color-mix(in srgb, currentColor 76%, transparent); }
.stimme__zettel { font: 600 13px var(--struktur); text-decoration: underline; text-underline-offset: .3em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); min-height: 36px; }
.stimme__zettel:hover { text-decoration-color: currentColor; }
.wunschknopf { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 18px 0 12px; font: 700 14px var(--struktur); border-radius: 2px; box-shadow: inset 0 0 0 1px var(--akzent); transition: background-color var(--ui), color var(--ui), transform var(--ui) var(--legen); }
.wunschknopf:hover { background: color-mix(in srgb, var(--akzent) 18%, transparent); }
.wunschknopf:active { transform: scale(.97); }
.wunschknopf[aria-pressed="true"] { background: var(--akzent); color: var(--auf-akzent); }
.wunschknopf__tor { position: relative; width: 24px; height: 24px; border: 2px solid currentColor; border-bottom-width: 0; overflow: hidden; background: color-mix(in srgb, var(--akzent) 30%, transparent); }
.wunschknopf[aria-pressed="true"] .wunschknopf__tor { background: color-mix(in srgb, var(--auf-akzent) 22%, transparent); }
.wunschknopf__tor i { position: absolute; inset: 0; background: repeating-linear-gradient(currentColor 0 2px, transparent 2px 5px), color-mix(in srgb, var(--welt) 80%, transparent); transform: translateY(calc(var(--offen, 0) * -78% - 10%)); transition: transform .7s var(--rollen); }

/* ---------------------------------------------------------------- Tags, Werkstattzeile, Patch-Notizen */
/* Tags in der Kennzeile: Entwicklungsstand (mit Lampe) und Version */
.tag { display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px 3px; font-weight: 700; letter-spacing: .12em; white-space: nowrap; color: var(--tinte); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tinte) 34%, transparent); }
.tag i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px color-mix(in srgb, #3ddc84 24%, transparent); }
.bild--hell .tag i { background: #12803f; box-shadow: 0 0 0 3px color-mix(in srgb, #12803f 20%, transparent); }
.tag--bau i { background: var(--akzent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--akzent) 24%, transparent); animation: tag-puls 2.2s ease-in-out infinite; }
.ruhe .tag--bau i { animation: none; }
.tag--frueh i, .bild--hell .tag--frueh i { background: #f2a51a; box-shadow: 0 0 0 3px color-mix(in srgb, #f2a51a 26%, transparent); }   /* spielbar, aber früher Stand */
@keyframes tag-puls { 50% { opacity: .35; } }
.bild--spiel .kennzeile { flex-wrap: wrap; gap: 6px 12px; white-space: nowrap; }
/* Werkstattzeile: Hinweis und Knopf zu den Patch-Notizen */
.werkstatt { display: flex; align-items: center; gap: 6px 16px; max-width: 600px; margin-top: -3px; }
.werkstatt p { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 500 12px/1.4 var(--technik); letter-spacing: .05em; color: color-mix(in srgb, currentColor 76%, transparent); }
.werkstatt__knopf { display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 28px; padding: 0 11px; font: 600 11.5px var(--technik); letter-spacing: .1em; text-transform: uppercase; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 34%, transparent); transition: background-color var(--ui), color var(--ui), box-shadow var(--ui), transform var(--ui) var(--legen); }
.werkstatt__knopf time { padding-left: 10px; border-left: 1px solid color-mix(in srgb, currentColor 40%, transparent); font-variant-numeric: tabular-nums; opacity: .8; }
.werkstatt__knopf:hover, .werkstatt__knopf:focus-visible { background: var(--akzent); color: var(--auf-akzent); box-shadow: none; }
.werkstatt__knopf:active { transform: scale(.97); }
/* Startbild: ein Satz dazu, dass die Spiele weiterwachsen */
.weiter { display: flex; align-items: baseline; gap: 10px; max-width: 54ch; font: 500 13px/1.45 var(--struktur); color: color-mix(in srgb, currentColor 76%, transparent); }
.weiter i { flex: none; width: 7px; height: 7px; border-radius: 50%; translate: 0 -1px; background: #3ddc84; box-shadow: 0 0 0 3px color-mix(in srgb, #3ddc84 24%, transparent); }
/* Notizen im Dialog */
.zettel .patchliste { display: grid; gap: 18px; max-height: min(46vh, 420px); overflow-y: auto; padding-right: 6px; }
.patchliste article { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--tinte) 20%, transparent); }
.patchliste h3 { display: flex; align-items: baseline; gap: 12px; font: 700 12px var(--technik); letter-spacing: .12em; text-transform: uppercase; }
.patchliste h3 time { color: var(--tinte); padding: 4px 8px 3px; box-shadow: inset 0 0 0 1px var(--akzent); }
.patchliste h3 span { opacity: .7; }
.patchliste ul { display: grid; gap: 6px; }
.patchliste li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.45; color: color-mix(in srgb, var(--tinte) 88%, transparent); }
.patchliste li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 2px; background: var(--akzent); }
.zettel--hell .patchliste li::before { background: var(--tinte); }
/* Letztes Bild: Name des Spiels, dahinter das Datum des letzten Patches */
.patchstand { display: grid; gap: 8px; max-width: 600px; }
.patchstand__kopf { font: 600 11px var(--technik); letter-spacing: .16em; text-transform: uppercase; color: var(--staub); }
.patchstand ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
.patchstand a { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; text-decoration: none; border-top: 1px solid var(--fuge); font: 600 13px/1.3 var(--struktur); white-space: nowrap; }
.patchstand a span { flex: 1; }
.patchstand time { font: 500 11px var(--technik); letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--gelb); }
.patchstand a.bau span { color: var(--staub); } .patchstand a.bau time { color: var(--staub); }
.patchstand a:hover span, .patchstand a:focus-visible span { color: var(--gelb); }

/* ---------------------------------------------------------------- Zettel-Dialog */
.zettel { --tinte: #f2efe6; border: 0; padding: 0; background: transparent; color: var(--tinte); width: 100%; max-width: min(580px, calc(100vw - 28px)); overflow: visible; }
.zettel--hell { --tinte: #15161b; }
.zettel::backdrop { background: rgb(5 6 8 / .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.zettel[open] { animation: zettel-auf .4s var(--legen); }
@keyframes zettel-auf { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
.zettel__blatt { position: relative; display: grid; gap: 14px; max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); overflow-y: auto; padding: 30px clamp(18px, 4vw, 32px) 26px; background: var(--welt); border-top: 4px solid var(--akzent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--tinte) 16%, transparent), 0 40px 90px -30px #000; }
.zettel h2 { font: 850 clamp(30px, 5vw, 44px)/.95 var(--wucht); font-stretch: 66%; text-transform: uppercase; }
.zettel__frage { font: 600 18px/1.3 var(--struktur); }
.zettel__zu { position: absolute; top: 8px; right: 10px; width: 44px; height: 44px; font-size: 28px; line-height: 1; opacity: .7; } .zettel__zu:hover { opacity: 1; }
.zettel__arten { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.zettel__arten input { position: absolute; opacity: 0; pointer-events: none; }
.zettel__arten span { display: block; padding: 9px 13px 8px; font: 600 12px var(--technik); letter-spacing: .08em; text-transform: uppercase; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 34%, transparent); cursor: pointer; transition: background-color var(--ui), color var(--ui); }
.zettel__arten input:checked + span { background: var(--akzent); color: var(--auf-akzent); box-shadow: none; }
.zettel__arten input:focus-visible + span { outline: 2px solid var(--akzent); outline-offset: 3px; }
.zettel textarea { width: 100%; min-height: 120px; resize: vertical; padding: 12px 14px; font: 400 16px/1.5 var(--lesen); color: inherit; background: color-mix(in srgb, var(--tinte) 8%, transparent); border: 1px solid color-mix(in srgb, var(--tinte) 30%, transparent); border-radius: 2px; }
.zettel textarea::placeholder { color: color-mix(in srgb, var(--tinte) 50%, transparent); }
.zettel textarea:focus { outline: 2px solid var(--akzent); outline-offset: 1px; }
.zettel__falle { position: absolute; left: -9999px; width: 1px; height: 1px; }
.zettel__fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.zettel__hinweis { flex: 1 1 220px; font-size: 12.5px; line-height: 1.45; color: color-mix(in srgb, currentColor 70%, transparent); }
.zettel__dank { font: 600 17px/1.4 var(--struktur); }
.gesendet textarea, .gesendet .zettel__arten, .gesendet .zettel__fuss, .gesendet .zettel__frage, .gesendet .felder { display: none; }
/* Anfrage-Formular (Werbepartner): Felder im Raster */
.felder { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.felder label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font: 600 12px var(--technik); letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--tinte) 80%, transparent); }
.felder label i { font-style: normal; text-transform: none; letter-spacing: 0; opacity: .7; }
.felder__breit { grid-column: 1 / -1; }
.felder input, .felder textarea { flex: 0 0 100%; width: 100%; padding: 11px 13px; font: 400 16px/1.4 var(--lesen); letter-spacing: 0; text-transform: none; color: var(--tinte); background: color-mix(in srgb, var(--tinte) 8%, transparent); border: 1px solid color-mix(in srgb, var(--tinte) 30%, transparent); border-radius: 2px; }
.felder textarea { min-height: 104px; resize: vertical; }
.felder input:focus, .felder textarea:focus { outline: 2px solid var(--akzent); outline-offset: 1px; }
.zettel__hinweis a { text-underline-offset: .2em; }
@media (max-width: 520px) { .felder { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Start: Zahlen und Verzeichnis der Spiele */
.zahlen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: clamp(4px, 1.2vh, 12px); }
/* je Zahl ein kleines Schild mit Neon-Zeichen (Higgsfield, roh/higgsfield/zeichen.sh); schwarzer Bildgrund verschwindet per screen */
.zahlen div { --mx: 50%; --my: 50%; position: relative; display: flex; align-items: center; gap: 7px; padding: 3px 11px 3px 4px;
  background: radial-gradient(140px circle at var(--mx) var(--my), color-mix(in srgb, var(--akzent) 0%, transparent), transparent 70%), linear-gradient(135deg, color-mix(in srgb, var(--kreide) 10%, transparent), color-mix(in srgb, var(--kreide) 3%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--kreide) 14%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: transform .3s var(--legen), box-shadow .3s; }
.zahlen div:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--akzent) 55%, transparent);
  background: radial-gradient(140px circle at var(--mx) var(--my), color-mix(in srgb, var(--akzent) 20%, transparent), transparent 70%), linear-gradient(135deg, color-mix(in srgb, var(--kreide) 10%, transparent), color-mix(in srgb, var(--kreide) 3%, transparent)); }
.zahlen dt { display: contents; }
.zahlen dt img { order: 1; width: 28px; height: 28px; mix-blend-mode: screen; transition: transform .35s var(--legen), filter .35s; }
.zahlen dt span { order: 3; font: 500 9.5px var(--technik); letter-spacing: .12em; text-transform: uppercase; color: var(--staub); }
.zahlen dd { order: 2; font: 800 clamp(16px, 1.35vw, 20px)/1 var(--wucht); font-stretch: 70%; transition: color .3s; }
.zahlen div:hover dd { color: var(--akzent); }
.zahlen div:hover img { transform: scale(1.14) rotate(-5deg); filter: brightness(1.35) saturate(1.15); animation: flackern .5s steps(1) 1; }
/* Röhren gehen nacheinander an, sobald das Startbild steht; danach zuckt ab und zu eine */
.bild--start.aktiv .zahlen img { animation: anknipsen .9s steps(1) both, zucken 9s steps(1) 3s infinite; }
.zahlen div:nth-child(2) img { animation-delay: .18s, 5.2s; } .zahlen div:nth-child(3) img { animation-delay: .36s, 7.4s; } .zahlen div:nth-child(4) img { animation-delay: .54s, 4.1s; }
@keyframes anknipsen { 0% { opacity: .12; } 22% { opacity: 1; } 30% { opacity: .2; } 46% { opacity: 1; } 54% { opacity: .45; } 62%, 100% { opacity: 1; } }
@keyframes zucken { 0%, 100% { opacity: 1; } 1.2% { opacity: .35; } 2.2% { opacity: 1; } 3% { opacity: .6; } 3.8% { opacity: 1; } }
@keyframes flackern { 0% { opacity: .4; } 30% { opacity: 1; } 45% { opacity: .55; } 60%, 100% { opacity: 1; } }
.rechts { justify-self: end; width: min(100%, 470px); max-height: 100%; display: grid; align-content: center; gap: clamp(10px, 1.8vh, 18px); }
.verzeichnis { display: grid; }
.verzeichnis a { display: grid; grid-template-columns: 2.4em 1fr auto 18px; align-items: baseline; gap: 12px; padding: clamp(7px, 1.25vh, 13px) 4px; text-decoration: none; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); transition: padding-left .3s var(--legen), background-color .2s; }
.verzeichnis a:last-child { border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
/* zehnte Zeile: der freie Stellplatz für Werbepartner, öffnet das Anfrage-Formular */
.verzeichnis .werbezeile { border-top-style: dashed; border-bottom-style: dashed; }
.verzeichnis .werbezeile em { color: var(--gelb); }
.verzeichnis .werbezeile b { color: var(--gelb); }
.verzeichnis b { font: 500 12px var(--technik); letter-spacing: .1em; color: var(--staub); }
.verzeichnis span { font: 700 clamp(16px, 1.45vw, 21px)/1.2 var(--struktur); }
.verzeichnis em { font: 500 11px var(--technik); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--staub); }
.verzeichnis__bild { display: none; }
.verzeichnis .pfeil { opacity: 0; transform: translateX(-8px); transition: opacity .2s, transform .3s var(--legen); align-self: center; }
.verzeichnis a:hover, .verzeichnis a:focus-visible, .verzeichnis a.dran { padding-left: 14px; background: linear-gradient(90deg, color-mix(in srgb, var(--f, var(--gelb)) 20%, transparent), transparent 70%); }
.verzeichnis a:hover b, .verzeichnis a:focus-visible b, .verzeichnis a.dran b { color: var(--f, var(--gelb)); }
.verzeichnis a:hover .pfeil, .verzeichnis a:focus-visible .pfeil, .verzeichnis a.dran .pfeil { opacity: 1; transform: none; }
/* Hover Image Reveal (Vorlage OriginKit, übertragen in js/verzeichnis.js): Name rollt, andere Zeilen treten zurück,
   eine Bildkarte folgt dem Zeiger und schiebt die Vorschaubilder senkrecht durch */
.verzeichnis a { transition: padding-left .3s var(--legen), background-color .2s, opacity .25s; }
.verzeichnis.belegt a:not(.dran) { opacity: .38; }
.rolle { display: block; overflow: hidden; }
.rolle__band { position: relative; display: block; transition: transform .55s cubic-bezier(.25, 1, .3, 1); }
.rolle__band span { display: block; font: inherit; }
.rolle__band span + span { position: absolute; top: 100%; left: 0; width: 100%; color: var(--f, var(--gelb)); }
.verzeichnis a.dran .rolle__band { transform: translate3d(0, -100%, 0); }
.schau { position: fixed; z-index: 45; left: 0; top: 0; width: 340px; height: 212px; overflow: hidden; border-radius: 4px; pointer-events: none; opacity: 0; scale: .92; background: var(--beton);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .14), 0 40px 80px -24px rgb(0 0 0 / .8); transition: opacity .3s, scale .45s cubic-bezier(.25, 1, .3, 1), height .45s cubic-bezier(.25, 1, .3, 1); will-change: translate; }
.schau.da { opacity: 1; scale: 1; }
.schau__lage { position: absolute; inset: 0; overflow: hidden; transform: translate3d(0, 100%, 0); transition: transform .55s cubic-bezier(.25, 1, .3, 1); }
.schau__lage img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- Rangliste „Heiß gelaufen“: die drei meistgespielten Spiele
   Wärmeanzeige je Spiel: Strichskala in der Farbe des Spiels, Länge im Verhältnis zum Spitzenreiter. Füllt sich, sobald das Startbild steht. */
.rang { display: grid; gap: 5px; }
.rang[hidden] { display: none; }
.rang__kopf { display: flex; align-items: center; gap: 8px; font: 500 10px/1.4 var(--technik); letter-spacing: .14em; text-transform: uppercase; color: var(--staub); }
.rang__kopf i { width: 6px; height: 6px; border-radius: 50%; background: #ff6a2b; box-shadow: 0 0 8px #ff6a2b; animation: rang-glut 2.6s ease-in-out infinite; }
.rang__kopf b { font-weight: 700; color: var(--tinte); }
.rang__kopf span::before { content: "· "; }
@keyframes rang-glut { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.rang__liste { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }
.rang a { display: grid; grid-template-columns: 1.3em minmax(0, 9.5em) minmax(40px, 1fr) 2.6em; align-items: center; gap: 10px; padding: 3px 4px; text-decoration: none; transition: background-color .2s; }
.rang a b { font: 500 11px var(--technik); color: var(--f, var(--gelb)); }
.rang a span { font: 600 13px/1.3 var(--struktur); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rang a em { font: 500 11px var(--technik); font-style: normal; font-variant-numeric: tabular-nums; text-align: right; color: var(--staub); }
.rang__waerme { position: relative; height: 7px; background: repeating-linear-gradient(90deg, color-mix(in srgb, currentColor 16%, transparent) 0 3px, transparent 3px 6px); }
.rang__waerme::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--f, var(--gelb)) 0 3px, transparent 3px 6px); clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--legen) .5s; }
.bild--start.aktiv .rang__waerme::after { clip-path: inset(0 calc(100% - var(--anteil, 1) * 100%) 0 0); }
.rang li:first-child .rang__waerme::after { filter: drop-shadow(0 0 4px var(--f, var(--gelb))); }
.rang li:nth-child(2) .rang__waerme::after { transition-delay: .65s; } .rang li:nth-child(3) .rang__waerme::after { transition-delay: .8s; }
.rang a:hover, .rang a:focus-visible { background: linear-gradient(90deg, color-mix(in srgb, var(--f, var(--gelb)) 18%, transparent), transparent 80%); }
.rang a:hover em, .rang a:focus-visible em { color: var(--f, var(--gelb)); }
/* Flache Fenster (Laptop mit Leisten): Rangliste als eine Zeile mit den drei Namen statt drei Zeilen mit Skala */
@media (min-width: 821px) and (max-height: 700px) {
  .rang { gap: 3px; }
  .rang__liste { display: flex; gap: 16px; min-width: 0; overflow: hidden; }
  .rang li { flex: 0 1 auto; min-width: 0; } .rang li:first-child { flex: none; }
  .rang a { display: flex; align-items: baseline; gap: 5px; padding: 0 4px; }
  .rang a span { font-size: 12.5px; }
  .rang__waerme, .rang li:not(:first-child) em { display: none; }
}
/* flache Fenster: Rangliste bleibt, dafür rücken die Zeilen des Verzeichnisses enger */
@media (min-width: 821px) and (max-height: 610px) { .verzeichnis a { padding-top: 4px; padding-bottom: 4px; } .rechts { gap: 8px; } }

/* ---------------------------------------------------------------- Lichtschranke am Tor: Besuche als Rollenzählwerk */
.schranke { display: flex; align-items: center; gap: 14px; margin-top: clamp(2px, 1vh, 10px); }
.schranke__auge { position: relative; width: 12px; height: 12px; flex: none; }
.schranke__auge i { position: absolute; inset: 0; border-radius: 50%; background: #ff4a3d; box-shadow: 0 0 10px #ff4a3d; }
.schranke__auge::after { content: ""; position: absolute; left: 100%; top: 50%; width: 22px; height: 1px; background: linear-gradient(90deg, #ff4a3d, transparent); animation: schranke-blick 3.2s ease-in-out infinite; transform-origin: left; }
@keyframes schranke-blick { 0%, 100% { opacity: .9; transform: scaleX(1); } 50% { opacity: .35; transform: scaleX(.5); } }
.schranke__rollen { display: flex; gap: 3px; font: 800 clamp(22px, 2.1vw, 32px)/1.2 var(--wucht); font-stretch: 72%; color: var(--gelb); }
.schranke__rollen > span { display: block; width: .82em; height: 1.2em; overflow: hidden; text-align: center; border-radius: 2px;
  background: linear-gradient(#07080a, #1a1d24 45%, #1a1d24 55%, #07080a); box-shadow: inset 0 0 0 1px var(--fuge); }
.schranke__rollen > span.leer { color: color-mix(in srgb, var(--gelb) 30%, transparent); }
.schranke__rollen i { display: block; font-style: normal; transform: translate3d(0, 0, 0); transition: transform 1.9s var(--rollen); transition-delay: var(--verzug, 0ms); }
.schranke__rollen i b { display: block; height: 1.2em; font-weight: inherit; }
.schranke.zaehlt .schranke__rollen i { transform: translate3d(0, calc(var(--z) * -1.2em), 0); }
.schranke__text { display: grid; font: 500 11px/1.5 var(--technik); letter-spacing: .12em; text-transform: uppercase; color: var(--staub); }
.schranke__text b { font-weight: 600; color: var(--kreide); }

/* ---------------------------------------------------------------- AI Media Halle */
.bild__grund--leer { background: radial-gradient(80% 90% at 85% 10%, color-mix(in srgb, var(--rosa) 20%, transparent), transparent 60%), radial-gradient(60% 70% at 100% 100%, color-mix(in srgb, var(--gelb) 10%, transparent), transparent 60%), var(--halle); }
.bild__grund--leer::after { display: none; }
.neon { font: 800 min(clamp(40px, 6.2vw, 104px), 15.5cqi)/1 var(--struktur); letter-spacing: .04em; text-transform: uppercase; display: flex; flex-wrap: wrap; gap: 0 .28em; }
.neon__ai { color: #fff; }
.neon__media { color: var(--rosa); filter: drop-shadow(0 0 .3em color-mix(in srgb, var(--rosa) 50%, transparent)); }
.neon__halle { color: var(--gelb); filter: drop-shadow(0 0 .25em color-mix(in srgb, var(--gelb) 36%, transparent)); }
.bild--aimh .knopf--haupt { background: var(--gelb); color: #101114; }
.spalte { justify-self: end; width: min(100%, 480px); display: grid; gap: clamp(14px, 2.4vh, 26px); align-content: center; }
.leistungen { display: grid; }
/* Stellplatz frei: ein leeres Tor mit Bodenmarkierung, wartet auf einen Werbepartner */
.stellplatz { position: relative; display: grid; gap: 8px; justify-items: start; padding: 18px 20px 20px; border: 1px dashed color-mix(in srgb, var(--gelb) 55%, transparent);
  background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--gelb) 7%, transparent) 0 12px, transparent 12px 24px); }
.stellplatz__schild { display: flex; font: 700 11px var(--technik); letter-spacing: .16em; text-transform: uppercase; margin: -30px 0 4px -6px; }
.stellplatz__schild span { padding: 6px 10px 5px; background: var(--gelb); color: #101114; }
.stellplatz__schild span + span { background: var(--halle); color: var(--gelb); box-shadow: inset 0 0 0 1px var(--gelb); }
.stellplatz h3 { font: 700 20px/1.25 var(--struktur); }
.stellplatz p:not(.stellplatz__schild) { color: var(--staub); font-size: 15px; max-width: 42ch; }
.stellplatz .knopf { min-height: 44px; padding: 0 18px; font-size: 14px; margin-top: 4px; }
.leistungen li { display: grid; grid-template-columns: 2.6em 1fr; gap: 2px 12px; padding: clamp(10px, 1.7vh, 18px) 0; border-top: 1px solid var(--fuge); }
.leistungen li:last-child { border-bottom: 1px solid var(--fuge); }
.leistungen span { grid-row: span 2; font: 600 12px/1.9 var(--technik); letter-spacing: .14em; color: var(--rosa); }
.leistungen h3 { font: 700 20px/1.25 var(--struktur); }
.leistungen p { color: var(--staub); font-size: 15px; }
.leistungen a, .klein a { text-underline-offset: .2em; }

/* ---------------------------------------------------------------- Steuerleiste */
.leiste { display: none; }
.js .leiste { position: fixed; inset: auto 0 0 0; z-index: 50; height: var(--fuss); padding: 0 var(--seite); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; color: var(--chrom); transition: color .5s, opacity .6s; }
.leiste__pfeile { display: flex; align-items: center; gap: 10px; }
.pfeilknopf { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 36%, transparent); transition: background-color var(--ui), color var(--ui), transform var(--ui) var(--legen), opacity .3s; }
.pfeilknopf:hover { background: var(--chrom-akzent); color: var(--chrom-auf); box-shadow: none; }
.pfeilknopf:active { transform: scale(.94); }
.pfeilknopf:disabled { opacity: .28; pointer-events: none; }
.pfeilknopf .pfeil { transition: none; }
.leiste__stand { display: flex; align-items: baseline; gap: 6px; margin-left: 14px; font: 500 12px var(--technik); letter-spacing: .12em; }
.leiste__stand b { font: 800 22px/1 var(--wucht); font-stretch: 70%; letter-spacing: 0; min-width: 1.3em; }
.leiste__stand span { opacity: .6; }
.leiste__stand em { font-style: normal; text-transform: uppercase; margin-left: 14px; padding-left: 14px; border-left: 1px solid color-mix(in srgb, currentColor 34%, transparent); white-space: nowrap; }
.striche { display: flex; align-items: center; gap: 6px; }
.striche button { position: relative; height: 40px; width: 26px; display: grid; place-items: center; transition: width .5s var(--legen); }
.striche button::before { content: ""; width: 100%; height: 2px; background: currentColor; opacity: .34; transition: opacity .2s, background-color .3s, height .2s; }
.striche button:hover::before { opacity: .9; }
.striche button[aria-current] { width: 58px; }
.striche button[aria-current]::before { opacity: 1; height: 3px; background: var(--chrom-akzent); }
.striche button span { position: absolute; bottom: 100%; left: 50%; translate: -50% 4px; padding: 6px 9px; font: 600 11px var(--technik); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; background: var(--chrom); color: var(--halle); opacity: 0; pointer-events: none; transition: opacity .15s, translate .2s var(--legen); }
.striche button:hover span, .striche button:focus-visible span { opacity: 1; translate: -50% 0; }
.leiste__recht { justify-self: end; display: flex; align-items: center; gap: 18px; font-size: 12px; opacity: .78; white-space: nowrap; }
.leiste__recht a { text-underline-offset: .25em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.leiste__recht a:hover { text-decoration-color: currentColor; }
@media (max-width: 1360px) { .leiste__ki { display: none; } }
/* schmale Rechner: ohne den Namen des Bilds, sonst schob die Leiste „Datenschutz“ über den Rand */
@media (min-width: 821px) and (max-width: 1040px) { .leiste__stand em { display: none; } .js .leiste { gap: 16px; } }

/* ---------------------------------------------------------------- Schmal: Bild oben, Text unten */
@media (max-width: 820px) {
  .bild__grund img, .bild__grund video, [data-spiel] .bild__grund img { left: 0; width: 100%; height: 56%; object-position: 70% 40%; }
  .bild__grund::after { background: linear-gradient(0deg, var(--welt) 0%, var(--welt) 44%, color-mix(in srgb, var(--welt) 70%, transparent) 56%, transparent 78%), linear-gradient(180deg, color-mix(in srgb, var(--welt) 75%, transparent), transparent 16%); }
  .bild__inhalt { grid-template-columns: minmax(0, 1fr); align-content: end; align-items: end; gap: 16px; padding-bottom: 10px; }
  .bild__text { gap: 10px; }
  .bild__kenn { display: none; }
  .betrieb { margin-left: 0; font-size: 11px; flex-basis: 100%; }
  .stimme { padding-top: 10px; gap: 4px 14px; }
  .stimme__zahl { flex-basis: 100%; order: 3; font-size: 11px; }
  .lichter button { width: 26px; }
  .stimme__zettel { font-size: 12.5px; }
  .bild__zeile { font-size: 17px; }
  .bild .bild__titel { font-size: min(54px, calc(100cqi / (var(--zeichen, 10) * var(--fz)))); }
  .bild--start .bild__titel { font-size: min(76px, calc(100cqi / (var(--zeichen, 10) * var(--fz)))); }
  .bild__beschreibung { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; }
  /* Video auf dem Handy: ein Abspielknopf über dem Text (rundes Standbild mit Dreieck, daneben die Beschriftung).
     Tippen öffnet das Kino im Vollbild; im Bild selbst läuft nichts (haupt.js spielt schmal nur im Kino).
     Vorher: Kachel in der Ecke (zu klein), dann Streifen über die ganze Breite (verdeckte das Spielbild).
     Er steht fest oben links unter dem Kopf, nicht im Textfluss: bei langen Texten auf schmalen Handys
     (Stage Kings, 360 px breit) schob der Text ihn sonst in den Kopf. */
  .fenster:not(.kino) { position: absolute; top: 10px; left: var(--rand); z-index: 1; width: auto; height: auto; aspect-ratio: auto; margin: 0; display: inline-flex; align-items: center; gap: 10px; padding: 4px 16px 4px 4px; border-radius: 999px;
    background: color-mix(in srgb, var(--welt) 78%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tinte) 30%, transparent), 0 14px 30px -16px rgb(0 0 0 / .7); }
  .fenster:not(.kino) .fenster__bild { flex: none; width: 44px; height: 44px; aspect-ratio: auto; border-radius: 50%; box-shadow: 0 0 0 2px var(--akzent); cursor: pointer; }
  .fenster:not(.kino) .fenster__bild video, .fenster:not(.kino) .fenster__bild::after, .fenster:not(.kino) .fenster__knopf { display: none; }
  .fenster:not(.kino) .fenster__bild::before { content: ""; position: absolute; inset: 0; z-index: 2; background: rgb(0 0 0 / .38) no-repeat 54% 50% / 14px 14px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 0.5 13 7 2 13.5z' fill='%23fff'/%3E%3C/svg%3E"); }
  .fenster:not(.kino) figcaption { font-size: 11px; letter-spacing: .12em; color: var(--tinte); }
  .fenster:not(.kino) .fenster__gross { min-height: 44px; }
  .knopf { min-height: 50px; padding: 0 20px; }
  .leistungen, .werkstatt p, .weiter { display: none; }
  /* Verzeichnis der Spiele: eine Leiste zum Wischen, je Spiel eine Karte mit Vorschaubild (Bilder setzt js/verzeichnis.js) */
  .rechts { display: contents; }
  .verzeichnis { display: flex; justify-self: stretch; width: auto; max-height: none; gap: 10px; margin: 0 calc(var(--rand) * -1); padding: 2px var(--rand) 2px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-left: var(--rand); scrollbar-width: none; }
  .verzeichnis::-webkit-scrollbar { display: none; }
  .verzeichnis a, .verzeichnis a:last-child, .verzeichnis .werbezeile { flex: none; width: 150px; grid-template-columns: auto minmax(0, 1fr); gap: 5px 7px; padding: 0; border: 0; scroll-snap-align: start; }
  .verzeichnis a:hover, .verzeichnis a:focus-visible, .verzeichnis a.dran { padding-left: 0; background: none; }
  .verzeichnis__bild { display: block; grid-column: 1 / -1; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; background: color-mix(in srgb, var(--f, var(--gelb)) 22%, #15161b); box-shadow: 0 0 0 1px color-mix(in srgb, var(--kreide) 16%, transparent); }
  .verzeichnis .werbezeile .verzeichnis__bild { box-shadow: 0 0 0 1px color-mix(in srgb, var(--gelb) 60%, transparent); }
  .verzeichnis b { font-size: 10.5px; color: var(--f, var(--gelb)); }
  .verzeichnis span { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .verzeichnis em, .verzeichnis .pfeil { display: none; }
  .verzeichnis.belegt a:not(.dran) { opacity: 1; }

  .patchstand ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .patchstand ul { gap: 0 14px; }
  .patchstand a { font-size: 11.5px; padding: 3px 0; gap: 6px; }
  .patchstand a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .patchstand time { font-size: 10px; letter-spacing: 0; }
  .kennzeile .tag { padding: 3px 7px 2px; letter-spacing: .08em; }
  .spalte { justify-self: stretch; width: 100%; order: 2; }
  .stellplatz { padding: 14px 14px 14px; margin-top: 10px; }
  .stellplatz p:not(.stellplatz__schild) { display: none; }
  .bild--aimh .bild__zeile { font-size: 16px; }
  .bild--aimh .kennzeile { display: none; }             /* lag sonst unter der Marke im Kopf */
  /* Kennzeile liegt am Handy über dem Motiv: mit Grund hinterlegen, damit sie lesbar bleibt */
  .bild--spiel .kennzeile { width: fit-content; max-width: 100%; margin-left: -8px; padding: 4px 8px; border-radius: 3px; background: color-mix(in srgb, var(--welt) 72%, transparent); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
  .zahlen { gap: 5px; }
  .zahlen div { gap: 5px; padding: 2px 8px 2px 3px; }
  .zahlen dt img { width: 22px; height: 22px; }
  .zahlen dd { font-size: 15px; }
  .zahlen dt span { font-size: 8.5px; letter-spacing: .08em; }
  /* Rangliste schmal: Kopf und darunter eine Zeile mit den drei Namen, ohne Wärmeskala */
  .rang { gap: 2px; min-width: 0; margin-top: -6px; }
  .rang__kopf { font-size: 9px; }
  .rang__liste { display: flex; gap: 12px; min-width: 0; overflow: hidden; }
  .rang li { flex: 0 1 auto; min-width: 0; } .rang li:first-child { flex: none; }
  .rang a { display: flex; align-items: baseline; gap: 4px; padding: 0; }
  .rang a span { font-size: 11.5px; }
  .rang__waerme, .rang li:not(:first-child) em { display: none; }
  .kopf { gap: 12px; }
  .kopf__nav { padding: 3px; letter-spacing: .06em; font-size: 11px; }
  .kopf__nav a { padding: 8px 8px; gap: 0; }
  .kopf__nav a::before { display: none; }
  .bild__zeile--fein .fein { font-size: 20px; }

  .js .leiste { grid-template-columns: auto 1fr; gap: 10px; }
  .striche { display: none; }
  .leiste__stand em { display: none; }
  .leiste__recht { gap: 12px; font-size: 11px; }
  .pfeilknopf { width: 44px; height: 44px; }
}
/* Mittelhohe Handys (z. B. 375 × 667): Beschreibung und Zahlen weichen, das Video oben bleibt. Erst unter 600 px
   Höhe verschwindet es. */
@media (max-width: 820px) and (max-height: 700px) {
  .bild__beschreibung, .stimme__zahl, .zahlen { display: none; }
  /* Abspielknopf kleiner, Knöpfe und Zeile knapper, damit der Text nicht bis unter den Abspielknopf reicht */
  .fenster:not(.kino) { top: 8px; padding: 3px 14px 3px 3px; }
  .fenster:not(.kino) .fenster__bild { width: 38px; height: 38px; }
  .fenster:not(.kino) .fenster__gross { min-height: 38px; }
  .bild--spiel .knopf { min-height: 46px; padding: 0 16px; gap: 10px; font-size: 14px; }
  .bild--spiel .bild__zeile { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .bild__text { gap: 8px; }
  .schranke__text b { display: none; }
}
@media (max-width: 820px) and (max-height: 600px) { .fenster { display: none; } }
@media (max-width: 340px) and (max-height: 700px) { .bild--spiel .bild__zeile { display: none; } }
/* sehr schmal: die Fußleiste lief sonst über den Rand (Datenschutz war abgeschnitten) */
@media (max-width: 340px) { .leiste__stand span { display: none; } .leiste__stand { margin-left: 8px; } .leiste__pfeile { gap: 6px; } .leiste__recht { gap: 9px; } }
/* kleine Handys: im Betreiber-Bild weicht die Patch-Übersicht dem Stellplatz; unter 625 px Höhe passt auch der nicht mehr */
@media (max-width: 820px) and (max-height: 700px) { .bild--aimh .patchstand { display: none; } }
@media (max-width: 820px) and (max-height: 625px) { .stellplatz { display: none; } }
/* schmale Handys: lange Texte (Stage Kings) reichten sonst bis an den Abspielknopf oben */
@media (max-width: 380px) and (max-height: 800px) { .bild--spiel .bild__beschreibung { display: none; } }
/* Sehr niedrig (Handy quer): nur das Nötigste – Titel, Zeile, Knöpfe, Stimmzeile */
@media (max-height: 520px) {
  :root { --kopf: 52px; --fuss: 56px; }
  .bild__inhalt { grid-template-columns: minmax(0, 1fr); align-items: end; padding-top: 4px; padding-bottom: 6px; }
  .bild__text { gap: 6px; max-width: 70%; }
  .bild__beschreibung, .bild__kenn, .zahlen, .schranke, .verzeichnis, .rang, .leistungen, .spalte, .fenster, .stimme__zahl, .klein, .werkstatt, .weiter, .patchstand, .kennzeile .tag { display: none; }
  .bild .bild__titel { font-size: min(44px, calc(100cqi / (var(--zeichen, 10) * var(--fz)))); text-wrap: nowrap; }
  .neon { font-size: 34px; }
  .bild__zeile { font-size: 15px; max-width: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .knopf { min-height: 44px; padding: 0 18px; }
  .stimme { padding-top: 6px; margin-top: 0; flex-wrap: nowrap; }
  .wunschknopf { min-height: 40px; }
  .pfeilknopf { width: 40px; height: 40px; }
}
@media (min-width: 821px) and (max-height: 840px) { .bild__beschreibung { display: none; } }
@media (min-width: 821px) and (max-height: 700px) { .patchstand, .weiter { display: none; } }
@media (min-width: 821px) and (max-height: 720px) { .stellplatz p:not(.stellplatz__schild) { display: none; } .leistungen p { display: none; } }
@media (min-width: 821px) and (max-height: 660px) { .bild__kenn { display: none; } .bild__titel { line-height: .84; } }

/* ---------------------------------------------------------------- Impressum und Datenschutz */
.recht__inhalt { max-width: 780px; margin: 0 auto; padding: calc(var(--kopf) + 56px) var(--rand) 90px; }
.recht__inhalt h1 { font: 900 clamp(44px, 8vw, 96px)/.9 var(--wucht); font-stretch: 60%; text-transform: uppercase; margin: 14px 0 34px; overflow-wrap: anywhere; }
.recht__inhalt h2 { font: 700 22px/1.25 var(--struktur); margin: 44px 0 14px; color: var(--gelb); }
.recht__inhalt p, .recht__inhalt li { color: color-mix(in srgb, var(--kreide) 86%, transparent); }
.recht__inhalt p { margin: 0 0 14px; } .recht__inhalt ul { list-style: square; padding-left: 1.2em; margin: 0 0 14px; }
.recht__inhalt a:not(.knopf) { color: var(--torblau); text-underline-offset: .2em; }
.recht__inhalt code { font: 500 .9em var(--technik); background: var(--beton); padding: 2px 6px; }
.recht__inhalt .betreiber { border-left: 4px solid var(--rosa); background: var(--beton); padding: 12px 16px; }
.recht__inhalt .klein { font-size: 15px; }

.recht .kopf { position: fixed; background: color-mix(in srgb, var(--halle) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.fuss { padding: 26px var(--rand) 32px; display: flex; flex-wrap: wrap; gap: 10px 30px; align-items: baseline; border-top: 1px solid var(--fuge); font-size: 14px; color: var(--staub); }
.fuss__marke { font: 800 11px var(--struktur); letter-spacing: .3em; color: var(--kreide); }
.fuss__hinweis { margin-right: auto; } .fuss__nav { display: flex; gap: 20px; } .fuss__nav a { text-underline-offset: .25em; }
.recht { --akzent: var(--gelb); --auf-akzent: #101114; }
.recht__inhalt a:not(.knopf) { color: var(--gelb); }

@media print { .vorfilm, .kopf, .leiste { display: none !important; } }

/* ---------------------------------------------------------------- Weniger Bewegung */
@media (prefers-reduced-motion: reduce) {
  .rang__kopf i { animation: none; } .rang__waerme::after { transition: none; }
  .knopf > span { text-shadow: none; transition: none; } .knopf:not(.knopf--bald):hover > span { transform: none; }
  .knopf:hover .pfeil, .zahlen img, .bild--start.aktiv .zahlen img, .zahlen div:hover img, .tonknopf:hover .tonknopf__balken i { animation: none; }
  .kopf__nav.bereit::before, .kopf__nav.bereit::after, .knopf--neben::before, .knopf--leise::before { transition: none; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
