/* WAR OF COLORS - Website und Admin. Dunkles, schlichtes Design ohne externe Schriften. */
:root {
  color-scheme: dark;
  --bg: #0a0e13;
  --bg2: #0e141b;
  --panel: #121923;
  --panel2: #172030;
  --line: #243044;
  --text: #e6edf6;
  --muted: #8b98aa;
  --accent: #4f8cff;
  --accent2: #7fb8ff;
  --ok: #3ecf8e;
  --warn: #f5a524;
  --danger: #ff5d5d;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; font-family: var(--font); color: var(--text); line-height: 1.5; font-size: 15px;
  background: radial-gradient(1200px 500px at 70% -10%, #15233a 0%, transparent 60%), var(--bg);
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; font-weight: 650; }
h1 { font-size: 1.9rem; letter-spacing: .01em; }
h2 { font-size: 1.25rem; margin-top: 1.6em; }
h3 { font-size: 1.05rem; color: var(--accent2); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: var(--mono); font-size: .85rem; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* Kopf und Fuss */
.top { background: rgba(10,14,19,.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-inner { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 22px; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 800; letter-spacing: .14em; color: var(--text); font-size: 1.05rem; }
.brand span { color: var(--accent); }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--muted); padding: 6px 12px; border-radius: 999px; font-size: .92rem; }
.nav a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.nav a.active { color: var(--text); background: var(--panel2); }
.nav .spacer { flex: 1; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 28px 16px 60px; width: 100%; flex: 1; }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; padding: 18px 16px; text-align: center; }

/* Karten, Tabellen */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.card.flush { padding: 0; overflow: hidden; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; } }
.grid.two-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1180px) { .grid.two-lg { grid-template-columns: 1fr; } }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat .v { font-size: 1.7rem; font-weight: 700; }
.stat .l { color: var(--muted); font-size: .85rem; }
.hero { padding: 26px 0 10px; }
.hero h1 { font-size: 2.3rem; }
.hero p { color: var(--muted); max-width: 640px; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; background: var(--bg2); }
tbody tr:hover td { background: rgba(79,140,255,.05); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }
tr.bad td { background: rgba(255,93,93,.09); }
tr.warn td { background: rgba(245,165,36,.08); }
tr.banned td { background: rgba(255,93,93,.06); }

/* Marken */
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; vertical-align: middle; border: 1px solid transparent; }
.badge-ban { background: var(--danger); color: #1a0000; text-transform: uppercase; }
.badge-ok { background: rgba(62,207,142,.15); color: var(--ok); border-color: rgba(62,207,142,.4); }
.badge-warn { background: rgba(245,165,36,.15); color: var(--warn); border-color: rgba(245,165,36,.4); }
.badge-high, .badge-err { background: rgba(255,93,93,.15); color: var(--danger); border-color: rgba(255,93,93,.45); }
.badge-info { background: rgba(127,184,255,.12); color: var(--accent2); border-color: rgba(127,184,255,.35); }
.badge-muted { background: var(--panel2); color: var(--muted); border-color: var(--line); }
.ban-reason { color: var(--danger); font-size: .85rem; }
.fdot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(255,255,255,.35); }
.pts-plus { color: var(--ok); font-weight: 600; }
.pts-zero { color: var(--muted); }
.anon { color: var(--muted); font-style: italic; }
.win { color: var(--ok); font-weight: 600; }
.loss { color: var(--muted); }

/* Formulare */
input, select, textarea, button { font: inherit; color: var(--text); }
input[type=text], input[type=password], input[type=search], input[type=number], input[type=email], select, textarea {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
textarea { min-height: 90px; resize: vertical; }
label { display: block; color: var(--muted); font-size: .85rem; margin: 0 0 4px; }
.field { margin-bottom: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > .field { flex: 1 1 160px; margin-bottom: 0; }
.btn, button { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; cursor: pointer; transition: background .12s, border-color .12s; }
.btn:hover, button:hover { background: #1f2b40; border-color: #33425e; text-decoration: none; }
.btn.primary, button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.primary:hover, button.primary:hover { background: #3f7bf0; }
.btn.danger, button.danger { background: rgba(255,93,93,.14); border-color: rgba(255,93,93,.5); color: #ffb3b3; }
.btn.danger:hover, button.danger:hover { background: rgba(255,93,93,.25); }
.btn.small, button.small { padding: 3px 9px; font-size: .82rem; }
.inline { display: inline; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
details > summary { cursor: pointer; color: var(--accent2); }
details[open] > summary { margin-bottom: 10px; }

.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; border: 1px solid var(--line); background: var(--panel2); word-break: break-word; }
.flash.ok { border-color: rgba(62,207,142,.5); }
.flash.err { border-color: rgba(255,93,93,.55); color: #ffc9c9; }
.alert-ban { border: 1px solid rgba(255,93,93,.55); background: rgba(255,93,93,.09); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; }

.tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs a { padding: 8px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.pager { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 18px 0 0; color: var(--muted); }
.pager a, .pager span.cur { padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; }
.pager span.cur { background: var(--panel2); color: var(--text); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
pre.box { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-x: auto; font-family: var(--mono); font-size: .82rem; white-space: pre-wrap; word-break: break-word; }

/* Diagramme (SVG, serverseitig) */
svg.chart { width: 100%; height: auto; max-height: 280px; }
svg.chart .grid { stroke: var(--line); stroke-width: 1; }
svg.chart text { fill: var(--muted); font-size: 10px; }
svg.chart .axis { fill: var(--muted); font-size: 10px; font-style: italic; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-top: 6px; }
.legend-item i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; }
.heat { text-align: center; font-variant-numeric: tabular-nums; }

/* Mini-Replay */
.replay { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.replay-main { display: grid; grid-template-columns: minmax(0, 1fr) 270px; }
@media (max-width: 900px) { .replay-main { grid-template-columns: 1fr; } }
.replay-stage { position: relative; background: #070b09; min-height: 260px; }
.replay-stage canvas { display: block; width: 100%; }
.replay-tip { position: absolute; pointer-events: none; background: rgba(8,12,18,.94); border: 1px solid var(--line); padding: 4px 8px; border-radius: 6px; font-size: .8rem; white-space: nowrap; display: none; z-index: 3; }
.replay-banner { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); background: rgba(8,12,18,.9); border: 1px solid var(--line); border-radius: 999px; padding: 4px 16px; font-weight: 600; display: none; z-index: 2; }
.replay-side { border-left: 1px solid var(--line); padding: 12px 14px; background: var(--bg2); font-size: .88rem; }
@media (max-width: 900px) { .replay-side { border-left: 0; border-top: 1px solid var(--line); } }
.replay-side h4 { margin: 0 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rp-player { padding: 6px 0; border-bottom: 1px solid var(--line); }
.rp-player:last-of-type { border-bottom: 0; }
.rp-player .rp-name { font-weight: 600; }
.rp-player .rp-meta { color: var(--muted); font-size: .8rem; display: flex; gap: 10px; flex-wrap: wrap; }
.rp-hq { height: 4px; background: var(--line); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.rp-hq > i { display: block; height: 100%; background: var(--ok); }
.replay-controls { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.replay-controls input[type=range] { flex: 1 1 220px; width: auto; padding: 0; accent-color: var(--accent); }
.replay-controls select { width: auto; }
.replay-controls .rp-time { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 150px; text-align: right; }
.replay-graph { padding: 0 14px 12px; }
.replay-graph canvas { width: 100%; height: 70px; display: block; }
.replay-msg { padding: 40px 16px; text-align: center; color: var(--muted); }

/* Anmeldung */
.login { max-width: 380px; margin: 60px auto; }
.hide-sm { }
@media (max-width: 700px) { .hide-sm { display: none; } h1 { font-size: 1.5rem; } .hero h1 { font-size: 1.8rem; } }

/* Kopf: Logo, Fuß: Rechtliches */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { width: 30px; height: 30px; display: block; }
.foot-inner { max-width: 1180px; margin: 0 auto; display: flex; gap: 6px 18px; justify-content: center; align-items: center; flex-wrap: wrap; }
.foot-links { display: flex; gap: 14px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--text); }
.foot-note { margin: 6px 0 0; font-size: .8rem; opacity: .8; }

/* Sprachumschalter DE | EN (rechts im Kopf; auf schmalen Bildschirmen neben dem Logo, das Menü darunter) */
.lang-switch { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .06em; }
.lang-switch a { color: var(--muted); padding: 3px 10px; border-radius: 999px; }
.lang-switch a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.lang-switch a.active { color: var(--text); background: var(--panel2); }
.lang-switch .lang-sep { color: var(--line); user-select: none; }
@media (max-width: 960px) {
  .top-inner-lang { gap: 4px 14px; padding-top: 8px; padding-bottom: 8px; }
  .top-inner-lang .brand { order: 1; }
  .top-inner-lang .lang-switch { order: 2; }
  .top-inner-lang .nav-main { order: 3; flex: 1 0 100%; }
}
[id] { scroll-margin-top: 72px; }

/* Startseite */
.landing { flex: 1; width: 100%; }
.l-inner { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.l-hero {
  --hero-img: url("/static/img/hero-banner.webp");
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(10,14,19,.6) 0%, rgba(10,14,19,.08) 28%, rgba(10,14,19,.2) 68%, var(--bg) 100%),
    var(--hero-img) center 46% / cover no-repeat,
    var(--bg);
}
@media (max-width: 960px) { .l-hero { --hero-img: url("/static/img/hero-banner-960.webp"); } }
.l-hero-center { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 30px; padding-bottom: 46px; }
.l-kicker { letter-spacing: .32em; text-transform: uppercase; color: #aab6c9; font-size: .8rem; font-weight: 700; margin: 0 0 4px; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.l-logo { display: block; width: clamp(240px, min(700px, calc((100vh - 330px) * 1.364)), 94vw); }
.l-logo img { display: block; width: 100%; height: auto; }
.l-lead { font-size: 1.12rem; color: #c9d4e3; max-width: 640px; margin: 2px auto 0; text-shadow: 0 1px 10px rgba(0,0,0,.85); }
.l-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 24px 0 16px; }
.btn.big { padding: 12px 22px; font-size: 1rem; border-radius: 10px; font-weight: 600; }
.btn.ghost { background: rgba(10,14,19,.4); border-color: rgba(127,184,255,.4); }
.btn.ghost:hover { background: rgba(31,43,64,.7); }
.l-status { color: var(--muted); font-size: .88rem; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; }
.l-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 4px rgba(245,165,36,.16); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.l-section { padding: 72px 0; }
.l-alt { background: linear-gradient(180deg, rgba(18,25,35,.7), rgba(18,25,35,.3)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.l-eyebrow { color: var(--accent2); text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 700; margin-bottom: 8px; }
.l-h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 14px; }
.l-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 44px; align-items: center; }
.l-steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0 18px; display: grid; gap: 16px; }
.l-steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; }
.l-steps li::before {
  content: counter(step); grid-row: span 2; width: 40px; height: 44px; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: linear-gradient(160deg, var(--accent), #2d5fc4);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.l-steps b { font-size: 1.05rem; }
.l-steps span { color: var(--muted); }
.l-shot { margin: 0; }
.l-shot a { display: block; }
.l-shot img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0,0,0,.45); transition: transform .2s ease, border-color .2s ease; }
.l-shot a:hover img { transform: translateY(-3px); border-color: #33425e; }
.l-shot figcaption { color: var(--muted); font-size: .86rem; margin-top: 10px; }
.l-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.l-feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.l-feature svg { width: 30px; height: 30px; fill: none; stroke: var(--accent2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.l-feature h3, .l-faction h3, .l-card-head h3 { color: var(--text); margin: 0 0 6px; }
.l-feature p { color: var(--muted); margin: 0; font-size: .93rem; }
.l-factions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.l-faction { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--fc); border-radius: var(--radius); padding: 16px 16px 12px; }
.l-faction::after {
  content: ""; position: absolute; right: -16px; top: -14px; width: 66px; height: 76px; background: var(--fc); opacity: .13;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.l-faction h3 { font-size: 1rem; }
.l-perk { color: var(--fc); font-weight: 700; margin: 0 0 4px; }
.l-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.l-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 20px 8px; }
.l-card-head h3 { margin: 0; }
.l-center { text-align: center; margin: 28px 0 0; }
.l-press { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.l-press-item { display: flex; flex-direction: column; gap: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 10px 12px; color: var(--text); transition: border-color .15s ease, transform .15s ease; }
.l-press-item:hover { text-decoration: none; border-color: #3a4a68; transform: translateY(-2px); }
.l-press-thumb { position: relative; display: block; aspect-ratio: 16 / 10; background: #070a10; border-radius: 6px; overflow: hidden; margin-bottom: 6px; }
.l-press-thumb img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; }
.l-press-title { font-weight: 650; }
.l-press-3d .l-press-thumb { background: radial-gradient(circle at 50% 50%, #1d2d50, #070a10 72%); }
.l-press-3d .l-press-thumb img { inset: 0; margin: auto; width: 76px; height: 76px; }
.l-band { padding: 56px 0; }
.l-band-grid { display: flex; gap: 26px; align-items: center; }
.l-band-grid img { flex: none; }
.l-band-grid p { margin: 0; max-width: 760px; }
@media (max-width: 900px) {
  .l-split { grid-template-columns: 1fr; }
  .l-features, .l-factions, .l-press { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-gallery { grid-template-columns: 1fr; }
  .l-section { padding: 52px 0; }
}
@media (max-width: 560px) {
  .l-features, .l-factions { grid-template-columns: 1fr; }
  .l-band-grid { flex-direction: column; text-align: center; }
  .l-kicker { letter-spacing: .22em; }
}
@media (prefers-reduced-motion: reduce) { .l-shot img, .l-press-item { transition: none; } }

/* Impressum, Datenschutz */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.1rem; margin-top: 1.5em; }
.legal .card h2:first-child { margin-top: 0; }
.legal li { margin-bottom: 4px; }
