/* Serverseitige Seiten (Anmeldung, Upload-Portal, Fehler) – gleiches Design wie die React-Oberfläche */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
:root {
  --blau: #2348ad; --blau-dunkel: #18327a; --hellblau: #a9bdf0; --hellblau-flaeche: #dae4fa;
  --kopf: #0e1830; --text: #1b2430; --grau: #4d5766; --grund: #ece8df; --flaeche: #f5f3ee;
  --rahmen: #cfc8ba; --rahmen-hell: #e4e0d7; --weiss: #fff;
  --ok: #22543d; --ok-bg: #e3f1e8; --warn: #7a4a00; --warn-bg: #fbefd5; --bad: #8f2424; --bad-bg: #f8e1e1;
  --font: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --font-head: var(--font);
  --mono: Consolas, "Cascadia Mono", Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--grund); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.5; font-variant-numeric: lining-nums; }
h1 { font-family: var(--font-head); font-weight: 600; color: var(--text); font-size: 1.5rem; letter-spacing: -0.01em; margin: 0 0 0.4rem; }
a { color: var(--blau); }
.muted { color: var(--grau); } .small { font-size: 0.84rem; } .mono { font-family: var(--mono); font-size: 0.86em; } .nowrap { white-space: nowrap; }
.topbar { height: 56px; display: flex; align-items: center; padding: 0 1.5rem; background: var(--kopf); }
.brand { display: flex; align-items: center; gap: 0.9rem; }
.brand img { display: block; }
.brand .product { padding-left: 0.9rem; border-left: 1px solid var(--rahmen); color: var(--grau); font-size: 0.95rem; }
.notice { padding: 0.5rem 1.5rem; background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid #ecd9ae; font-size: 0.88rem; }
main.center { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 4rem 1rem; }
.card { width: 100%; background: var(--weiss); border: 1px solid var(--rahmen); border-radius: 10px; padding: 2rem 2.2rem; }
.card.narrow { max-width: 420px; } .card.wide { max-width: 820px; }
.stack { display: flex; flex-direction: column; gap: 1rem; margin: 1.25rem 0; }
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field-label { font-size: 0.8rem; color: var(--grau); }
.input { width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--rahmen); border-radius: 6px; font: inherit; color: var(--text); background: var(--weiss); }
.input:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px var(--hellblau-flaeche); }
.btn { display: inline-flex; justify-content: center; padding: 0.6rem 1.1rem; border-radius: 6px; border: 1px solid var(--blau);
  background: var(--blau); color: var(--weiss); font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--hellblau); outline-offset: 2px; }
.btn:hover { background: var(--blau-dunkel); }
.btn.ghost { background: var(--weiss); color: var(--blau); border-color: var(--rahmen); }
.btn.ghost:hover { border-color: var(--blau); background: var(--hellblau-flaeche); }
.alert { padding: 0.6rem 0.85rem; border-radius: 6px; border: 1px solid; }
.alert.bad { background: var(--bad-bg); border-color: #e8bcbc; color: var(--bad); }
.mfa-schritte { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.mfa-qr { margin: 0.6rem 0; } .mfa-qr svg { display: block; }
.mfa-schluessel { letter-spacing: 0.06em; word-break: break-all; }
.facts { margin: 0.8rem 0 0; padding-left: 1.1rem; color: var(--grau); font-size: 0.9rem; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; padding: 2.2rem 1rem;
  border: 2px dashed var(--hellblau); border-radius: 8px; background: var(--hellblau-flaeche); cursor: pointer; text-align: center; }
.drop:hover { border-color: var(--blau); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-title { color: var(--blau); font-weight: 600; }
.drop.over { border-color: var(--blau); border-style: solid; background: var(--hellblau); }
.drop.over .drop-title::after { content: " – jetzt loslassen"; }
.drop.has-files { border-style: solid; }
.filelist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rahmen); border-radius: 6px; max-height: 16rem; overflow-y: auto; }
.filelist li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0.8rem; border-bottom: 1px solid var(--rahmen-hell); font-size: 0.9rem; }
.filelist li:last-child { border-bottom: none; }
.filelist .name { overflow-wrap: anywhere; }
.filelist .meta { color: var(--grau); white-space: nowrap; }
.filelist li.bad .meta { color: var(--bad); }
.progress { display: flex; flex-direction: column; gap: 0.35rem; }
.progress-head { display: flex; justify-content: space-between; font-size: 0.9rem; }
.progress-head strong { color: var(--blau); font-variant-numeric: tabular-nums; }
.progress-bar { height: 10px; background: var(--hellblau-flaeche); border-radius: 999px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--blau); transition: width 0.15s linear; }
.btn:disabled { opacity: 0.6; cursor: wait; }
[hidden] { display: none !important; }
.table-wrap { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--rahmen); border-radius: 6px; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th { text-align: left; font-size: 0.8rem; color: var(--grau); background: var(--flaeche); padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--rahmen); }
.table td { padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--rahmen-hell); vertical-align: top; }
.table tr:last-child td { border-bottom: none; }
.hash { font-size: 0.72rem; word-break: break-all; }
.badge { display: inline-block; padding: 0.08rem 0.5rem; border-radius: 999px; font-size: 0.76rem; }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.bad { background: var(--bad-bg); color: var(--bad); }

/* Wortmarke in der Kopfzeile */
.brand img.wortmarke { height: 28px; width: auto; }

/* Anmeldeseiten: keine Kopfzeile, Karte in der Mitte, Logo über dem Inhalt */
body.anmeldung { background: var(--kopf); }
body.anmeldung main.center { padding: 2rem 1rem; }
body.anmeldung .card { margin: auto; border: none; border-radius: 14px; padding: 2.4rem 2.4rem 1.8rem; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); }
body.anmeldung .card.narrow { max-width: 400px; }
body.anmeldung .notice { text-align: center; }
.marke { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; margin-bottom: 1.6rem; }
.marke img { display: block; }
.marke-name { font-size: 1.7rem; font-weight: 600; letter-spacing: -0.015em; color: var(--kopf); line-height: 1; }
.schritt-titel { font-size: 1.1rem; text-align: center; margin-bottom: 0.2rem; }
.mitte { text-align: center; }
.input.code { text-align: center; font-family: var(--mono); font-size: 1.5rem; letter-spacing: 0.35em; padding-left: 1.1rem; }
.input.code::placeholder { color: var(--rahmen); }
body.anmeldung .btn { padding: 0.7rem 1.1rem; }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 480px) { body.anmeldung .card { padding: 1.8rem 1.4rem 1.4rem; } }
