:root {
  --bg: #15171c;
  --card: #1f2229;
  --line: #2e323c;
  --text: #e8e8ea;
  --muted: #8b8f9a;
  --accent: #5fbf4f;
  --gold: #e6b84a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
header {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  max-width: 1100px; margin: 0 auto;
}
.logo { font-weight: 700; font-size: 18px; color: var(--accent); }
#updated, .muted { color: var(--muted); font-size: 13px; }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
h2 { font-size: 16px; margin: 28px 0 12px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.card h3 { margin: 0 0 10px; font-size: 14px; color: var(--muted); font-weight: 600; }
.row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.row .rank { width: 18px; color: var(--muted); font-size: 13px; }
.row:first-of-type .rank { color: var(--gold); }
.row .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .val { font-variant-numeric: tabular-nums; }
img.head { width: 24px; height: 24px; border-radius: 4px; image-rendering: pixelated; }
table { width: 100%; border-collapse: collapse; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:hover { background: #262a33; cursor: pointer; }
tbody tr:last-child td { border-bottom: 0; }
.profile { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.profile img { width: 72px; height: 72px; border-radius: 8px; image-rendering: pixelated; }
.profile h1 { margin: 0; font-size: 24px; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 20px; }
.kpi .v { font-size: 22px; font-weight: 700; }
.kpi .l { color: var(--muted); font-size: 13px; }
.adv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.adv:last-child { border-bottom: 0; }
.back { display: inline-block; color: var(--muted); margin-bottom: 8px; }

/* Status, Verlauf, Diagramme */
:root { --good: #6cc35b; --warn: #e6b84a; --bad: #e5534b; }
.status { margin-top: 4px; }
.status-head { display: flex; align-items: center; gap: 12px; }
.favicon { width: 48px; height: 48px; border-radius: 6px; image-rendering: pixelated; }
.motd { color: var(--muted); margin-top: 4px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.badge i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.badge.good { color: var(--good); } .badge.warn { color: var(--warn); } .badge.bad { color: var(--bad); }
.status .badge { font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px 16px; margin: 16px 0 0; }
.facts dt { color: var(--muted); font-size: 12px; }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.online { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.online:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #2a2e37; border-radius: 999px; padding: 3px 10px 3px 3px; font-size: 13px; }
.chip img.head { width: 20px; height: 20px; border-radius: 50%; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 28px 0 12px; }
.section-head h2 { margin: 0; }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.seg button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; padding: 4px 10px; border-radius: 6px; cursor: pointer; }
.seg button.on { background: #2e333d; color: var(--text); }
.grid2 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.chart { min-height: 160px; }
.chart svg { display: block; width: 100%; }
.chart .gl { stroke: var(--line); stroke-width: 1; }
.chart .ax { fill: var(--muted); font-size: 11px; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.chart .area { fill: var(--accent); opacity: .12; }
.chart .pt, .chart .hdot { fill: var(--accent); stroke: var(--card); stroke-width: 2; }
.chart .bar { fill: var(--accent); }
.chart .cross { stroke: var(--muted); stroke-dasharray: 3 3; pointer-events: none; }
.tip { position: absolute; pointer-events: none; opacity: 0; background: #0e1013; border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; font-size: 12px; z-index: 10; white-space: nowrap; }
.tip span { color: var(--muted); }
td img.head { vertical-align: middle; margin-right: 6px; }
header nav { display: flex; align-items: center; gap: 14px; }
.maplink { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: 14px; }
.maplink:hover { border-color: var(--accent); }
.seg.wrap { flex-wrap: wrap; }
#statsearch { width: 100%; max-width: 420px; margin: 12px 0 4px; padding: 8px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: inherit; }
.cols { columns: 2 280px; column-gap: 32px; }
.cols .row { break-inside: avoid; }
.maplink { white-space: nowrap; }
@media (max-width: 600px) {
  header nav { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  header nav .maplink { text-align: center; padding: 8px; }
  #updated { grid-column: 1 / -1; order: 3; font-size: 12px; }
}
