:root {
  --grund: #f6f5f2;
  --flaeche: #ffffff;
  --text: #1f2421;
  --leise: #6b716d;
  --linie: #e2e0da;
  --akzent: #5b4a2f;
  --rot: #b3261e;
  --gruen: #2e7d32;
  --gelb: #9a6700;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--grund); color: var(--text); }
a { color: var(--akzent); }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.5rem; margin: .5rem 0 1rem; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
.kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 10px 16px; background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.marke { font-weight: 700; text-decoration: none; color: var(--text); }
.kopf nav { display: flex; flex-wrap: wrap; gap: 4px 14px; flex: 1; }
.kopf nav a { text-decoration: none; color: var(--leise); padding: 2px 0; }
.kopf nav a.aktiv { color: var(--text); border-bottom: 2px solid var(--akzent); }
.abmelden { margin: 0; }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px; padding: 16px; margin: 16px 0; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kachel { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px; padding: 12px 16px; display: flex; flex-direction: column; }
.kachel .zahl { font-size: 1.8rem; font-weight: 700; }
.kachel.rot .zahl { color: var(--rot); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-weight: 600; color: var(--leise); font-size: .85rem; }
.liste { background: var(--flaeche); border: 1px solid var(--linie); }
td.zahl, th.zahl { text-align: right; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.leise { color: var(--leise); }
.rot { color: var(--rot); }
.gruen { color: var(--gruen); }
.warn { color: var(--gelb); }
tr.inaktiv td { color: var(--leise); }
input, select, button { font: inherit; padding: 6px 10px; border: 1px solid var(--linie); border-radius: 6px; background: #fff; }
input.kurz { width: 90px; }
button { background: var(--akzent); color: #fff; border-color: var(--akzent); cursor: pointer; }
button.leise { background: none; color: var(--leise); border: none; padding: 2px 4px; text-decoration: underline; }
.filter, .zeile { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.zeile form { margin: 0; }
label { display: block; margin-bottom: 10px; }
.zeile label { margin: 0; }
label input { display: block; width: 100%; margin-top: 4px; }
.zeile label input, label.haken input { display: inline-block; width: auto; margin: 0 6px; }
label.haken { margin: 12px 0; }
.anmeldung { max-width: 360px; margin: 10vh auto; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px; padding: 24px; }
.anmeldung button { width: 100%; margin-top: 8px; }
.meldung { padding: 10px 14px; border-radius: 6px; margin: 0 0 16px; border: 1px solid; }
.meldung.ok { background: #edf7ee; border-color: #b9dcbb; color: #1e5b22; }
.meldung.fehler { background: #fdeceb; border-color: #f2b8b5; color: #8c1d18; }
.status { font-size: .85rem; padding: 1px 8px; border-radius: 10px; background: #eee; white-space: nowrap; }
.status.gebucht { background: #e3f1e4; }
.status.storno, .status.retoure { background: #fff3d6; }
.status.fehler { background: #fdeceb; color: var(--rot); }
.status.warnung { background: #fff3d6; color: var(--gelb); }
.status.hinweis { background: #e8eef7; }
details summary { cursor: pointer; font-weight: 600; }
details form { margin-top: 12px; }
@media (max-width: 640px) {
  .liste th:nth-child(2), .liste td:nth-child(2) { display: none; }
}
