:root {
  --grund: #f6f7f9;
  --flaeche: #ffffff;
  --text: #16202c;
  --leise: #5b6673;
  --linie: #d8dde3;
  --gut: #1f7a3f;
  --gut-grund: #e3f4e8;
  --warn: #8a5a00;
  --warn-grund: #fff3d6;
  --schlecht: #a3261b;
  --schlecht-grund: #fde6e3;
  --akzent: #1d5fa8;
  --offline-grund: #e4eefa;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #0f151c;
    --flaeche: #16202c;
    --text: #e7ecf1;
    --leise: #9aa6b2;
    --linie: #2a3644;
    --gut: #7fd69b;
    --gut-grund: #143222;
    --warn: #f2c66d;
    --warn-grund: #3a2d0f;
    --schlecht: #ff9b90;
    --schlecht-grund: #3d1714;
    --akzent: #7fb3ee;
    --offline-grund: #13263d;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--grund); color: var(--text);
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.seite { max-width: 560px; margin: 0 auto; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
h1 { font-size: 1.35rem; margin: 0 0 4px; }
h2 { font-size: 1rem; margin: 24px 0 8px; color: var(--leise); font-weight: 600; }
.leise { color: var(--leise); margin: 0; }
.kopf { margin-bottom: 12px; }
.karte { border-radius: 12px; padding: 12px 14px; margin: 12px 0; background: var(--flaeche); border: 1px solid var(--linie); }
.karte p { margin: 4px 0; }
.karte.warn { background: var(--warn-grund); border-color: var(--warn); }
.karte.hinweis { font-size: .95rem; }
.kamera { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: #000; }
.kamera video { width: 100%; height: 100%; object-fit: cover; display: block; }
.rahmen { position: absolute; inset: 18%; border: 3px solid rgba(255,255,255,.8); border-radius: 12px; pointer-events: none; }
.gross { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 1.1rem;
  padding: 14px 22px; border-radius: 999px; border: 0; background: var(--akzent); color: #fff; }
.meldung { margin: 14px 0; padding: 16px; border-radius: 12px; font-size: 1.15rem; font-weight: 600;
  background: var(--flaeche); border: 1px solid var(--linie); min-height: 3.2em; }
.meldung.gut { background: var(--gut-grund); color: var(--gut); border-color: var(--gut); }
.meldung.warn { background: var(--warn-grund); color: var(--warn); border-color: var(--warn); }
.meldung.schlecht { background: var(--schlecht-grund); color: var(--schlecht); border-color: var(--schlecht); }
.meldung.offline { background: var(--offline-grund); color: var(--akzent); border-color: var(--akzent); }
.meldung small { display: block; font-weight: 400; font-size: .9rem; margin-top: 4px; }
.hand summary { color: var(--akzent); cursor: pointer; }
.hand form { display: flex; gap: 8px; margin-top: 8px; }
.hand input { flex: 1; min-width: 0; font: inherit; padding: 10px; border-radius: 8px; border: 1px solid var(--linie);
  background: var(--flaeche); color: var(--text); text-transform: uppercase; }
.hand button { font: inherit; padding: 10px 14px; border-radius: 8px; border: 0; background: var(--akzent); color: #fff; }
.liste { padding-left: 1.4em; margin: 0; }
.liste li { padding: 6px 0; border-bottom: 1px solid var(--linie); }
.liste .gut { color: var(--gut); }
.liste .warn { color: var(--warn); }
.liste .schlecht { color: var(--schlecht); }
.liste .offline { color: var(--akzent); }
[hidden] { display: none !important; }
