:root {
  --bg: #16151a; --karte: #211f26; --linie: #34313b; --text: #f3ede4; --leise: #a39d94;
  --gold: #c9a46a; --gruen: #6fbf8e; --rot: #e07a6a;
  --abstand: 16px; --rund: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; padding-bottom: calc(76px + env(safe-area-inset-bottom)); -webkit-font-smoothing: antialiased; }
.kopf { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center;
  padding: calc(12px + env(safe-area-inset-top)) var(--abstand) 12px; background: rgba(22,21,26,.94);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--linie); }
.marke { font-weight: 800; letter-spacing: .08em; font-size: 18px; }
.marke span { color: var(--gold); }
.wer { font-size: 13px; color: var(--leise); text-align: right; }
main { max-width: 640px; margin: 0 auto; padding: var(--abstand); }
h1 { font-size: 24px; margin: 8px 0 4px; }
h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin: 26px 0 10px; }
p { line-height: 1.45; }
.leise { color: var(--leise); font-size: 14px; }
.leer { color: var(--leise); text-align: center; padding: 30px 0; }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--rund); padding: 14px 16px; margin-bottom: 10px; }
.karte.ich { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.zeile { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--linie); }
.zeile:first-of-type { border-top: 0; }
.zeile .rolle { color: var(--leise); font-size: 13px; min-width: 104px; }
.zeile .name { flex: 1; font-weight: 600; }
.zeile .zeit { color: var(--leise); font-variant-numeric: tabular-nums; font-size: 14px; white-space: nowrap; }
.zeile.ich .name { color: var(--gold); }
.datum { font-weight: 700; font-size: 17px; margin-bottom: 6px; display: flex; justify-content: space-between; }
.datum small { color: var(--leise); font-weight: 400; font-size: 13px; }
.marke-klein { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--gold); color: #16151a; font-weight: 700; margin-left: 6px; vertical-align: 2px; }
.tisch { display: inline-block; min-width: 54px; text-align: center; font-weight: 700; font-size: 13px; padding: 3px 8px; border-radius: 8px; background: #2d2a33; color: var(--gold); margin-right: 8px; }
.res { padding: 10px 0; border-top: 1px solid var(--linie); }
.res:first-of-type { border-top: 0; }
.res .kopfzeile { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.res .notiz { color: var(--leise); font-size: 14px; margin-top: 4px; }
.res a { color: var(--gold); }
.leiste { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: rgba(22,21,26,.97); border-top: 1px solid var(--linie);
  padding-bottom: env(safe-area-inset-bottom); z-index: 5; }
.leiste button { flex: 1; background: none; border: 0; color: var(--leise); font-size: 13px; padding: 14px 0 12px; font-weight: 600; }
.leiste button.aktiv { color: var(--gold); }
form { display: grid; gap: 12px; }
label { font-size: 13px; color: var(--leise); display: grid; gap: 6px; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--text); background: #0f0e12; border: 1px solid var(--linie);
  border-radius: 10px; padding: 12px; width: 100%; }
textarea { min-height: 70px; resize: vertical; }
button.haupt, button.zweit, button.klein { font: inherit; font-weight: 700; border-radius: 10px; padding: 13px 16px; border: 0; cursor: pointer; }
button.haupt { background: var(--gold); color: #16151a; }
button.zweit { background: #2d2a33; color: var(--text); }
button.klein { padding: 6px 10px; font-size: 13px; background: #2d2a33; color: var(--text); }
button.gefahr { background: #3a2321; color: var(--rot); }
button:disabled { opacity: .5; }
.knopfreihe { display: flex; gap: 8px; flex-wrap: wrap; }
.knopfreihe > * { flex: 1; }
.hinweis { padding: 10px 12px; border-radius: 10px; font-size: 14px; background: #2d2a33; }
.hinweis.fehler { background: #3a2321; color: #f2b3a8; }
.hinweis.ok { background: #1f3326; color: #a9e2bd; }
.schalter { display: flex; gap: 6px; margin: 4px 0 12px; }
.schalter button { flex: 1; font: inherit; font-size: 14px; padding: 9px; border-radius: 10px; border: 1px solid var(--linie); background: none; color: var(--leise); }
.schalter button.aktiv { background: #2d2a33; color: var(--text); border-color: #2d2a33; }
.anmelden { max-width: 380px; margin: 8vh auto 0; }
dialog { background: var(--karte); color: var(--text); border: 1px solid var(--linie); border-radius: 16px; width: min(560px, 94vw); padding: 18px; }
dialog::backdrop { background: rgba(0,0,0,.6); }
.personrolle { display: grid; grid-template-columns: 1fr 150px; gap: 10px; align-items: center; }
[hidden] { display: none !important; }
