/* Werkstatt-Demo – Rahmen übernommen aus gastro/ und friseur/ (Kopf, Demo-Leiste, Knöpfe, Dialoge, Hinweis),
   eigene Marke „Kolbenwerk“: Nachtblau-Petrol, Signalorange, Stahlgrau. Systemschriften, nichts wird nachgeladen.
   Hell/Dunkel/Gerät: feste helle Werte als Rückfall, dann light-dark() mit color-scheme am <html> (thema.js). */
:root {
  --dunkel: #13212b; --dunkel2: #0e1820; --akzent: #f5a524; --tomate: #d9480f;
  --titel: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --text-f: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --auf-akzent: #1a1305;
  --grund: #eef2f4; --flaeche: #ffffff; --flaeche-2: #dfe6ea; --text: #14202a; --leise: #4d5b64;
  --linie: rgba(20,32,42,.16); --akzent-t: #9a4600; --rot: #a3221a; --rot-flaeche: #fbe2dd; --gruen: #1f6b35; --gruen-flaeche: #dff1e3;
  --gelb-flaeche: #fdf0d2; --violett: #5b3a8a; --violett-flaeche: #ece4f7; --blau: #1d4f8f; --blau-flaeche: #e0eaf6;
  --orange: #8a4b00; --orange-flaeche: #fdeccc;
  --schatten: 0 10px 26px -16px rgba(14,24,32,.55); --hinterlegt: rgba(14,24,32,.6);
  --erkl: #e6eef3; --erkl-rand: #2f6b8c;
  color-scheme: light;
}
:root[data-thema="dunkel"] { color-scheme: dark; }
:root[data-thema="geraet"] { color-scheme: light dark; }
@supports (color: light-dark(#000, #fff)) {
  :root {
    --grund: light-dark(#eef2f4, #0f161b); --flaeche: light-dark(#ffffff, #18232b); --flaeche-2: light-dark(#dfe6ea, #24333d);
    --text: light-dark(#14202a, #e9eff2); --leise: light-dark(#4d5b64, #a7b6bf); --linie: light-dark(rgba(20,32,42,.16), rgba(233,239,242,.16));
    --akzent-t: light-dark(#9a4600, #ffb35c); --rot: light-dark(#a3221a, #ff8a78); --rot-flaeche: light-dark(#fbe2dd, #47201a);
    --gruen: light-dark(#1f6b35, #7ddc95); --gruen-flaeche: light-dark(#dff1e3, #173a22); --gelb-flaeche: light-dark(#fdf0d2, #3a2d10);
    --violett: light-dark(#5b3a8a, #c7aef0); --violett-flaeche: light-dark(#ece4f7, #2a1f3d);
    --blau: light-dark(#1d4f8f, #9cc4f0); --blau-flaeche: light-dark(#e0eaf6, #172a40);
    --orange: light-dark(#8a4b00, #ffc46b); --orange-flaeche: light-dark(#fdeccc, #3d2a0c);
    --schatten: light-dark(0 10px 26px -16px rgba(14,24,32,.55), 0 10px 26px -14px rgba(0,0,0,.85)); --hinterlegt: light-dark(rgba(14,24,32,.6), rgba(0,0,0,.72));
    --erkl: light-dark(#e6eef3, #16262f); --erkl-rand: light-dark(#2f6b8c, #7fbad8);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px/1.45 var(--text-f); color: var(--text); background: var(--grund); -webkit-tap-highlight-color: transparent; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; }
input, textarea, button { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; touch-action: manipulation; }
button:disabled { opacity: .45; cursor: default; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--titel); font-weight: 800; margin: 0; line-height: 1.15; }
a { color: var(--akzent-t); }
p { margin: 0; }
.leise { color: var(--leise); }
.klein { font-size: 13px; }
.stand { opacity: .6; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }

/* Sprunglink: versetzt, nicht verborgen; das Ziel <main> trägt tabindex="-1". */
.zum-inhalt { position: absolute; left: -10000px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--akzent); color: var(--auf-akzent); font-weight: 800; }
.zum-inhalt:focus { left: 8px; }
main:focus { outline: none; }

/* ---------- Kopf ---------- */
.kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px; min-height: 64px; color: #e9eff2; background: var(--dunkel2); border-bottom: 4px solid var(--akzent); position: sticky; top: 0; z-index: 30; }
.marke { display: flex; align-items: center; gap: 10px; color: var(--akzent); text-decoration: none; font-family: var(--titel); font-weight: 800; font-size: 24px; line-height: 1; }
.marke small { display: block; font-family: var(--text-f); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #c9d5dc; margin-top: 3px; }
.ansichten { display: flex; gap: 4px; flex-wrap: wrap; margin-left: 6px; }
.ansichten button { color: #e9eff2; font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; padding: 10px 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.ansichten button[aria-pressed="true"] { background: rgba(245,165,36,.18); color: var(--akzent); }
.zahl-punkt { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--tomate); color: #fff; font-size: 13px; display: inline-grid; place-items: center; }
.raum { flex: 1; }
.pille { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 18px; background: rgba(255,255,255,.1); color: #e9eff2; }
.uhr { font-family: var(--titel); font-weight: 800; font-size: 24px; color: var(--akzent); font-variant-numeric: tabular-nums; }

/* ---------- Demo-Leiste ---------- */
.demo-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 16px; background: repeating-linear-gradient(135deg, #1c2c36 0 14px, #17252e 14px 28px); color: #e9eff2; border-bottom: 3px solid #1a1305; }
.demo-text { margin: 0; flex: 1 1 280px; }
.demo-text b { display: inline-block; margin-right: 8px; padding: 2px 9px; border-radius: 6px; background: var(--akzent); color: var(--auf-akzent); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.demo-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Knöpfe, Chips ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 9px 16px; border-radius: 12px; font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; background: var(--flaeche-2); color: var(--text); border: 2px solid transparent; text-decoration: none; text-align: center; }
.knopf:active:not(:disabled) { transform: translateY(1px); }
.knopf.gelb { background: var(--akzent); color: var(--auf-akzent); }
.knopf.gruen { background: #1f6b35; color: #fff; }
.knopf.rot { background: #a3221a; color: #fff; }
.knopf.rand { background: transparent; border-color: var(--linie); }
.knopf.rand.hell { border-color: rgba(233,239,242,.4); color: #e9eff2; }
.knopf.rand.hell[aria-pressed="false"] { opacity: .8; }
.knopf.gross { min-height: 58px; font-size: 17px; padding: 12px 22px; border-radius: 16px; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-height: 50px; padding: 8px 14px; border-radius: 14px; background: var(--flaeche-2); color: var(--text); font-weight: 700; font-size: 15px; border: 3px solid transparent; text-align: left; }
.chip small { display: block; font-weight: 600; font-size: 12px; opacity: .8; }
.chip[aria-pressed="true"] { background: var(--akzent); color: var(--auf-akzent); border-color: var(--dunkel); }
.klein-chips .chip { min-height: 44px; padding: 6px 12px; }

/* ---------- Bühne ---------- */
main { flex: 1; width: 100%; max-width: 1500px; margin: 0 auto; padding: 16px 16px 48px; }
.bereich-titel { font-size: 26px; margin: 18px 0 10px; display: flex; align-items: center; gap: 10px; }
.bereich-titel.klein { font-size: 19px; margin-top: 28px; }
.zaehler { font-size: 15px; min-width: 28px; text-align: center; padding: 2px 9px; border-radius: 999px; background: var(--flaeche-2); font-family: var(--text-f); }
.bereich-kopf { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bereich-kopf .bereich-titel { margin-right: auto; }
.erkl { margin: 4px 0 8px; padding: 12px 16px; border-left: 5px solid var(--erkl-rand); border-radius: 0 12px 12px 0; background: var(--erkl); max-width: 920px; }
.erkl b { display: block; margin-bottom: 2px; }
body.erkl-aus .erkl { display: none; }
.ruhe { padding: 22px 16px; text-align: center; color: var(--leise); border: 2px dashed var(--linie); border-radius: 14px; font-size: 15px; }

/* ---------- Kennzeichen (erfundene Nummern im Musterformat) ---------- */
.kennzeichen { display: inline-flex; align-items: center; height: 28px; padding: 0 8px 0 20px; position: relative; border-radius: 5px; background: #fff; color: #111; border: 2px solid #111;
  font-family: "DIN Alternate", "Arial Narrow", var(--text-f); font-weight: 800; font-size: 15px; letter-spacing: .06em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kennzeichen::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 13px; background: #1d4ed8; border-radius: 2px 0 0 2px; }
.kennzeichen.gross { height: 40px; font-size: 22px; padding-left: 26px; }
.kennzeichen.gross::before { width: 18px; }

/* ---------- Status-Pillen ---------- */
.st { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; background: var(--flaeche-2); color: var(--text); }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st.angenommen { background: var(--blau-flaeche); color: var(--blau); }
.st.arbeit { background: var(--orange-flaeche); color: var(--orange); }
.st.teile { background: var(--violett-flaeche); color: var(--violett); }
.st.freigabe { background: var(--rot-flaeche); color: var(--rot); }
.st.fertig { background: var(--gruen-flaeche); color: var(--gruen); }
.legende { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------- Board ---------- */
.zusammen { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.zusammen span { background: var(--flaeche); border: 1px solid var(--linie); padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.zusammen b { color: var(--akzent-t); font-size: 16px; }
.zusammen .hervor { background: var(--gelb-flaeche); }
.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: start; }
.spalte { background: var(--flaeche-2); border-radius: 16px; padding: 10px; min-width: 0; border-top: 6px solid var(--linie); }
.sp-angenommen { border-top-color: #3f7cc4; } .sp-arbeit { border-top-color: #f5a524; } .sp-teile { border-top-color: #8a63c4; }
.sp-freigabe { border-top-color: #d6453a; } .sp-fertig { border-top-color: #2e9a4e; }
.spalte h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; padding: 2px 4px 10px; }
.spalte h3 .zaehler { background: var(--flaeche); }
.spalte-inhalt { display: grid; gap: 10px; }
.spalte .ruhe { background: transparent; padding: 16px 10px; font-size: 14px; }
.karte { background: var(--flaeche); border-radius: 14px; box-shadow: var(--schatten); border: 1px solid var(--linie); overflow: hidden; display: flex; flex-direction: column; }
.karte > header { padding: 8px 10px; border-bottom: 1px solid var(--linie); }
.karte-titel { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 36px; border-radius: 8px; }
.karte-titel .nr { font-weight: 800; color: var(--leise); font-size: 13px; }
.karte-inhalt { padding: 10px 12px; display: grid; gap: 6px; font-size: 14px; }
.karte .fz b { font-size: 15px; }
.karte .kd { color: var(--leise); }
.online { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--blau-flaeche); color: var(--blau); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.abs { display: flex; flex-wrap: wrap; gap: 5px; }
.ab { padding: 3px 9px; border-radius: 8px; background: var(--flaeche-2); font-size: 12px; font-weight: 700; }
.ab.zus { background: var(--gruen-flaeche); color: var(--gruen); }
.befund { padding: 8px 10px; border-radius: 10px; background: var(--rot-flaeche); color: var(--rot); font-weight: 800; font-size: 13px; }
.befund span { font-weight: 600; }
.meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--leise); padding-top: 4px; border-top: 1px dashed var(--linie); }
.meta b { color: var(--text); }
.spaet { font-size: 12px; font-weight: 700; color: var(--akzent-t); }
.karte > footer { display: flex; gap: 8px; padding: 0 12px 12px; margin-top: auto; }
.karte > footer .knopf { flex: 1; min-height: 44px; padding: 8px 10px; font-size: 13px; }
.karte.dringend { border: 2px solid #d6453a; animation: puls 1.6s ease-in-out infinite; }
@keyframes puls { 50% { box-shadow: 0 0 0 6px rgba(214,69,58,.25), var(--schatten); } }
.balken { height: 10px; border-radius: 999px; background: var(--flaeche-2); overflow: hidden; }
.balken span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #f5a524, #f08c1a); transition: width .4s; }
.balken span.voll { background: linear-gradient(90deg, #d6453a, #b3261e); }

/* ---------- Annahme ---------- */
.anfr-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.anfrage { background: var(--flaeche); border-radius: 16px; border: 3px solid var(--akzent); box-shadow: var(--schatten); padding: 12px 14px; display: grid; gap: 8px; }
.anfr-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.anfrage .knopf-reihe { margin-top: 4px; }
.annahme { background: var(--flaeche); border-radius: 18px; border: 1px solid var(--linie); padding: 16px; box-shadow: var(--schatten); max-width: 1000px; }
.felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.felder label { display: grid; gap: 4px; font-weight: 700; font-size: 14px; }
.felder input { min-height: 48px; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--linie); background: var(--grund); font-size: 16px; width: 100%; min-width: 0; }
.felder input:focus { border-color: var(--akzent); outline: none; }
.gross-schrift { text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.abschnitt { margin-top: 18px; }
.abschnitt > b { display: block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--akzent-t); margin-bottom: 10px; }
.vorschau { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--gelb-flaeche); }
.vorschau:empty { display: none; }
.vorschau .warn { color: var(--rot); font-weight: 700; }
.vorschau .mail { display: block; padding: 10px 12px; border-radius: 10px; background: var(--flaeche); border: 1px dashed var(--linie); font-size: 15px; }
.vorschau .mail i { display: block; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--leise); margin-bottom: 4px; }
.kurz-liste { display: grid; gap: 8px; }
.kurz { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--flaeche); border: 1px solid var(--linie); }
.kurz > span:nth-child(3) { flex: 1 1 200px; }
.kurz .zeit { font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- Bühnenplan ---------- */
.plan-rahmen { overflow-x: auto; background: var(--flaeche); border-radius: 16px; border: 1px solid var(--linie); padding: 12px; box-shadow: var(--schatten); }
.plan { min-width: 720px; display: grid; gap: 10px; }
.plan-stunden, .plan-zeile { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: stretch; }
.plan-achse { position: relative; height: 20px; }
.plan-achse span { position: absolute; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: var(--leise); font-variant-numeric: tabular-nums; }
.plan-bu { display: grid; align-content: center; padding: 8px 10px; border-radius: 12px; background: var(--dunkel); color: #e9eff2; }
.plan-bu b { color: var(--akzent); }
.plan-bu span { font-size: 13px; }
.plan-spur { position: relative; height: 74px; border-radius: 12px; background: repeating-linear-gradient(90deg, var(--flaeche-2) 0 2px, transparent 2px 100%), var(--grund); }
.plan-linie { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--linie); }
.plan-block { position: absolute; top: 6px; bottom: 6px; padding: 5px 8px; border-radius: 10px; overflow: hidden; text-align: left; display: grid; align-content: start; gap: 1px; font-size: 12px; line-height: 1.25; border: 2px solid transparent; }
.plan-block b { font-size: 13px; white-space: nowrap; }
.plan-block span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-block.st-angenommen { background: var(--blau-flaeche); color: var(--blau); border-color: #3f7cc4; }
.plan-block.st-arbeit { background: var(--orange-flaeche); color: var(--orange); border-color: #f5a524; }
.plan-block.st-teile { background: repeating-linear-gradient(135deg, var(--violett-flaeche) 0 8px, transparent 8px 14px), var(--flaeche); color: var(--violett); border-color: #8a63c4; }
.plan-block.st-freigabe { background: var(--rot-flaeche); color: var(--rot); border-color: #d6453a; }
.plan-block.st-fertig { background: var(--gruen-flaeche); color: var(--gruen); border-color: #2e9a4e; }
.plan-jetzt { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; background: var(--tomate); border-radius: 2px; z-index: 2; pointer-events: none; }
.plan-jetzt::before { content: ""; position: absolute; top: -4px; left: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--tomate); }

/* ---------- Kundensicht (Handy) ---------- */
.handy-buehne { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 18px; }
.handy { border-radius: 38px; padding: 12px; background: #0e1820; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); max-width: 380px; width: 100%; }
.handy-kopf { display: flex; justify-content: space-between; padding: 4px 16px 10px; color: #e9eff2; font-weight: 800; font-size: 14px; }
.handy-kopf span:first-child { color: var(--akzent); }
.leise-hell { color: #c9d5dc; font-variant-numeric: tabular-nums; }
.handy-inhalt { border-radius: 26px; background: var(--grund); padding: 16px; min-height: 520px; display: grid; gap: 14px; align-content: start; }
.k-leer { color: var(--leise); text-align: center; padding: 40px 10px; }
.k-gruss { font-weight: 700; }
.k-auto { display: flex; gap: 12px; align-items: center; background: var(--flaeche); border-radius: 16px; padding: 12px; border: 1px solid var(--linie); }
.k-auto span { font-weight: 800; }
.k-auto small { display: block; font-weight: 600; color: var(--leise); font-size: 12px; }
.k-banner { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--orange-flaeche); color: var(--orange); }
.k-banner b { font-size: 18px; font-family: var(--titel); }
.k-banner span { font-size: 14px; }
.k-banner.gruen { background: var(--gruen-flaeche); color: var(--gruen); grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
.k-banner.gruen div { display: grid; }
.k-banner.rot { background: var(--rot-flaeche); color: var(--rot); }
.k-banner.violett { background: var(--violett-flaeche); color: var(--violett); }
.k-kv { background: var(--flaeche); border-radius: 16px; padding: 14px; border: 2px solid #d6453a; display: grid; gap: 8px; }
.k-kv h4 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; }
.k-befund { font-size: 14px; color: var(--leise); }
.k-pos { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; padding-bottom: 8px; border-bottom: 1px dashed var(--linie); }
.k-pos b { font-size: 18px; white-space: nowrap; }
.k-knoepfe { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.zeitleiste { list-style: none; margin: 0; padding: 4px 0 0; display: grid; }
.zeitleiste li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; position: relative; padding-bottom: 14px; color: var(--leise); }
.zeitleiste li::after { content: ""; position: absolute; left: 10px; top: 18px; bottom: -2px; width: 2px; background: var(--linie); }
.zeitleiste li:last-child::after { display: none; }
.zeitleiste small { display: block; font-size: 12px; }
.zeitleiste .punkt { width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 3px solid var(--linie); background: var(--grund); position: relative; z-index: 1; }
.zeitleiste .erledigt { color: var(--text); }
.zeitleiste .erledigt .punkt { background: #2e9a4e; border-color: #2e9a4e; }
.zeitleiste .erledigt::after { background: #2e9a4e; }
.zeitleiste .jetzt { color: var(--text); font-weight: 800; }
.zeitleiste .jetzt .punkt { border-color: var(--akzent); background: var(--akzent); box-shadow: 0 0 0 5px rgba(245,165,36,.3); }
.k-fuss { font-size: 12px; color: var(--leise); text-align: center; border-top: 1px solid var(--linie); padding-top: 10px; }
.handy-seite h3 { font-size: 21px; margin-bottom: 10px; }
.handy-seite .leise { margin-top: 10px; }

/* ---------- Übersicht ---------- */
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.kennzahl { padding: 14px; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--linie); border-left: 6px solid var(--akzent); box-shadow: var(--schatten); }
.kennzahl.rot { border-left-color: #d6453a; } .kennzahl.violett { border-left-color: #8a63c4; } .kennzahl.gruen { border-left-color: #2e9a4e; }
.kennzahl b { display: block; font-family: var(--titel); font-weight: 800; font-size: 30px; font-variant-numeric: tabular-nums; }
.kennzahl span { font-size: 13px; color: var(--leise); }
.auslastung { display: grid; gap: 10px; max-width: 760px; }
.ausl { display: grid; grid-template-columns: 150px 1fr 52px; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--flaeche); border: 1px solid var(--linie); }
.ausl .balken { height: 14px; }
.ausl .zahl { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Hilfe ---------- */
.hilfe { max-width: 860px; }
.gross-text { font-size: 18px; margin: 10px 0 14px; }
.schritte { padding-left: 22px; display: grid; gap: 10px; }
.schritte.kompakt { gap: 6px; }
.haken { padding-left: 20px; display: grid; gap: 6px; }
.hilfe h3 { margin-top: 24px; font-size: 21px; margin-bottom: 8px; }
.hilfe .leise { margin-top: 14px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- Dialoge ---------- */
dialog { border: 0; border-radius: 20px; padding: 0; width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--flaeche); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); overflow-x: hidden; overflow-y: auto; }
dialog::backdrop { background: var(--hinterlegt); }
dialog .inhalt { padding: 22px; }
dialog h2 { font-size: 26px; margin-top: 10px; }
dialog .unter { margin: 4px 0 0; color: var(--leise); }
dialog .fuss { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; padding: 16px 22px; border-top: 1px solid var(--linie); background: var(--grund); position: sticky; bottom: 0; }
dialog .fuss .knopf.gross { flex: 1 1 200px; }
.w-bild { display: block; max-width: 100%; height: auto; margin-bottom: 4px; }
.au-kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.au-inhalt h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--akzent-t); margin: 18px 0 8px; }
.posten { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.posten li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px dashed var(--linie); }
.posten small { display: block; color: var(--leise); font-size: 12px; }
.posten b { white-space: nowrap; }
.posten .z-offen { color: var(--rot); }
.posten .z-abgelehnt { opacity: .55; text-decoration: line-through; }
.posten .summe { border-bottom: 0; font-weight: 800; font-size: 17px; }
.verlauf { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.verlauf .zeit { display: inline-block; min-width: 52px; font-weight: 800; color: var(--leise); font-variant-numeric: tabular-nums; }

/* ---------- Hinweis, Fuß ---------- */
.hinweis { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 220px); display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px); width: max-content; padding: 12px 14px 12px 18px; border-radius: 14px; background: var(--dunkel2); color: #e9eff2; font-weight: 700; z-index: 80; transition: transform .2s; box-shadow: var(--schatten); border-left: 5px solid var(--akzent); }
.hinweis.sichtbar { transform: translate(-50%, 0); }
.hinweis button { background: var(--akzent); color: var(--auf-akzent); padding: 9px 14px; border-radius: 10px; font-weight: 800; text-transform: uppercase; font-size: 13px; white-space: nowrap; min-height: 40px; }
.fuss { padding: 16px; text-align: center; font-size: 13px; color: var(--leise); border-top: 1px solid var(--linie); }

@media (max-width: 1180px) {
  .board { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 760px) {
  .kopf { padding: 8px 12px; gap: 6px; }
  .marke { font-size: 20px; }
  .ansichten { order: 3; width: 100%; margin-left: 0; }
  .ansichten button { font-size: 12px; padding: 8px; min-height: 40px; flex: 1 1 auto; justify-content: center; }
  .uhr { font-size: 20px; }
  main { padding: 12px 12px 40px; }
  .bereich-titel { font-size: 22px; }
  .board { grid-template-columns: 1fr; }
  .handy-buehne { grid-template-columns: 1fr; }
  .handy { margin: 0 auto; }
  .kennzahlen { grid-template-columns: 1fr 1fr; }
  .ausl { grid-template-columns: 1fr 52px; }
  .ausl > span:first-child { grid-column: 1 / -1; }
  .hinweis { width: calc(100vw - 24px); flex-wrap: wrap; }
  .demo-knoepfe .knopf { flex: 1 1 auto; font-size: 12px; padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition: none !important; } }
