/* web/style.css – TT Trainer v3. Hell/dunkel über Variablen, mobil zuerst. */

:root {
  --bg: #f4f6fa; --flaeche: #ffffff; --flaeche2: #f8fafc; --linie: #e2e8f0; --linie2: #cbd5e1;
  --text: #0f172a; --text2: #475569; --text3: #64748b;
  --primaer: #1d4ed8; --primaer-hell: #dbeafe; --primaer-text: #ffffff;
  --a: #1d4ed8; --a-hell: #dbeafe; --b: #c2410c; --b-hell: #ffedd5;
  --ok: #15803d; --ok-hell: #dcfce7; --warn: #b45309; --warn-hell: #fef3c7; --fehler: #b91c1c; --fehler-hell: #fee2e2;
  --schatten: 0 1px 2px rgb(15 23 42 / .06), 0 2px 8px rgb(15 23 42 / .05);
  --schatten2: 0 10px 40px rgb(15 23 42 / .18);
  --r: 10px; --r2: 14px;
  --nav: #0f172a; --nav-text: #cbd5e1; --nav-aktiv: #1e3a8a;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120; --flaeche: #131c2e; --flaeche2: #182235; --linie: #243049; --linie2: #334155;
    --text: #e2e8f0; --text2: #a8b3c7; --text3: #8391a7;
    --primaer: #3b82f6; --primaer-hell: #1e2f55; --a: #60a5fa; --a-hell: #1e2f55; --b: #fb923c; --b-hell: #3a2414;
    --ok: #4ade80; --ok-hell: #14301f; --warn: #fbbf24; --warn-hell: #3a2c0c; --fehler: #f87171; --fehler-hell: #3b1414;
    --nav: #060b16; --nav-aktiv: #1e3a8a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1120; --flaeche: #131c2e; --flaeche2: #182235; --linie: #243049; --linie2: #334155;
  --text: #e2e8f0; --text2: #a8b3c7; --text3: #8391a7;
  --primaer: #3b82f6; --primaer-hell: #1e2f55; --a: #60a5fa; --a-hell: #1e2f55; --b: #fb923c; --b-hell: #3a2414;
  --ok: #4ade80; --ok-hell: #14301f; --warn: #fbbf24; --warn-hell: #3a2c0c; --fehler: #f87171; --fehler-hell: #3b1414;
  --nav: #060b16; --nav-aktiv: #1e3a8a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
a { color: var(--primaer); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
h1 { font-size: 1.35rem; } h2 { font-size: 1.1rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .5em; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

/* ── Grundgerüst ─────────────────────────────────────────────────────────── */
.app { display: flex; min-height: 100vh; }
.nav {
  width: 216px; flex: none; background: var(--nav); color: var(--nav-text);
  display: flex; flex-direction: column; padding: 14px 10px; gap: 2px; position: sticky; top: 0; height: 100vh;
}
.nav .marke { font-weight: 800; font-size: 1.05rem; color: #fff; padding: 4px 10px 16px; display: flex; gap: 8px; align-items: center; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px;
  color: var(--nav-text); font-weight: 500; position: relative;
}
.nav a:hover { background: rgb(255 255 255 / .06); text-decoration: none; }
.nav a.aktiv { background: var(--nav-aktiv); color: #fff; }
.nav .zahl { margin-left: auto; background: var(--b); color: #fff; border-radius: 99px; font-size: .72rem; padding: 0 7px; font-weight: 700; }
.nav .unten { margin-top: auto; font-size: .78rem; color: #64748b; padding: 8px 12px; }
.haupt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.seite { padding: 18px 22px 40px; max-width: 1500px; width: 100%; margin: 0 auto; }
.seite.breit { max-width: none; }

.kopf {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 22px; background: var(--flaeche); border-bottom: 1px solid var(--linie);
  position: sticky; top: 0; z-index: 20;
}
.kopf .titel { flex: 1; min-width: 200px; }
.kopf .titel small { display: block; color: var(--text3); font-size: .82rem; margin-top: 2px; }
.kopf input.titel-feld {
  font-size: 1.3rem; font-weight: 700; border: 1px solid transparent; background: transparent;
  padding: 3px 6px; margin-left: -7px; border-radius: 7px; width: 100%;
}
.kopf input.titel-feld:hover { border-color: var(--linie); }
.kopf input.titel-feld:focus { border-color: var(--primaer); outline: none; background: var(--flaeche2); }
.ungespeichert { color: var(--warn); font-size: .82rem; font-weight: 600; white-space: nowrap; }

/* Mobil: Navigation unten */
@media (max-width: 820px) {
  .app { flex-direction: column; }
  .nav {
    position: fixed; bottom: 0; top: auto; left: 0; right: 0; width: auto; height: auto; flex-direction: row;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); z-index: 50; justify-content: space-around; gap: 0;
  }
  .nav .marke, .nav .unten, .nav .nur-breit { display: none; }
  .nav a { flex-direction: column; gap: 2px; padding: 6px 4px; font-size: .68rem; flex: 1; text-align: center; border-radius: 8px; }
  .nav .zahl { position: absolute; top: 2px; right: 10%; margin: 0; }
  .haupt { padding-bottom: 72px; }
  .seite { padding: 12px 12px 30px; }
  .kopf { padding: 10px 12px; }
  .kopf .titel { min-width: 140px; }
}

/* ── Bausteine ───────────────────────────────────────────────────────────── */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r2); box-shadow: var(--schatten); }
.karte > .karte-kopf { display: flex; align-items: center; gap: 8px; padding: 12px 14px 0; }
.karte > .karte-kopf h2, .karte > .karte-kopf h3 { flex: 1; }
.karte > .karte-inhalt { padding: 12px 14px 14px; }
.abstand > * + * { margin-top: 14px; }
.reihe { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.reihe.oben { align-items: flex-start; }
.reihe.zwischen { justify-content: space-between; }
.spalten { display: grid; gap: 16px; }
.spalten.zwei { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.raster { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.dehnen { flex: 1; min-width: 0; }
.leise { color: var(--text3); }
.klein { font-size: .85rem; }
.fett { font-weight: 650; }
.vorumbruch { white-space: pre-wrap; }
.mitte { text-align: center; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--linie2); background: var(--flaeche); border-radius: 9px;
  padding: 7px 13px; cursor: pointer; font-weight: 550; white-space: nowrap; min-height: 36px;
  transition: background .12s, border-color .12s;
}
.knopf:hover { background: var(--flaeche2); border-color: var(--text3); }
.knopf:disabled { opacity: .5; cursor: default; }
.knopf.primaer { background: var(--primaer); border-color: var(--primaer); color: var(--primaer-text); }
.knopf.primaer:hover { filter: brightness(1.08); }
.knopf.gefahr { color: var(--fehler); }
.knopf.flach { border-color: transparent; background: transparent; }
.knopf.flach:hover { background: var(--flaeche2); }
.knopf.klein { padding: 3px 8px; min-height: 28px; font-size: .85rem; }
.knopf.rund { border-radius: 99px; }
.knopf.gross { padding: 12px 22px; font-size: 1.05rem; min-height: 48px; }
.knopf.ikon { padding: 6px; min-width: 34px; }

.feld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.feld > span { font-size: .78rem; font-weight: 600; color: var(--text2); }
input[type=text], input[type=search], input[type=password], input[type=date], input[type=time], input[type=number], input[type=url], select, textarea {
  border: 1px solid var(--linie2); background: var(--flaeche); border-radius: 8px; padding: 7px 10px; min-height: 36px; width: 100%;
}
textarea { resize: vertical; min-height: 64px; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primaer-hell); border-color: var(--primaer); }
input[type=number] { width: 80px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--primaer); }
label.schalter { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; user-select: none; }

.chip {
  display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 2px 10px;
  background: var(--flaeche2); border: 1px solid var(--linie); font-size: .82rem; white-space: nowrap; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis;
}
.chip.ziel { background: var(--ok-hell); border-color: transparent; color: var(--ok); }
.chip.tag { background: var(--primaer-hell); border-color: transparent; color: var(--primaer); }
.chip.warn { background: var(--warn-hell); border-color: transparent; color: var(--warn); }
.chip.neu { background: var(--b); color: #fff; border-color: transparent; font-weight: 700; }
.chip button { border: 0; background: none; padding: 0; cursor: pointer; opacity: .7; line-height: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }

.segment { display: inline-flex; border: 1px solid var(--linie2); border-radius: 9px; overflow: hidden; flex-wrap: wrap; }
.segment button { border: 0; background: var(--flaeche); padding: 6px 11px; cursor: pointer; font-weight: 550; border-right: 1px solid var(--linie); min-height: 34px; }
.segment button:last-child { border-right: 0; }
.segment button:hover { background: var(--flaeche2); }
.segment button.an { background: var(--primaer); color: #fff; }
.segment.klein button { padding: 3px 8px; font-size: .82rem; min-height: 28px; }
.wahlchips { display: flex; flex-wrap: wrap; gap: 5px; }
.wahlchips button {
  border: 1px solid var(--linie2); background: var(--flaeche); border-radius: 99px; padding: 4px 11px; cursor: pointer; font-size: .86rem; font-weight: 550;
}
.wahlchips button:hover { border-color: var(--text3); }
.wahlchips button.an { background: var(--primaer); border-color: var(--primaer); color: #fff; }

.spieler-a { color: var(--a); } .spieler-b { color: var(--b); }
.marke-a, .marke-b {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 99px; font-weight: 800; font-size: .78rem; color: #fff; flex: none;
}
.marke-a { background: var(--a); } .marke-b { background: var(--b); }

.leer { text-align: center; color: var(--text3); padding: 34px 16px; }
.leer h3 { color: var(--text2); margin-bottom: 6px; }
.hinweis { background: var(--warn-hell); color: var(--warn); border-radius: 9px; padding: 8px 12px; font-size: .88rem; }
.hinweis.info { background: var(--primaer-hell); color: var(--primaer); }
.hinweis.ok { background: var(--ok-hell); color: var(--ok); }
.hinweis.fehler { background: var(--fehler-hell); color: var(--fehler); }

.liste { display: flex; flex-direction: column; }
.liste > .zeile { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--linie); cursor: pointer; }
.liste > .zeile:last-child { border-bottom: 0; }
.liste > .zeile:hover { background: var(--flaeche2); }
.liste > .zeile.an { background: var(--primaer-hell); }

table.tabelle { border-collapse: collapse; width: 100%; font-size: .9rem; }
.tabelle th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text3); font-weight: 650; padding: 6px 8px; border-bottom: 1px solid var(--linie); }
.tabelle td { padding: 7px 8px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle tr:last-child td { border-bottom: 0; }

/* Menü und Dialog */
.menue-anker { position: relative; display: inline-block; }
.menue {
  position: absolute; right: 0; top: calc(100% + 4px); min-width: 220px; z-index: 60;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 11px; box-shadow: var(--schatten2); padding: 5px;
}
.menue button { display: flex; width: 100%; gap: 9px; align-items: center; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 7px; cursor: pointer; }
.menue button:hover { background: var(--flaeche2); }
.menue hr { border: 0; border-top: 1px solid var(--linie); margin: 4px 0; }
.schleier { position: fixed; inset: 0; background: rgb(15 23 42 / .45); z-index: 100; display: grid; place-items: center; padding: 16px; }
.dialog { background: var(--flaeche); border-radius: 16px; box-shadow: var(--schatten2); width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.dialog.breit { width: min(900px, 100%); }
.dialog > header { padding: 16px 18px 6px; display: flex; gap: 8px; align-items: center; }
.dialog > header h2 { flex: 1; }
.dialog > .inhalt { padding: 8px 18px; overflow: auto; }
.dialog > footer { padding: 12px 18px 16px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200;
  background: #0f172a; color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--schatten2); max-width: calc(100vw - 32px);
  display: flex; gap: 12px; align-items: center;
}
.toast.fehler { background: var(--fehler); }
.toast button { background: none; border: 1px solid rgb(255 255 255 / .4); color: #fff; border-radius: 7px; padding: 3px 9px; cursor: pointer; }
@media (max-width: 820px) { .toast { bottom: 84px; } }
.offline-band { background: var(--warn-hell); color: var(--warn); text-align: center; font-size: .85rem; padding: 5px; font-weight: 600; }

/* ── Tisch / Grafik ──────────────────────────────────────────────────────── */
.tisch-gross svg { width: 100%; height: auto; max-height: calc(100vh - 210px); }
.tisch-gross .feld { cursor: crosshair; }
.tisch-gross .feld:hover { fill: rgb(29 78 216 / .14); }
.tisch-gross.ziel-a .feld[data-spieler="B"], .tisch-gross.ziel-b .feld[data-spieler="A"] { pointer-events: none; }
.bildfolge { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.bildfolge figure { margin: 0; font-size: .74rem; text-align: center; color: var(--text2); }
.bildfolge figure svg { width: 100%; height: auto; margin-bottom: 2px; }
.bildfolge figure b { display: block; }
.mini-tisch svg { width: 100%; height: auto; }

/* ── Übungen ─────────────────────────────────────────────────────────────── */
.uebung-karte { display: flex; gap: 12px; padding: 12px; cursor: pointer; transition: border-color .12s, transform .12s; }
.uebung-karte:hover { border-color: var(--primaer); }
.uebung-karte .mini-tisch { width: 62px; flex: none; }
.uebung-karte h3 { font-size: .96rem; margin-bottom: 3px; }
.uebung-karte p { font-size: .8rem; color: var(--text2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 5px; }
.filterleiste { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filterleiste input[type=search] { max-width: 300px; }

.editor { display: grid; grid-template-columns: minmax(360px, 440px) minmax(320px, 1fr) minmax(280px, 340px); gap: 14px; align-items: start; }
.editor > * { min-width: 0; }
/* Zwei Spalten: Vorschau unter den Ablauf (links) – der mitlaufende Tisch rechts
   hat seine Spalte für sich und gleitet beim Scrollen über nichts hinweg. */
@media (max-width: 1280px) {
  .editor { grid-template-columns: minmax(320px, 400px) 1fr; }
  .editor > .vorschau-spalte { grid-column: 1; }
  .editor > .mitte-tisch { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 860px) { .editor { grid-template-columns: 1fr; } .editor > .mitte-tisch { grid-column: auto; grid-row: auto; } }
.klebend { position: sticky; top: 86px; align-self: start; }
@media (max-width: 860px) { .klebend { position: static; } }

.abschnitt { border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); margin-bottom: 10px; }
.abschnitt.aktiv { border-color: var(--primaer); box-shadow: 0 0 0 3px var(--primaer-hell); }
.abschnitt > header { display: flex; gap: 6px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--linie); flex-wrap: wrap; }
.abschnitt > header h3 { font-size: .92rem; flex: 1; min-width: 80px; }
.teil { margin: 6px 6px 6px 8px; }
.teil.gruppe { border-left: 3px solid var(--linie2); padding-left: 6px; }
.teil-kopf { display: flex; gap: 6px; align-items: center; font-size: .78rem; color: var(--text3); padding: 2px 4px; }
.ball { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.ball:hover { background: var(--flaeche2); }
.ball.an { background: var(--primaer-hell); border-color: var(--primaer); }
.ball .nr { width: 20px; text-align: right; color: var(--text3); font-size: .78rem; font-variant-numeric: tabular-nums; }
.ball .was { flex: 1; min-width: 0; font-size: .9rem; }
.ball .was small { display: block; color: var(--text3); font-size: .76rem; }
.ball .aktionen { display: none; gap: 2px; }
.ball.an .aktionen, .ball:hover .aktionen { display: flex; }
.werkzeug { display: flex; flex-direction: column; gap: 8px; }
.werkzeug-einschub { margin: 0 0 8px; padding: 10px; border: 1px solid var(--primaer); border-top: 0; border-radius: 0 0 10px 10px; background: var(--flaeche2); }
.werkzeug-einschub .wahlchips button { padding: 2px 9px; font-size: .82rem; }
.einschub-tisch { display: none; }
@media (max-width: 860px) {
  .einschub-tisch { display: block; max-width: 320px; margin: 4px auto 0; }
  .mitte-tisch { display: none; }
}
.ball.an { border-radius: 8px 8px 0 0; }
.werkzeug .zeile { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.werkzeug .zeile > b { width: 62px; font-size: .78rem; color: var(--text2); flex: none; }

/* Animation */
.animation { position: relative; }
.animation .buehne svg { width: 100%; height: auto; max-height: 62vh; }
.animation .steuer { display: flex; gap: 6px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.animation .ansage { min-height: 2.6em; font-size: .9rem; }
.animation .ansage b { font-size: 1rem; }

/* ── Einheiten ───────────────────────────────────────────────────────────── */
.einheit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .einheit-layout { grid-template-columns: 1fr; } }
.position { display: flex; gap: 10px; padding: 10px 12px; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); margin-bottom: 8px; align-items: flex-start; }
.position.pause { background: var(--flaeche2); }
.position.ziehen { opacity: .4; }
.position.drueber { border-color: var(--primaer); box-shadow: 0 -3px 0 var(--primaer); }
.position .griff { cursor: grab; color: var(--text3); padding-top: 4px; touch-action: none; }
.position .uhr { font-variant-numeric: tabular-nums; color: var(--text3); font-size: .82rem; width: 42px; padding-top: 3px; flex: none; }
.position .koerper { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.position .mini-tisch { width: 54px; flex: none; }
.zeitbalken { height: 8px; border-radius: 99px; background: var(--linie); overflow: hidden; display: flex; }
.zeitbalken > div { height: 100%; }
.einheit-zeile { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--linie); cursor: pointer; }
.einheit-zeile:hover { background: var(--flaeche2); }
.einheit-zeile .datum { width: 64px; text-align: center; flex: none; line-height: 1.1; }
.einheit-zeile .datum b { display: block; font-size: 1.3rem; }
.einheit-zeile .datum small { color: var(--text3); font-size: .72rem; text-transform: uppercase; }

/* Training (Timer) */
.training { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.training .oben { display: flex; gap: 8px; align-items: center; padding: 10px 14px; background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.training .timer { text-align: center; padding: 18px 12px 8px; }
.training .timer .ziffern { font-size: clamp(4rem, 18vw, 9rem); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.02em; }
.training .timer .art { font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.training.pause .timer .art { color: var(--ok); }
.training.wechsel .timer .art { color: var(--b); }
.training .timer .fortschritt { height: 6px; background: var(--linie); border-radius: 99px; margin: 12px auto 0; max-width: 520px; overflow: hidden; }
.training .timer .fortschritt > div { height: 100%; background: var(--primaer); transition: width .3s linear; }
.training .steuerung { display: flex; justify-content: center; gap: 10px; padding: 8px; flex-wrap: wrap; }
.training .inhalt { padding: 10px 14px 30px; max-width: 980px; margin: 0 auto; width: 100%; }
.training.letzte-sekunden .ziffern { color: var(--b); }

/* Erkenntnisse, Videos */
.erkenntnis { padding: 12px 14px; }
.erkenntnis .text { white-space: pre-wrap; }
.erkenntnis.wichtig { border-left: 4px solid var(--warn); }
.erkenntnis.neu { border-left: 4px solid var(--b); }
.video-karte { overflow: hidden; display: flex; flex-direction: column; }
.video-karte .bild { aspect-ratio: 16 / 9; background: var(--flaeche2) center / cover no-repeat; display: grid; place-items: center; color: var(--text3); position: relative; }
.video-karte .bild .zeit { position: absolute; right: 6px; bottom: 6px; background: rgb(0 0 0 / .75); color: #fff; font-size: .75rem; border-radius: 5px; padding: 1px 6px; }
.video-karte .text { padding: 10px 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }

/* Verlauf */
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kachel { padding: 12px 14px; }
.kachel .wert { font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.kachel .name { color: var(--text3); font-size: .82rem; }
.balken-zeile { display: grid; grid-template-columns: minmax(110px, 190px) 1fr 70px; gap: 8px; align-items: center; font-size: .88rem; margin-bottom: 5px; }
.balken-zeile .spur { height: 14px; background: var(--flaeche2); border-radius: 4px; overflow: hidden; }
.balken-zeile .spur > div { height: 100%; background: var(--primaer); border-radius: 4px; }
.balken-zeile .zahl { text-align: right; font-variant-numeric: tabular-nums; color: var(--text2); }

/* Anmelden / Einrichtung */
.zentriert { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.anmelden { width: min(380px, 100%); padding: 26px; }

/* ── Druck ───────────────────────────────────────────────────────────────── */
.druck { background: #fff; color: #000; max-width: 190mm; margin: 0 auto; padding: 10mm 0; font-size: 10.5pt; }
.druck h1 { font-size: 16pt; } .druck h2 { font-size: 12pt; margin: 10px 0 4px; }
.druck .d-pos { display: grid; grid-template-columns: 21mm 1fr; gap: 4mm; border-top: 1px solid #ccc; padding: 3mm 0; break-inside: avoid; }
.druck .d-pos svg { width: 21mm; height: auto; }
.druck .d-kopf { display: flex; justify-content: space-between; gap: 10px; border-bottom: 2px solid #000; padding-bottom: 3mm; margin-bottom: 2mm; }
.druck .d-bildfolge { display: flex; flex-wrap: wrap; gap: 2mm; margin-top: 2mm; }
.druck .d-bildfolge figure { margin: 0; width: 17mm; font-size: 6.5pt; text-align: center; }
.druck .d-bildfolge svg { width: 17mm; height: auto; }
.druck-leiste { position: sticky; top: 0; background: var(--flaeche); border-bottom: 1px solid var(--linie); padding: 10px; display: flex; gap: 8px; justify-content: center; z-index: 5; }
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  .druck-leiste, .nav, .toast { display: none !important; }
  .druck { padding: 0; max-width: none; }
}
