:root {
  --bg: #070b10; --bg2: #0d141c; --karte: #111a24; --karte2: #162232; --rand: #1f2d3d;
  --text: #e6edf5; --leise: #8a9bb0; --gruen: #22c55e; --gruen2: #16a34a; --blau: #38bdf8; --rot: #f87171; --gelb: #fbbf24;
  --rad: 14px; --schrift: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: radial-gradient(1200px 600px at 80% -10%, #0f2a1c 0%, transparent 60%), radial-gradient(900px 500px at -10% 110%, #0c1f33 0%, transparent 55%), var(--bg); color: var(--text); font: 15px/1.5 var(--schrift); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blau); }

/* Anmeldung */
.tor { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.tor-karte { width: 100%; max-width: 400px; background: linear-gradient(180deg, var(--karte2), var(--karte)); border: 1px solid var(--rand); border-radius: 20px; padding: 28px 24px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.logo i { width: 44px; height: 44px; border-radius: 10px; background: var(--gruen); box-shadow: inset 0 -6px 0 var(--gruen2), 0 0 30px rgba(34,197,94,.35); position: relative; }
.logo i::before, .logo i::after { content: ""; position: absolute; width: 10px; height: 10px; background: #052e16; top: 10px; }
.logo i::before { left: 9px; } .logo i::after { right: 9px; }
.logo b { font-size: 20px; letter-spacing: .02em; display: block; }
.logo span { color: var(--leise); font-size: 13px; }
.reiter { display: flex; gap: 6px; background: var(--bg2); border: 1px solid var(--rand); border-radius: 10px; padding: 4px; margin-bottom: 16px; }
.reiter button { flex: 1; border: 0; background: none; padding: 8px 6px; border-radius: 7px; color: var(--leise); cursor: pointer; font-size: 14px; }
.reiter button.an { background: var(--karte2); color: var(--text); }
label { display: block; font-size: 13px; color: var(--leise); margin: 12px 0 5px; }
input[type=text], input[type=password], select, textarea { width: 100%; background: var(--bg2); border: 1px solid var(--rand); border-radius: 10px; padding: 10px 12px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--gruen); box-shadow: 0 0 0 3px rgba(34,197,94,.15); }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 10px; padding: 10px 16px; background: var(--gruen); color: #04130a; font-weight: 600; cursor: pointer; transition: transform .08s, filter .15s; }
.knopf:hover { filter: brightness(1.08); } .knopf:active { transform: translateY(1px); }
.knopf.breit { width: 100%; margin-top: 18px; }
.knopf.leise { background: var(--karte2); color: var(--text); border: 1px solid var(--rand); font-weight: 500; }
.knopf.rot { background: #7f1d1d; color: #fee2e2; }
.knopf.klein { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.knopf:disabled { opacity: .5; cursor: default; }
.fehler { color: var(--rot); font-size: 14px; min-height: 20px; margin-top: 10px; }
.hinweis { color: var(--leise); font-size: 13px; }

/* Panel */
.kopf { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 12px 20px; background: rgba(7,11,16,.8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rand); }
.kopf .logo { margin: 0; } .kopf .logo i { width: 32px; height: 32px; border-radius: 8px; } .kopf .logo i::before, .kopf .logo i::after { width: 7px; height: 7px; top: 7px; } .kopf .logo i::before { left: 6px; } .kopf .logo i::after { right: 6px; } .kopf .logo b { font-size: 16px; }
.pille { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; background: var(--karte); border: 1px solid var(--rand); }
.pille::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rot); }
.pille.an::before { background: var(--gruen); box-shadow: 0 0 10px var(--gruen); }
.wachsen { flex: 1; }
.ich { color: var(--leise); font-size: 14px; }
.nav { display: flex; gap: 4px; padding: 10px 20px 0; overflow-x: auto; }
.nav button { border: 0; background: none; color: var(--leise); padding: 10px 14px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.nav button.an { color: var(--text); border-color: var(--gruen); }
main { padding: 20px; max-width: 1200px; margin: 0 auto; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.karte { background: linear-gradient(180deg, var(--karte2), var(--karte)); border: 1px solid var(--rand); border-radius: var(--rad); padding: 16px; }
.karte h3 { margin: 0 0 10px; font-size: 14px; color: var(--leise); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.zahl { font-size: 30px; font-weight: 700; line-height: 1.1; }
.zahl small { font-size: 15px; color: var(--leise); font-weight: 500; }
.balken { height: 8px; background: var(--bg2); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.balken i { display: block; height: 100%; background: linear-gradient(90deg, var(--gruen2), var(--gruen)); border-radius: 99px; transition: width .5s; }
.spieler-liste { display: flex; flex-wrap: wrap; gap: 8px; }
.kopfbild { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; background: var(--bg2); border: 1px solid var(--rand); border-radius: 10px; }
.kopfbild i { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; color: #04130a; }
.zeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.abstand { margin-top: 14px; }

/* Chat und Konsole */
.chat { display: flex; flex-direction: column; height: min(62vh, 640px); }
.verlauf { flex: 1; overflow-y: auto; padding: 4px 2px 8px; display: flex; flex-direction: column; gap: 6px; }
.nachricht { padding: 7px 11px; background: var(--bg2); border: 1px solid var(--rand); border-radius: 10px; max-width: 85%; word-break: break-word; }
.nachricht b { color: var(--gruen); margin-right: 6px; }
.nachricht.panel b { color: var(--blau); }
.nachricht.system { background: none; border: 0; color: var(--leise); font-size: 13px; font-style: italic; padding: 2px 4px; }
.nachricht time { color: var(--leise); font-size: 11px; margin-left: 8px; }
.eingabe { display: flex; gap: 8px; margin-top: 10px; }
.eingabe input { flex: 1; }
.konsole { font: 12.5px/1.45 var(--mono); background: #05080c; border: 1px solid var(--rand); border-radius: 10px; padding: 10px 12px; height: min(60vh, 600px); overflow-y: auto; white-space: pre-wrap; word-break: break-all; }
.konsole .warn { color: var(--gelb); } .konsole .err { color: var(--rot); } .konsole .ich { color: var(--blau); }
.tabelle { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabelle td, .tabelle th { padding: 8px 6px; border-bottom: 1px solid var(--rand); text-align: left; }
.tabelle th { color: var(--leise); font-weight: 500; font-size: 13px; }
.code { font: 600 20px var(--mono); letter-spacing: .08em; background: var(--bg2); border: 1px dashed var(--gruen); border-radius: 10px; padding: 12px; text-align: center; user-select: all; margin: 10px 0; }
.meldung { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--karte2); border: 1px solid var(--rand); padding: 10px 16px; border-radius: 10px; transition: .25s; z-index: 20; max-width: calc(100vw - 32px); }
.meldung.zeigen { opacity: 1; transform: translateX(-50%); }
.meldung.schlecht { border-color: var(--rot); }
@media (max-width: 640px) { .kopf { padding: 10px 14px; gap: 8px; } .ich { display: none; } main { padding: 14px; } .nav { padding: 8px 14px 0; } .nachricht { max-width: 100%; } }
