/* Schlichtes Layout, zuerst für das Handy. Farben als Tokens, Dunkelmodus nach Systemeinstellung. */
:root {
  --hg: #f4f5f7; --karte: #ffffff; --text: #1b1f24; --leise: #5b6470;
  --akzent: #0b6bcb; --akzent-text: #ffffff; --fehler: #b42318; --rand: #d7dbe0;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --hg: #111418; --karte: #1b2027; --text: #e8ebef; --leise: #9aa4b1;
    --akzent: #4c9ffe; --akzent-text: #0b1220; --fehler: #ff8a80; --rand: #2c333c;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; padding: 16px;
  display: flex; flex-direction: column; align-items: center;
  background: var(--hg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.karte {
  width: 100%; max-width: 420px; margin-top: 8vh; padding: 24px;
  background: var(--karte); border: 1px solid var(--rand); border-radius: 12px;
}
h1 { margin: 0 0 16px; font-size: 1.5rem; }
label { display: block; margin-bottom: 12px; font-weight: 600; }
input {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px;
  font: inherit; color: inherit; background: var(--hg);
  border: 1px solid var(--rand); border-radius: 8px;
}
button {
  width: 100%; padding: 12px; font: inherit; font-weight: 600; cursor: pointer;
  color: var(--akzent-text); background: var(--akzent); border: 0; border-radius: 8px;
}
button:disabled { opacity: .6; }
button.leise { color: var(--text); background: transparent; border: 1px solid var(--rand); }
.fehler { min-height: 1.5em; margin: 0 0 8px; color: var(--fehler); }
.hinweis { color: var(--leise); }
.qr { max-width: 220px; margin: 0 auto 12px; padding: 8px; background: #ffffff; border-radius: 8px; }
.qr svg { display: block; width: 100%; height: auto; }
code { display: block; word-break: break-all; }
footer { margin-top: auto; padding-top: 24px; font-size: .85rem; color: var(--leise); }
