:root {
  --bg: #f4f5f7; --karte: #fff; --text: #1d2330; --leise: #5b6475; --rand: #d9dde4;
  --akzent: #2457c5; --akzent-text: #fff; --fehler: #b42318; --fehler-bg: #fdecea; --ok: #1a7f37; --ok-bg: #e7f5ec;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151b; --karte: #1b2029; --text: #e6e9ef; --leise: #9aa3b2; --rand: #2c3340;
    --akzent: #6d9bff; --akzent-text: #0d1117; --fehler: #ff8a80; --fehler-bg: #3a1d1b; --ok: #7ee2a8; --ok-bg: #173226;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
.kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: .75rem 1rem; background: var(--karte); border-bottom: 1px solid var(--rand); }
.marke { font-weight: 700; color: var(--text); text-decoration: none; }
.kopf nav { flex: 1; }
.kopf nav a { color: var(--leise); text-decoration: none; }
.abmelden { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.wer { color: var(--leise); font-size: .9rem; }
main { max-width: 72rem; margin: 0 auto; padding: 1.5rem 1rem; }
.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: 10px; padding: 1.25rem 1.5rem; }
.schmal { max-width: 26rem; margin: 1rem auto; }
h1 { font-size: 1.4rem; margin: 0 0 1rem; }
label { display: block; margin: 0 0 .9rem; font-size: .95rem; }
input { display: block; width: 100%; margin-top: .3rem; padding: .55rem .65rem; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--rand); border-radius: 6px; }
button { font: inherit; padding: .5rem 1rem; border: 0; border-radius: 6px; background: var(--akzent); color: var(--akzent-text); cursor: pointer; }
.abmelden button { padding: .3rem .7rem; font-size: .9rem; background: transparent; color: var(--leise); border: 1px solid var(--rand); }
.hinweis { color: var(--leise); font-size: .85rem; margin-top: -.4rem; }
.fehler { max-width: 26rem; margin: 0 auto 1rem; padding: .6rem .8rem; border-radius: 6px; background: var(--fehler-bg); color: var(--fehler); }
.meldung { max-width: 26rem; margin: 0 auto 1rem; padding: .6rem .8rem; border-radius: 6px; background: var(--ok-bg); color: var(--ok); }
.qr { margin: 1rem 0; text-align: center; }
.qr img { background: #fff; padding: 8px; border-radius: 6px; max-width: 100%; height: auto; }
.geheimnis { word-break: break-all; }
.kopf nav { display: flex; gap: 1rem; }
h2 { font-size: 1.15rem; margin: 0 0 .8rem; }
.karte + .karte { margin-top: 1.25rem; }
.hervor { border-color: var(--akzent); }
.gross { font-size: 1.2rem; }
.leise { color: var(--leise); font-size: .9rem; }
.tabelle { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--rand); vertical-align: middle; }
th { color: var(--leise); font-weight: 600; white-space: nowrap; }
form.inline { display: inline-flex; gap: .35rem; align-items: center; margin: .15rem .3rem .15rem 0; }
.aktionen { white-space: nowrap; }
select { font: inherit; padding: .35rem .5rem; color: var(--text); background: var(--bg); border: 1px solid var(--rand); border-radius: 6px; }
label select { display: block; margin-top: .3rem; }
button.klein { padding: .3rem .65rem; font-size: .85rem; }
form.zeile { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
form.zeile label { margin: 0; min-width: 12rem; }
.marke-gruen, .marke-gelb, .marke-rot { padding: .1rem .5rem; border-radius: 999px; font-size: .85rem; }
.marke-gruen { background: var(--ok-bg); color: var(--ok); }
.marke-rot { background: var(--fehler-bg); color: var(--fehler); }
.marke-gelb { background: #fff4d6; color: #7a5600; }
@media (prefers-color-scheme: dark) { .marke-gelb { background: #3a2f10; color: #f3cf6b; } }
.meldung, .fehler { max-width: none; }
.tabelle + .hinweis { margin-top: .75rem; }
.marke-gruen, .marke-gelb, .marke-rot { white-space: nowrap; }
label select { width: 100%; padding: .55rem .65rem; }
.kopfzeile { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.kopfzeile h1 { margin: 0; }
.hinweis-box { padding: .6rem .8rem; border-radius: 6px; background: var(--karte); border: 1px dashed var(--rand); color: var(--leise); }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1rem; }
.raster .karte + .karte { margin-top: 0; }
.projekt header { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .5rem; }
.projekt h2 { margin: 0; }
.projekt a { color: var(--akzent); text-decoration: none; }
.projekt a:hover { text-decoration: underline; }
.projekt p { margin: .3rem 0 .8rem; }
dl { margin: 0; }
dl > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .5rem; padding: .3rem 0; border-top: 1px solid var(--rand); font-size: .92rem; }
dt { color: var(--leise); }
dd { margin: 0; overflow-wrap: anywhere; }
.live { margin-bottom: .6rem; }
.live > div:first-child, .angaben > div:first-child { border-top: 0; }
.angaben { border-top: 2px solid var(--rand); padding-top: .2rem; }
.marke-grau { padding: .1rem .5rem; border-radius: 999px; font-size: .85rem; background: var(--bg); color: var(--leise); white-space: nowrap; }
a.marke-gruen, a.marke-rot, a.marke-gelb, a.marke-grau { text-decoration: none; }
.projekt a.marke-gruen { color: var(--ok); }
.projekt a.marke-rot { color: var(--fehler); }
.projekt a.marke-gelb { color: #7a5600; }
.projekt a.marke-grau { color: var(--leise); }
@media (prefers-color-scheme: dark) { .projekt a.marke-gelb { color: #f3cf6b; } }
.karte a { color: var(--akzent); }
