:root { --bg: #f0fdf4; --karte: #fff; --text: #0f172a; --leise: #64748b; --akzent: #15803d; --rand: #d1e7d8; --rot: #b91c1c; --gelb: #b45309; --gruen: #15803d; }
@media (prefers-color-scheme: dark) { :root { --bg: #0b1410; --karte: #13221a; --text: #e2e8f0; --leise: #94a3b8; --akzent: #4ade80; --rand: #24402f; --rot: #f87171; --gelb: #fbbf24; --gruen: #4ade80; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.45 system-ui, sans-serif; padding-bottom: 150px; }
.kopf { display: flex; align-items: center; gap: 10px; 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; font-size: 1.1em; } .wer { margin-left: auto; color: var(--leise); font-size: .85em; }
main { padding: 14px 16px; max-width: 760px; margin: 0 auto; }
.leiste { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: var(--karte); border-top: 1px solid var(--rand);
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); z-index: 6; }
.leiste a { flex: 1; display: flex; flex-direction: column; align-items: center; min-height: 52px; justify-content: center; text-decoration: none; color: var(--leise); font-size: 1.3em; }
.leiste a span { font-size: .55em; } .leiste a.an { color: var(--akzent); }
#am-zurueck, #vb-knopf { bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important; }
#vb-box { bottom: 124px !important; }
h1 { font-size: 1.35em; margin: 6px 0 12px; } h2 { font-size: 1.05em; margin: 18px 0 8px; }
.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.gross { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 14px; }
.gross button { min-height: 84px; font-size: .9em; padding: 4px; overflow-wrap: anywhere; border-radius: 16px; border: 0; background: var(--akzent); color: #fff; font-weight: 600; }
.gross button span { display: block; font-size: 1.6em; }
.knopf { min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--rand); background: var(--akzent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.knopf.leise { background: transparent; color: var(--text); }
.zeile { display: flex; gap: 10px; align-items: center; } .zeile .text { flex: 1; min-width: 0; }
.leise { color: var(--leise); } small { color: var(--leise); }
.ampel { display: inline-block; min-width: 64px; text-align: center; padding: 2px 8px; border-radius: 10px; color: #fff; font-weight: 700; }
.ampel.gruen { background: var(--gruen); } .ampel.gelb { background: var(--gelb); } .ampel.rot { background: var(--rot); } .ampel.leer { background: var(--leise); }
.gift { color: var(--rot); font-weight: 700; } .ueberfaellig { color: var(--rot); }
input, select, textarea { font: inherit; min-height: 52px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--rand); background: var(--karte); color: var(--text); width: 100%; }
input[type=number] { font-size: 1.4em; text-align: center; }
label { display: block; margin: 8px 0 4px; font-weight: 600; } .reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.karte-svg { width: 100%; background: var(--karte); border: 1px solid var(--rand); border-radius: 14px; touch-action: manipulation; }
.karte-svg text { font: 2.6px system-ui, sans-serif; fill: var(--text); pointer-events: none; }
.funkloch { background: var(--gelb); color: #fff; padding: 8px 16px; font-weight: 600; }
.ki { border-left: 4px dashed var(--rand); padding-left: 8px; color: var(--leise); font-size: .85em; }
/* Etappe 2: Belegstatus */
.beleg { display: inline-block; font-size: .75rem; padding: 1px 6px; border-radius: 8px; background: var(--leise, #ddd); color: #000; }
.beleg.belegt2 { background: #2e7d32; color: #fff; }
.beleg.belegt1 { background: #9ccc65; }
.beleg.unbelegt { background: #bdbdbd; }
.beleg.widerspruch { background: #e65100; color: #fff; }
