/* Anmeldetor -- ruhig, neutral (das Tor steht vor mehreren Seiten), Systemschrift, hell/dunkel.
   Groessen in rem: Die Seite waechst mit der Textgroesse des Browsers (Grossschrift). */
:root {
  --bg: #f5f5f7;
  --karte: #ffffff;
  --text: #1d1d1f;
  --leise: #6e6e73;
  --linie: rgba(0, 0, 0, 0.12);
  --feld: #ffffff;
  --akzent: #0071e3;
  --akzent-text: #ffffff;
  --fehler: #c4231a;
  --fehler-bg: rgba(196, 35, 26, 0.08);
  --ok: #1d7a3a;
  --ok-bg: rgba(29, 122, 58, 0.08);
  --schatten: 0 1px 2px rgba(0, 0, 0, 0.05), 0 12px 32px rgba(0, 0, 0, 0.07);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --karte: #1c1c1e;
    --text: #f5f5f7;
    --leise: #a1a1a6;
    --linie: rgba(255, 255, 255, 0.16);
    --feld: #2c2c2e;
    --akzent: #2997ff;
    --akzent-text: #000000;
    --fehler: #ff6961;
    --fehler-bg: rgba(255, 105, 97, 0.12);
    --ok: #63d48b;
    --ok-bg: rgba(99, 212, 139, 0.12);
    --schatten: none;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 100%;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 32px 16px;
  background: var(--bg);
  color: var(--text);
}
.karte {
  width: 100%;
  max-width: 26rem;
  background: var(--karte);
  border-radius: 1.125rem;
  box-shadow: var(--schatten);
  border: 1px solid var(--linie);
  /* Innenabstand in px: Bei Grossschrift soll der Text wachsen, nicht der Rand. */
  padding: 32px 28px 28px;
}
@media (max-width: 30rem) {
  .karte { padding: 24px 20px 20px; }
}
.ort {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--leise);
}
h1 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
  hyphens: auto;
}
p { margin: 0 0 1rem; }
.einleitung { color: var(--leise); }
.formular { display: flex; flex-direction: column; }
label {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0.75rem 0 0.375rem;
}
input[type="text"], input[type="password"] {
  font: inherit;
  font-size: 1.0625rem;
  color: var(--text);
  background: var(--feld);
  border: 1px solid var(--linie);
  border-radius: 0.625rem;
  padding: 0.6875rem 0.875rem;
  min-height: 2.75rem;
  width: 100%;
}
#code { letter-spacing: 0.2em; font-variant-numeric: tabular-nums; }
input:focus-visible, .knopf:focus-visible, a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--akzent) 55%, transparent);
  outline-offset: 2px;
}
.hilfe { font-size: 0.875rem; color: var(--leise); margin: 0.375rem 0 0; }
.formular + .hilfe { margin-top: 1.25rem; }
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--akzent);
  color: var(--akzent-text);
  text-decoration: none;
  cursor: pointer;
}
.formular .knopf { margin-top: 1.5rem; width: 100%; }
.knopf:hover { filter: brightness(1.06); }
.knopf.leise { background: transparent; color: var(--akzent); border: 1px solid var(--linie); }
.reihe { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.meldung { border-radius: 0.625rem; padding: 0.75rem 0.875rem; font-size: 0.9375rem; }
.meldung.fehler { background: var(--fehler-bg); color: var(--fehler); }
.meldung.ok { background: var(--ok-bg); color: var(--ok); }
.fuss {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--leise);
}
.fuss a { color: var(--leise); text-decoration: none; white-space: nowrap; }
.fuss a:hover { color: var(--text); text-decoration: underline; }
a { color: var(--akzent); }
@media (prefers-reduced-motion: no-preference) {
  .knopf { transition: filter 120ms ease; }
}
