/* Reinigungs-Demo „Glanzwerk“ – Rahmen wie die Gastro-Demo, eigene Farbwelt: Tiefsee-Blau, Aqua, Limette.
   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 {
  --tief: #0b2533; --tief2: #081c27; --aqua: #3cc9c4; --limette: #c9f07a; --auf-akzent: #06222b;
  --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;
  --grund: #eef5f6; --flaeche: #ffffff; --flaeche-2: #dfeaed; --text: #10232c; --leise: #4c6370;
  --linie: rgba(16,35,44,.15); --akzent-t: #0b6e6a; --rot: #b3261e; --rot-flaeche: #fde4e1; --gruen: #1f7a3a; --gruen-flaeche: #e0f3e5;
  --gelb: #8a5a00; --gelb-flaeche: #fff1c9; --blau: #1d5fb8; --blau-flaeche: #e1ecfb;
  --schatten: 0 12px 30px -18px rgba(8,28,39,.55); --hinterlegt: rgba(8,28,39,.55);
  --erkl: #e0f4f3; --erkl-rand: #1a8f8a;
  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(#eef5f6, #0c171d); --flaeche: light-dark(#ffffff, #142530); --flaeche-2: light-dark(#dfeaed, #223744);
    --text: light-dark(#10232c, #e8f1f3); --leise: light-dark(#4c6370, #a5bac3); --linie: light-dark(rgba(16,35,44,.15), rgba(232,241,243,.15));
    --akzent-t: light-dark(#0b6e6a, #6fe3dd); --rot: light-dark(#b3261e, #ff8a7a); --rot-flaeche: light-dark(#fde4e1, #4a1f1b);
    --gruen: light-dark(#1f7a3a, #7fdc98); --gruen-flaeche: light-dark(#e0f3e5, #183b25);
    --gelb: light-dark(#8a5a00, #ffd36b); --gelb-flaeche: light-dark(#fff1c9, #3e3110);
    --blau: light-dark(#1d5fb8, #8ab8ff); --blau-flaeche: light-dark(#e1ecfb, #1a2c48);
    --schatten: light-dark(0 12px 30px -18px rgba(8,28,39,.55), 0 12px 30px -14px rgba(0,0,0,.85)); --hinterlegt: light-dark(rgba(8,28,39,.55), rgba(0,0,0,.72));
    --erkl: light-dark(#e0f4f3, #12302f); --erkl-rand: light-dark(#1a8f8a, #5fd1cb);
  }
}
* { 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; }
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 { font-family: var(--titel); font-weight: 800; margin: 0; line-height: 1.12; }
a { color: var(--akzent-t); }
.leise { color: var(--leise); }
.stand { opacity: .6; }
:focus-visible { outline: 3px solid var(--aqua); 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(--aqua); 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: #e8f1f3; background: var(--tief2); border-bottom: 4px solid var(--aqua); position: sticky; top: 0; z-index: 30; }
.marke { display: flex; align-items: center; gap: 10px; color: var(--aqua); 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: #c4d6dc; margin-top: 3px; }
.ansichten { display: flex; gap: 4px; flex-wrap: wrap; margin-left: 6px; }
.ansichten button { color: #e8f1f3; font-weight: 800; font-size: 14px; letter-spacing: .03em; padding: 10px 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.ansichten button[aria-pressed="true"] { background: rgba(60,201,196,.18); color: var(--aqua); }
.zahl-punkt { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #d8452f; 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: #e8f1f3; }
.uhr { font-family: var(--titel); font-weight: 800; font-size: 24px; color: var(--limette); 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, #12384a 0 14px, #0f3242 14px 28px); color: #e8f1f3; }
.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(--limette); 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: .02em; 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.aqua { background: var(--aqua); color: var(--auf-akzent); }
.knopf.limette { background: var(--limette); color: var(--auf-akzent); }
.knopf.gruen { background: #1f7a3a; color: #fff; }
.knopf.rot { background: #b3261e; color: #fff; }
.knopf.rand { background: transparent; border-color: var(--linie); }
.knopf.rand.hell { border-color: rgba(232,241,243,.38); color: #e8f1f3; }
.knopf.rand.hell[aria-pressed="false"] { opacity: .75; }
.knopf.gross { min-height: 58px; font-size: 17px; padding: 12px 22px; border-radius: 16px; }
.knopf.klein { min-height: 40px; padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.knopf.voll { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 46px; padding: 8px 14px; border-radius: 12px; background: var(--flaeche-2); color: var(--text); font-weight: 700; border: 2px solid transparent; }
.chip[aria-pressed="true"] { background: var(--aqua); color: var(--auf-akzent); border-color: var(--tief); }
.chips.klein .chip { min-height: 38px; font-size: 13px; padding: 5px 11px; }
.umschalter { display: flex; gap: 6px; }

/* ---------- Bühne ---------- */
main { flex: 1; width: 100%; max-width: 1400px; margin: 0 auto; padding: 16px 16px 40px; }
.bereich-titel { font-size: 26px; margin: 18px 0 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bereich-titel.klein { font-size: 19px; margin-top: 28px; }
.zaehler { font-family: var(--text-f); font-size: 15px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--flaeche-2); }
.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: 900px; }
.erkl b { display: block; margin-bottom: 2px; }
body.erkl-aus .erkl { display: none; }
.ruhe { padding: 26px 20px; text-align: center; color: var(--leise); border: 2px dashed var(--linie); border-radius: 16px; }
.ruhe svg { display: block; margin: 0 auto 8px; }

/* Pillen für Status */
.stat { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.stat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stat.geplant { background: var(--blau-flaeche); color: var(--blau); }
.stat.laeuft { background: var(--erkl); color: var(--akzent-t); }
.stat.erledigt { background: var(--gruen-flaeche); color: var(--gruen); }
.stat.konflikt, .stat.unbesetzt, .stat.neu, .stat.krank { background: var(--rot-flaeche); color: var(--rot); }
.stat.spaet, .stat.eingeplant { background: var(--gelb-flaeche); color: var(--gelb); }
.stat.laeuft::before { animation: blinken 1.2s infinite; }

.warnungen { display: grid; gap: 8px; margin-bottom: 10px; }
.warnung { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border-radius: 12px; background: var(--rot-flaeche); color: var(--rot); font-weight: 700; }
.warnung.gelb { background: var(--gelb-flaeche); color: var(--gelb); }
.warnung .knopf { margin-left: auto; }

/* ---------- Gantt ---------- */
.gantt-rolle { overflow-x: auto; border-radius: 16px; background: var(--flaeche); box-shadow: var(--schatten); border: 1px solid var(--linie); }
.gantt { min-width: 860px; position: relative; padding: 4px 0 8px; }
.g-achse, .g-zeile { display: grid; grid-template-columns: 150px 1fr; align-items: center; }
.g-achse { height: 30px; border-bottom: 1px solid var(--linie); font-size: 12px; color: var(--leise); }
.g-skala { position: relative; height: 100%; }
.g-skala span { position: absolute; top: 7px; transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.g-zeile { min-height: 58px; border-bottom: 1px dashed var(--linie); }
.g-zeile:last-child { border-bottom: 0; }
.g-name { padding: 6px 12px; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; line-height: 1.2; }
.g-name small { display: block; font-weight: 500; color: var(--leise); font-size: 12px; }
.g-spur { position: relative; height: 58px; background-image: linear-gradient(to right, var(--linie) 1px, transparent 1px); background-size: 6.25% 100%; }
.balken-e { position: absolute; top: 9px; height: 40px; border-radius: 10px; padding: 4px 8px; overflow: hidden; text-align: left; font-size: 12px; line-height: 1.2; font-weight: 700; color: var(--auf-akzent); background: #9fd8f0; border: 2px solid transparent; box-shadow: 0 4px 10px -6px rgba(0,0,0,.5); }
.balken-e b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.balken-e span { white-space: nowrap; font-weight: 600; opacity: .85; }
.balken-e.laeuft { background: var(--aqua); }
.balken-e.erledigt { background: #b6e3c3; color: #10351d; }
.balken-e.konflikt, .balken-e.unbesetzt { border-color: #d8452f; background: #ffd4cc; color: #4a0f08; }
.balken-e .fort { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--tief); opacity: .55; }
.jetzt-linie { position: absolute; top: 0; bottom: 0; width: 2px; background: #d8452f; z-index: 2; pointer-events: none; }
.jetzt-linie::before { content: "jetzt"; position: absolute; top: 32px; left: 4px; font-size: 11px; font-weight: 800; color: #d8452f; background: var(--flaeche); padding: 0 3px; border-radius: 4px; }
.g-zeile.unbesetzt-zeile .g-name { color: var(--rot); }
.legende { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; font-size: 13px; color: var(--leise); }
.lg::before { content: ""; display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: #9fd8f0; }
.lg.laeuft::before { background: var(--aqua); }
.lg.erledigt::before { background: #b6e3c3; }
.lg.konflikt::before { background: #ffd4cc; outline: 2px solid #d8452f; }

/* Personen-Kreise */
.kreis { flex: none; width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--auf-akzent); background: #9fd8f0; }
.kreis.f0 { background: #ffd08a; } .kreis.f1 { background: #9fd8f0; } .kreis.f2 { background: #c9f07a; }
.kreis.f3 { background: #f5b4d0; } .kreis.f4 { background: #c7bdf7; } .kreis.f5 { background: #8fe3c8; }
.kreis.krank { background: #ffd4cc; color: #4a0f08; text-decoration: line-through; }
.team { display: inline-flex; }
.team .kreis { width: 28px; height: 28px; font-size: 11px; margin-left: -6px; border: 2px solid var(--flaeche); }
.team .kreis:first-child { margin-left: 0; }

/* ---------- Einsatzliste ---------- */
.einsatz-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ekarte { display: grid; gap: 8px; text-align: left; padding: 14px; border-radius: 16px; background: var(--flaeche); border: 2px solid var(--linie); box-shadow: var(--schatten); width: 100%; }
.ekarte.konflikt, .ekarte.unbesetzt { border-color: #d8452f; }
.ekarte .zeile1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ekarte .zeit { font-family: var(--titel); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.ekarte .zeile1 .stat { margin-left: auto; }
.ekarte h3 { font-size: 17px; }
.ekarte .unten { display: flex; align-items: center; gap: 10px; justify-content: space-between; font-size: 13px; color: var(--leise); }
.balken { display: block; height: 8px; border-radius: 99px; background: var(--flaeche-2); overflow: hidden; }
.balken i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--aqua), var(--limette)); transition: width .3s; }
.balken.gross { height: 12px; }
.balken.warn i { background: linear-gradient(90deg, #f0a43c, #ffd36b); }

/* ---------- Woche ---------- */
.tabelle-rolle { overflow-x: auto; border-radius: 16px; background: var(--flaeche); box-shadow: var(--schatten); border: 1px solid var(--linie); }
.woche { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 13px; }
.woche th, .woche td { padding: 8px 10px; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
.woche thead th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--leise); }
.woche th.heute, .woche td.heute { background: var(--erkl); }
.woche tbody th { font-size: 14px; min-width: 170px; }
.wz { display: grid; gap: 4px; margin-bottom: 6px; padding: 6px 8px; border-radius: 8px; background: var(--flaeche-2); }
.wz b { font-variant-numeric: tabular-nums; }
.wz.konflikt, .wz.unbesetzt { background: var(--rot-flaeche); color: var(--rot); }
.wz.erledigt { background: var(--gruen-flaeche); }

/* ---------- Mein Tag (Handy) ---------- */
.ich-wahl { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ich-wahl .chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; }
.handy { max-width: 430px; margin: 0 auto 0 0; padding: 12px; border-radius: 34px; background: var(--tief); box-shadow: var(--schatten); }
.handy-schirm { border-radius: 24px; background: var(--grund); padding: 16px; min-height: 480px; display: grid; gap: 14px; align-content: start; }
.mt-gruss { display: flex; align-items: center; gap: 10px; }
.mt-gruss .kreis { width: 44px; height: 44px; font-size: 15px; }
.mt-gruss b { display: block; font-size: 18px; }
.mt-karte { padding: 14px; border-radius: 18px; background: var(--flaeche); border: 1px solid var(--linie); display: grid; gap: 10px; }
.mt-karte.aktiv { border: 3px solid var(--aqua); }
.mt-karte h3 { font-size: 19px; }
.mt-info { display: grid; gap: 4px; font-size: 14px; }
.mt-info span { display: flex; gap: 8px; align-items: flex-start; }
.mt-info svg { flex: none; margin-top: 2px; }
.schluessel { padding: 8px 10px; border-radius: 10px; background: var(--gelb-flaeche); color: var(--gelb); font-weight: 700; font-size: 14px; }
.stempel { display: grid; justify-items: center; gap: 4px; padding: 12px; border-radius: 16px; background: var(--tief); color: #e8f1f3; }
.stempel .lauf { font-family: var(--titel); font-weight: 800; font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--limette); }
.stempel small { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.cl-bereich { display: grid; gap: 6px; }
.cl-bereich > b { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--akzent-t); margin-top: 4px; }
.aufgabe { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 12px; border-radius: 12px; background: var(--flaeche-2); text-align: left; font-weight: 600; }
.aufgabe .hk { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--leise); display: grid; place-items: center; }
.aufgabe[aria-pressed="true"] { background: var(--gruen-flaeche); }
.aufgabe[aria-pressed="true"] .hk { background: var(--gruen); border-color: var(--gruen); }
.aufgabe[aria-pressed="true"] .hk::after { content: ""; width: 7px; height: 12px; border: solid var(--flaeche); border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.aufgabe[aria-pressed="true"] .tx { text-decoration: line-through; opacity: .7; }
.aufgabe.reklamation { background: var(--rot-flaeche); color: var(--rot); }
.aufgabe .iv { margin-left: auto; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--leise); }
.mt-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mt-weitere { display: grid; gap: 8px; }
.mt-klein { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--flaeche); border: 1px solid var(--linie); font-size: 14px; }
.mt-klein .zeit { font-weight: 800; font-variant-numeric: tabular-nums; }
.mt-klein .stat { margin-left: auto; }

/* ---------- Meldungen ---------- */
.melde-liste { display: grid; gap: 12px; }
.mkarte { display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--flaeche); border: 1px solid var(--linie); box-shadow: var(--schatten); }
.mkarte.neu { border: 3px solid #d8452f; }
.mkarte .kopfzeile { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.mkarte .kopfzeile .stat { margin-left: auto; }
.mkarte .zitat { font-size: 18px; font-weight: 700; }
.mkarte .meta { font-size: 13px; color: var(--leise); }
.kanal { padding: 3px 9px; border-radius: 8px; background: var(--flaeche-2); font-size: 12px; font-weight: 800; }
.mail { display: block; padding: 10px 12px; border-radius: 10px; background: var(--grund); border: 1px dashed var(--linie); font-size: 14px; }
.mail i { display: block; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--leise); margin-bottom: 4px; }

/* ---------- Objekte ---------- */
.objekt-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; align-items: start; }
.okarte { border-radius: 18px; background: var(--flaeche); border: 1px solid var(--linie); box-shadow: var(--schatten); overflow: hidden; }
.okarte > header { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--tief); color: #e8f1f3; }
.okarte > header h3 { font-size: 18px; color: #fff; }
.okarte > header small { display: block; font-size: 13px; color: #c4d6dc; }
.okarte .symbol { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(60,201,196,.18); }
.okarte .rumpf { padding: 12px 16px 16px; display: grid; gap: 10px; }
.okarte details { border-top: 1px solid var(--linie); padding-top: 8px; }
.okarte summary { cursor: pointer; font-weight: 800; min-height: 32px; display: flex; align-items: center; }
.plan-liste { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.plan-liste li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--linie); }
.iv-pille { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--erkl); color: var(--akzent-t); white-space: nowrap; }
.iv-pille.w { background: var(--gelb-flaeche); color: var(--gelb); }

/* ---------- Übersicht ---------- */
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.kennzahl { padding: 14px 16px; border-radius: 16px; background: var(--flaeche); border: 1px solid var(--linie); box-shadow: var(--schatten); display: grid; gap: 6px; }
.kennzahl b { font-family: var(--titel); font-weight: 800; font-size: 30px; font-variant-numeric: tabular-nums; }
.kennzahl span { font-size: 13px; color: var(--leise); }
.objekt-zahlen, .team-zahlen { display: grid; gap: 10px; }
.ozeile { display: grid; grid-template-columns: minmax(180px, 1.3fr) 2fr 1fr auto; gap: 12px 16px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--linie); }
.ozeile .name b { display: block; }
.ozeile .name small, .ozeile .wert small { color: var(--leise); font-size: 12px; }
.ozeile .wert { display: grid; gap: 4px; font-size: 14px; font-weight: 700; }
.tzeile { display: grid; grid-template-columns: auto 1fr 2fr; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--linie); font-size: 14px; }
.bericht { display: grid; gap: 12px; margin-top: 14px; }
.bericht .kennzahlen { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.bericht .kennzahl { box-shadow: none; }
.bericht .kennzahl b { font-size: 24px; }
.bericht ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.papier { padding: 16px; border-radius: 12px; background: var(--grund); border: 1px solid var(--linie); }

/* ---------- So funktioniert's ---------- */
.hilfe { max-width: 860px; }
.gross-text { font-size: 19px; }
.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; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- Dialoge ---------- */
dialog { border: 0; border-radius: 20px; padding: 0; width: min(640px, 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; }
dialog .unter { margin: 4px 0 0; color: var(--leise); }
dialog .abschnitt { margin-top: 18px; }
dialog .abschnitt > b, dialog .abschnitt label > b { display: block; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--akzent-t); margin-bottom: 10px; }
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 220px; }
dialog .bild { display: block; width: 100%; max-width: 260px; height: auto; margin-bottom: 12px; }
textarea { width: 100%; border-radius: 12px; border: 2px solid var(--linie); background: var(--grund); padding: 10px 12px; resize: vertical; margin-bottom: 8px; }
.an-inhalt { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--grund); display: grid; gap: 6px; }
.vorschau { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--gelb-flaeche); display: grid; gap: 8px; }
.vorschau:empty { display: none; }
.team-zeilen { display: grid; gap: 8px; }
.tz { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--grund); }
.tz .wer { flex: 1; font-weight: 700; line-height: 1.2; }
.tz .wer small { display: block; font-weight: 500; font-size: 12px; color: var(--leise); }
.krank-liste { display: grid; gap: 12px; margin-top: 14px; }
.kz { padding: 12px 14px; border-radius: 14px; background: var(--grund); border: 1px solid var(--linie); display: grid; gap: 8px; }
.kz.fertig { background: var(--gruen-flaeche); }
.kz .vorschlag { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Hinweis unten */
.hinweis { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 220px); display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px); padding: 12px 14px 12px 18px; border-radius: 14px; background: var(--tief2); color: #e8f1f3; font-weight: 700; z-index: 80; transition: transform .2s; box-shadow: var(--schatten); }
.hinweis.sichtbar { transform: translate(-50%, 0); }
.hinweis button { background: var(--aqua); color: var(--auf-akzent); padding: 9px 14px; border-radius: 10px; font-weight: 800; font-size: 13px; white-space: nowrap; }

.fuss { padding: 16px; text-align: center; font-size: 13px; color: var(--leise); border-top: 1px solid var(--linie); }
@keyframes blinken { 50% { opacity: .3; } }

@media (max-width: 760px) {
  .kopf { padding: 8px 10px; position: static; gap: 6px; }
  .marke small, .uhr { display: none; }
  .ansichten { order: 3; width: 100%; margin-left: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
  .ansichten button { padding: 6px 4px; font-size: 12px; justify-content: center; min-height: 40px; }
  .demo-leiste { padding: 8px 10px; gap: 8px; }
  .demo-text { font-size: 14px; }
  .demo-knoepfe .knopf { flex: 1 1 auto; min-height: 40px; padding: 6px 10px; font-size: 12px; }
  .demo-knoepfe #simKnopf, .demo-knoepfe #krankKnopf { flex-basis: 45%; }
  .einsatz-liste, .objekt-liste { grid-template-columns: 1fr; }
  .ozeile { grid-template-columns: 1fr 1fr; }
  .ozeile .name { grid-column: 1 / -1; }
  .tzeile { grid-template-columns: auto 1fr; }
  .tzeile .balken { grid-column: 1 / -1; }
  .kennzahlen { grid-template-columns: 1fr 1fr; }
  .kennzahl b { font-size: 24px; }
  .erkl { font-size: 14px; padding: 10px 12px; }
  .hinweis { width: calc(100vw - 24px); }
  .handy { padding: 8px; border-radius: 26px; }
  .handy-schirm { padding: 12px; }
  .stempel .lauf { font-size: 38px; }
  main { padding: 10px 10px 30px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition: none !important; } }
