:root {
  --bg: #f4f5f7; --karte: #fff; --text: #1d2330; --leise: #6b7280; --linie: #e2e5ea;
  --akzent: #1f6feb; --akzent-text: #fff; --gut: #1a7f37; --schlecht: #c62828; --hinweis-bg: #fff6d6;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15181e; --karte: #1f242c; --text: #e6e8eb; --leise: #9aa3ae; --linie: #2f3640;
          --akzent: #4c8dff; --hinweis-bg: #3a3320; --schlecht: #ff6b6b; --gut: #4ccf6a; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--akzent); }
.kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 10px 16px; background: var(--karte); border-bottom: 1px solid var(--linie); }
.marke { font-weight: 600; text-decoration: none; color: var(--text); }
.kopf nav { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.kopf nav a { text-decoration: none; padding: 2px 0; }
.kopf nav a.aktiv { font-weight: 600; border-bottom: 2px solid var(--akzent); }
main { max-width: 1000px; margin: 0 auto; padding: 16px; }
footer { text-align: center; color: var(--leise); font-size: 12px; padding: 24px 16px; }
h1 { font-size: 22px; margin: 6px 0 14px; }
h2 { font-size: 17px; margin: 22px 0 10px; }
.titelzeile { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; position: relative; }
.karte.schmal { max-width: 420px; margin: 30px auto; }
label { display: block; margin: 0 0 10px; font-size: 13px; color: var(--leise); }
input, select, textarea { display: block; width: 100%; margin-top: 3px; padding: 7px 9px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--linie); border-radius: 6px; }
input[type=file] { padding: 5px; }
button, .knopf { display: inline-block; padding: 7px 14px; font: inherit; border: 0; border-radius: 6px; background: var(--akzent); color: var(--akzent-text); cursor: pointer; text-decoration: none; }
button.klein, .knopf.klein { padding: 4px 10px; font-size: 13px; }
button.link { background: none; color: var(--akzent); padding: 0; text-decoration: underline; }
.gefahr button.link { color: var(--schlecht); }
form.inline { display: inline; }
.rechts { text-align: right; }
form.rechts { position: absolute; right: 14px; top: 12px; }
.zeile { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.zeile input, .zeile select { width: auto; flex: 1 1 160px; margin: 0; }
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
@media (max-width: 520px) { .zweispaltig { grid-template-columns: 1fr; } }
.leise { color: var(--leise); }
.klein { font-size: 13px; }
.nowrap { white-space: nowrap; }
.meldung { padding: 9px 12px; border-radius: 6px; margin-bottom: 12px; background: #e5f4ea; color: #14532d; }
.meldung.fehler { background: #fde8e8; color: #7f1d1d; }
.ok-text { color: var(--gut); } .fehler-text { color: var(--schlecht); }
.zahl { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 11px; background: var(--schlecht); color: #fff; font-size: 13px; text-align: center; }
.unbekannt { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.unbekannt .karte { margin: 0; }
.nummer.gross { font-size: 20px; font-weight: 600; letter-spacing: .3px; }
.hinweis { background: var(--hinweis-bg); padding: 6px 9px; border-radius: 6px; margin: 8px 0; font-size: 14px; }
.erfassen { margin-top: 10px; }
.unbekannt-text { color: var(--schlecht); }
table.liste { width: 100%; border-collapse: collapse; background: var(--karte); }
.liste th, .liste td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.liste th { font-size: 13px; color: var(--leise); font-weight: 500; }
.karte table.liste { background: none; }
tr.verpasst td:nth-child(5) { color: var(--schlecht); }
.eintrag { background: var(--karte); border: 1px solid var(--linie); border-radius: 8px; padding: 9px 12px; margin-bottom: 8px; }
.eintrag .person { margin-left: 12px; }
code { font-size: 13px; background: var(--bg); padding: 1px 5px; border-radius: 4px; word-break: break-all; }
code.kopieren { cursor: copy; }
@media (max-width: 640px) {
  table.liste thead { display: none; }
  table.liste tr { display: block; padding: 6px 0; border-bottom: 1px solid var(--linie); }
  table.liste td { display: inline-block; border: 0; padding: 2px 6px; }
}
