:root {
  --hintergrund: #0a1224;
  --flaeche: #131d36;
  --flaeche-hell: #1b2747;
  --rand: #263357;
  --text: #e9edf6;
  --leise: #8f9abb;
  --akzent: #f2b31b;
  --akzent-dunkel: #3a2f12;
  --gut: #4cc38a;
  --warnung: #f2b31b;
  --schlecht: #ef6b6b;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 80% -10%, #24305a 0%, transparent 60%), var(--hintergrund);
  color: var(--text);
  font: 15px/1.5 Inter, system-ui, sans-serif;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, .marke-gross, .navigation a, .knopf {
  font-family: Rajdhani, Inter, sans-serif;
  letter-spacing: 0.02em;
}

h1 { font-size: 30px; margin: 0 0 4px; }
h2 { font-size: 22px; margin: 28px 0 10px; }

.kopf {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--rand);
  flex-wrap: wrap;
}

.marke { display: flex; align-items: center; gap: 12px; }
.marke-kreis {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--akzent-dunkel); color: var(--akzent);
  display: grid; place-items: center;
  font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 18px;
}
.marke-klein { color: var(--leise); font-size: 13px; }
.marke-gross { font-size: 22px; font-weight: 700; line-height: 1; }

.navigation { display: flex; gap: 4px; flex-wrap: wrap; }
.navigation a {
  color: var(--leise); text-decoration: none; font-weight: 600; font-size: 17px;
  padding: 6px 14px; border-radius: 8px;
}
.navigation a:hover { color: var(--text); background: var(--flaeche); }
.navigation a.aktiv { color: var(--akzent); background: var(--flaeche); }

.benutzer { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--leise); }

.inhalt { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 24px 28px 48px; }

.karte {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.karte + .karte { margin-top: 16px; }

.anmeldung { max-width: 460px; margin: 10vh auto 0; text-align: center; }
.anmeldung p { color: var(--leise); }

.knopf {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 10px; cursor: pointer;
  padding: 10px 18px; font-size: 17px; font-weight: 700;
  background: var(--akzent); color: #1a1406;
}
.knopf:hover { filter: brightness(1.08); }
.knopf.leise { background: var(--flaeche-hell); color: var(--text); font-size: 15px; padding: 6px 12px; }
.knopf.discord { background: #5865f2; color: #fff; }

.hinweis { color: var(--leise); }
.hinweis.warnung { color: var(--warnung); }
.hinweis.fehler { color: var(--schlecht); }

.werkzeugleiste { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 16px; }

select, input {
  background: var(--flaeche-hell); color: var(--text);
  border: 1px solid var(--rand); border-radius: 8px;
  padding: 7px 10px; font: inherit;
}

.tabelle-rahmen { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--rand); white-space: nowrap; }
th { color: var(--leise); font-weight: 500; font-size: 13px; }
td.zahl, th.zahl { text-align: right; }
tr.summe td { font-weight: 600; border-top: 2px solid var(--rand); border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }

.marke-chip {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  font-size: 12px; background: var(--flaeche-hell); color: var(--leise);
}
.marke-chip.akzent { background: var(--akzent-dunkel); color: var(--akzent); }
.marke-chip.schlecht { background: #3a1717; color: var(--schlecht); }

.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kennzahl { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: 14px 16px; }
.kennzahl .wert { font-family: Rajdhani, sans-serif; font-size: 26px; font-weight: 700; }
.kennzahl .name { color: var(--leise); font-size: 13px; }

.fuss { padding: 10px 28px; color: var(--leise); font-size: 13px; border-top: 1px solid var(--rand); }
.live { color: var(--leise); }
.live.an { color: var(--gut); }
