:root {
  --blau: #009ee0;
  --blau-text: #0071a8;
  --blau-druck: #005f8e;
  --blau-zart: #e5f5fc;
  --tinte: #17232b;
  --leise: #55636d;
  --hauch: #65717b;
  --grund: #f4f6f8;
  --karte: #fff;
  --linie: rgba(23, 35, 43, 0.09);
  --linie-stark: rgba(23, 35, 43, 0.16);
  --feld: #f4f6f8;
  --rot: #c4332b;
  --rot-zart: #fcebea;
  --gruen: #1e8a4c;
  --schatten: 0 1px 2px rgba(23, 35, 43, 0.04), 0 8px 28px rgba(23, 35, 43, 0.07);
  --schatten-hoch: 0 2px 6px rgba(23, 35, 43, 0.06), 0 22px 48px rgba(23, 35, 43, 0.14);
  --glas: rgba(244, 246, 248, 0.78);
  --r-karte: 20px;
  --r-feld: 12px;
  --aus: cubic-bezier(0.23, 1, 0.32, 1);
  --schublade: cubic-bezier(0.32, 0.72, 0, 1);
  --rand: clamp(16px, 4.5vw, 128px);
  --schrift: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}


*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  font-size: clamp(1rem, 0.35vw + 0.66rem, 1.19rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--linie-stark) transparent;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--grund);
  color: var(--tinte);
  font: 400 1rem/1.5 var(--schrift);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-optical-sizing: auto;
}

::selection { background: color-mix(in srgb, var(--blau) 28%, transparent); }

img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blau-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }

:focus-visible {
  outline: 2px solid var(--blau);
  outline-offset: 2px;
  border-radius: 8px;
}

.nur-leser {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.logo { height: clamp(56px, 3.6vw, 76px); width: auto; margin-left: -0.5rem; }

.kopf {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--glas);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.kopf::after {
  content: "";
  position: absolute; inset: auto 0 -16px;
  height: 16px;
  background: linear-gradient(var(--grund), transparent);
  opacity: 0.6;
  pointer-events: none;
}
.kopf-innen {
  padding: 14px var(--rand);
  display: flex;
  align-items: center;
  gap: 16px;
}
.kopf-innen > a { display: block; border-radius: 6px; }


.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--blau-text);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: transform 160ms var(--aus), background-color 200ms ease, opacity 200ms ease;
}
.knopf:active { transform: scale(0.97); }
.knopf[disabled] { opacity: 0.45; cursor: default; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .knopf:not([disabled]):hover { background: var(--blau-druck); }
}

.knopf-leise {
  background: var(--blau-zart);
  color: var(--blau-text);
}
@media (hover: hover) and (pointer: fine) {
  .knopf-leise:not([disabled]):hover { background: color-mix(in srgb, var(--blau) 20%, transparent); }
}

.knopf-klein { min-height: 36px; padding: 0 14px; font-size: 0.875rem; }

.feld {
  display: grid;
  gap: 6px;
}
.feld > span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--leise);
}
.feld small { font-weight: 400; color: var(--hauch); }
.eingabe {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--r-feld);
  background: var(--feld);
  box-shadow: inset 0 0 0 1px var(--linie);
  font-size: 1rem;
  transition: box-shadow 160ms ease, background-color 160ms ease;
  caret-color: var(--blau);
}
.eingabe::placeholder { color: var(--hauch); }
.eingabe:focus {
  outline: none;
  background: var(--karte);
  box-shadow: inset 0 0 0 1.5px var(--blau), 0 0 0 4px color-mix(in srgb, var(--blau) 16%, transparent);
}
textarea.eingabe { min-height: 108px; resize: vertical; line-height: 1.45; }

.meldung {
  position: fixed;
  left: 50%;
  top: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--karte);
  box-shadow: var(--schatten-hoch);
  font-size: 0.9375rem;
  transform: translate(-50%, 0);
  transition: transform 420ms var(--schublade), opacity 300ms ease;
}
.meldung[data-weg] { transform: translate(-50%, calc(-100% - 24px)); opacity: 0; }
@starting-style { .meldung { transform: translate(-50%, calc(-100% - 24px)); opacity: 0; } }
.meldung.fehler { color: var(--rot); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .kopf { background: var(--grund); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
