/* Orravend – gemeinsames Erscheinungsbild (dunkel, Gold, Cinzel/Lora wie im Trailer) */
:root {
  --bg: #0d0e12; --panel: #16181f; --panel2: #1d2029; --ink: #ece4d2; --muted: #a39a88; --line: #2c3040;
  --gold: #e3c27a; --gold-soft: #2b2416; --full: #f0d48e; --full-bg: #3a2d10; --one: #9fd8a8; --one-bg: #1d3322; --none: #4a4f5e; --danger: #e08a7a;
  --cell: #1f222c; --cell-on: #c9a24f; --me: #1e1a10;
  --display: 'Cinzel', 'Times New Roman', serif; --body: 'Lora', Georgia, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 24px 56px; }
.wrap { max-width: 1040px; margin: 0 auto; display: grid; gap: 26px; }
.eyebrow { font-family: var(--display); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 5vw, 40px); margin: 0; letter-spacing: .04em; text-wrap: balance; }
h2 { font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: .08em; margin: 0; }
.lead { color: var(--muted); max-width: 62ch; margin: 0; }
a { color: var(--gold); }
.topbar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
nav.crumbs { display: flex; gap: 14px; font-family: var(--display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
nav.crumbs a { color: var(--muted); text-decoration: none; }
nav.crumbs a:hover, nav.crumbs a[aria-current] { color: var(--gold); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; display: grid; gap: 6px; min-width: 0; }
.card .k { font-family: var(--display); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.card .v { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.card .v.full { color: var(--full); }
.card .v.one { color: var(--one); }
.card .s { color: var(--muted); font-size: 14px; }
button, select, input { font: inherit; font-size: 15px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 7px 12px; }
button { cursor: pointer; }
button:hover { border-color: var(--gold); }
button.primary { background: var(--gold); color: #1a1407; border-color: var(--gold); font-weight: 600; }
button.ghost { background: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, .cell:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.dmform { display: inline-flex; gap: 6px; align-items: center; margin-left: 8px; }
.dmform .err { color: var(--danger); font-size: 14px; }
.badge { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 13px; white-space: nowrap; }
.badge.full { background: var(--full-bg); color: var(--full); font-weight: 600; }
.badge.one { background: var(--one-bg); color: var(--one); }
.badge.none { color: var(--none); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.status::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--none); }
.status.on::before { background: var(--one); box-shadow: 0 0 8px var(--one); }
.status.off::before { background: var(--danger); }
.note { color: var(--muted); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Begrüßung mit Anmeldung (Gruppenpasswort) */
html.locked body > :not(.gate) { visibility: hidden; }
.gate { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px 16px; overflow-y: auto; background: radial-gradient(ellipse at 50% 28%, #2b2416 0%, var(--bg) 68%); }
.gate-card { width: min(440px, 100%); display: grid; gap: 14px; text-align: center; padding: 34px 28px 26px; background: rgba(22, 24, 31, .94); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 70px rgba(0, 0, 0, .55); }
.gate-card h1 { color: var(--gold); font-size: clamp(34px, 9vw, 50px); letter-spacing: .08em; }
.gate-card .lead { margin: 0 auto 6px; font-size: 15px; }
.gate-field { display: grid; gap: 6px; text-align: left; font-size: 14px; color: var(--muted); }
.gate-field input { font-size: 16px; padding: 11px 14px; border-radius: 10px; background: var(--panel2); }
.gate-card button[type=submit] { background: var(--gold); color: #1a1407; border-color: var(--gold); font-weight: 600; font-size: 16px; padding: 11px 14px; border-radius: 10px; }
.gate-card button[disabled] { opacity: .7; cursor: wait; }
.gate-card .err { color: var(--danger); margin: 0; font-size: 15px; }
.gate-foot { color: var(--muted); font-size: 13px; margin: 4px 0 0; font-family: var(--display); letter-spacing: .14em; text-transform: uppercase; }
.dmbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dmbar .dmform { margin-left: 0; }
.gate-card button.gate-google, .gate-card button.gate-retry { background: var(--gold); color: #1a1407; border-color: var(--gold); font-weight: 600; font-size: 16px; padding: 11px 14px; border-radius: 10px; }
.gate-card button.gate-other { justify-self: center; font-size: 14px; }
.dmtag { font-family: var(--display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; padding: 3px 10px; }
html:not(.dm) .dmonly { display: none !important; }
.members { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.members li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; min-width: 0; }
.members li span { min-width: 0; overflow-wrap: anywhere; }
.memberform { display: flex; flex-wrap: wrap; gap: 8px; }
.memberform input { flex: 1 1 200px; min-width: 0; }
