/* Skarvox Frontline: Statistik-Seite fuer den Wardogs-Server */
:root {
  --bg: #0e1013;
  --bg-2: #13161a;
  --panel: #171a1f;
  --panel-2: #1d2127;
  --line: #2a2f36;
  --line-2: #363c45;
  --text: #dfe2e6;
  --text-2: #b4bac2;
  --muted: #858c95;
  --red: #ff2a2a;
  --red-2: #ff5c5c;
  --red-dim: rgba(255, 42, 42, 0.14);
  --green: #4caf50;
  --orange: #ffb020;
  --gold: #e8b64c;
  --silver: #b9c0c8;
  --bronze: #c98552;
  --head: "Bahnschrift", "DIN Alternate", "Barlow Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: Consolas, "SF Mono", Monaco, monospace;
  --r: 8px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 15px/1.5 var(--body); }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 8px 12px; background: var(--red); color: #fff; border-radius: 6px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Kopf */
.top { position: sticky; top: 0; z-index: 20; background: rgba(14, 16, 19, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 22px; max-width: 1480px; margin: 0 auto; padding: 0 20px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand__mark { width: 34px; height: 34px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.06em; }
.brand__txt b { font-size: 19px; color: #fff; }
.brand__txt small { font-size: 11px; color: var(--red-2); letter-spacing: 0.24em; margin-top: 3px; }

/* Hauptnavigation mit Ausklappmenues */
.nav { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0; }
.nav__a { display: inline-flex; align-items: center; gap: 6px; height: 62px; padding: 0 12px; border: 0; background: none; color: var(--text-2); text-decoration: none; font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 14px; white-space: nowrap; cursor: pointer; }
.nav__a:hover, .dd:hover > .nav__a, .dd.is-open > .nav__a { color: #fff; }
.nav__a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--red); }
.nav__a svg { width: 12px; height: 12px; transition: transform 0.15s ease; }
.dd { position: relative; }
.dd:hover > .nav__a svg, .dd.is-open > .nav__a svg { transform: rotate(180deg); }
.dd__menu { position: absolute; left: 0; top: calc(100% - 6px); min-width: 230px; padding: 6px; border: 1px solid var(--line-2); border-radius: 8px; background: #121418; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); visibility: hidden; opacity: 0; transform: translateY(4px); transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s; z-index: 30; }
.dd:hover > .dd__menu, .dd:focus-within > .dd__menu, .dd.is-open > .dd__menu { visibility: visible; opacity: 1; transform: none; }
.dd__menu a, .dd__menu button { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 6px; background: none; color: var(--text-2); font: 14px/1.3 var(--body); text-align: left; text-decoration: none; cursor: pointer; }
.dd__menu a:hover, .dd__menu button:hover, .dd__menu a:focus-visible { background: var(--panel-2); color: #fff; outline: none; }
.dd__menu a small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.dd__menu hr { margin: 6px 0; border: 0; border-top: 1px solid var(--line); }

/* Rechte Seite: Live, Auslastung, Discord, Shop, Sprache, Anmeldung */
.top__tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hpill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--panel); color: var(--text); font-family: var(--head); font-size: 14px; letter-spacing: 0.08em; text-decoration: none; white-space: nowrap; }
.hpill:hover { border-color: var(--text-2); }
.hpill--live { border-color: rgba(255, 42, 42, 0.55); background: rgba(255, 42, 42, 0.1); }
.hpill--live b { text-transform: uppercase; color: #fff; }
.hpill--live .num { color: var(--red-2); }
.hpill--live .dot { background: var(--red); }
.hpill--live.is-on .dot, .hpill--live.is-on .dot::after { background: var(--red); }
.hpill--cap b { color: #fff; }
.hpill--cap #cap-max { color: var(--muted); }
.cap__bar { position: relative; width: 52px; height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.cap__bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--text); border-radius: 2px; transition: width 0.4s ease; }
.top__sep { width: 1px; height: 28px; background: var(--line-2); }
.iconbtn { display: inline-grid; place-items: center; width: 36px; height: 34px; border: 1px solid transparent; border-radius: 4px; background: none; color: var(--text-2); cursor: pointer; text-decoration: none; }
.iconbtn:hover { color: #fff; border-color: var(--line-2); }
.iconbtn svg { width: 19px; height: 19px; }
.iconbtn--txt { font-family: var(--head); font-size: 13px; letter-spacing: 0.08em; }
.shopbtn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1px solid #c9822f; border-radius: 4px; background: rgba(242, 163, 58, 0.08); color: #f2a33a; font-family: var(--head); font-weight: 600; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.shopbtn:hover { background: rgba(242, 163, 58, 0.18); color: #ffc070; }
.shopbtn svg { width: 17px; height: 17px; }
.steambtn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--panel); color: var(--text); font-family: var(--head); font-weight: 600; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.steambtn:hover { border-color: var(--text-2); color: #fff; }
.steambtn svg { width: 18px; height: 18px; }
.user { position: relative; }
.user__btn { display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 10px 0 4px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--panel); color: #fff; font: 14px var(--body); cursor: pointer; max-width: 210px; }
.user__btn:hover, .user.is-open .user__btn { border-color: #d9c48f; }
.user__btn .av { width: 26px; height: 26px; border-radius: 4px; font-size: 11px; }
.user__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user .dd__menu { left: auto; right: 0; top: calc(100% + 6px); min-width: 250px; }
.user__head { padding: 10px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user__head b { display: block; color: #fff; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user__head small { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.user.is-open .dd__menu { visibility: visible; opacity: 1; transform: none; }
.dd__menu .is-muted { color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); color: var(--text); font-family: var(--head); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.pill:hover { border-color: var(--red); }
.pill--live { border-color: rgba(255, 42, 42, 0.45); }
.dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: 0 0 auto; }
.is-on .dot, .dot.is-on { background: var(--green); }
.is-on .dot::after, .dot.is-on::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: pulse 2s ease-out infinite; }
.is-off .dot, .dot.is-off { background: var(--red); }
@keyframes pulse { from { transform: scale(1); opacity: 0.6; } to { transform: scale(2.6); opacity: 0; } }
.burger { display: none; width: 38px; height: 34px; padding: 8px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); cursor: pointer; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Grundgeruest */
main { flex: 1 0 auto; width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 16px 56px; outline: none; }
.loading { height: 50vh; display: grid; place-items: center; }
.loading::after { content: ""; width: 34px; height: 34px; border: 3px solid var(--line-2); border-top-color: var(--red); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.kicker { margin: 0 0 6px; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.22em; font-size: 12px; color: var(--red-2); }
.h1 { margin: 0; font-family: var(--head); text-transform: uppercase; font-weight: 700; font-size: clamp(28px, 4.4vw, 42px); line-height: 1; letter-spacing: 0.02em; color: #fff; }
.h2 { margin: 0; font-family: var(--head); text-transform: uppercase; font-weight: 700; font-size: 20px; letter-spacing: 0.06em; color: #fff; }
.sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.lead { margin: 12px 0 0; max-width: 62ch; color: var(--text-2); }
.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section { margin-top: 34px; }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.more { color: var(--red-2); font-family: var(--head); text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; text-decoration: none; white-space: nowrap; }
.more:hover { color: #fff; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.panel--flush { padding: 0; overflow: hidden; }
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.empty { padding: 22px 8px; color: var(--muted); text-align: center; font-size: 14px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.err { padding: 14px 16px; border: 1px solid rgba(255, 42, 42, 0.5); border-radius: var(--r); background: var(--red-dim); }

/* ---------- Startseite */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; padding: 34px 28px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(14, 16, 19, 0.96) 35%, rgba(14, 16, 19, 0.72)),
    repeating-linear-gradient(135deg, rgba(255, 42, 42, 0.07) 0 2px, transparent 2px 16px),
    radial-gradient(120% 90% at 85% 10%, rgba(255, 42, 42, 0.28), transparent 60%), var(--bg-2); }
.hero__word { margin: 0; font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: clamp(46px, 8.5vw, 104px); line-height: 0.86; letter-spacing: 0.01em; color: #fff; }
.hero__word span { color: var(--red); }
.hero__quote { margin: 14px 0 0; font-style: italic; color: #fff; font-size: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel-2); color: #fff; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--red); }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red:hover { background: #e01e1e; }
.btn svg { width: 16px; height: 16px; }

.livebox { background: rgba(19, 22, 26, 0.92); border: 1px solid var(--line-2); border-radius: 10px; padding: 16px; }
.livebox__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; color: var(--muted); }
.livebox__state { display: inline-flex; align-items: center; gap: 7px; color: var(--text); }
.livebox__map { margin: 10px 0 2px; font-family: var(--head); font-size: 30px; line-height: 1; text-transform: uppercase; color: #fff; letter-spacing: 0.03em; }
.livebox__meta { color: var(--muted); font-size: 13px; }
.livebox__count { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 6px; }
.livebox__count b { font-family: var(--head); font-size: 54px; line-height: 0.9; color: #fff; }
.livebox__count span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--head); }
.fbars { display: grid; gap: 10px; margin-top: 12px; }
.fbar__row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.fbar__name { display: inline-flex; align-items: center; gap: 7px; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.08em; }
.chip { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; background: var(--muted); }
.fbar__track { position: relative; height: 6px; margin-top: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.fbar__fill { position: absolute; inset: 0 auto 0 0; border-radius: 0 3px 3px 0; }

.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin-top: 18px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
/* Kopfkarte der Server-Seite */
.srvhead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 24px; align-items: center; padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(110deg, rgba(23, 26, 31, 0.97) 45%, rgba(23, 26, 31, 0.8)), repeating-linear-gradient(135deg, rgba(255, 42, 42, 0.06) 0 2px, transparent 2px 14px), radial-gradient(90% 120% at 100% 0%, rgba(255, 42, 42, 0.22), transparent 60%), var(--panel); }
.srvhead .kicker { margin-bottom: 4px; }
.srvhead__title { margin: 0; font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.1; letter-spacing: 0.03em; color: #fff; }
.srvhead__title span { color: var(--red-2); }
.srvhead__lead { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.srvhead__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chipx { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 4px; background: rgba(14, 16, 19, 0.6); color: var(--text-2); font: 12px var(--body); white-space: nowrap; }
.chipx.is-on { color: #9fdca2; border-color: rgba(76, 175, 80, 0.45); }
.chipx.is-off { color: var(--red-2); border-color: rgba(255, 42, 42, 0.45); }
.chipx--copy { cursor: pointer; color: #fff; }
.chipx--copy svg { width: 13px; height: 13px; color: var(--muted); }
.chipx--copy:hover { border-color: var(--text-2); }
.chipx--copy.is-copied, .chipx--copy.is-copied svg { border-color: var(--green); color: var(--green); }
.srvhead__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.srvhead__stats .stat { padding: 12px 14px; background: rgba(19, 22, 26, 0.94); }
.srvhead__stats .stat__v { font-size: 24px; }
.srvhead__stats .stat__l { font-size: 11px; }
.stats--4 { margin-top: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 16px 18px; background: var(--panel); min-width: 0; }
.stat__v { font-family: var(--head); font-size: 30px; line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; }
.stat__l { margin-top: 4px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--head); }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.tile { position: relative; display: block; padding: 16px 40px 16px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); text-decoration: none; transition: border-color 0.15s ease, background-color 0.15s ease; }
.tile:hover { border-color: var(--red); background: var(--panel-2); }
.tile__k { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; color: var(--red-2); }
.tile__t { font-family: var(--head); text-transform: uppercase; font-size: 22px; color: #fff; letter-spacing: 0.04em; }
.tile__d { margin-top: 2px; color: var(--muted); font-size: 13px; }
.tile::after { content: "\2192"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; }
.tile:hover::after { color: var(--red-2); }

/* ---------- Ranglisten-Kacheln */
.toplist { list-style: none; margin: 0; padding: 0; }
.toplist li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); min-width: 0; }
.toplist li:first-child { border-top: 0; }
.toplist__pos { width: 22px; flex: 0 0 auto; text-align: center; font-family: var(--head); color: var(--muted); }
.toplist__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.toplist__name:hover { color: #fff; text-decoration: underline; }
.toplist__v { font-family: var(--head); font-size: 18px; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.p1 { color: var(--gold) !important; } .p2 { color: var(--silver) !important; } .p3 { color: var(--bronze) !important; }

.av { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 6px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text-2); font-family: var(--head); font-size: 13px; text-transform: uppercase; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av--lg { width: 88px; height: 88px; border-radius: 12px; font-size: 34px; }
.av--sm { width: 24px; height: 24px; font-size: 11px; border-radius: 5px; }

/* ---------- Tabellen */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th, .t td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t th { position: sticky; top: 0; background: var(--panel-2); color: var(--muted); font-family: var(--head); font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; }
.t td.r, .t th.r { text-align: right; }
.t tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.t tbody tr:last-child td { border-bottom: 0; }
.t .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.t .who a { text-decoration: none; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.t .who a:hover { color: #fff; text-decoration: underline; }
.t--tight th, .t--tight td { padding: 9px 10px; }
.t--tight td:first-child { white-space: normal; }
.who__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.who__txt a { max-width: 200px; white-space: nowrap; }
.who__txt small { color: var(--muted); font-size: 12px; }
.t .pos { width: 46px; font-family: var(--head); font-size: 16px; color: var(--muted); }
.t th button { all: unset; cursor: pointer; }
.t th button:hover, .t th[aria-sort] { color: #fff; }
.t th[aria-sort] button::after { content: " \25BE"; color: var(--red-2); }
.hl { color: #fff; font-weight: 600; }

/* ---------- Filter */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel); }
.seg button, .seg a { padding: 6px 12px; border: 0; border-radius: 6px; background: none; color: var(--text-2); font-family: var(--head); text-transform: uppercase; letter-spacing: 0.07em; font-size: 13px; cursor: pointer; text-decoration: none; }
.seg [aria-pressed="true"], .seg [aria-current="true"] { background: var(--red); color: #fff; }
.seg button:hover:not([aria-pressed="true"]) { color: #fff; }
.search { height: 36px; min-width: 220px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; }
.search:focus { border-color: var(--red); outline: none; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 18px; color: var(--muted); font-size: 14px; }

/* ---------- Ereignisse */
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 74px 22px minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.log li:first-child { border-top: 0; }
.log time { color: var(--muted); font-size: 12px; padding-top: 2px; white-space: nowrap; }
.log__i { width: 18px; height: 18px; margin-top: 1px; color: var(--muted); }
.log__i--new { color: var(--green); } .log__i--rank { color: var(--gold); } .log__i--match { color: var(--red-2); }
.log a { text-decoration: none; color: #fff; }
.log a:hover { text-decoration: underline; }

/* ---------- Runden */
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); text-decoration: none; }
.mrow > div:first-child { grid-row: span 2; }
.mrow .mrow__score { justify-content: flex-end; }
.mrow:first-child { border-top: 0; }
.mrow:hover { background: var(--panel-2); }
.mrow__map { font-family: var(--head); text-transform: uppercase; font-size: 18px; color: #fff; letter-spacing: 0.03em; line-height: 1.1; }
.mrow__meta { color: var(--muted); font-size: 13px; }
.mrow__score { display: flex; gap: 10px; flex-wrap: wrap; font-family: var(--head); font-size: 15px; }
.mrow__score span { display: inline-flex; align-items: center; gap: 5px; }
.mrow__score .win { color: #fff; }
.mrow__mvp { font-size: 13px; color: var(--text-2); text-align: right; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-2); font-size: 11px; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); }
.badge--red { border-color: rgba(255, 42, 42, 0.5); color: var(--red-2); }
.badge--green { border-color: rgba(76, 175, 80, 0.5); color: #8fd492; }

/* ---------- Live */
.teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.team__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); border-top: 3px solid var(--muted); }
.team__name { display: flex; align-items: center; gap: 8px; font-family: var(--head); text-transform: uppercase; font-size: 20px; color: #fff; letter-spacing: 0.05em; }
.team__score { font-family: var(--head); font-size: 26px; color: #fff; }

/* ---------- Spieler */
.profile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(115deg, var(--panel) 50%, rgba(255, 42, 42, 0.1)), var(--panel); }
.profile__name { margin: 0; font-family: var(--head); font-size: clamp(26px, 4vw, 40px); line-height: 1; color: #fff; text-transform: none; letter-spacing: 0.01em; word-break: break-word; }
.profile__meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 13px; }
.rank { text-align: right; }
.rank__name { font-family: var(--head); text-transform: uppercase; font-size: 22px; color: var(--gold); letter-spacing: 0.06em; }
.rank__txt { color: var(--muted); font-size: 13px; max-width: 30ch; margin-left: auto; }
.progress { height: 6px; margin-top: 8px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--gold); border-radius: 0 3px 3px 0; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 16px; }
.kv > div { padding: 14px 16px; margin: 0 -1px -1px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.names { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Dienstgrade und Hausordnung (Server-Seite, zwei Spalten) */
.lists { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 16px; align-items: start; }
.lists__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.lists__head h2 { margin: 0; font-family: var(--head); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: #fff; }
.lists__head span { color: var(--muted); font-size: 12px; }
.rlist, .laws { list-style: none; margin: 0; padding: 4px 18px 10px; }
.rlist li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.rlist li:first-child, .laws li:first-child { border-top: 0; }
.rlist li.is-me { margin: 0 -18px; padding-left: 18px; padding-right: 18px; background: rgba(255, 42, 42, 0.06); box-shadow: inset 3px 0 0 var(--red); }
.t tr.is-me td { background: rgba(255, 42, 42, 0.08); }
.t tr.is-me td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.ins { display: block; width: 22px; height: 34px; flex: 0 0 auto; }
.rlist b { display: block; font-family: var(--head); font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--rc); line-height: 1.2; }
.rlist p { margin: 2px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.4; }
.rlist__h { font-family: var(--mono); font-size: 14px; color: var(--text); white-space: nowrap; }
.laws li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); }
.laws__no { font-family: var(--head); font-size: 34px; font-weight: 700; line-height: 0.9; color: var(--red); letter-spacing: -0.02em; }
.laws b { display: block; font-family: var(--head); font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #fff; line-height: 1.25; }
.laws p { margin: 6px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.laws__more { margin: 0; padding: 0 18px 16px; }
.rank__name { display: inline-flex; align-items: center; gap: 8px; }
.rank__name .ins { width: 18px; height: 28px; }

/* ---------- Dienstgrade (alt, Kacheln) */
.ranks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ranks li { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.ranks b { display: block; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.06em; font-size: 17px; color: var(--gold); }
.ranks small { color: var(--red-2); font-family: var(--head); letter-spacing: 0.1em; text-transform: uppercase; font-size: 12px; }
.ranks p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

/* ---------- Einheiten */
.unit { padding: 18px; }
.unit__tag { font-family: var(--head); font-size: 30px; line-height: 1; color: #fff; letter-spacing: 0.04em; }
.unit__crest { display: inline-grid; place-items: center; min-width: 54px; height: 54px; padding: 0 8px; border-radius: 10px; border: 2px solid var(--red); background: var(--red-dim); font-family: var(--head); font-size: 20px; color: #fff; }
.unit__members { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.unit__members a { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; text-decoration: none; }
.unit__members a:hover { border-color: var(--red); }
.uotw { border-color: rgba(232, 182, 76, 0.55); background: linear-gradient(135deg, rgba(232, 182, 76, 0.1), transparent 60%), var(--panel); }

/* ---------- Diagramme */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .ax { fill: var(--muted); font-size: 11px; font-family: var(--body); }
.chart .area { fill: rgba(255, 42, 42, 0.16); }
.chart .ln { fill: none; stroke: var(--red); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .ln2 { fill: none; stroke: var(--text-2); stroke-width: 1.5; stroke-dasharray: 3 3; }
.chart .cross { stroke: var(--text-2); stroke-width: 1; }
.chart .mk { fill: var(--red); stroke: var(--panel); stroke-width: 2; }
.chart .bar { fill: var(--red); }
.chart .bar:hover, .chart .hit:hover + .bar { fill: var(--red-2); }
.chart .hit { fill: transparent; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; color: var(--text-2); font-size: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 14px; height: 2px; background: var(--red); }
.legend i.dash { background: repeating-linear-gradient(90deg, var(--text-2) 0 3px, transparent 3px 6px); }
.heat { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 2px; font-size: 11px; color: var(--muted); }
.heat .c { aspect-ratio: 1 / 1; border-radius: 3px; background: var(--panel-2); }
.heat .lab { display: flex; align-items: center; }
.heat .hr { text-align: center; }
.scale { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.scale__bar { width: 160px; height: 8px; border-radius: 4px; }
details.tbl { margin-top: 10px; font-size: 13px; color: var(--text-2); }
details.tbl summary { cursor: pointer; color: var(--muted); }
details.tbl .tablewrap { max-height: 280px; margin-top: 8px; border: 1px solid var(--line); border-radius: 6px; }

.tip { position: fixed; z-index: 60; pointer-events: none; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 6px; background: #0b0d10; color: var(--text); font-size: 12px; line-height: 1.4; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45); max-width: 240px; }
.tip b { color: #fff; }

/* ---------- Fuss */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); }
.foot__in { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; max-width: 1240px; margin: 0 auto; padding: 20px 16px; color: var(--muted); font-size: 13px; }
.foot a { color: var(--text-2); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ---------- Schmal */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1240px) {
  .hpill--cap, .top__sep { display: none; }
  .user__name { display: none; }
  .user__btn { padding-right: 4px; }
}
@media (max-width: 1060px) {
  #shop-txt { display: none; }
  .shopbtn { padding: 0 9px; }
  .nav__a { padding: 0 9px; letter-spacing: 0.06em; }
  .steambtn span { display: none; }
  .steambtn { padding: 0 9px; }
}
@media (max-width: 900px) {
  .burger { display: flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 62px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 14px; background: var(--bg); border-bottom: 1px solid var(--line); max-height: calc(100vh - 62px); overflow-y: auto; }
  .nav.is-open { display: flex; }
  .nav__a { height: auto; padding: 12px 8px; width: 100%; justify-content: space-between; }
  .nav__a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); }
  .dd__menu { position: static; display: none; visibility: visible; opacity: 1; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 6px 12px; min-width: 0; }
  .dd.is-open > .dd__menu { display: block; }
  .dd:hover > .dd__menu { display: none; }
  .dd.is-open:hover > .dd__menu { display: block; }
  .top__tools { gap: 6px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 24px 18px; }
  .g2, .g3, .lists, .srvhead { grid-template-columns: minmax(0, 1fr); }
  .srvhead { padding: 18px 16px; gap: 16px; }
  .profile { grid-template-columns: auto minmax(0, 1fr); }
  .rank { grid-column: 1 / -1; text-align: left; }
  .rank__txt { margin-left: 0; }
}
@media (max-width: 600px) {
  main { padding-top: 18px; }
  .stats, .stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tiles, .g4 { grid-template-columns: minmax(0, 1fr); }
  .mrow { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .mrow > div:first-child { grid-row: auto; }
  .mrow .mrow__score { justify-content: flex-start; }
  .mrow__mvp { text-align: left; }
  .search { min-width: 0; width: 100%; }
  .av--lg { width: 64px; height: 64px; font-size: 26px; }
  .heat { grid-template-columns: 26px repeat(24, minmax(0, 1fr)); gap: 1px; }
  .heat .hr:nth-child(odd) { visibility: hidden; }
  .brand__txt small { display: none; }
  .brand__txt { display: none; }
  .hpill--live b { display: none; }
  #lang-btn { width: 30px; }
  .top__in { gap: 10px; padding: 0 12px; }
}
