/* =====================================================================
   DOGFATHER PODCAST STUDIO — Oberfläche

   Farben, Schriften und Abstände kommen aus derselben Welt wie
   dogfather-universe.com: Babyblau (#8fd9ea) und Lila (#8b5cf6) auf
   fast schwarzem Grund, Poppins für Überschriften, Inter für Fließtext.
   Auf der Hauptseite sind die beiden Schriften nur NAMENTLICH gesetzt
   und werden nirgends geladen — dort rendert in Wahrheit Segoe UI. Hier
   liegen sie mit dabei; damit sieht die Marke zum ersten Mal so aus,
   wie sie gemeint war, und zwar ohne einen einzigen Aufruf zu Google.

   AUGENSCHONEND ist keine Geschmacksfrage, sondern Vorgabe:
     · kein reines Weiß auf reinem Schwarz — Text ist #e7edf4 auf #0b0e13
     · keine Dauerbewegung; alles Blinkende hört nach Sekunden auf
     · `prefers-reduced-motion` schaltet Bewegung komplett ab
     · Bedienflächen mindestens 44 px hoch (Daumen, nicht Mauszeiger)
     · Fokus ist IMMER sichtbar — auch für die, die mit der Tastatur
       arbeiten
   ===================================================================== */

/* ---------- Schriften (lokal, nichts wird nachgeladen) ---------- */
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap;
  src: url(/schriften/poppins-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap;
  src: url(/schriften/poppins-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap;
  src: url(/schriften/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap;
  src: url(/schriften/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap;
  src: url(/schriften/inter-latin-700-normal.woff2) format("woff2"); }

/* Die Schriften der BÜHNE. `font-display: block` ist hier richtig und
   auf der Oberfläche falsch: Ein Neon-Schild, das für eine Sekunde in
   Arial erscheint und dann umspringt, sieht man im Stream. Ein Menü,
   das eine Sekunde unsichtbar ist, ärgert dagegen sofort. */
@font-face { font-family: "Bebas Neue"; font-display: block;
  src: url(/schriften/bebas-neue-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Monoton"; font-display: block;
  src: url(/schriften/monoton-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Yellowtail"; font-display: block;
  src: url(/schriften/yellowtail-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: block;
  src: url(/schriften/montserrat-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600 700; font-display: block;
  src: url(/schriften/montserrat-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: block;
  src: url(/schriften/montserrat-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 900; font-display: block;
  src: url(/schriften/montserrat-latin-900-normal.woff2) format("woff2"); }

:root {
  --grund: #0b0e13;
  --grund-2: #11151c;
  --karte: #161b23;
  --karte-hoch: #1d232d;
  --linie: #28303c;
  --linie-hell: #3a4453;
  --text: #e7edf4;
  --text-leise: #98a5b6;
  --marke: #8fd9ea;
  --marke-tief: #5fb6cc;
  --marke-2: #8b5cf6;
  --auf-marke: #08131a;
  --gut: #52d1a0;
  --achtung: #f0b354;
  --schlecht: #ef7a86;
  --rund: 14px;
  --rund-gross: 20px;
  --schatten: 0 18px 46px -22px rgba(0, 0, 0, .9);
  --kopf-schrift: "Poppins", "Segoe UI", system-ui, sans-serif;
  --text-schrift: "Inter", "Segoe UI", system-ui, sans-serif;
  --tempo: .18s;
}

/* Wer Bewegung nicht verträgt, bekommt keine. Über eine Variable, damit
   nicht an dreißig Stellen ein eigener @media-Block stehen muss. */
@media (prefers-reduced-motion: reduce) {
  :root { --tempo: 0s; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--grund);
  color: var(--text);
  font-family: var(--text-schrift);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, canvas, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--marke); text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--kopf-schrift); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -.01em; }

/* Fokus. Einheitlich, kräftig, überall sichtbar — auch auf hellen
   Flächen. `:focus-visible` statt `:focus`, damit ein Mausklick keinen
   Rahmen hinterlässt, die Tastatur aber immer einen bekommt. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--marke);
  outline-offset: 2px;
  border-radius: 6px;
}

.nur-vorleser {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ─────────────────────────── Bausteine ─────────────────────────── */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--linie); border-radius: var(--rund);
  background: var(--karte-hoch); color: var(--text);
  font-family: var(--kopf-schrift); font-weight: 600; font-size: 14.5px;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background var(--tempo), border-color var(--tempo), transform var(--tempo);
}
.knopf:hover { background: #252d39; border-color: var(--linie-hell); }
.knopf:active { transform: translateY(1px); }
.knopf[disabled] { opacity: .45; cursor: not-allowed; }
.knopf.haupt {
  background: linear-gradient(135deg, var(--marke), #7cc7de);
  color: var(--auf-marke); border-color: transparent; font-weight: 700;
  box-shadow: 0 10px 28px -14px rgba(143, 217, 234, .85);
}
.knopf.haupt:hover { background: linear-gradient(135deg, #a3e2f0, var(--marke)); }
.knopf.zweit { background: transparent; }
.knopf.gross { min-height: 54px; padding: 14px 22px; font-size: 16px; border-radius: var(--rund-gross); }
.knopf.breit { width: 100%; }
.knopf.an { background: rgba(143, 217, 234, .16); border-color: var(--marke-tief); color: #cdeef8; }
.knopf.warn.an { background: rgba(239, 122, 134, .18); border-color: #b9566a; color: #ffd9de; }

.feld { display: block; margin: 0 0 14px; }
.feld > .name {
  display: block; margin: 0 0 6px;
  font-family: var(--kopf-schrift); font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-leise);
}
input[type=text], input[type=password], select, textarea {
  width: 100%; min-height: 44px;
  background: #0e1218; border: 1px solid var(--linie); border-radius: var(--rund);
  padding: 10px 13px; outline: none;
  transition: border-color var(--tempo), background var(--tempo);
}
/* Platzhalter: #67748a ergab auf #0e1218 nur 3,9:1 Kontrast und lag
   damit unter den 4,5:1, die WCAG fuer Text verlangt. #7c899e kommt auf
   5,3:1 -- nachgerechnet, nicht geschaetzt. Ein Platzhalter, den man
   nicht lesen kann, ist ein leeres Feld ohne Erklaerung. */
input[type=text]::placeholder, input[type=password]::placeholder { color: #7c899e; }
input[type=text]:focus, input[type=password]:focus, select:focus, textarea:focus { border-color: var(--marke-tief); background: #101620; }
input[readonly] { color: var(--text-leise); }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-leise) 50%), linear-gradient(135deg, var(--text-leise) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
  padding-right: 38px;
}

/* Schieberegler. Eigener Aufbau, weil die Voreinstellung der Browser
   auf Dunkel kaum zu sehen ist und der Griff zu klein für Finger. */
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: #222a35; }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: #222a35; }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -8px;
  border-radius: 50%; background: var(--marke); border: 2px solid #0b0e13; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}
input[type=range]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--marke);
  border: 2px solid #0b0e13; cursor: pointer;
}

.haken {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  padding: 8px 12px; border-radius: var(--rund);
  background: var(--karte-hoch); border: 1px solid var(--linie);
  cursor: pointer; font-size: 14px; font-weight: 500;
}
.haken:hover { border-color: var(--linie-hell); }
.haken input { width: 18px; height: 18px; accent-color: var(--marke); flex: 0 0 auto; }

.karte {
  background: var(--karte); border: 1px solid var(--linie);
  border-radius: var(--rund-gross); padding: 22px; box-shadow: var(--schatten);
}
.marke-pille {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(143, 217, 234, .1); border: 1px solid rgba(143, 217, 234, .3);
  font-size: 13px; font-weight: 600; color: #bfe9f4;
}
.punkt { width: 9px; height: 9px; border-radius: 50%; background: var(--text-leise); flex: 0 0 auto; }
.punkt.gut { background: var(--gut); box-shadow: 0 0 10px rgba(82, 209, 160, .8); }
.punkt.achtung { background: var(--achtung); box-shadow: 0 0 10px rgba(240, 179, 84, .7); }
.punkt.schlecht { background: var(--schlecht); box-shadow: 0 0 10px rgba(239, 122, 134, .7); }
.punkt.live { background: #ff5a6e; box-shadow: 0 0 12px rgba(255, 90, 110, .9); animation: pochen 2s ease-in-out infinite; }
@keyframes pochen { 50% { opacity: .35; } }

.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drei { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.reihe { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.reihe > .waechst { flex: 1 1 140px; min-width: 0; }
.leise { color: var(--text-leise); }
.klein { font-size: 13px; }
.abstand { margin-top: 18px; }

.hinweis {
  font-size: 13.5px; line-height: 1.6; color: #c4cede;
  background: var(--karte-hoch); border: 1px solid var(--linie);
  border-left: 3px solid var(--marke-tief);
  border-radius: var(--rund); padding: 13px 15px;
}
.hinweis ol, .hinweis ul { margin: 8px 0 0; padding-left: 20px; }
.hinweis li + li { margin-top: 6px; }
.hinweis code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em;
  background: rgba(143, 217, 234, .12); padding: 1px 6px; border-radius: 5px; color: #cdeef8;
}
.warnung { border-left-color: var(--achtung); background: rgba(240, 179, 84, .07); }
.fehler-text { color: var(--schlecht); font-size: 13.5px; min-height: 20px; }

/* ══════════════════════ Startseite ══════════════════════ */
.start {
  min-height: 100vh; display: grid; place-items: center; padding: 28px 18px 48px;
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(143, 217, 234, .14), transparent 62%),
    radial-gradient(900px 620px at 108% 106%, rgba(139, 92, 246, .14), transparent 60%),
    var(--grund);
}
.start-innen { width: 100%; max-width: 1140px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.start h1 {
  font-size: clamp(38px, 5.4vw, 62px); letter-spacing: -.025em; margin: 16px 0 14px;
}
.start h1 .heben {
  background: linear-gradient(120deg, var(--marke), var(--marke-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.start .aufhaenger { font-size: 17px; color: #bdc8d8; max-width: 540px; margin: 0; }
.merkmale { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.merkmal {
  background: rgba(255, 255, 255, .025); border: 1px solid var(--linie);
  border-radius: var(--rund); padding: 13px 15px; font-size: 13.5px; line-height: 1.5; color: #b9c4d4;
}
.merkmal b { display: block; color: var(--text); font-family: var(--kopf-schrift); font-size: 14.5px; margin-bottom: 3px; }

.handy-rahmen {
  width: min(330px, 78vw); aspect-ratio: 9 / 16; margin: 0 auto;
  border-radius: 34px; border: 9px solid #141922; background: #000; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(143, 217, 234, .32), var(--schatten);
}
.handy-rahmen canvas { width: 100%; height: 100%; }

.trenner { display: flex; align-items: center; gap: 12px; color: var(--text-leise); font-size: 12.5px; margin: 18px 0; }
.trenner::before, .trenner::after { content: ""; flex: 1; height: 1px; background: var(--linie); }

.code-feld { text-transform: uppercase; letter-spacing: .28em; font-weight: 700; font-family: var(--kopf-schrift); }

.fuss { margin-top: 30px; font-size: 13px; color: var(--text-leise); text-align: center; }
.fuss a { color: #a9d9e6; }

@media (max-width: 900px) {
  .start-innen { grid-template-columns: 1fr; gap: 30px; }
  .start-bild { order: -1; }
  .merkmale { grid-template-columns: 1fr; }
}

/* ══════════════════════ Studio ══════════════════════ */
.studio { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }

.kopfleiste {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 14px; border-bottom: 1px solid var(--linie);
  background: rgba(11, 14, 19, .94); backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 20;
}
.wortmarke {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--kopf-schrift); font-weight: 700; font-size: 16px; letter-spacing: .01em;
}
.wortmarke img { width: 26px; height: 26px; }
/* Der ganze Schriftzug ist EIN Element.
   Warum das wichtig ist: In einem Flex-Kasten wird jeder zusammenhaengende
   Text zu einem eigenen, anonymen Kaestchen - "DOG", "FATHER" und "STUDIO"
   waeren drei davon, und der `gap` von 9 px stuende dann auch ZWISCHEN den
   Silben. Genau das war am 25.09.2026 im Bildschirmfoto zu sehen:
   "DOG FATHER STUDIO". */
.wortmarke-text { white-space: nowrap; }
.wortmarke-text b { color: var(--marke); font-weight: inherit; }
.dehner { flex: 1 1 auto; }
.kopfleiste .knopf { min-height: 40px; padding: 8px 13px; font-size: 13.5px; }

.buehne-und-pult { display: grid; grid-template-columns: minmax(0, 1fr) 420px; min-height: 0; }
.buehne {
  position: relative; display: grid; place-items: center; padding: 18px; min-height: 0; overflow: hidden;
  background:
    radial-gradient(760px 480px at 50% 38%, rgba(143, 217, 234, .07), transparent 70%),
    repeating-conic-gradient(#0e1218 0 25%, #0b0e13 0 50%) 50% / 26px 26px;
}
.buehne canvas {
  max-width: 100%; max-height: calc(100vh - 110px); width: auto; height: auto;
  border-radius: 14px; background: #000;
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .06);
}
.buehne-fuss {
  position: absolute; left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: space-between; gap: 12px; padding: 0 18px;
  font-size: 12px; color: var(--text-leise); pointer-events: none;
}
.buehne-fuss span { font-variant-numeric: tabular-nums; }

.pult { border-left: 1px solid var(--linie); background: #0e1219; display: grid; grid-template-rows: auto 1fr; min-height: 0; }
.reiter { display: flex; gap: 4px; padding: 10px 10px 0; border-bottom: 1px solid var(--linie); }
.reiter button {
  flex: 1; min-height: 44px; padding: 9px 4px; border: 1px solid transparent; border-bottom: 0;
  border-radius: 12px 12px 0 0; background: none; color: var(--text-leise); cursor: pointer;
  font-family: var(--kopf-schrift); font-weight: 600; font-size: 13.5px;
}
.reiter button[aria-selected="true"] { color: var(--text); background: var(--karte); border-color: var(--linie); }
.tafel { display: none; overflow-y: auto; padding: 4px 16px 40px; }
.tafel[data-offen="ja"] { display: block; }
.block { margin-top: 20px; }
.block > h3 {
  display: flex; align-items: center; gap: 9px; margin: 0 0 10px;
  font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; color: #cbd6e4;
}
.block > h3::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: linear-gradient(var(--marke), var(--marke-2)); }

.designs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.design {
  position: relative; height: 74px; border-radius: var(--rund); border: 2px solid transparent;
  cursor: pointer; padding: 10px; display: flex; align-items: flex-end;
  font-family: var(--kopf-schrift); font-weight: 700; font-size: 13px;
  color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .9); overflow: hidden;
}
.design[aria-pressed="true"] { border-color: var(--marke); }
.design[aria-pressed="true"]::after {
  content: "✓"; position: absolute; top: 6px; right: 9px; font-size: 14px; color: var(--marke);
}

.anordnungen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.anordnung {
  border: 2px solid var(--linie); border-radius: var(--rund); padding: 10px 6px;
  background: var(--karte-hoch); cursor: pointer; text-align: center;
  font-size: 12px; font-weight: 600; color: var(--text); min-height: 74px;
}
.anordnung[aria-pressed="true"] { border-color: var(--marke); background: rgba(143, 217, 234, .1); }
.anordnung i { display: block; margin: 2px auto 7px; border: 2px solid currentColor; border-radius: 3px; opacity: .8; }

.stinger { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.stinger .knopf { font-size: 13px; padding: 12px 8px; }
.stinger .knopf kbd {
  font-family: ui-monospace, monospace; font-size: 10.5px; color: var(--text-leise);
  border: 1px solid var(--linie); border-radius: 4px; padding: 0 4px; margin-right: 4px;
}
.regen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.regen .knopf { font-size: 22px; padding: 10px; }

.linkkasten { display: flex; gap: 8px; }
.linkkasten input { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; }
.linkkasten .knopf { flex: 0 0 auto; }

.pegel { height: 8px; border-radius: 4px; background: #1b222c; overflow: hidden; }
.pegel > i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gut), var(--achtung) 72%, var(--schlecht));
  transition: width .08s linear;
}

.abzeichen {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px;
  background: linear-gradient(135deg, var(--marke), var(--marke-2)); color: var(--auf-marke);
}
.ohne-regie .nur-regie { opacity: .45; pointer-events: none; }

/* ── Aufnahmeraum (der Zwischenschritt vor dem Betreten) ── */
.vorhang {
  position: fixed; inset: 0; z-index: 60; padding: 16px;
  background: rgba(6, 8, 12, .82); backdrop-filter: blur(16px);
  display: grid; place-items: center; overflow-y: auto;
}
.vorhang .karte { width: min(980px, 100%); display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; }
.vorhang h2 { font-size: 30px; margin: 10px 0 4px; }
.spiegel {
  aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden;
  background: repeating-conic-gradient(#1b1f27 0 25%, #151920 0 50%) 50% / 18px 18px;
}
.spiegel canvas { width: 100%; height: 100%; }
@media (max-width: 800px) {
  .vorhang .karte { grid-template-columns: 1fr; padding: 18px; }
  .spiegel { max-height: 42vh; width: min(260px, 70vw); margin: 0 auto; }
}

/* ── Meldung ── */
.meldung {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(16px);
  background: var(--karte-hoch); border: 1px solid var(--linie-hell); color: var(--text);
  padding: 12px 18px; border-radius: var(--rund); font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none; z-index: 99; box-shadow: var(--schatten);
  transition: opacity var(--tempo), transform var(--tempo);
  max-width: min(520px, calc(100vw - 32px));
}
.meldung[data-sichtbar="ja"] { opacity: 1; transform: translateX(-50%); }

/* ── Saubere Ansicht (für die Fensteraufnahme in OBS) ── */
body[data-sauber="ja"] .kopfleiste,
body[data-sauber="ja"] .pult,
body[data-sauber="ja"] .buehne-fuss { display: none; }
body[data-sauber="ja"] .buehne-und-pult { display: block; }
body[data-sauber="ja"] .buehne { height: 100vh; padding: 0; background: #000; }
body[data-sauber="ja"] .buehne canvas { border-radius: 0; box-shadow: none; max-height: 100vh; }

/* ── Handy und Tablet ── */
@media (max-width: 1080px) {
  .buehne-und-pult { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .buehne { padding: 12px; }
  .buehne canvas { max-height: 52vh; }
  .pult { border-left: 0; border-top: 1px solid var(--linie); }
  .tafel { max-height: none; }
}

/* ══════════════════════ OBS-Ausgabe ══════════════════════ */
body.ausgabe { background: transparent; overflow: hidden; }
body.ausgabe canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; object-fit: contain; }
.ton-band {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 5; display: flex; align-items: center; gap: 14px;
  background: rgba(11, 14, 19, .92); border: 1px solid var(--linie-hell);
  border-radius: var(--rund); padding: 10px 14px; font-size: 14px;
  max-width: calc(100vw - 24px);
}
.ton-band[hidden] { display: none; }

/* ══════════════════════ Vorschau aller Designs ══════════════════════ */
.wand { display: flex; flex-wrap: wrap; gap: 20px; padding: 20px; }
.wand figure { margin: 0; }
.wand canvas { height: 520px; border-radius: 14px; box-shadow: var(--schatten); }
.wand figure[data-breit="ja"] canvas { height: 340px; }
.wand figcaption { font-family: var(--kopf-schrift); font-size: 13px; font-weight: 600; margin-top: 8px; color: var(--text-leise); }

.vorschau-hinweis { padding: 12px 20px 0; margin: 0; }

/* ─────────────────── Handy: was sich sonst überlappt ───────────────────
   `.knopf` hat `white-space: nowrap` — richtig für eine Werkzeugleiste,
   falsch für einen Stinger namens „DANKE FÜRS GESCHENK 🎁". Bei 390 px
   Breite steht so ein Knopf in einer Spalte von etwa 165 px und würde
   sonst aus seiner Zelle herauslaufen. Hier darf er umbrechen.

   Und: eine REGEL statt einer Zahl. `minmax(0, 1fr)` erlaubt der Spalte,
   schmaler zu werden als ihr Inhalt — ohne das wächst ein Gitter über
   den Bildschirm hinaus, ganz gleich welche Schwelle man einträgt. Das
   ist die Lehre vom 06.09.2026: Wo es geht, misst man, statt zu rechnen. */
.stinger, .regen, .zwei, .drei, .anordnungen, .designs {
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}
.stinger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.regen, .drei, .anordnungen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.zwei, .designs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stinger .knopf { white-space: normal; line-height: 1.25; text-align: center; }
.marke-pille { max-width: 100%; }
.marke-pille > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 460px) {
  /* Auf sehr schmalen Geräten bekommt jedes Bedienfeld die volle Breite —
     zwei Spalten à 160 px sind zwar bedienbar, aber die Beschriftungen
     brechen dann in drei Zeilen und der Block wird höher als eine Spalte. */
  .zwei, .designs { grid-template-columns: minmax(0, 1fr); }
  .kopfleiste { gap: 8px; padding: 8px 10px; }
  .wortmarke { font-size: 15px; }
  .tafel { padding: 4px 12px 40px; }
  .karte { padding: 16px; border-radius: 16px; }
  .start { padding: 18px 12px 36px; }
}
