:root { --bg: #f1f5f9; --karte: #fff; --text: #0f172a; --leise: #64748b; --akzent: #0369a1; --rand: #e2e8f0; --gut: #15803d; --warn: #b45309; }
@media (prefers-color-scheme: dark) { :root { --bg: #0f172a; --karte: #1e293b; --text: #e2e8f0; --leise: #94a3b8; --akzent: #38bdf8; --rand: #334155; --gut: #4ade80; --warn: #fbbf24; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.4 system-ui, sans-serif; padding-bottom: 72px; }
.kopf { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--karte); border-bottom: 1px solid var(--rand); position: sticky; top: 0; z-index: 5; }
.marke { font-weight: 700; color: var(--text); text-decoration: none; }
.wer { margin-left: auto; color: var(--leise); font-size: .9em; }
main { padding: 16px; max-width: 900px; margin: 0 auto; }
.leiste { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
.zahl { flex: 0 0 auto; background: var(--karte); border: 1px solid var(--rand); border-radius: 12px; padding: 8px 12px; min-width: 104px; }
.zahl b { display: block; font-size: 1.4em; } .zahl span { color: var(--leise); font-size: .78em; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.kachel { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; min-height: 120px; border-radius: 16px;
  background: var(--karte); border: 1px solid var(--rand); color: var(--text); text-decoration: none; text-align: center; padding: 10px; }
.kachel .sym { font-size: 2.2em; } .kachel small { color: var(--leise); }
.kachel.platz { opacity: .55; border-style: dashed; }
.knopf { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--rand); background: var(--akzent); color: #fff; font: inherit; cursor: pointer; }
.knopf.leise { background: transparent; color: var(--text); }
.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.leise { color: var(--leise); } .gut { color: var(--gut); } .warn { color: var(--warn); }
input, select, textarea { font: inherit; min-height: 44px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--rand); background: var(--karte); color: var(--text); width: 100%; }
.reihe { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; } .reihe > * { flex: 1 1 140px; }
.aufgabe { display: flex; gap: 10px; align-items: center; } .aufgabe .titel { flex: 1; } .aufgabe.wartet { opacity: .7; }
.reiter { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; } .reiter a { white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; }
.reiter a.an { background: var(--akzent); color: #fff; }
h1 { font-size: 1.3em; margin: 4px 0 12px; } h2 { font-size: 1.05em; margin: 18px 0 8px; }

.postfach { margin-top: 16px; } .postfach code { user-select: all; } .postfach .knopf { margin-left: 8px; }

/* PDF-Manager „Dokument scannen“ (18.10.2026) */
#sc-eingaenge .knopf.an { background: var(--akzent); color: #fff; }
.sc-seiten { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.sc-seite { position: relative; background: var(--karte); border: 1px solid var(--rand); border-radius: 10px; padding: 4px; }
.sc-seite img { width: 100%; height: 120px; object-fit: contain; display: block; }
.sc-seite > span { position: absolute; top: 4px; left: 6px; background: var(--akzent); color: #fff; border-radius: 8px; padding: 0 6px; font-size: .8em; }
.sc-knoepfe { display: flex; gap: 2px; } .sc-knoepfe .knopf { flex: 1; padding: 0; min-width: 0; }
.sc-buehne { position: relative; width: 100%; max-width: 600px; touch-action: none; }
.sc-buehne canvas { display: block; width: 100%; height: auto; border-radius: 8px; }
#sc-griffe { position: absolute; inset: 0; }
.sc-griff { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 3px solid #fff;
  background: rgba(14,165,233,.75); box-shadow: 0 1px 4px rgba(0,0,0,.4); touch-action: none; }
.sc-schalter { display: flex; align-items: center; gap: 6px; } .sc-schalter input { width: auto; min-height: 0; }
.sc-zuletzt { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; } .sc-zuletzt .knopf { min-height: 36px; font-size: .9em; overflow-wrap: anywhere; }
.warn-box { border-color: var(--warn); } #sc-haupt label, #sc-versand label { display: block; margin-top: 8px; }
.karte.gut { border-color: var(--gut); } .karte.warn { border-color: var(--warn); }
.knopf:disabled { opacity: .5; cursor: default; }
/* Kachel „Was Evo heute gemacht hat“ (18.10.2026) */
.evo-kopf b { font-size: 1.1em; }
.evo-zahlen { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 4px; }
.evo-dienst small { overflow-wrap: anywhere; }
/* 19.10.2026 To-Do Fassung 2 */
.aufgabe .knoepfe { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.aufgabe .titel { min-width: 0; overflow-wrap: anywhere; }
.marke { display: inline-block; font-size: .78rem; padding: 1px 7px; border-radius: 9px; border: 1px solid var(--rand); margin-left: 4px; }
.marke.warn { border-color: var(--warn); color: var(--warn); }
.wahlgruppe { border: 0; padding: 0; margin: 6px 0; display: flex; flex-wrap: wrap; gap: 6px; } .wahlgruppe legend { font-weight: 600; margin-bottom: 4px; }
.wahl { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 1px solid var(--rand); border-radius: 10px; }
.datum-zeile { display: flex; gap: 6px; margin-top: 6px; } .datum-zeile[hidden] { display: none; }
@media (max-width: 420px) { .aufgabe { flex-wrap: wrap; } .aufgabe .knoepfe { width: 100%; } }
#todo-neu [hidden], .wahlgruppe[hidden] { display: none !important; }

/* 19.10.2026: Kachel „Fotos (Immich)“ – SVG-Symbol, Hinweise */
.kachel .sym-svg { width: 2.4em; height: 2.4em; }
.kachel small.version-hinweis { color: var(--akzent); font-weight: 600; }
.kachel small { text-align: center; }
