/* ================= ACORIGIA · REGIE =================
   Bedienseite im Wald-Look: Rauchglas-Karten mit Bronze-Haarlinie und Eckbeschlägen, Gold nur für das, was auf
   Sendung geht (Übernehmen, Einblenden, laufender Countdown). Bewusst nur dunkel – wie das Studio, in dem sie läuft.
   Tokens kommen aus core/brand.css. */
:root {
  color-scheme: dark;
  --feld: rgba(3, 13, 9, .62);
  --feld-rand: rgba(242, 233, 214, .16);
  --karte-rand: rgba(182, 123, 66, .3);
  --beschlag: rgba(182, 123, 66, .55);
  --warn: #e5a464;
  --kopf-h: 112px;
}
html { background: var(--night); scroll-padding-top: calc(var(--kopf-h) + 12px); }
body {
  min-height: 100vh; min-height: 100dvh;
  background:
    radial-gradient(1100px 620px at 82% -12%, rgba(240, 186, 101, .11), transparent 62%),
    radial-gradient(900px 640px at -12% 108%, rgba(36, 84, 61, .5), transparent 62%),
    var(--night);
  color: var(--ivory); font: 500 15px/1.55 var(--f-ui);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: #05140f; }
canvas.topo {
  position: fixed; inset: 0; width: 100vw; height: 100vh; object-fit: cover; z-index: 0; pointer-events: none; opacity: .7;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 10%, #000 30%, transparent 85%); mask-image: radial-gradient(120% 90% at 70% 10%, #000 30%, transparent 85%);
}
::selection { background: rgba(240, 186, 101, .35); color: var(--ivory); }
code { font: 600 .92em/1 var(--f-mono); color: var(--gold-2); background: rgba(240, 186, 101, .1); padding: 2px 6px; border-radius: 6px; }
.gold { color: var(--gold); }
button { font: inherit; color: inherit; }

/* ================= KOPF ================= */
.leiste {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: linear-gradient(180deg, rgba(5, 20, 15, .97), rgba(5, 20, 15, .9));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(182, 123, 66, .24);
  box-shadow: 0 1px 0 rgba(240, 186, 101, .06), 0 14px 30px rgba(0, 0, 0, .35);
}
.kopf, .reiter { max-width: 1480px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 12px 8px; }
.marke { display: flex; align-items: center; gap: 12px; min-width: 0; }
.marke .zeichen { width: 36px; height: 36px; flex: none; }
.marke .wort { font-size: 16px; line-height: 0; }
.regie-name { font: 700 12px/1 var(--f-mono); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); padding: 6px 0 6px 14px; border-left: 1px solid rgba(182, 123, 66, .5); white-space: nowrap; }
.kopf-rechts { display: flex; align-items: center; gap: 10px; min-width: 0; }
.status, .ich {
  display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line-2); background: rgba(3, 13, 9, .55);
  font: 700 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lichen);
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(240, 186, 101, .18); animation: blink 1.2s ease-in-out infinite; }
.status[data-zustand="ok"] { color: var(--mint); }
.status[data-zustand="ok"] i { background: var(--mint); box-shadow: 0 0 0 4px rgba(213, 233, 213, .16); animation-duration: 2.4s; }
.status[data-zustand="aus"] { color: var(--warn); border-color: rgba(229, 164, 100, .45); }
.status[data-zustand="aus"] i { background: var(--warn); box-shadow: none; animation: none; }
.ich b { color: var(--ivory); font-weight: 700; letter-spacing: .1em; }

.reiter { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.reiter::-webkit-scrollbar { display: none; }
.reiter button {
  position: relative; flex: none; height: 44px; padding: 0 16px; border: 0; background: none; cursor: pointer;
  font: 700 12px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--lichen); transition: color .2s;
}
.reiter button::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform .35s var(--ease); }
.reiter button:hover { color: var(--ivory); }
.reiter button[aria-selected="true"] { color: var(--ivory); }
.reiter button[aria-selected="true"]::after { transform: scaleX(1); }
.reiter button:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; border-radius: 8px; }

/* ================= BÜHNE ================= */
.buehne {
  position: relative; z-index: 1; max-width: 1480px; margin: 0 auto;
  padding-block: 24px 56px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 620px); gap: 24px; align-items: start;
}
.buehne.ohne-vorschau { grid-template-columns: minmax(0, 1fr); }
.spalte { min-width: 0; }
.seite { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 18px; align-items: start; }
.seite[hidden] { display: none; }

/* ================= KARTEN ================= */
.karte {
  position: relative; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 20px 20px 18px; border-radius: 22px;
  background: linear-gradient(165deg, rgba(36, 84, 61, .44) 0%, rgba(12, 34, 25, .9) 36%, rgba(17, 24, 20, .94) 100%);
  border: 1px solid var(--karte-rand);
  box-shadow: inset 0 1px 0 rgba(251, 221, 163, .12), 0 2px 0 rgba(0, 0, 0, .22), 0 20px 44px rgba(0, 0, 0, .34);
  transition: border-color .3s, box-shadow .3s;
}
/* Goldkante oben und vier Eckbeschläge – dieselbe Sprache wie die Panels im Stream */
.karte::before { content: ""; position: absolute; left: 26px; right: 26px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(240, 186, 101, .75), transparent); }
.karte::after {
  content: ""; position: absolute; inset: 8px; pointer-events: none; opacity: .9;
  background:
    linear-gradient(var(--beschlag), var(--beschlag)) left top / 12px 1px no-repeat,
    linear-gradient(var(--beschlag), var(--beschlag)) left top / 1px 12px no-repeat,
    linear-gradient(var(--beschlag), var(--beschlag)) right top / 12px 1px no-repeat,
    linear-gradient(var(--beschlag), var(--beschlag)) right top / 1px 12px no-repeat,
    linear-gradient(var(--beschlag), var(--beschlag)) left bottom / 12px 1px no-repeat,
    linear-gradient(var(--beschlag), var(--beschlag)) left bottom / 1px 12px no-repeat,
    linear-gradient(var(--beschlag), var(--beschlag)) right bottom / 12px 1px no-repeat,
    linear-gradient(var(--beschlag), var(--beschlag)) right bottom / 1px 12px no-repeat;
}
.karte > * { position: relative; z-index: 1; }
.karte.geaendert { border-color: rgba(240, 186, 101, .62); box-shadow: inset 0 1px 0 rgba(251, 221, 163, .2), 0 0 0 3px rgba(240, 186, 101, .08), 0 20px 44px rgba(0, 0, 0, .34); }
.karte-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.karte h2 { font: 600 21px/1.15 var(--f-display); letter-spacing: .005em; color: var(--ivory); text-wrap: balance; }
.karte p { color: var(--lichen); text-wrap: pretty; }
.karte p b { color: var(--ivory); }
.wo, .feld-name { font: 700 11px/1.35 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--lichen); }
.offen { display: none; font: 700 10px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--night); background: var(--warn); padding: 5px 8px; border-radius: 6px; }
.karte.geaendert .offen { display: inline-block; }
.karte-fuss { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.tipp { font-size: 13.5px; line-height: 1.5; color: var(--lichen); }
.zeile { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.zeile-dazu { align-items: center; justify-content: space-between; }
.zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 12px; }

/* ================= FELDER ================= */
.feld { display: grid; gap: 6px; min-width: 0; }
.feld-breit { flex: 1 1 220px; }
.feld-zeit { flex: 0 1 150px; }
.feld-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.zaehler { font: 600 11px/1 var(--f-mono); color: rgba(169, 181, 160, .6); font-variant-numeric: tabular-nums; white-space: nowrap; }
.zaehler.voll { color: var(--gold); }
input[type="text"], input[type="number"], input[type="time"], input[type="password"], input:not([type]) {
  width: 100%; min-width: 0; height: 46px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--feld-rand); background: var(--feld); color: var(--ivory);
  font: 600 16px/1 var(--f-ui); outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
input[type="number"], input[type="time"] { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
input::placeholder { color: rgba(169, 181, 160, .55); font-weight: 500; opacity: 1; }
input:hover { border-color: rgba(242, 233, 214, .26); }
input:focus-visible { border-color: var(--gold); background: rgba(3, 13, 9, .82); box-shadow: 0 0 0 3px rgba(240, 186, 101, .16); }
input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(.8) sepia(.4); cursor: pointer; }

.schalter { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; color: var(--ivory); width: fit-content; }
.schalter input { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 48px; height: 28px; border-radius: 99px; cursor: pointer;
  background: rgba(242, 233, 214, .12); border: 1px solid var(--line-2); transition: background .25s, border-color .25s; }
.schalter input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ivory); transition: transform .3s var(--ease), background .25s; }
.schalter input:checked { background: var(--gold); border-color: var(--gold-2); }
.schalter input:checked::after { transform: translateX(20px); background: var(--night); }
.schalter input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ================= KNÖPFE ================= */
.knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(36, 84, 61, .58), rgba(12, 39, 28, .92) 55%, rgba(7, 24, 18, .96));
  box-shadow: inset 0 1px 0 rgba(251, 221, 163, .16), inset 0 -1px 0 rgba(0, 0, 0, .4), 0 6px 16px rgba(0, 0, 0, .28);
  font: 700 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ivory);
  transition: border-color .2s, transform .12s, filter .2s, opacity .2s;
}
.knopf:hover { border-color: rgba(240, 186, 101, .55); }
.knopf:active { transform: translateY(1px); }
.knopf:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.knopf.haupt { background: var(--metal); border-color: rgba(251, 221, 163, .7); color: #2a1604; text-shadow: 0 1px 0 rgba(255, 241, 207, .45); box-shadow: inset 0 1px 0 rgba(255, 246, 222, .6), 0 8px 22px rgba(240, 186, 101, .18), 0 6px 16px rgba(0, 0, 0, .3); }
.knopf.haupt:hover { filter: brightness(1.06); }
.knopf.leise { background: transparent; border-color: transparent; box-shadow: none; color: var(--lichen); }
.knopf.leise:hover { color: var(--ivory); border-color: var(--line-2); }
.knopf.gefahr { color: #f2b98b; border-color: rgba(211, 145, 80, .5); }
.knopf.bestaetigen { background: linear-gradient(180deg, #8a4f22, #5a2f12); border-color: #d39150; color: var(--ivory); }
.knopf.rund { width: 52px; min-height: 52px; padding: 0; font-size: 14px; letter-spacing: .04em; }
.knopf[disabled] { opacity: .42; cursor: not-allowed; transform: none; filter: none; }
.knopf.haupt[disabled] { filter: saturate(.4); }
.ikon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--lichen); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.ikon svg { width: 16px; height: 16px; }
.ikon:hover { color: var(--ivory); border-color: var(--line-2); background: rgba(3, 13, 9, .5); }
.ikon:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.ikon[disabled] { opacity: .3; cursor: default; }

/* ================= COUNTDOWN ================= */
.cd-zahl { font: 700 clamp(48px, 8vw, 68px)/1 var(--f-mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ivory); padding-block: 4px 2px; }
.karte.laeuft .cd-zahl { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.karte.laeuft::before { background: linear-gradient(90deg, transparent, var(--gold-2), transparent); }

/* ================= LISTEN ================= */
.liste { list-style: none; display: grid; gap: 8px; }
.liste li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.liste .nr { font: 700 13px/1 var(--f-mono); letter-spacing: .08em; color: var(--gold); text-align: center; }
.liste li:first-child input { color: var(--ivory); }
.liste .zaehler { display: none; }
.liste li:focus-within .zaehler { display: inline; position: absolute; right: 124px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.liste li { position: relative; }
.liste li:focus-within input { padding-right: 62px; }
.liste .werkzeug { display: flex; gap: 2px; }
.liste.ist-standard input { color: var(--lichen); border-style: dashed; }
.liste:empty::before { content: "Keine Einträge – der Bereich bleibt ausgeblendet."; display: block; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--lichen); font-size: 14px; }

/* ================= ZIEL ================= */
.ziel-anzeige { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 14px; border-radius: 16px; background: rgba(3, 13, 9, .45); border: 1px solid var(--line); }
.ziel-mitte { display: grid; gap: 8px; min-width: 0; text-align: center; }
.ziel-zahl { font: 700 26px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ivory); }
.ziel-zahl small { font-size: 16px; color: var(--lichen); }
.ziel-balken { height: 10px; border-radius: 6px; background: rgba(242, 233, 214, .1); overflow: hidden; }
.ziel-balken i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--bronze-2), var(--bronze) 40%, var(--gold) 85%, var(--gold-2)); box-shadow: 0 0 12px rgba(240, 186, 101, .45); transition: width .9s var(--ease); }

/* ================= VERBINDUNGEN UND CHAT ================= */
.verbindungen { display: flex; flex-wrap: wrap; gap: 8px; }
.verbindungen > span { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(3, 13, 9, .5);
  font: 700 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lichen); white-space: nowrap; }
.verbindungen i { width: 7px; height: 7px; border-radius: 50%; background: rgba(169, 181, 160, .6); }
.verbindungen .an { color: var(--mint); border-color: rgba(213, 233, 213, .3); }
.verbindungen .an i { background: var(--mint); box-shadow: 0 0 0 3px rgba(213, 233, 213, .15); }
.verbindungen .aus { color: var(--warn); border-color: rgba(229, 164, 100, .4); }
.verbindungen .aus i { background: var(--warn); }
.chatliste { list-style: none; display: flex; flex-direction: column; gap: 6px; height: 380px; overflow-y: auto; padding-right: 6px; margin-right: -6px;
  scrollbar-width: thin; scrollbar-color: rgba(182, 123, 66, .5) transparent; overscroll-behavior: contain; }
.chatliste li { flex: none; padding: 8px 12px 9px 13px; border-radius: 12px; background: rgba(3, 13, 9, .45); border: 1px solid var(--line); border-left: 3px solid var(--uc, var(--lichen));
  font-size: 15px; line-height: 1.45; color: var(--ivory); overflow-wrap: anywhere; animation: rvIn .45s var(--ease); }
.chatliste li > b { font-weight: 800; color: var(--uc, var(--ivory)); margin-right: 8px; }
.chatliste .plakette { display: inline-block; margin-right: 6px; padding: 2px 6px; border-radius: 5px; font: 700 10px/1.2 var(--f-mono); letter-spacing: .12em; vertical-align: 1px; color: var(--night); background: var(--lichen); }
.chatliste .plakette.host { background: var(--gold); }
.chatliste .plakette.mod { background: var(--moss-2); }
.chatliste .plakette.vip { background: var(--mint); }
.chatliste .aktion { font-style: italic; color: var(--uc, var(--ivory)); }
.chatliste img.emote { height: 1.7em; vertical-align: middle; margin: -5px 1px -3px; }
.chatliste li.leer { margin: auto 0; border: 1px dashed var(--line-2); border-left-width: 1px; background: none; color: var(--lichen); text-align: center; animation: none; }

/* ================= TEAM ================= */
.zugaenge { list-style: none; display: grid; gap: 10px; }
.zugang { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 12px 12px 12px 16px; border-radius: 16px; background: rgba(3, 13, 9, .45); border: 1px solid var(--line); }
.zugang-info { display: grid; gap: 4px; min-width: 0; }
.zugang-info b { font: 600 18px/1.2 var(--f-display); color: var(--ivory); overflow-wrap: anywhere; }
.zugang-info small { color: var(--lichen); font-size: 13px; }
.zugang-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rolle { flex: none; font: 700 10px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; background: var(--lichen); color: var(--night); }
.rolle.inhaber { background: var(--gold); }
.zugang .knoepfe .knopf { min-height: 38px; padding: 0 14px; font-size: 11px; }
.befehl { display: block; width: fit-content; max-width: 100%; overflow-x: auto; padding: 10px 14px; font-size: 14px; border: 1px solid rgba(240, 186, 101, .3); }
.kopier-ersatz { font-family: var(--f-mono) !important; font-size: 13px !important; }

.protokoll { list-style: none; display: grid; max-height: 460px; overflow: auto; margin-right: -6px; padding-right: 6px; scrollbar-width: thin; scrollbar-color: rgba(182, 123, 66, .5) transparent; }
.protokoll li { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.protokoll li:last-child { border-bottom: 0; }
.protokoll time { font: 600 12px/1.6 var(--f-mono); color: var(--lichen); font-variant-numeric: tabular-nums; }
.protokoll .wer { font-weight: 800; color: var(--gold); margin-right: 6px; }
.protokoll .was { color: var(--ivory); overflow-wrap: anywhere; }
.protokoll .leer { display: block; color: var(--lichen); }

/* ================= VORSCHAU ================= */
.vorschau { position: sticky; top: calc(var(--kopf-h) + 16px + env(safe-area-inset-top, 0px)); display: grid; gap: 10px; min-width: 0; }
.vorschau[hidden] { display: none; }
.vorschau-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.vorschau-schalter { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 4px; border: 0; background: none; cursor: default;
  font: 700 11px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--lichen); }
.vorschau-schalter .punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(213, 233, 213, .14); animation: blink 2.4s ease-in-out infinite; }
.segmente { display: flex; flex-wrap: wrap; gap: 8px; }
.segment { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(3, 13, 9, .55); }
.segment[hidden] { display: none; }
.segment button { height: 30px; padding: 0 12px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; font: 700 10.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lichen); transition: color .2s, background .2s; }
.segment button:hover { color: var(--ivory); }
.segment button[aria-pressed="true"] { color: var(--gold); background: rgba(240, 186, 101, .14); box-shadow: inset 0 0 0 1px rgba(240, 186, 101, .45); }
.segment button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.bild {
  position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--karte-rand); background: #04110c;
  box-shadow: 0 0 0 6px rgba(3, 13, 9, .5), 0 0 0 7px rgba(182, 123, 66, .22), 0 28px 60px rgba(0, 0, 0, .5);
}
/* color-scheme wie in den Overlays – sonst malt der Browser unter die Rahmen eine deckende Fläche und Alerts verdecken die Szene */
.bild iframe { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; border: 0; background: transparent; color-scheme: normal; transform: scale(var(--s, .3)); transform-origin: 0 0; pointer-events: none; }
/* Gaming ist durchsichtig: dahinter eine ruhige Spielfläche, damit Rahmen und Ziel lesbar bleiben */
.bild.spiel { background:
  radial-gradient(60% 70% at 62% 40%, rgba(64, 98, 124, .45), transparent 70%),
  radial-gradient(50% 60% at 20% 80%, rgba(120, 72, 40, .35), transparent 70%),
  linear-gradient(160deg, #1c2a33, #0b1217); }
.vorschau-tipp { padding-inline: 2px; }

/* ================= ANMELDEN ================= */
.tor { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; overflow: auto;
  padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
  background: radial-gradient(70% 60% at 50% 30%, rgba(23, 61, 44, .7), rgba(3, 12, 9, .94)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tor[hidden] { display: none; }
.tor-karte { width: min(100%, 420px); align-items: center; text-align: center; padding: 30px 24px 24px; }
.tor-karte .feld { width: 100%; text-align: left; }
.tor-zeichen { width: 64px; height: 64px; }
.tor-karte h2 { font-size: 28px; }
.tor-knoepfe { justify-content: center; }

/* ================= MELDUNG ================= */
.meldung {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 50; max-width: min(92vw, 540px);
  padding: 12px 20px; border-radius: 999px; background: rgba(7, 24, 18, .97); border: 1px solid rgba(240, 186, 101, .5);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55); color: var(--ivory); font-weight: 700; text-align: center;
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .25s, transform .35s var(--ease);
}
.meldung.zeigen { opacity: 1; transform: translate(-50%, 0); }
.meldung.fehler { border-color: rgba(229, 164, 100, .85); color: #f6cb9f; border-radius: 18px; }

/* ================= SCHMAL ================= */
@media (max-width: 1100px) {
  .buehne { grid-template-columns: minmax(0, 1fr); }
  .vorschau { position: static; order: -1; }
  .vorschau-schalter { cursor: pointer; }
  .vorschau-schalter::after { content: "▾"; font-size: 12px; transition: transform .25s; }
  .vorschau-schalter[aria-expanded="false"]::after { transform: rotate(-90deg); }
  .vorschau-schalter[aria-expanded="false"] .punkt { background: var(--lichen); box-shadow: none; animation: none; }
  .vorschau.zu .bild, .vorschau.zu .vorschau-tipp { display: none; }
}
@media (max-width: 560px) {
  :root { --kopf-h: 104px; }
  .marke .wort { display: none; }
  .regie-name { padding-left: 0; border-left: 0; }
  .ich { display: none; }
  .karte { padding: 18px 16px 16px; border-radius: 20px; }
  .karte h2 { font-size: 19px; }
  .karte-fuss .knopf { flex: 1 1 auto; }
  .reiter button { padding: 0 12px; letter-spacing: .14em; }
  .ziel-anzeige { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ziel-anzeige [data-ziel-plus="5"] { grid-column: 3; }
  .liste li { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 6px; }
  .liste .ikon { width: 30px; height: 30px; }
  .liste li:focus-within .zaehler { right: 108px; }
}
@media (prefers-reduced-motion: reduce) {
  .status i, .vorschau-schalter .punkt { animation: none; }
  .ziel-balken i, .reiter button::after { transition: none; }
}
