:root {
  --gruen: #79A931; --dunkel: #003325; --text: #1b2420; --grau: #5d6a64; --linie: #dde3df; --flaeche: #f4f7f5; --weiss: #fff;
  --warn: #9a5b00; --warnbg: #fff4de; --fehler: #b3261e; --fehlerbg: #fde8e6; --ok: #2e6b1c; --okbg: #e8f4e2;
  --bg: #fff; --karte: #fff;
}
@media (prefers-color-scheme: dark) {
  :root { --text: #e8efeb; --grau: #9fb0a7; --linie: #2c3a34; --flaeche: #16201b; --bg: #0f1713; --karte: #16201b;
    --warn: #f0c36b; --warnbg: #3a2d10; --fehler: #ffb4ab; --fehlerbg: #3b1a17; --ok: #a6d68f; --okbg: #1c3015; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg);
  padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
.kopf { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--dunkel); color: #fff; }
.kopf img { border-radius: 8px; background: #fff; }
.kopf #wer { margin-left: auto; font-size: 13px; opacity: .8; }
#banner { padding: 10px 16px; background: var(--warnbg); color: var(--warn); font-size: 14px; }
main { max-width: 640px; margin: 0 auto; padding: 16px; }
h1 { font-size: 22px; margin: 4px 0 12px; } h2 { font-size: 17px; margin: 20px 0 8px; }
label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 15px; }
input[type=text], input[type=email], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; padding: 12px; border: 1px solid var(--linie); border-radius: 10px; background: var(--karte); color: var(--text); }
textarea { min-height: 120px; resize: vertical; }
button, .knopf { font: inherit; font-weight: 600; border: 1px solid var(--linie); background: var(--karte); color: var(--text); padding: 12px 16px; border-radius: 12px; min-height: 48px; cursor: pointer; }
button.primaer { background: var(--gruen); border-color: var(--gruen); color: #10210a; }
button.dunkel { background: var(--dunkel); border-color: var(--dunkel); color: #fff; }
button.gefahr { color: var(--fehler); }
button[disabled] { opacity: .5; }
.zeile { display: flex; gap: 10px; flex-wrap: wrap; } .zeile > * { flex: 1 1 140px; }
.karte { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--linie); border-radius: 14px; margin-bottom: 10px; background: var(--karte); color: inherit; text-decoration: none; }
.karte img, .karte .platz { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--flaeche); flex: none; }
.karte p { margin: 2px 0 0; color: var(--grau); font-size: 14px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.marke { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--flaeche); color: var(--grau); margin-right: 6px; }
.s-geprueft, .s-freigegeben, .s-geplant { background: var(--okbg); color: var(--ok); }
.s-entwurf { background: var(--warnbg); color: var(--warn); }
.hinweis { padding: 10px 12px; border-radius: 10px; background: var(--warnbg); color: var(--warn); margin: 8px 0; font-size: 15px; }
.hinweis.fehler { background: var(--fehlerbg); color: var(--fehler); } .hinweis.ok { background: var(--okbg); color: var(--ok); }
.hinweis ul { margin: 4px 0 0 18px; padding: 0; }
.vorschau { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.vorschau > * { scroll-snap-align: start; flex: none; max-height: 420px; max-width: 80%; border-radius: 12px; background: var(--flaeche); }
.vorschau img, .vorschau video { height: 420px; width: auto; display: block; }
.tabs { display: flex; gap: 8px; margin: 8px 0; } .tabs button { flex: 1; min-height: 40px; padding: 8px; }
.tabs button.an { background: var(--dunkel); color: #fff; border-color: var(--dunkel); }
.leiste { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: var(--karte); border-top: 1px solid var(--linie); padding-bottom: env(safe-area-inset-bottom); z-index: 6; }
.leiste a { flex: 1; text-align: center; padding: 8px 0 6px; color: var(--grau); text-decoration: none; font-size: 12px; min-height: 56px; }
.leiste a span { display: block; font-size: 22px; line-height: 1.2; }
.leiste a.an { color: var(--dunkel); font-weight: 700; } @media (prefers-color-scheme: dark) { .leiste a.an { color: var(--gruen); } }
.fortschritt { height: 8px; background: var(--flaeche); border-radius: 99px; overflow: hidden; margin: 10px 0; } .fortschritt i { display: block; height: 100%; width: 0; background: var(--gruen); transition: width .2s; }
.dateien { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; } .dateien img, .dateien .vid { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--flaeche); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.klein { font-size: 13px; color: var(--grau); }
.tag { display: inline-block; margin: 2px 6px 2px 0; }
body.login main { text-align: center; padding-top: 12vh; } body.login img { border-radius: 20px; }
.tage { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; border-bottom: 1px solid var(--linie); padding-bottom: 4px; font-weight: 700; }
.leer { color: var(--grau); text-align: center; padding: 28px 0; }
input.code { font-size: 28px; letter-spacing: .25em; text-align: center; text-transform: uppercase; font-weight: 700; }
.code-anzeige { font-size: 34px; letter-spacing: .25em; font-weight: 800; text-align: center; margin: 8px 0; user-select: all; }
.layoutwahl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.layoutkarte { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 8px; font-weight: 400; min-height: 0; border-width: 2px; }
.layoutkarte img, .layoutplatz { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; background: var(--flaeche); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--grau); font-size: 14px; }
.layoutkarte.an { border-color: var(--gruen); box-shadow: 0 0 0 2px var(--gruen); }
.layoutkarte strong { font-size: 15px; }
