/* DarknessGames Team-Dashboard */
:root {
  --grund: #0f0f12;
  --leiste: #141418;
  --flaeche: #1b1b20;
  --flaeche2: #222228;
  --rand: #2a2a31;
  --linie: #26262d;
  --text: #ececef;
  --text2: #c9c9d1;
  --leise: #a3a3ad;
  --leiser: #8a8a94;
  --rot: #d63a2e;
  --rot-hell: #ff6b5e;
  --rot-tief: #2a1513;
  --gruen: #4cc38a;
  --blau: #6aa9ff;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--grund); color: var(--text); font-family: Inter, system-ui, sans-serif; font-size: 15px; }
a { color: var(--rot-hell); text-decoration: none; }
a:hover { color: #ff9a90; }
button, input { font-family: inherit; }
h1, h2, h3 { margin: 0; }
.kopf-schrift { font-family: 'Space Grotesk', Inter, sans-serif; }

.rahmen { min-height: 100vh; display: flex; flex-wrap: wrap; align-items: stretch; }

/* Seitenleiste */
.leiste { flex: 1 1 240px; max-width: 100%; background: var(--leiste); border-right: 1px solid var(--linie); padding: 24px 16px; display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 900px) { .leiste { flex: 0 0 248px; min-height: 100vh; } }
.marke { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.marke-zeichen { width: 40px; height: 40px; border-radius: 8px; background: var(--rot); display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; color: #fff; }
.marke-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px; }
.marke-unter { font-size: 12px; color: var(--leise); }
.gruppe { display: flex; flex-direction: column; gap: 2px; }
.gruppe-titel { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rot-hell); padding: 0 10px 6px; }
.nav { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 7px; cursor: pointer; font-size: 15px; font-weight: 500; background: transparent; color: var(--text2); text-align: left; }
.nav:hover { background: var(--flaeche); color: #fff; }
.nav.an { background: var(--rot-tief); color: #fff; box-shadow: inset 3px 0 0 var(--rot); }
.nav .neben { margin-left: auto; font-size: 11px; color: var(--leise); }
.leiste-fuss { margin-top: auto; padding: 0 10px; font-size: 12px; color: var(--leiser); display: flex; flex-direction: column; gap: 8px; }

/* Inhalt */
.inhalt { flex: 999 1 560px; min-width: 0; padding: 24px 28px 40px; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 600px) { .inhalt { padding: 16px; } }
.kopf { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.kopf h1 { font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 700; }
.kopf-rechts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.kasten { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; background: var(--flaeche); border: 1px solid var(--rand); border-radius: 8px; }
.punkt { width: 9px; height: 9px; border-radius: 50%; background: var(--leiser); flex: none; }
.punkt.an { background: var(--gruen); }
.suche { min-width: 260px; }
.suche input { flex: 1; background: transparent; border: 0; outline: none; color: var(--text); font-size: 14px; min-width: 0; }
.avatar-knopf { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--rot); background: var(--rot-tief); color: #fff; padding: 0; overflow: hidden; cursor: pointer; font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
.avatar-knopf img, .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Karten */
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 10px; padding: 18px 20px; }
.wert-karte { display: flex; flex-direction: column; gap: 6px; min-height: 112px; }
.wert-titel { font-size: 13px; font-weight: 600; color: var(--leise); }
.wert-zusatz { font-size: 13px; color: var(--rot-hell); min-height: 16px; }
.wert { font-family: 'Space Grotesk', sans-serif; font-size: 32px; font-weight: 700; margin-top: auto; }
.zeile { display: flex; flex-wrap: wrap; gap: 16px; }
.breit { flex: 2 1 520px; min-width: 0; }
.schmal { flex: 1 1 280px; min-width: 0; }
.karten-kopf { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.karten-kopf h2 { font-size: 16px; font-weight: 600; }
.leise { color: var(--leise); font-size: 13px; }
.legende { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text2); }
.legende span { display: flex; align-items: center; gap: 6px; }
.strich { width: 14px; height: 3px; display: inline-block; }
.strich.gestrichelt { height: 0; border-top: 3px dashed var(--text2); }
.diagramm { width: 100%; height: auto; display: block; }

.balken-zeile { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.balken-kopf { display: flex; justify-content: space-between; font-size: 14px; }
.balken { height: 6px; background: var(--linie); border-radius: 3px; overflow: hidden; }
.balken > div { height: 100%; border-radius: 3px; }

.links { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.links h2 { font-size: 16px; font-weight: 600; flex: 1 1 160px; }
.links a { display: flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Tabellen */
.tabelle-kasten { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 10px; padding: 8px 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--leise); padding: 12px 20px; font-weight: 600; }
td { padding: 12px 20px; border-top: 1px solid var(--linie); }
tr.klickbar { cursor: pointer; }
tr.klickbar:hover td { background: var(--flaeche2); }
.name-zelle { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.avatar { width: 32px; height: 32px; border-radius: 6px; overflow: hidden; background: var(--flaeche2); flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--leise); }
.abzeichen { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 13px; font-weight: 600; background: #24242a; border: 1px solid currentColor; white-space: nowrap; }
.status { font-size: 13px; font-weight: 600; color: var(--leiser); }
.status.an { color: var(--gruen); }

/* Boards */
.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.board { text-align: left; cursor: pointer; background: var(--flaeche); border: 1px solid var(--rand); border-radius: 10px; padding: 18px 20px; color: var(--text); display: flex; flex-direction: column; gap: 10px; min-height: 150px; font-size: 15px; }
.board:hover { border-color: #3a3a44; background: var(--flaeche2); }
.board-kopf { display: flex; align-items: center; gap: 12px; }
.board-zeichen { width: 42px; height: 42px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px; color: #fff; flex: none; }
.board-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px; }
.board-jobs { font-size: 13px; color: var(--leise); line-height: 1.45; }
.board-zahlen { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: auto; font-size: 13px; }

/* Reiter */
.reiter { display: flex; flex-wrap: wrap; gap: 8px; }
.reiter button { min-height: 44px; padding: 0 16px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; background: var(--flaeche); color: var(--text2); border: 1px solid var(--rand); }
.reiter button.an { background: var(--rot-tief); color: #fff; border-color: var(--rot); }
.aktiv-zeile { display: grid; grid-template-columns: minmax(140px, 240px) minmax(0, 1fr) 80px; gap: 14px; align-items: center; font-size: 14px; padding: 8px 0; border-top: 1px solid var(--linie); cursor: pointer; }
.aktiv-zeile:first-of-type { border-top: 0; }
.aktiv-zeile .balken { height: 8px; }
.aktiv-name { display: flex; flex-direction: column; }
.aktiv-name b { display: flex; align-items: center; gap: 8px; }
.rechts { text-align: right; font-weight: 600; }
@media (max-width: 600px) { .aktiv-zeile { grid-template-columns: 1fr 70px; } .aktiv-zeile .balken { grid-column: 1 / -1; grid-row: 2; } }

/* Profil */
.profil-kopf { display: flex; gap: 14px; align-items: center; }
.profil-bild { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--rot-tief); border: 1px solid var(--rot); flex: none; display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; }
.profil-bild img { width: 100%; height: 100%; object-fit: cover; }
.profil-name { font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 700; color: var(--rot-hell); }
.statistik { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 40px; }
.statistik dl { margin: 0; padding: 10px 0; }
.statistik div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid #23232a; font-size: 14px; }
.statistik dt { color: var(--leise); }
.statistik dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.kopieren { background: none; border: 0; color: var(--leise); cursor: pointer; padding: 0 0 0 6px; font-size: 13px; }
.kopieren:hover { color: #fff; }
.namen-liste { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.namen-liste li { background: var(--flaeche2); border: 1px solid var(--rand); border-radius: 6px; padding: 4px 8px; font-size: 13px; }

.hinweis { color: var(--leiser); font-size: 13px; }
.leer { color: var(--leise); padding: 20px; text-align: center; }
.fehler-box { background: #2a1513; border: 1px solid var(--rot); border-radius: 10px; padding: 16px 20px; }
.laden { color: var(--leise); padding: 40px 0; text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Anmeldung */
.anmelden { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.anmelden-karte { width: 100%; max-width: 420px; background: var(--flaeche); border: 1px solid var(--rand); border-radius: 14px; padding: 36px 32px; display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.anmelden-karte h1 { font-family: 'Space Grotesk', sans-serif; font-size: 26px; }
.steam-knopf { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 8px; background: var(--rot); color: #fff; font-weight: 700; font-size: 16px; }
.steam-knopf:hover { background: #e24a3e; color: #fff; }

/* Abstände zwischen den Blöcken einer Seite */
#seite { display: flex; flex-direction: column; gap: 22px; }
.zeile { align-items: flex-start; }
[hidden] { display: none !important; }
