/* Kontodienst – „Holotisch“ wie die Login-Karte des gpanels. Schriften lokal (CSP: nichts von außen). */
:root {
  --bg: #060c16; --flaeche: #0b1626; --flaeche-tief: #071120; --flaeche-glas: rgba(11, 22, 38, .92);
  --linie: #1d3a57; --linie-hell: #2a7fa6; --linie-tief: #12304a;
  --text: #cfe6f5; --hell: #e9f6ff; --leise: #5d8aa8; --sehr-leise: #34536a;
  --cyan: #4fd3ff; --cyan-weich: rgba(79, 211, 255, .12);
  --gut: #59e3a0; --gut-weich: rgba(89, 227, 160, .1);
  --gefahr: #ff8a80; --gefahr-linie: #5a2630; --gefahr-weich: rgba(255, 138, 128, .1);
  --anzeige: "Oxanium", "Segoe UI", sans-serif;
  --schrift: "IBM Plex Sans", "Segoe UI", "Noto Sans", "DejaVu Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "DejaVu Sans Mono", ui-monospace, monospace;
  --ecke: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 14.5px/1.5 var(--schrift);
  background: radial-gradient(1200px 520px at 50% -10%, #0d2238 0%, var(--bg) 60%) fixed,
              repeating-linear-gradient(0deg, rgba(79, 211, 255, .025) 0 1px, transparent 1px 4px) fixed, var(--bg);
}
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.leise { color: var(--leise); }

/* ---------- Bausteine */
.feldname { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: var(--leise); text-transform: uppercase; }
.eck { clip-path: polygon(var(--ecke) 0, 100% 0, 100% calc(100% - var(--ecke)), calc(100% - var(--ecke)) 100%, 0 100%, 0 var(--ecke)); }
.eck-gross { clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }

input { background: var(--flaeche-tief); border: 1px solid var(--linie); color: var(--hell); padding: 10px 12px; width: 100%; min-width: 0; border-radius: 0; }
input:focus { border-color: var(--linie-hell); outline: none; box-shadow: 0 0 0 1px var(--linie-hell); }
input::placeholder { color: var(--sehr-leise); }
button {
  background: var(--flaeche); border: 1px solid var(--linie); color: var(--text); padding: 9px 16px; cursor: pointer; border-radius: 0;
  font-family: var(--anzeige); font-weight: 600; letter-spacing: .08em; font-size: 13px; text-transform: uppercase; white-space: nowrap;
}
button:hover:not(:disabled) { border-color: var(--linie-hell); color: var(--hell); }
button:disabled { opacity: .4; cursor: not-allowed; }
button.haupt { background: var(--cyan); border-color: var(--cyan); color: var(--bg); font-weight: 700; }
button.haupt:hover:not(:disabled) { background: #8fe3ff; color: var(--bg); }
button.zweit { color: var(--cyan); border-color: var(--linie-hell); }
button.gefahr { color: var(--gefahr); border-color: var(--gefahr-linie); }
button.gefahr:hover:not(:disabled) { border-color: var(--gefahr); color: #ffb3ac; }
button.link { background: none; border: 0; color: var(--cyan); padding: 4px 6px; text-transform: none; letter-spacing: 0; font-family: var(--schrift); font-weight: 500; }

.formular { display: grid; gap: 7px; }
.formular label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--leise); margin-top: 5px; }
.formular button.haupt { margin-top: 8px; padding: 12px; }
.meldung { margin: 10px 0 0; padding: 9px 11px; }
.meldung.fehler { background: var(--gefahr-weich); border-left: 2px solid var(--gefahr); color: #ffb3ac; }
.meldung.erfolg { background: var(--gut-weich); border-left: 2px solid var(--gut); color: #b5f0d3; }

/* ---------- Anmeldung */
.anmeldung { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.anmelde-karte { width: 100%; max-width: 400px; background: var(--flaeche-glas); border: 1px solid var(--linie); padding: 30px 30px 24px; display: grid; gap: 14px; }
.emblem { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--cyan); margin-bottom: 4px; text-align: center; }
.titel-gross { font-family: var(--anzeige); font-weight: 800; font-size: 20px; letter-spacing: .16em; color: var(--hell); overflow-wrap: anywhere; }
.unterzeile { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--leise); }
.fusszeile { font-family: var(--mono); font-size: 10.5px; color: var(--sehr-leise); text-align: center; }
.qr { background: var(--hell); padding: 8px; justify-self: center; line-height: 0; }
.geheim { font-family: var(--mono); font-size: 12.5px; background: var(--flaeche-tief); padding: 8px; word-break: break-all; user-select: all; color: var(--text); }
.code-feld { font-family: var(--mono); font-size: 20px; letter-spacing: .4em; text-align: center; }

/* ---------- Konto */
.dienste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dienst-link {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none;
  background: var(--flaeche-tief); border: 1px solid var(--linie); color: var(--hell);
  font-family: var(--anzeige); font-weight: 700; letter-spacing: .1em; font-size: 14px; text-transform: uppercase;
}
.dienst-link:hover { border-color: var(--cyan); background: var(--cyan-weich); }
.dienst-link .pfeil { color: var(--cyan); font-family: var(--mono); }
.dienst-link .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anmelde-karte > p { margin: 0; }
.leer { margin: 0; color: var(--leise); font-size: 13.5px; }
.knopfreihe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.platzhalter { margin: 0; padding: 14px; text-align: center; border: 1px dashed var(--linie); color: var(--leise); font-family: var(--mono); font-size: 12px; letter-spacing: .12em; }

/* 404 / Kein Zugang */
.seite-404 { text-align: center; max-width: 520px; justify-items: center; }
.seite-404 p { margin: 0; }
.zahl-404 { font-family: var(--anzeige); font-weight: 800; font-size: 72px; color: var(--linie-tief); letter-spacing: .1em; line-height: 1; }
.titel-404 { font-family: var(--anzeige); font-weight: 700; font-size: 20px; color: var(--hell); overflow-wrap: anywhere; }
.haupt-link { font-family: var(--anzeige); font-weight: 700; letter-spacing: .1em; font-size: 13px; color: var(--bg); background: var(--cyan); padding: 10px 18px; text-decoration: none; }

@media (max-width: 420px) {
  .anmelde-karte { padding: 24px 18px 20px; }
  .knopfreihe { grid-template-columns: 1fr; }
}
