:root {
  --grund: #0f1115;
  --flaeche: #171a1f;
  --flaeche-hell: #1e2228;
  --linie: #2a2f36;
  --schrift: #e9ecef;
  --schrift-leise: #adb5bd;
  --schrift-still: #9aa3ab;
  --dunkler-text: #10131a;
  --warnung: #f2c200;
  --fehler: #d92d20;
  --abstand: 0.75rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--schrift);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: #7cb7ff; }

.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--abstand);
  padding: var(--abstand) 1rem;
  border-bottom: 1px solid var(--linie);
  flex-wrap: wrap;
}

.kopf h1 { font-size: 1.1rem; margin: 0; }
.kopf .unterzeile { color: var(--schrift-still); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }

.knopf,
button,
select,
input,
textarea {
  font: inherit;
  color: inherit;
  background: var(--flaeche-hell);
  border: 1px solid var(--linie);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  min-height: 48px;
}

/* .knopf steht auch auf <a>-Elementen; ohne das bleiben die inline und messen
   nur die Zeilenhöhe statt der min-height — die No-JS-Bestätigungsseite verlässt
   sich auf eine ordentliche Knopfgröße. */
.knopf { display: inline-flex; align-items: center; }
.knopf, button { cursor: pointer; }
.knopf:hover, button:hover { border-color: var(--schrift-leise); }

:focus-visible {
  outline: 3px solid #7cb7ff;
  outline-offset: 2px;
}

.meldung { padding: 0.6rem 0.8rem; border-radius: 8px; margin: var(--abstand) 0; }
.meldung.fehler { background: rgba(217, 45, 32, 0.18); border: 1px solid var(--fehler); }
.meldung.erfolg { background: rgba(23, 163, 74, 0.18); border: 1px solid #17a34a; }

.nurFuerVorleser {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
