/* Mulaga City App - gleiche Familie wie mulaga.com: Nacht-Petrol,
   Verlauf Blau -> Türkis -> Mint, Baloo 2, runde Formen. Kein Blur,
   kein Strich über Karten. Für das Handy gebaut, Sicherheitsabstände
   für Notch und Home-Leiste (env(safe-area-inset-*)). */

:root {
  --blau:#3FB8F5; --tuerkis:#6FE6D8; --mint:#CFF6B2; --rot:#ff7a8a; --gold:#ffd27a;
  --nacht:#0b1f2e; --tief:#081723; --grund:#061019;
  --flaeche:#0b2333; --flaeche2:#0e2a3c; --feld:#05131d;
  --rand:rgba(111,230,216,.14); --rand-stark:rgba(111,230,216,.38);
  --text:#effbff; --leise:#9cc0cf; --blass:#6f93a3; --dunkel:#062236;
  --verlauf:linear-gradient(90deg,var(--blau),var(--tuerkis) 55%,var(--mint));
  --font:"Baloo 2",system-ui,-apple-system,"Segoe UI",sans-serif;
  --oben:env(safe-area-inset-top,0px); --unten:env(safe-area-inset-bottom,0px);
  --leiste:72px;
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; background: var(--grund); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--text);
  font: 500 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip;
  background: radial-gradient(ellipse at 20% -10%, #1d3949 0%, var(--nacht) 38%, var(--grund) 100%) fixed;
  overscroll-behavior-y: none;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--tuerkis); outline-offset: 3px; }
.verlauf-text { background: var(--verlauf); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Laden ---------- */
#app.laedt { min-height: 100dvh; display: grid; place-items: center; }
.lade-logo img { width: 180px; height: auto; animation: atmen 1.6s ease-in-out infinite; }
@keyframes atmen { 50% { transform: scale(1.05); opacity: .8; } }

/* ---------- Willkommen (abgemeldet) ---------- */
.willkommen {
  min-height: 100dvh; display: flex; flex-direction: column;
  padding: calc(var(--oben) + 28px) 20px calc(var(--unten) + 24px);
  max-width: 480px; margin: 0 auto; position: relative;
}
.willkommen::after {
  content: ""; position: fixed; right: -70px; bottom: -60px; width: 320px; height: 320px; z-index: -1; pointer-events: none;
  background: url("/app/assets/palme.png") right bottom / contain no-repeat; opacity: .07; transform: scaleX(-1) rotate(-6deg);
}
.w-logo { width: 190px; height: auto; margin: 6px auto 0; filter: drop-shadow(0 .6rem 1.4rem rgba(30,143,224,.35)); }
.w-titel { margin-top: 14px; text-align: center; font-size: 30px; font-weight: 800; line-height: 1.1; }
.w-unter { margin-top: 6px; text-align: center; color: var(--leise); font-size: 16px; }

.umschalter {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 26px; padding: 5px; border-radius: 999px;
  background: var(--feld); border: 1px solid var(--rand);
}
.umschalter button {
  height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--leise); font-weight: 700; font-size: 16px;
}
.umschalter button.aktiv { background: var(--verlauf); color: var(--dunkel); font-weight: 800; }

.formular { display: grid; gap: 14px; margin-top: 20px; }
.feld { display: grid; gap: 6px; }
.feld > span { font-size: 14px; font-weight: 700; color: var(--leise); padding-left: 6px; }
.eingabe {
  width: 100%; height: 54px; padding: 0 18px; border-radius: 18px; border: 1px solid var(--rand-stark);
  background: var(--feld); font-size: 17px; font-weight: 600; outline: none; transition: border-color 120ms;
}
textarea.eingabe { height: auto; min-height: 110px; padding: 14px 18px; resize: vertical; line-height: 1.45; }
.eingabe:focus { border-color: var(--tuerkis); }
.eingabe::placeholder { color: var(--blass); font-weight: 500; }
.eingabe.code { text-align: center; letter-spacing: .35em; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hinweis-klein { font-size: 13px; color: var(--blass); padding-left: 6px; }

.klein-hinweis { font-size: 13px; color: var(--leise); line-height: 1.45; }
.klein-hinweis a { color: var(--tuerkis); }
.haken { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--leise); line-height: 1.45; cursor: pointer; }
.haken input { flex: none; appearance: none; width: 24px; height: 24px; margin: 0; border-radius: 8px; border: 1px solid var(--rand-stark); background: var(--feld); display: grid; place-items: center; }
.haken input:checked { background: var(--verlauf); border-color: transparent; }
.haken input:checked::after { content: ""; width: 10px; height: 6px; border: solid var(--dunkel); border-width: 0 0 3px 3px; transform: translateY(-2px) rotate(-45deg); }
.haken a { color: var(--tuerkis); font-weight: 700; }

.fehler {
  padding: 12px 16px; border-radius: 16px; background: rgba(255,122,138,.1); border: 1px solid rgba(255,122,138,.35);
  color: #ffd0d6; font-size: 15px; font-weight: 600;
}

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 999px; border: 0;
  font-size: 17px; font-weight: 800; white-space: nowrap; transition: transform 120ms, opacity 120ms;
}
.knopf:active { transform: scale(.97); }
.knopf:disabled { opacity: .55; pointer-events: none; }
.knopf svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.knopf-voll { background: var(--verlauf); color: var(--dunkel); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 .5rem 1.4rem rgba(63,184,245,.25); }
.knopf-rand { background: var(--feld); border: 1px solid var(--rand-stark); color: var(--text); }
.knopf-discord { background: #5865F2; color: #fff; }
.knopf-gefahr { background: rgba(255,122,138,.12); border: 1px solid rgba(255,122,138,.4); color: #ffc2ca; }
.knopf-breit { width: 100%; }
.knopf-klein { height: 42px; padding: 0 18px; font-size: 15px; }
.textlink { justify-self: center; background: none; border: 0; padding: 6px 10px; color: var(--tuerkis); font-weight: 700; font-size: 15px; }

.w-fuss { margin-top: auto; padding-top: 28px; text-align: center; font-size: 13px; color: var(--blass); }
.w-fuss a { color: var(--leise); font-weight: 700; }

/* Installieren-Hinweis */
.installieren {
  display: flex; gap: 14px; align-items: center; margin-top: 22px; padding: 14px 16px; border-radius: 22px;
  background: linear-gradient(110deg, rgba(63,184,245,.16), rgba(111,230,216,.07) 55%, rgba(207,246,178,.1)), var(--tief);
  border: 1px solid var(--rand-stark); text-align: left;
}
.installieren img { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.installieren strong { display: block; font-size: 15px; font-weight: 800; line-height: 1.25; }
.installieren span { display: block; font-size: 13px; color: var(--leise); line-height: 1.4; }
.ios-teilen { display: inline-block; width: 15px; height: 15px; vertical-align: -2px; fill: var(--tuerkis); }

/* ---------- Angemeldet: Gerüst ---------- */
.geruest { min-height: 100dvh; padding-bottom: calc(var(--leiste) + var(--unten) + 20px); }
.kopf {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: calc(var(--oben) + 12px) 18px 12px; background: rgba(6,16,25,.96); border-bottom: 1px solid var(--rand);
}
.kopf img { width: 44px; height: 44px; object-fit: contain; }
.kopf h1 { font-size: 22px; font-weight: 800; line-height: 1.1; }
.kopf-rechts { margin-left: auto; }
.status-pille {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px;
  background: var(--feld); border: 1px solid var(--rand); font-size: 13px; font-weight: 700; color: var(--leise); white-space: nowrap;
}
.status-pille b { color: var(--text); font-variant-numeric: tabular-nums; }
.status-pille i { width: 8px; height: 8px; border-radius: 50%; background: var(--blass); }
.status-pille.an i { background: var(--mint); box-shadow: 0 0 0 0 rgba(207,246,178,.6); animation: puls 2.2s infinite; }
@keyframes puls { 70% { box-shadow: 0 0 0 8px rgba(207,246,178,0); } 100% { box-shadow: 0 0 0 0 rgba(207,246,178,0); } }

.inhalt { max-width: 560px; margin: 0 auto; padding: 18px 16px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.seiten-titel { font-size: 28px; font-weight: 800; line-height: 1.1; padding: 4px 4px 0; }
.abschnitt-titel { margin-top: 8px; padding: 0 6px; font-size: 14px; font-weight: 800; color: var(--blass); letter-spacing: .04em; text-transform: uppercase; }

.karte {
  padding: 18px; border-radius: 26px; background: linear-gradient(180deg, rgba(127,227,240,.05), rgba(255,255,255,.01) 60%), var(--flaeche);
  border: 1px solid var(--rand);
}
.karte h2 { font-size: 20px; font-weight: 800; line-height: 1.2; }
.karte p { color: var(--leise); font-size: 15px; line-height: 1.5; }
.karte .knopf { margin-top: 14px; }

/* Ausweis: Charakter-Karte */
.ausweis {
  position: relative; overflow: hidden; padding: 20px 20px 18px; border-radius: 30px;
  background: linear-gradient(125deg, rgba(63,184,245,.28), rgba(111,230,216,.12) 50%, rgba(207,246,178,.18)), var(--tief);
  border: 1px solid var(--rand-stark);
}
.ausweis::after {
  content: ""; position: absolute; right: -36px; top: -30px; width: 190px; height: 190px; pointer-events: none;
  background: url("/app/assets/palme.png") center / contain no-repeat; opacity: .1; transform: rotate(10deg);
}
.ausweis > * { position: relative; z-index: 1; }
.ausweis-oben { display: flex; align-items: center; gap: 14px; }
.ausweis-bild {
  flex: none; width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center;
  background: var(--verlauf); color: var(--dunkel); font-size: 24px; font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.ausweis-name { font-size: 24px; font-weight: 800; line-height: 1.1; }
.ausweis-job { margin-top: 2px; font-size: 15px; color: #cfe7f1; font-weight: 600; }
.marken { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.marke {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(4,14,22,.7); border: 1px solid var(--rand-stark); font-size: 13px; font-weight: 700; white-space: nowrap;
}
.marke-voll { background: var(--verlauf); color: var(--dunkel); border-color: transparent; }
.marke-gold { background: rgba(255,210,122,.14); border-color: rgba(255,210,122,.5); color: var(--gold); }

.zahlen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.zahl {
  padding: 14px 16px; border-radius: 22px; background: var(--flaeche); border: 1px solid var(--rand);
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.zahl span { font-size: 13px; font-weight: 700; color: var(--blass); }
.zahl strong { font-size: 22px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zahl.gross { grid-column: 1 / -1; }
.zahl.gross strong { font-size: 30px; }

.liste { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.zeile {
  min-width: 0;
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 20px;
  background: var(--flaeche); border: 1px solid var(--rand); min-height: 64px; width: 100%; text-align: left;
}
button.zeile { cursor: pointer; }
.zeile-zeichen {
  flex: none; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(63,184,245,.14); color: #bfeff8;
}
.zeile-zeichen svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.zeile-zeichen svg.voll { fill: currentColor; stroke: none; }
.zeile-zeichen.discord { background: rgba(88,101,242,.18); color: #c9ceff; }
.fz-zeile { gap: 12px; }
.fz-unten { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 5px; min-width: 0; }
.fz-unten .kennzeichen { display: inline-grid; min-width: 0; height: 24px; font-size: 12px; line-height: 1; padding: 0 7px; border-radius: 6px; color: #14324a; }
.zeile-text .fz-unten .status { margin-top: 0; }
.fz-foto { flex: none; width: 84px; height: 48px; border-radius: 12px; overflow: hidden; background: radial-gradient(ellipse at 50% 70%, rgba(111,230,216,.16), rgba(63,184,245,.05) 70%); }
.fz-foto img { display: block; width: 100%; height: 100%; object-fit: contain; }
.zeile-text { flex: 1; min-width: 0; }
.zeile-text strong { display: block; font-size: 16px; font-weight: 800; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile-text span { display: block; font-size: 13px; color: var(--leise); line-height: 1.35; }
.zeile-text .status { display: inline-block; margin-top: 3px; }
.zeile-rechts { flex: none; font-size: 13px; font-weight: 700; color: var(--leise); }
.zeile-pfeil { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--blass); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.kennzeichen {
  flex: none; display: inline-grid; place-items: center; min-width: 92px; height: 30px; padding: 0 8px; border-radius: 8px;
  background: #f4f7f9; color: #14324a; font-size: 14px; font-weight: 800; letter-spacing: .06em; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 2px #14324a;
}
.status { font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.status-garage { background: rgba(207,246,178,.14); color: var(--mint); }
.status-draussen { background: rgba(63,184,245,.14); color: #bfeff8; }
.status-abgeschleppt, .status-beschlagnahmt { background: rgba(255,122,138,.14); color: #ffc2ca; }

/* Belohnungen */
.belohnung { border-color: rgba(255,210,122,.32); background: linear-gradient(160deg, rgba(255,210,122,.09), rgba(255,255,255,0) 55%), var(--flaeche); }
.belohnung-titel { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.belohnung-titel svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.belohnung-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; }
.belohnung-kopf strong { font-size: 17px; font-weight: 800; line-height: 1.25; }
.belohnung .knopf { margin-top: 0; flex: none; }
.belohnung-email { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--rand); }
.belohnung-email p { margin-top: 2px; font-size: 14px; }
.belohnung > .hinweis-klein { display: block; margin-top: 12px; padding-left: 0; font-size: 13px; color: var(--blass); }
.schritte { display: grid; gap: 8px; margin-top: 8px; }
.schritt { display: flex; align-items: center; gap: 12px; min-height: 42px; }
.schritt-punkt {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--rand-stark); background: var(--feld);
}
.schritt-punkt svg { width: 15px; height: 15px; fill: none; stroke: var(--dunkel); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.schritt.fertig .schritt-punkt { border-color: transparent; background: var(--verlauf); }
.schritt-text { flex: 1; min-width: 0; font-size: 15px; line-height: 1.35; color: var(--text); }
.schritt.fertig .schritt-text { color: var(--blass); text-decoration: line-through; text-decoration-color: rgba(156,192,207,.4); }

.leer { padding: 26px 18px; text-align: center; color: var(--leise); font-size: 15px; border-radius: 22px; border: 1px dashed var(--rand-stark); }

/* Hinweis-Band (Push aktivieren, Discord verknüpfen) */
.band {
  display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 24px;
  background: linear-gradient(110deg, rgba(63,184,245,.18), rgba(111,230,216,.08) 55%, rgba(207,246,178,.12)), var(--tief);
  border: 1px solid var(--rand-stark);
}
.band-zeichen { flex: none; width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; background: var(--verlauf); color: var(--dunkel); }
.band-zeichen svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.band-text { flex: 1; min-width: 0; }
.band-text strong { display: block; font-size: 16px; font-weight: 800; line-height: 1.25; }
.band-text span { display: block; font-size: 13px; color: var(--leise); line-height: 1.4; }
.band .knopf { flex: none; }

/* Postfach */
.nachricht {
  position: relative; padding: 16px 16px 14px 18px; border-radius: 22px; background: var(--flaeche); border: 1px solid var(--rand);
}
.nachricht.neu { border-color: var(--rand-stark); background: linear-gradient(110deg, rgba(63,184,245,.12), rgba(111,230,216,.04) 60%), var(--flaeche); }
.nachricht.neu::before { content: ""; position: absolute; left: -1px; top: 18px; width: 5px; height: 26px; border-radius: 0 6px 6px 0; background: var(--verlauf); }
.nachricht-kopf { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--blass); }
.nachricht-kopf .art { padding: 1px 9px; border-radius: 999px; background: rgba(63,184,245,.14); color: #bfeff8; }
.nachricht-kopf .art.angebote { background: rgba(255,210,122,.14); color: var(--gold); }
.nachricht-kopf .art.erinnerung { background: rgba(207,246,178,.14); color: var(--mint); }
.nachricht-kopf time { margin-left: auto; }
.nachricht h3 { margin-top: 6px; font-size: 17px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.nachricht p { margin-top: 4px; color: #cfe7f1; font-size: 15px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }

/* Schalter */
.schalter-zeile { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 20px; background: var(--flaeche); border: 1px solid var(--rand); cursor: pointer; }
.schalter-zeile .zeile-text strong { white-space: normal; }
.schalter { flex: none; position: relative; width: 52px; height: 32px; }
.schalter input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.schalter i { position: absolute; inset: 0; border-radius: 999px; background: var(--feld); border: 1px solid var(--rand-stark); transition: background 140ms; pointer-events: none; }
.schalter i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--leise); transition: transform 160ms, background 160ms; }
.schalter input:checked + i { background: var(--verlauf); border-color: transparent; }
.schalter input:checked + i::after { transform: translateX(20px); background: #fff; }

/* Team */
.team-zahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.team-zahlen .zahl { padding: 12px; }
.team-zahlen .zahl strong { font-size: 22px; }
.arten { display: grid; gap: 6px; }
.art-wahl { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--feld); border: 1px solid var(--rand); cursor: pointer; font-weight: 700; font-size: 15px; }
.art-wahl input { appearance: none; margin: 0; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--rand-stark); }
.art-wahl input:checked { border: 6px solid var(--tuerkis); }
.art-wahl:has(input:checked) { border-color: var(--rand-stark); background: rgba(111,230,216,.06); }
.art-wahl small { margin-left: auto; color: var(--blass); font-weight: 600; }
.vorschau {
  display: flex; gap: 12px; padding: 12px 14px; border-radius: 20px; background: #f2f4f6; color: #1b2a35;
}
.vorschau img { width: 38px; height: 38px; border-radius: 9px; flex: none; background: #061019; }
.vorschau strong { display: block; font-size: 14px; font-weight: 800; line-height: 1.25; font-family: -apple-system, system-ui, sans-serif; }
.vorschau span { display: block; font-size: 13px; line-height: 1.35; font-family: -apple-system, system-ui, sans-serif; color: #3d4c57; white-space: pre-line; overflow-wrap: anywhere; }
.vorschau-titel { font-size: 12px; font-weight: 700; color: var(--blass); padding-left: 6px; }

/* ---------- Leiste unten ---------- */
.leiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center;
  padding: 8px 12px calc(var(--unten) + 8px); background: rgba(5,14,21,.97); border-top: 1px solid var(--rand);
}
.leiste-innen { display: flex; gap: 4px; width: 100%; max-width: 520px; min-width: 0; }
.reiter {
  position: relative; flex: 1; min-width: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: 56px; border-radius: 18px; border: 0; background: transparent; color: var(--blass); font-size: 12px; font-weight: 700;
}
.reiter svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reiter.aktiv { color: var(--text); background: rgba(111,230,216,.08); }
.reiter.aktiv svg { stroke: var(--tuerkis); }
.zaehler {
  position: absolute; top: 4px; left: calc(50% + 6px); min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--rot); color: #fff; font-size: 11px; font-weight: 800; line-height: 19px; text-align: center;
}

/* ---------- Blatt (Dialog von unten) ---------- */
#blatt-huelle { position: fixed; inset: 0; z-index: 50; background: rgba(2,8,12,.72); display: flex; align-items: flex-end; justify-content: center; animation: einblenden 160ms ease; }
#blatt {
  width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 20px calc(var(--unten) + 22px); border-radius: 30px 30px 0 0; background: var(--tief); border: 1px solid var(--rand-stark); border-bottom: 0;
  animation: hoch 220ms cubic-bezier(.2,.9,.3,1);
}
#blatt .griff { width: 44px; height: 5px; border-radius: 5px; background: var(--rand-stark); margin: 0 auto 14px; }
#blatt h2 { font-size: 24px; font-weight: 800; line-height: 1.15; }
#blatt .blatt-text { margin-top: 6px; color: var(--leise); font-size: 15px; line-height: 1.5; }
#blatt .formular { margin-top: 16px; }
.blatt-knoepfe { display: grid; gap: 10px; margin-top: 18px; }
.knopf-spaeter { padding: 10px; border: 0; background: none; color: var(--leise); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.qr { width: 210px; height: 210px; margin: 16px auto 0; padding: 0; border-radius: 22px; overflow: hidden; background: #fff; }
.qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.geheimnis {
  margin-top: 12px; padding: 12px; border-radius: 16px; background: var(--feld); border: 1px dashed var(--rand-stark);
  text-align: center; font-size: 17px; font-weight: 800; letter-spacing: .08em; user-select: all; word-break: break-all;
}
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.codes li { padding: 10px; border-radius: 14px; background: var(--feld); border: 1px solid var(--rand); text-align: center; font-weight: 800; letter-spacing: .06em; font-variant-numeric: tabular-nums; user-select: all; }
.schritte-ios { display: grid; gap: 10px; margin-top: 14px; counter-reset: s; }
.schritte-ios li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; background: var(--flaeche); border: 1px solid var(--rand); font-size: 15px; font-weight: 600; }
.schritte-ios li::before { counter-increment: s; content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--verlauf); color: var(--dunkel); font-weight: 800; }

@keyframes einblenden { from { opacity: 0; } }
@keyframes hoch { from { transform: translateY(40px); opacity: .4; } }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--leiste) + var(--unten) + 18px); z-index: 60; transform: translateX(-50%);
  max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 999px; background: var(--text); color: var(--dunkel);
  font-size: 15px; font-weight: 800; box-shadow: 0 .8rem 2rem rgba(0,0,0,.45); animation: hoch 200ms ease; text-align: center;
}
#toast.fehler-toast { background: #ffd0d6; color: #4a0f18; }

/* ---------- Neue Bereiche (2026-11-03) ---------- */
.kopf h1 small { display: block; font-size: 12px; font-weight: 700; color: var(--blass); letter-spacing: .04em; }
.leiste-innen.eng { gap: 2px; }
.leiste-innen.eng .reiter { font-size: 10.5px; letter-spacing: -.01em; }
.leiste-innen.eng .reiter svg { width: 23px; height: 23px; }
.leiste-innen.eng .zaehler { left: calc(50% + 4px); }

.karte-kopf { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.karte-kopf h2 { flex: 1; min-width: 0; font-size: 18px; font-weight: 800; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.karte-zeichen { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(63,184,245,.14); color: #bfeff8; }
.karte-zeichen svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.karte-kopf + p, .karte-kopf + .wert-zeile { margin-top: 8px; }
.karte-flach { padding: 12px 16px; }
.tipp-karte { display: block; width: 100%; text-align: left; color: inherit; cursor: pointer; font: inherit; transition: transform 120ms; }
.tipp-karte:active { transform: scale(.985); }
.warn-karte { border-color: rgba(255,122,138,.45); background: linear-gradient(160deg, rgba(255,122,138,.12), rgba(255,255,255,0) 60%), var(--flaeche); }
.warn-karte .karte-zeichen { background: rgba(255,122,138,.16); color: #ffc2ca; }
.warn-karte p { color: #ffd9de; }
.grund { margin-top: 4px; font-size: 14px; }
.summe { font-size: 18px; font-weight: 800; color: #ffc2ca; white-space: nowrap; }
.gold-text { margin-top: 8px; color: var(--gold) !important; font-size: 14px !important; font-weight: 700; }
.klein { margin-top: 6px; font-size: 13px !important; color: var(--leise); line-height: 1.4; }
.textlink.links { justify-self: start; padding: 8px 0 0; display: block; }
.abschnitt-hinweis { margin: -6px 6px 0; }
.abschnitt-zeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.abschnitt-zeile .abschnitt-titel { margin-top: 0; }
.leer-klein { padding: 14px; font-size: 14px; }

.balken { height: 10px; margin-top: 8px; border-radius: 999px; background: var(--feld); border: 1px solid var(--rand); overflow: hidden; }
.balken i { display: block; height: 100%; border-radius: inherit; background: var(--verlauf); transition: width 400ms ease; }
.balken.duenn { height: 6px; margin-top: 6px; }
.wert-zeile { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 10px; }
.wert-zeile strong { font-size: 16px; font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wert-zeile span { flex: none; font-size: 13px; font-weight: 700; color: var(--leise); }
.mini-zahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.mini-zahlen > div { padding: 8px 10px; border-radius: 14px; background: var(--feld); border: 1px solid var(--rand); min-width: 0; }
.mini-zahlen span { display: block; font-size: 11px; font-weight: 700; color: var(--blass); }
.mini-zahlen strong { display: block; font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.teil { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--rand); }
.unter-titel { font-size: 13px; font-weight: 800; color: var(--blass); letter-spacing: .04em; text-transform: uppercase; }
.angriffe { display: grid; gap: 6px; margin-top: 10px; }
.angriffe li { padding: 8px 12px; border-radius: 14px; background: rgba(255,122,138,.08); border: 1px solid rgba(255,122,138,.28); }
.angriffe li.wir { background: rgba(255,122,138,.16); border-color: rgba(255,122,138,.55); }
.angriffe strong { display: block; font-size: 14px; font-weight: 800; }
.angriffe span { display: block; font-size: 12.5px; color: #ffd9de; }
.zeile.eigen { border-color: var(--rand-stark); background: rgba(111,230,216,.07); }
.zeile.verzug { border-color: rgba(255,122,138,.4); }
.zeile.fertig .zeile-text strong { color: var(--blass); }
.zeile-rechts.betrag { font-size: 15px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.zeile-rechts.gross { font-size: 18px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.level-zeile .balken { max-width: 220px; }
.marke svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.marke-herz { background: rgba(255,122,138,.14); border-color: rgba(255,122,138,.45); color: #ffc2ca; }

.skill-reihen { display: grid; gap: 6px; margin-top: 10px; }
.skill-reihe { display: grid; grid-template-columns: 74px 1fr 24px; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--leise); }
.skill-reihe .balken { margin-top: 0; }
.skill-reihe b { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.skill-zweig { margin-top: 16px; padding: 14px; border-radius: 20px; background: var(--flaeche); border: 1px solid var(--rand); }
.skill-zweig .wert-zeile { margin-top: 0; }
.perks { display: grid; gap: 6px; margin-top: 10px; }
.perks li { display: flex; gap: 10px; font-size: 13.5px; color: var(--blass); line-height: 1.35; }
.perks li b { flex: none; width: 62px; font-weight: 800; }
.perks li.frei { color: var(--text); }
.perks li.frei b { color: var(--mint); }

.stufen { display: grid; gap: 6px; }
.stufen li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--rand); font-size: 14px; color: var(--blass); }
.stufen li b { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--feld); color: var(--leise); font-weight: 800; }
.stufen li span { flex: 1; min-width: 0; }
.stufen li i { flex: none; font-style: normal; font-size: 12px; font-weight: 800; }
.stufen li.frei { color: var(--text); border-color: rgba(255,210,122,.4); }
.stufen li.frei b { background: rgba(255,210,122,.18); color: var(--gold); }
.stufen li.frei i { color: var(--gold); }
.stufen li.abgeholt b { background: var(--verlauf); color: var(--dunkel); }
.stufen li.abgeholt i { color: var(--mint); }

/* Spiele */
.gewinnspiel { border-color: rgba(255,210,122,.4); background: linear-gradient(150deg, rgba(255,210,122,.16), rgba(63,184,245,.06) 60%), var(--flaeche); }
.gw-oben { display: flex; align-items: center; gap: 14px; }
.gw-zeichen { flex: none; width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, #ffd27a, #ffb347); color: #3a2600; }
.gw-zeichen svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gw-klein { display: block; font-size: 12px; font-weight: 800; color: var(--gold); letter-spacing: .04em; text-transform: uppercase; }
.gewinnspiel h2 { font-size: 22px; }
.gewinnspiel > p { margin-top: 10px; }
.gewinnspiel .knopf { margin-top: 12px; }
.dabei { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(207,246,178,.1); border: 1px solid rgba(207,246,178,.35); color: var(--mint); font-weight: 800; }
.dabei svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.gw-letzter { margin-top: 10px !important; }

.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kachel {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 120px; padding: 14px; border-radius: 22px; text-align: left;
  background: linear-gradient(160deg, rgba(63,184,245,.12), rgba(255,255,255,0) 60%), var(--flaeche); border: 1px solid var(--rand); transition: transform 120ms;
}
.kachel:active { transform: scale(.97); }
.kachel:disabled { opacity: .45; }
.kachel-zeichen { font-size: 30px; line-height: 1.1; margin-bottom: 6px; }
.kachel strong { font-size: 16px; font-weight: 800; line-height: 1.2; }
.kachel span:last-child { font-size: 12.5px; color: var(--leise); line-height: 1.3; }
.zeile-zeichen.emoji { font-size: 22px; }
.bestenliste .zeile-text span { white-space: normal; }

.casino-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.casino-bank { text-align: right; }
.casino-bank span { display: block; font-size: 12px; font-weight: 700; color: var(--blass); }
.casino-bank strong { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.casino-ergebnis { margin: 14px 0 4px; min-height: 30px; text-align: center; font-size: 18px; font-weight: 800; color: var(--leise); }
.casino-ergebnis.gewonnen { color: var(--mint); }
.casino-ergebnis.verloren { color: #ffc2ca; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rand-stark); background: var(--feld); font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.chip.aktiv { background: var(--verlauf); color: var(--dunkel); border-color: transparent; }
#blatt .feld { margin-top: 12px; }
#blatt .knopf-breit { margin-top: 14px; }
.walzen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.walze {
  height: 96px; border-radius: 22px; display: grid; place-items: center; font-size: 46px; line-height: 1;
  background: linear-gradient(180deg, #03090e, #0c2433 50%, #03090e); border: 1px solid var(--rand-stark);
}
.walze.dreht { filter: blur(.4px); opacity: .85; }
.walze.sieben { color: #ff5c73; font-weight: 800; text-shadow: 0 0 18px rgba(255,92,115,.6); }
.roulette-zahl {
  width: 108px; height: 108px; margin: 18px auto 0; border-radius: 50%; display: grid; place-items: center;
  font-size: 44px; font-weight: 800; background: #0c2433; border: 4px solid var(--rand-stark); font-variant-numeric: tabular-nums;
}
.roulette-zahl[data-farbe="rot"] { background: #b3263a; border-color: #ff7a8a; }
.roulette-zahl[data-farbe="schwarz"] { background: #10161b; border-color: #56656f; }
.roulette-zahl[data-farbe="gruen"] { background: #1a7a46; border-color: #6fe6a0; }
.wetten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.wette { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--rand); background: var(--feld); }
.wette strong { font-size: 15px; font-weight: 800; }
.wette span { font-size: 12px; font-weight: 800; color: var(--blass); }
.wette.w-rot strong { color: #ff8b9a; }
.wette.aktiv { border-color: var(--tuerkis); background: rgba(111,230,216,.1); }
.wetten + .eingabe { margin-top: 8px; }
.plinko { display: block; width: 100%; max-width: 360px; height: auto; margin: 14px auto 0; }
.mines { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 16px; }
.mine-feld { aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--rand-stark); background: linear-gradient(160deg, #11344a, #0a2232); font-size: 24px; }
.mine-feld:disabled { cursor: default; }
.mine-feld.sicher { background: rgba(207,246,178,.14); border-color: rgba(207,246,178,.45); }
.mine-feld.bombe { background: rgba(255,122,138,.1); border-color: rgba(255,122,138,.35); }
.mine-feld.getroffen { background: rgba(255,122,138,.4); border-color: #ff7a8a; }
.knopf.gold { background: linear-gradient(90deg, #ffd27a, #ffb347); color: #3a2600; }
.mines-start { margin-top: 4px; }

/* Arcade-Fenster */
body.zk-offen { overflow: hidden; }
.zk-huelle {
  position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; background: #03070c;
  padding: calc(var(--oben) + 8px) 12px calc(var(--unten) + 12px); touch-action: none; user-select: none; -webkit-user-select: none;
}
.zk-kopf { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.zk-kopf strong { font-size: 18px; font-weight: 800; }
.zk-hud { flex: 1; min-width: 0; text-align: right; font-size: 13px; font-weight: 700; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.zk-zu { flex: none; width: 40px; height: 40px; border-radius: 14px; border: 1px solid var(--rand-stark); background: var(--feld); font-size: 18px; font-weight: 800; }
.zk-feld { position: relative; margin-top: 8px; }
.zk-flaeche { display: block; width: 100%; aspect-ratio: 8 / 5; border-radius: 16px; border: 1px solid var(--rand-stark); background: #050b12; touch-action: none; }
.zk-karte {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px;
  border-radius: 16px; background: rgba(3,7,12,.86); text-align: center;
}
.zk-karte h3 { font-size: 22px; font-weight: 800; }
.zk-karte p { max-width: 420px; font-size: 14px; color: var(--leise); line-height: 1.4; }
.zk-karte .knopf { margin-top: 6px; height: 48px; }
.zk-punkte { font-size: 44px; font-weight: 800; line-height: 1; background: var(--verlauf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.zk-knoepfe { display: flex; gap: 10px; }
.zk-steuer { flex: 1; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px; padding-top: 14px; }
.zk-steuer.kreuz { display: grid; grid-template-columns: repeat(3, 76px); grid-template-rows: auto repeat(3, 66px); place-content: center; }
.zk-steuer.kreuz .zk-tipp { grid-column: 1 / -1; }
.zk-steuer.kreuz .t-up { grid-column: 2; grid-row: 2; }
.zk-steuer.kreuz .t-left { grid-column: 1; grid-row: 3; }
.zk-steuer.kreuz .t-right { grid-column: 3; grid-row: 3; }
.zk-steuer.kreuz .t-down { grid-column: 2; grid-row: 4; }
.zk-taste {
  min-width: 76px; height: 66px; padding: 0 18px; border-radius: 20px; border: 1px solid var(--rand-stark);
  background: linear-gradient(180deg, #11344a, #0a2232); font-size: 22px; font-weight: 800; touch-action: none;
}
.zk-taste.breit { flex: 1 1 100%; max-width: 360px; font-size: 18px; }
.zk-taste.an { background: var(--verlauf); color: var(--dunkel); }
.zk-tipp { width: 100%; text-align: center; font-size: 13px; color: var(--blass); }

/* Changelogs */
.changelog-zeile {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border-radius: 20px; text-align: left;
  background: var(--flaeche); border: 1px solid var(--rand);
}
.changelog-zeile.neuester { border-color: var(--rand-stark); background: linear-gradient(110deg, rgba(63,184,245,.12), rgba(111,230,216,.04) 60%), var(--flaeche); }
.changelog-zeile .zeile-text span { white-space: normal; }
.cl-datum { flex: none; width: 48px; height: 52px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--feld); border: 1px solid var(--rand); }
.cl-datum b { font-size: 19px; font-weight: 800; line-height: 1; }
.cl-datum span { font-size: 11px; font-weight: 800; color: var(--blass); text-transform: uppercase; }
.cl-kopf-datum { display: block; font-size: 13px; font-weight: 700; color: var(--blass); margin-bottom: 2px; }
.cl-text { margin-top: 12px; display: grid; gap: 8px; }
.cl-text p { color: #cfe7f1; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.cl-titel { margin-top: 8px; font-size: 17px; font-weight: 800; }
.cl-liste { display: grid; gap: 6px; }
.cl-liste li { position: relative; padding-left: 20px; color: #cfe7f1; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.cl-liste li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--tuerkis); }
textarea.eingabe.gross { min-height: 180px; }

/* Team: Spieler */
.eingabe.klein { height: 46px; font-size: 15px; }
.spieler-zeile .zeile-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spieler-id { flex: none; min-width: 44px; height: 40px; padding: 0 8px; border-radius: 14px; display: grid; place-items: center; background: var(--feld); border: 1px solid var(--rand-stark); font-weight: 800; font-variant-numeric: tabular-nums; }
.spieler-id.gross { min-width: 58px; height: 58px; font-size: 20px; border-radius: 18px; }
.spieler-kopf { display: flex; align-items: center; gap: 14px; }
.aktionen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.aktionen .knopf { height: 48px; padding: 0 12px; font-size: 15px; }
.hinweis-box { padding: 12px 14px; border-radius: 16px; background: var(--feld); border: 1px solid var(--rand); color: var(--leise); font-size: 14px; }
.hinweis-box.warn { background: rgba(255,122,138,.08); border-color: rgba(255,122,138,.35); color: #ffd0d6; }
select.eingabe { appearance: none; }

/* Team: Webpanel */
.panel-reiter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 18px; background: var(--feld); border: 1px solid var(--rand); }
.panel-tab { height: 40px; border: 0; border-radius: 14px; background: transparent; color: var(--blass); font-size: 14px; font-weight: 800; }
.panel-tab.aktiv { background: rgba(111,230,216,.12); color: var(--text); }
.abschnitt-titel.klein { font-size: 12px; }
.lm-offen-knopf { height: 48px; }
.spieler-zeile.gesperrt { opacity: .55; }
.spieler-zeile.laeuft .spieler-id { border-color: var(--tuerkis); color: var(--tuerkis); }
.spieler-zeile.gefahr { border-color: rgba(255,122,138,.45); }
.zeile-text strong .mini-marke { margin-left: 6px; vertical-align: 2px; }
.mini-marke { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; background: var(--feld); border: 1px solid var(--rand-stark); color: var(--leise); }
.mini-marke.gefahr, .marke.gefahr { background: rgba(255,122,138,.16); border-color: rgba(255,122,138,.5); color: #ffc2ca; }
.mini-marke.neu { background: rgba(111,230,216,.16); border-color: rgba(111,230,216,.45); color: var(--tuerkis); }
.mini-marke.neu.leise { background: transparent; }
.mini-marke.stufe-supporter { color: #a8d8ff; }
.mini-marke.stufe-admin { color: #ffd38a; }
.mini-marke.stufe-inhaber { color: #f0b4ff; }
.wahl-liste { display: grid; gap: 8px; }
.zugriff-liste { display: grid; gap: 10px; }
.zugriff-karte { margin: 0; padding: 0; }
.zugriff-karte summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; }
.zugriff-karte summary::-webkit-details-marker { display: none; }
.zugriff-karte.aus summary strong { color: var(--blass); }
.schalter-liste { display: grid; gap: 6px; padding: 0 12px 14px; }
.schalter { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--rand); background: var(--feld); color: var(--text); font-size: 14px; font-weight: 700; text-align: left; }
.schalter i { flex: none; position: relative; width: 42px; height: 24px; border-radius: 999px; background: rgba(255,255,255,.12); transition: background .15s; }
.schalter i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #cfe0e8; transition: transform .15s; }
.schalter.an i { background: var(--tuerkis); }
.schalter.an i::after { transform: translateX(18px); background: #052027; }
.schalter:disabled { opacity: .6; }
.log-zeile.laeuft { border-color: rgba(111,230,216,.45); }

/* Vollbild-Fenster (Bot-Panel, Regelwerk) - Kopf bleibt stehen, nur der Inhalt scrollt */
.vb-huelle { overflow: hidden; }
.vb-huelle .zk-kopf strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vb-zurueck { font-size: 26px; line-height: 1; }
.vb-koerper { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; padding-bottom: 8px; }
.bp-huelle .vb-koerper { display: flex; overflow: hidden; padding-bottom: 0; }
.bp-frame { flex: 1; width: 100%; min-height: 0; border: 1px solid var(--rand-stark); border-radius: 16px; background: var(--grund); }
.rw-hinweis { display: grid; gap: 4px; width: 100%; text-align: left; cursor: pointer; }
.rw-klein { font-size: 12px; font-weight: 800; color: var(--blass); }
.rw-nr { font-size: 15px; font-weight: 800; }
.rw-absatz { align-items: flex-start; }
.zeile-text .rw-pfad { color: var(--tuerkis); font-size: 12px; font-weight: 700; }
.rw-vorschau { display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 13px; color: var(--leise); line-height: 1.4; }
.rw-abschnitt { display: grid; gap: 8px; margin-top: 6px; }
.rw-abschnitt .abschnitt-titel { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.rw-verwalten { display: grid; gap: 10px; margin-top: 22px; }
.rw-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Live-Monitor (über der Seite, unter den Blättern - Aktionen öffnen sich darüber) */
.lm-huelle {
  position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; gap: 10px; background: #03070c;
  padding: calc(env(safe-area-inset-top) + 10px) 12px calc(env(safe-area-inset-bottom) + 12px); overflow-y: auto; overscroll-behavior: contain;
}
.lm-grid { display: grid; gap: 12px; }
.lm-kachel { border-radius: 18px; border: 1px solid var(--rand-stark); background: var(--karte, #0a1620); overflow: hidden; }
.lm-kopf { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 10px; min-width: 0; }
.lm-kopf .spieler-id { min-width: 36px; height: 32px; border-radius: 11px; font-size: 13px; }
.lm-kopf strong { flex: 1; min-width: 0; font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-status { flex: none; font-size: 11.5px; font-weight: 800; color: var(--blass); }
.lm-status.laeuft { color: var(--tuerkis); }
.lm-status.fehler { color: #ff9aa6; }
.lm-knopf { flex: none; width: 34px; height: 34px; border-radius: 11px; border: 1px solid var(--rand-stark); background: var(--feld); color: var(--text); font-size: 16px; font-weight: 800; line-height: 1; }
.lm-bild { position: relative; aspect-ratio: 16 / 9; background: #000; }
.lm-bild video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.lm-warte { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; font-size: 13px; font-weight: 700; color: var(--blass); }
@media (min-width: 900px) { .lm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (min-width: 700px) {
  .kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zk-huelle { padding-left: max(12px, calc(50vw - 380px)); padding-right: max(12px, calc(50vw - 380px)); }
}

@media (min-width: 700px) {
  .zahlen { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .zahl.gross { grid-column: span 2; }
  #blatt { border-radius: 30px; margin-bottom: 24px; border-bottom: 1px solid var(--rand-stark); }
  #blatt-huelle { align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
