/* Pflege-Demo „Alltagshilfe Sonnenweg“ – Rahmen übernommen aus friseur/app.css (dort aus gastro), eigene Farbwelt:
   tiefes Petrol, Salbei, Sonnengelb, Koralle. Systemschriften, nichts wird nachgeladen.
   Hell/Dunkel/Gerät: feste helle Werte als Rückfall, dann light-dark() mit color-scheme am <html> (thema.js).
   Inseln mit festem hellem Grund: Unterschriftsfeld und Nachweis-Blatt (Papier). */
:root {
  --dunkel: #13302f; --dunkel2: #0e2524; --sonne: #f6c453; --koralle: #d96b4f; --salbei: #8fd3c5;
  --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: #1a1a10;
  --grund: #f3f6f2; --flaeche: #ffffff; --flaeche-2: #e2ebe4; --text: #172320; --leise: #4c5b56;
  --linie: rgba(23,35,32,.15); --akzent-t: #1b6a60; --rot: #a8321d; --rot-flaeche: #fbe3dc; --gruen: #1f6e3a; --gruen-flaeche: #dff1e3;
  --gelb: #6d4a00; --gelb-flaeche: #fdf0c8; --blau: #1b4a9c; --blau-flaeche: #dce8fb;
  --schatten: 0 12px 28px -18px rgba(14,37,36,.55); --hinterlegt: rgba(14,37,36,.55);
  --erkl: #e6f1ed; --erkl-rand: #2f7d72;
  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(#f3f6f2, #0d1918); --flaeche: light-dark(#ffffff, #152524); --flaeche-2: light-dark(#e2ebe4, #22383a);
    --text: light-dark(#172320, #e8f0ec); --leise: light-dark(#4c5b56, #a8bab4); --linie: light-dark(rgba(23,35,32,.15), rgba(232,240,236,.16));
    --akzent-t: light-dark(#1b6a60, #7fd3c4); --rot: light-dark(#a8321d, #ff8a70); --rot-flaeche: light-dark(#fbe3dc, #47201a);
    --gruen: light-dark(#1f6e3a, #74d98f); --gruen-flaeche: light-dark(#dff1e3, #173a22);
    --gelb: light-dark(#6d4a00, #ffd476); --gelb-flaeche: light-dark(#fdf0c8, #3f3312);
    --blau: light-dark(#1b4a9c, #a3c4ff); --blau-flaeche: light-dark(#dce8fb, #1b2c47);
    --schatten: light-dark(0 12px 28px -18px rgba(14,37,36,.55), 0 12px 28px -14px rgba(0,0,0,.8)); --hinterlegt: light-dark(rgba(14,37,36,.55), rgba(0,0,0,.7));
    --erkl: light-dark(#e6f1ed, #16302d); --erkl-rand: light-dark(#2f7d72, #6cc4b6);
  }
}
* { 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.15; }
a { color: var(--akzent-t); }
.leise { color: var(--leise); }
.stand { opacity: .6; }
:focus-visible { outline: 3px solid var(--sonne); 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(--sonne); 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: #eef4f0; background: var(--dunkel2); border-bottom: 4px solid var(--sonne); position: sticky; top: 0; z-index: 30; }
.marke { display: flex; align-items: center; gap: 10px; color: var(--sonne); text-decoration: none; font-family: var(--titel); font-weight: 800; font-size: 21px; 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: #cfe2db; margin-top: 3px; }
.ansichten { display: flex; gap: 4px; flex-wrap: wrap; margin-left: 6px; }
.ansichten button { color: #eef4f0; font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 10px 11px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.ansichten button[aria-pressed="true"] { background: rgba(246,196,83,.18); color: var(--sonne); }
.zahl-punkt { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--koralle); 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: 7px 13px; border-radius: 999px; font-weight: 800; font-size: 13px; background: rgba(255,255,255,.1); color: #eef4f0; white-space: nowrap; }
.pille.symbol { font-size: 18px; padding: 6px 12px; }
.uhr { font-family: var(--titel); font-weight: 800; font-size: 24px; color: var(--sonne); 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, #1c3d3b 0 14px, #183634 14px 28px); color: #eef4f0; }
.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(--sonne); 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: .03em; 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.sonne { background: var(--sonne); color: var(--auf-akzent); }
.knopf.koralle { background: #f0a58f; color: #2a120b; }
.knopf.gruen { background: #1f6e3a; color: #fff; }
.knopf.petrol { background: #1b6a60; color: #fff; }
.knopf.blau { background: #1b4a9c; color: #fff; }
.knopf.rot { background: #a8321d; color: #fff; }
.knopf.rand { background: transparent; border-color: var(--linie); }
.knopf.rand.hell { border-color: rgba(238,244,240,.35); color: #eef4f0; }
.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.breit { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 46px; padding: 8px 14px; border-radius: 14px; background: var(--flaeche-2); color: var(--text); font-weight: 700; font-size: 15px; border: 3px solid transparent; display: inline-flex; align-items: center; gap: 8px; text-align: left; }
.chip small { display: block; font-weight: 600; font-size: 12px; opacity: .8; }
.chip[aria-pressed="true"] { background: var(--sonne); color: var(--auf-akzent); border-color: var(--dunkel); }
.chips.klein .chip { min-height: 40px; padding: 5px 12px; font-size: 14px; }

/* ---------- 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-size: 15px; padding: 3px 10px; border-radius: 999px; background: var(--flaeche-2); }
.bereich-kopf { display: flex; align-items: center; gap: 10px 16px; 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: 26px 20px; text-align: center; color: var(--leise); border: 2px dashed var(--linie); border-radius: 16px; }

/* Status-Pillen */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: 12px; letter-spacing: .04em; white-space: nowrap; background: var(--flaeche-2); color: var(--text); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.status.unterwegs { background: var(--blau-flaeche); color: var(--blau); }
.status.vor_ort { background: var(--gelb-flaeche); color: var(--gelb); }
.status.erledigt { background: var(--gruen-flaeche); color: var(--gruen); }
.status.abgesagt { background: var(--rot-flaeche); color: var(--rot); }
.status.ersatz { background: var(--erkl); color: var(--akzent-t); }
.legende { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Meldungen (Anfragen, Lücken) ---------- */
.meldungen { display: grid; gap: 12px; margin: 10px 0; }
.meldungen:empty { display: none; }
.meldung { border-radius: 18px; background: var(--flaeche); box-shadow: var(--schatten); border: 3px solid var(--sonne); overflow: hidden; }
.meldung.luecke { border-color: var(--koralle); }
.meldung.neu-rein { animation: puls 1.1s ease-in-out 3; }
.meldung > header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px 16px; background: var(--sonne); color: var(--auf-akzent); font-weight: 800; }
.meldung.luecke > header { background: #f0a58f; color: #2a120b; }
.meldung > header .wann { margin-left: auto; font-weight: 700; font-size: 14px; }
.meldung-inhalt { padding: 12px 16px; display: grid; gap: 8px; }
.meldung-inhalt .gross-name { font-family: var(--titel); font-weight: 800; font-size: 20px; }
.meldung-inhalt blockquote { margin: 0; padding: 8px 12px; border-left: 4px solid var(--linie); background: var(--grund); border-radius: 0 10px 10px 0; }
.meldung > footer { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 16px 16px; }
.vorschlaege { display: grid; gap: 8px; }
.vorschlag { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--grund); border: 1px solid var(--linie); }
.vorschlag b { display: block; }
.vorschlag .leise { font-size: 14px; }
@keyframes puls { 50% { box-shadow: 0 0 0 10px rgba(246,196,83,.45), var(--schatten); } }

/* ---------- Tourenplan ---------- */
.touren { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); gap: 16px; }
.tour { background: var(--flaeche); border-radius: 18px; border: 1px solid var(--linie); box-shadow: var(--schatten); padding: 14px 16px; display: grid; gap: 12px; min-width: 0; }
.tour-kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tour-kopf .wer b { display: block; font-size: 18px; }
.tour-kopf .wer span { font-size: 14px; color: var(--leise); }
.tour-kopf .jetzt-text { margin-left: auto; font-weight: 700; font-size: 14px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 16px; flex: none; color: #10201e; }
.avatar.f1 { background: #f6c453; } .avatar.f2 { background: #8fd3c5; } .avatar.f3 { background: #f0a58f; } .avatar.f4 { background: #c7b8f0; }
.avatar.klein { width: 34px; height: 34px; font-size: 13px; }
.zeitleiste { position: relative; height: 54px; border-radius: 10px; background: var(--grund); border: 1px solid var(--linie); }
.zl-stunde { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--linie); }
.zl-stunde span { position: absolute; bottom: 2px; left: 3px; font-size: 10px; color: var(--leise); font-variant-numeric: tabular-nums; }
.zl-block { position: absolute; top: 6px; height: 30px; border-radius: 7px; padding: 0 6px; font-size: 12px; font-weight: 800; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; background: var(--flaeche-2); color: var(--text); border-left: 4px solid var(--leise); line-height: 30px; }
.zl-block.unterwegs { background: var(--blau-flaeche); color: var(--blau); border-left-color: var(--blau); }
.zl-block.vor_ort { background: var(--gelb-flaeche); color: var(--gelb); border-left-color: #c9921a; }
.zl-block.erledigt { background: var(--gruen-flaeche); color: var(--gruen); border-left-color: var(--gruen); }
.zl-block.abgesagt { background: repeating-linear-gradient(135deg, var(--rot-flaeche) 0 6px, transparent 6px 12px); color: var(--rot); border-left-color: var(--rot); text-decoration: line-through; }
.zl-block.luecke { background: repeating-linear-gradient(135deg, var(--gelb-flaeche) 0 6px, transparent 6px 12px); color: var(--gelb); border: 2px dashed #c9921a; }
.zl-jetzt { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 2px solid var(--koralle); z-index: 2; pointer-events: none; }
.zl-jetzt::before { content: ""; position: absolute; left: -6px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--koralle); }
.stopps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.stopp { display: grid; grid-template-columns: 30px 58px 1fr auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; width: 100%; text-align: left; }
.stopp:hover { background: var(--grund); }
.stopp .nr { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--dunkel); color: var(--sonne); }
.stopp .zeit { font-weight: 800; font-variant-numeric: tabular-nums; }
.stopp .wohin { min-width: 0; }
.stopp .wohin b { display: block; overflow-wrap: anywhere; }
.stopp .wohin span { font-size: 13px; color: var(--leise); }
.stopp.abgesagt .wohin b { text-decoration: line-through; opacity: .7; }
.stopp-fahrt { margin: -2px 0 -2px 21px; padding-left: 16px; border-left: 2px dotted var(--linie); font-size: 12px; color: var(--leise); }

/* ---------- Mein Tag ---------- */
.handy-wahl { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 12px 0; }
.handy-buehne { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 24px; align-items: start; }
.handy { border: 10px solid #0b1716; border-radius: 34px; background: var(--grund); box-shadow: var(--schatten); overflow: hidden; max-width: 420px; width: 100%; }
.handy-kopf { display: flex; justify-content: space-between; padding: 12px 18px 8px; background: var(--dunkel); color: #eef4f0; font-weight: 800; }
.handy-kopf span:last-child { color: var(--sonne); font-variant-numeric: tabular-nums; }
.handy-fortschritt { display: grid; gap: 6px; padding: 0 18px 12px; background: var(--dunkel); color: #cfe2db; font-size: 14px; }
.balken { display: block; height: 8px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; }
.balken > span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--sonne); transition: width .3s; }
.handy-liste { display: grid; gap: 10px; padding: 12px; }
.hkarte { background: var(--flaeche); border-radius: 16px; border: 1px solid var(--linie); padding: 12px; display: grid; gap: 10px; }
.hkarte.aktuell { border: 3px solid var(--sonne); box-shadow: var(--schatten); }
.hkarte.abgesagt { opacity: .7; }
.hk-kopf { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.hk-kopf .zeit { font-family: var(--titel); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.hk-kopf b { display: block; }
.hk-kopf .adr { font-size: 13px; color: var(--leise); }
.hk-hinweise { display: grid; gap: 4px; margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--erkl); font-size: 14px; list-style: none; }
.hk-hinweise li { display: grid; grid-template-columns: 22px 1fr; gap: 6px; align-items: start; }
.hk-hinweise svg, .hinw svg { margin-top: 2px; }
.leistungen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.leistung { min-height: 52px; padding: 8px 10px; border-radius: 12px; background: var(--flaeche-2); border: 2px solid transparent; font-weight: 700; display: flex; align-items: center; gap: 8px; text-align: left; }
.leistung .kaestchen { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--leise); display: grid; place-items: center; flex: none; background: var(--flaeche); }
.leistung[aria-pressed="true"] { background: var(--gruen-flaeche); border-color: var(--gruen); color: var(--gruen); }
.leistung[aria-pressed="true"] .kaestchen { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.notizfeld { display: grid; gap: 4px; font-weight: 700; font-size: 14px; }
textarea { width: 100%; min-height: 70px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--linie); background: var(--grund); resize: vertical; }
textarea:focus { outline: none; border-color: var(--sonne); }
.laeuft { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--gelb); background: var(--gelb-flaeche); padding: 8px 12px; border-radius: 10px; }
.mini-sig { color: #1b2a4a; background: #fffdf7; border-radius: 8px; border: 1px solid rgba(0,0,0,.12); width: 120px; height: 44px; display: block; }
.buero-spiegel { background: var(--flaeche); border-radius: 18px; border: 1px solid var(--linie); padding: 16px; display: grid; gap: 10px; }
.buero-spiegel h3 { font-size: 20px; }
.spiegel-liste { display: grid; gap: 8px; }
.spiegel-zeile { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--grund); }
.spiegel-zeile .zeit { font-weight: 800; font-variant-numeric: tabular-nums; }
.protokoll { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.protokoll li { padding: 4px 0; border-bottom: 1px dashed var(--linie); }
.protokoll li:last-child { border-bottom: 0; }
.protokoll b { font-variant-numeric: tabular-nums; margin-right: 6px; }

/* ---------- Klienten ---------- */
.klienten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.kkarte { background: var(--flaeche); border-radius: 18px; border: 1px solid var(--linie); box-shadow: var(--schatten); padding: 14px 16px; display: grid; gap: 10px; align-content: start; }
.kk-kopf { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.kk-kopf b { display: block; font-size: 18px; }
.kk-kopf span { font-size: 14px; color: var(--leise); }
.kk-zeile { display: flex; flex-wrap: wrap; gap: 6px; }
.kk-block { font-size: 14px; display: grid; gap: 4px; }
.kk-block > i { font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--akzent-t); }
.hinw { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hinw li { display: grid; grid-template-columns: 22px 1fr; gap: 6px; align-items: start; }

/* ---------- Leistungsnachweis (Papier) ---------- */
.nw-steuer .abschnitt { margin-top: 10px; }
.nw-steuer .abschnitt > b, dialog .abschnitt > b { display: block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--akzent-t); margin-bottom: 8px; }
.blatt { color-scheme: light; background: #fffefb; color: #1c2321; border-radius: 6px; box-shadow: 0 20px 40px -24px rgba(0,0,0,.6); padding: 28px 30px; max-width: 900px; margin-top: 16px; border: 1px solid #e3e0d6; }
.blatt a { color: #1b6a60; }
.blatt-kopf { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 3px solid #13302f; padding-bottom: 12px; }
.blatt-kopf .firma { display: flex; gap: 10px; align-items: center; }
.blatt-kopf .firma b { display: block; font-family: var(--titel); font-size: 19px; }
.blatt-kopf .firma span, .blatt-kopf .doc span { font-size: 13px; color: #55605c; }
.blatt-kopf .doc { text-align: right; }
.blatt-kopf .doc b { display: block; font-family: var(--titel); font-size: 22px; letter-spacing: .02em; }
.blatt-angaben { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 16px 0; font-size: 14px; }
.blatt-angaben i { display: block; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #55605c; }
.nw-tabelle { width: 100%; border-collapse: collapse; font-size: 14px; }
.nw-tabelle th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #55605c; border-bottom: 2px solid #13302f; padding: 6px 6px; }
.nw-tabelle td { border-bottom: 1px solid #e3e0d6; padding: 6px; vertical-align: middle; }
.nw-tabelle td.zahl, .nw-tabelle th.zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nw-tabelle .sig-zelle { width: 132px; }
.nw-tabelle .sig-zelle svg { color: #1b2a4a; display: block; width: 120px; height: 40px; }
.nw-tabelle .fehlt { display: inline-block; padding: 3px 8px; border-radius: 6px; background: #fbe3dc; color: #8a2814; font-weight: 800; font-size: 12px; }
.nw-tabelle tfoot td { font-weight: 800; border-bottom: 0; border-top: 2px solid #13302f; }
.blatt-fuss { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; font-size: 13px; color: #55605c; }
.blatt-fuss .unterschriftlinie { border-top: 1px solid #1c2321; padding-top: 4px; margin-top: 34px; }
.muster { margin-top: 18px; font-size: 12px; color: #55605c; text-align: center; border-top: 1px dashed #c9c4b6; padding-top: 8px; }
.blatt .leer { padding: 22px; text-align: center; color: #55605c; border: 2px dashed #d9d4c6; border-radius: 10px; }

/* ---------- Übersicht ---------- */
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
.kennzahl { padding: 14px; border-radius: 16px; background: var(--flaeche); border: 1px solid var(--linie); display: grid; gap: 2px; }
.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); }
.kennzahl.warn b { color: var(--rot); }
.wochenstunden { display: grid; gap: 12px; max-width: 900px; }
.ws-zeile { display: grid; grid-template-columns: auto 160px 1fr; gap: 12px; align-items: center; }
.ws-zeile .name b { display: block; }
.ws-zeile .name span { font-size: 13px; color: var(--leise); }
.ws-balken { position: relative; height: 22px; border-radius: 999px; background: var(--flaeche-2); overflow: hidden; }
.ws-balken .ist, .ws-balken .plan { position: absolute; top: 0; bottom: 0; left: 0; }
.ws-balken .plan { background: repeating-linear-gradient(135deg, rgba(27,106,96,.35) 0 6px, rgba(27,106,96,.18) 6px 12px); }
.ws-balken .ist { background: #2f7d72; }
.ws-text { grid-column: 3; font-size: 13px; color: var(--leise); margin-top: -8px; }
.kurz-liste { display: grid; gap: 8px; max-width: 900px; }
.kurz { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--flaeche); border: 1px solid var(--linie); }
.kurz .zeit { font-weight: 800; font-variant-numeric: tabular-nums; }
.kurz.leer-zeile { grid-template-columns: 1fr; color: var(--leise); }

/* ---------- 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: 16px; }
dialog .fuss { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--linie); background: var(--grund); position: sticky; bottom: 0; }
dialog .fuss .knopf.gross { flex: 1 1 220px; }
.willkommen-bild { margin-bottom: 14px; border-radius: 16px; overflow: hidden; line-height: 0; }
.an-inhalt { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--grund); display: grid; gap: 8px; }
.an-inhalt .zeile { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vorschau { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--gelb-flaeche); }
.vorschau .mail { display: block; margin-top: 8px; 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; }
.sig-papier { color-scheme: light; position: relative; margin-top: 14px; border-radius: 14px; background: #fffdf7; border: 2px solid #d8d2c2; overflow: hidden; }
.sig-flaeche { display: block; width: 100%; height: 200px; touch-action: none; cursor: crosshair; }
.sig-linie { position: absolute; left: 16px; right: 16px; bottom: 40px; border-bottom: 2px solid #c9c2ae; color: #8b8370; font-weight: 800; pointer-events: none; padding-bottom: 2px; }

/* 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(--dunkel2); color: #eef4f0; font-weight: 700; z-index: 80; transition: transform .2s; box-shadow: var(--schatten); }
.hinweis.sichtbar { transform: translate(-50%, 0); }
.hinweis button { background: var(--sonne); 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); }

@media (max-width: 900px) {
  .handy-buehne { grid-template-columns: 1fr; }
  .handy { margin: 0 auto; }
}
@media (max-width: 760px) {
  .kopf { padding: 8px 10px; position: static; gap: 6px; }
  .marke { font-size: 18px; }
  .marke small, .uhr { display: none; }
  .ansichten { order: 3; width: 100%; margin-left: 0; justify-content: space-between; }
  .ansichten button { padding: 6px 7px; font-size: 11px; 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 #absageKnopf { flex-basis: 45%; }
  .kennzahlen { grid-template-columns: 1fr 1fr; }
  .erkl { font-size: 14px; padding: 10px 12px; }
  .hinweis { width: calc(100vw - 24px); }
  main { padding: 10px 10px 30px; }
  .stopp { grid-template-columns: 28px 50px 1fr; }
  .stopp .status { grid-column: 3; justify-self: start; }
  .zl-block { font-size: 0; padding: 0; }
  .handy { border-width: 6px; border-radius: 26px; }
  .leistungen { grid-template-columns: 1fr; }
  .ws-zeile { grid-template-columns: auto 1fr; }
  .ws-zeile .ws-balken { grid-column: 1 / -1; }
  .ws-text { grid-column: 1 / -1; margin-top: -6px; }
  .vorschlag { grid-template-columns: 1fr; }
  .blatt { padding: 18px 14px; }
  .blatt-angaben { grid-template-columns: 1fr; }
  .blatt-kopf .doc { text-align: left; }
  .blatt-fuss { grid-template-columns: 1fr; }
  /* Tabelle wird zu Karten: jede Zelle trägt ihre Spaltenüberschrift selbst (data-spalte). */
  .nw-tabelle thead { display: none; }
  .nw-tabelle, .nw-tabelle tbody, .nw-tabelle tfoot, .nw-tabelle tr { display: block; }
  .nw-tabelle tr { border-bottom: 1px solid #e3e0d6; padding: 6px 0; }
  .nw-tabelle td { display: grid; grid-template-columns: 96px 1fr; gap: 8px; border: 0; padding: 3px 0; text-align: left; }
  .nw-tabelle td.zahl { text-align: left; }
  .nw-tabelle td:not(:first-child)[data-spalte]::before { content: attr(data-spalte); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #55605c; }
  .nw-tabelle td:first-child { font-weight: 800; display: block; }
  .nw-tabelle tfoot td { border-top: 0; }
  .nw-tabelle tfoot tr { border-top: 2px solid #13302f; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition: none !important; } }

/* Drucken: nur das Blatt. */
@media print {
  .kopf, .demo-leiste, .fuss, .erkl, .nw-steuer, .hinweis, .zum-inhalt, dialog { display: none !important; }
  body { background: #fff; }
  main { padding: 0; max-width: none; }
  .blatt { box-shadow: none; border: 0; margin: 0; max-width: none; padding: 0; }
}
