:root {
  --papier: #f3f6fb;
  --flaeche: #ffffff;
  --tinte: #0f1e33;
  --leise: #56657a;
  --linie: #d7e0ec;
  --akzent: #1f56c7;
  --akzent-tief: #153f96;
  --akzent-hell: #e8effc;
  --fehler: #b42318;
  --erfolg: #1b7a45;
  --fokus: #7fa8f5;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --papier: #0b1320;
    --flaeche: #111c2d;
    --tinte: #e7eef8;
    --leise: #9eaec4;
    --linie: #24354d;
    --akzent: #6d9eff;
    --akzent-tief: #a3c2ff;
    --akzent-hell: #16284a;
    --fehler: #ff8f87;
    --erfolg: #6fd39a;
    --fokus: #6d9eff;
  }
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", "Avenir Next", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--akzent); text-underline-offset: 0.18em; }
a:hover { color: var(--akzent-tief); }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--flaeche); padding: .5rem 1rem; z-index: 10; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.kopf, .raster, .fuss { max-width: 70rem; margin: 0 auto; padding-left: clamp(1.25rem, 4vw, 3rem); padding-right: clamp(1.25rem, 4vw, 3rem); }

.kopf { padding-top: clamp(2.5rem, 8vw, 5.5rem); padding-bottom: 2.5rem; }
.kopf h1 {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  overflow-wrap: anywhere;
  color: var(--tinte);
}
.kopf h1::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 6px;
  background: var(--akzent);
  border-radius: 3px;
  margin-bottom: 1.25rem;
}
.intro { max-width: 38rem; margin: 1.5rem 0 0; color: var(--leise); font-size: 1.15rem; }

.raster {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-bottom: 4rem;
}
@media (max-width: 52rem) { .raster { grid-template-columns: 1fr; } }

.formularbereich { background: var(--flaeche); padding: clamp(1.25rem, 4vw, 2.5rem); border-radius: 14px; border: 1px solid var(--linie); box-shadow: 0 1px 2px rgba(15, 30, 51, .04), 0 12px 32px -12px rgba(31, 86, 199, .18); }

.feld { margin-bottom: 1.4rem; }
label { display: block; font-weight: 600; margin-bottom: .35rem; }
.pflicht { color: var(--akzent); font-weight: 400; }
label { font-size: .95rem; }
input[type="text"], input[type="email"], textarea {
  width: 100%;
  font: inherit;
  color: var(--tinte);
  background: var(--flaeche);
  border: 1.5px solid var(--linie);
  border-radius: 8px;
  padding: .75rem .85rem;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus { border-color: var(--akzent); outline: none; box-shadow: 0 0 0 4px var(--akzent-hell); }
textarea { resize: vertical; min-height: 9rem; }
[aria-invalid="true"] { border-color: var(--fehler) !important; }

.hinweis { margin: .35rem 0 0; font-size: .9rem; color: var(--leise); }
.zaehler { text-align: right; }
.fehler { margin: .35rem 0 0; font-size: .9rem; color: var(--fehler); font-weight: 600; }
.fehler:empty { display: none; }

.einwilligung { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; }
.einwilligung input { width: 1.3rem; height: 1.3rem; margin: .2rem 0 0; accent-color: var(--akzent); }
.einwilligung label { font-weight: 400; margin: 0; font-size: .95rem; }
.einwilligung .fehler { grid-column: 2; }

.honig { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

button {
  font: inherit;
  font-weight: 700;
  margin-top: .5rem;
  padding: .9rem 1.8rem;
  background: var(--akzent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: background .15s;
}
@media (min-width: 34rem) { button { width: auto; } }
button:hover { background: var(--akzent-tief); }
@media (prefers-color-scheme: dark) { button, button:hover { color: #0b1320; } }
button[disabled] { opacity: .6; cursor: wait; }

.status { padding: 1rem 1.2rem; margin-bottom: 1.5rem; border-radius: 8px; border-left: 5px solid; background: var(--papier); }
.status.ok { border-color: var(--erfolg); }
.status.nein { border-color: var(--fehler); }
.status:focus { outline: none; }

.datenschutz { font-size: .95rem; color: var(--leise); }
.datenschutz h2 { color: var(--tinte); font-size: 1.3rem; margin: 0 0 .5rem; letter-spacing: -0.01em; }
.datenschutz h3 { color: var(--akzent-tief); font-size: .98rem; margin: 1.4rem 0 .25rem; }
.datenschutz p { margin: 0; }
@media (min-width: 52.01rem) { .datenschutz { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 1.5rem); max-height: calc(100vh - 3rem); overflow-y: auto; padding-right: .5rem; } }

.fuss { border-top: 1px solid var(--linie); padding-top: 1.5rem; padding-bottom: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-size: .95rem; color: var(--leise); }
.fuss nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.fuss p { margin: 0; }

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

/* Unterseiten (Danke, 404) */
.einspaltig { grid-template-columns: minmax(0, 42rem); }
.seitentitel { margin: 0 0 .75rem; font-size: 1.6rem; letter-spacing: -0.02em; }
.formularbereich p { max-width: 38rem; }
.knopf { display: inline-block; margin-top: .75rem; padding: .8rem 1.5rem; background: var(--akzent); color: #fff; font-weight: 700; text-decoration: none; border-radius: 8px; }
.knopf:hover { background: var(--akzent-tief); color: #fff; }
@media (prefers-color-scheme: dark) { .knopf, .knopf:hover { color: #0b1320; } }

/* E-Mail-Variante */
.erklaerung { margin: 0 0 1.75rem; padding: .9rem 1.1rem; background: var(--akzent-hell); border-radius: 8px; font-size: .95rem; }
.ersatz { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--linie); }
.ersatz p { margin: 0 0 .75rem; }
button.zweitrangig { background: transparent; color: var(--akzent); border: 1.5px solid var(--akzent); margin-top: 0; }
button.zweitrangig:hover { background: var(--akzent-hell); color: var(--akzent-tief); }

/* Auswahlfelder */
select {
  width: 100%;
  font: inherit;
  color: var(--tinte);
  background-color: var(--flaeche);
  border: 1.5px solid var(--linie);
  border-radius: 8px;
  padding: .7rem 2.4rem .7rem .8rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2353646f' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: .75rem;
  cursor: pointer;
}
select:focus { border-color: var(--akzent); outline: none; box-shadow: 0 0 0 4px var(--akzent-hell); }
@media (min-width: 34rem) {
  .feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
}

/* Rechtstexte (Impressum, Datenschutz) */
.rechtstext h3 { color: var(--akzent-tief); font-size: 1.05rem; margin: 1.75rem 0 .4rem; }
.rechtstext p, .rechtstext ul { margin: 0 0 .75rem; max-width: 42rem; }
.rechtstext ul { padding-left: 1.25rem; }
.rechtstext li { margin-bottom: .2rem; }
.rechtstext .stand { margin-top: 2rem; font-size: .9rem; color: var(--leise); }
.fuss nav a[aria-current="page"] { color: var(--tinte); text-decoration: none; font-weight: 600; }
