:root {
  --ink: #1b1f24; --muted: #5b6470; --line: #c9ced6; --accent: #2f8a3c; --bg: #f4f6f9;
  --card: #fff; --err: #b42318; --err-bg: #fdecea; --warn: #8a5a00; --warn-bg: #fff4d6;
  --ok-bg: #e8f5ea;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6e9ee; --muted: #9aa3ae; --line: #3a414b; --accent: #5cc46b; --bg: #14171b;
    --card: #1d2127; --err: #ff8a80; --err-bg: #3a1f1f; --warn: #ffd27a; --warn-bg: #3a3020;
    --ok-bg: #1f3324;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
main { max-width: 760px; margin: 40px auto; padding: 0 16px; }
h1 { font-size: 20px; margin: 0; }
h2 { font-size: 16px; margin: 0 0 4px; }
p { margin: 0 0 16px; }
.leise { color: var(--muted); }
.kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.kopf form { display: flex; align-items: center; gap: 10px; }
.warnhinweis { background: var(--warn-bg); color: var(--warn); border-radius: 6px; padding: 4px 10px; font-size: 13px; }
.karte { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 24px; margin-bottom: 16px; }
.schmal { max-width: 380px; margin: 80px auto; }
label { display: block; margin-bottom: 12px; }
input:not([type]), input[type=password] { display: block; width: 100%; margin-top: 4px; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); font: inherit; }
button { padding: 10px 16px; border: 0; border-radius: 6px; background: var(--accent); color: #fff;
  font: inherit; font-weight: 600; cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.dezent, a.dezent { background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 6px;
  font-weight: 400; padding: 6px 12px; text-decoration: none; }
form#upload button, .schmal button { width: 100%; }
.ablage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; min-height: 130px; padding: 16px; border: 2px dashed var(--line); border-radius: 8px;
  text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.ablage span { color: var(--muted); font-size: 13px; }
.ablage.aktiv, .ablage:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.ablage.gewaehlt { border-style: solid; border-color: var(--accent); }
.ablage:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.ablage input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.auswahl { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; }
form#upload button { margin-top: 14px; }
.nebenaktion { display: inline-block; margin-top: 10px; color: var(--muted); font-size: 13px; }
.zuletzt { margin: 0 0 12px; }
.abstand { margin-top: 24px; }
.benutzerliste { list-style: none; padding: 0; margin: 8px 0 16px; }
.benutzerliste li { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 6px 0; border-bottom: 1px solid var(--line); }
.fehler { background: var(--err-bg); color: var(--err); border-radius: 6px; padding: 10px 12px; margin-bottom: 16px; }
.bericht { margin-top: 18px; }
.meldung { border-radius: 6px; padding: 10px 12px; margin-bottom: 10px; }
.meldung.ok { background: var(--ok-bg); }
.meldung.warnung { background: var(--warn-bg); color: var(--warn); }
.meldung.fehler { margin-bottom: 10px; }
.woche { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; }
.woche ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.woche li.ueberschrift { list-style: none; margin-left: -18px; color: var(--muted); }
.woche .hinweis { color: var(--warn); font-size: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 12px; }
th, td { text-align: left; padding: 6px 6px; border-bottom: 1px solid var(--line); }
th.zahl, td.zahl { text-align: right; }
tr.zurueckgenommen td { color: var(--muted); text-decoration: line-through; }
@media (max-width: 560px) {
  .kopf { flex-direction: column; align-items: flex-start; }
  th:nth-child(2), td:nth-child(2), th:nth-child(3), td:nth-child(3) { display: none; }
}
