/* Hinweisgebersystem – Gestaltung
   Ruhiges Petrol als Vertrauensfarbe, Bernstein als einziges Signal.
   Nur Systemschriften: keine Anfragen an fremde Server. */
:root {
  --grund: #f5f7f7;
  --flaeche: #ffffff;
  --text: #17262b;
  --text-leise: #52656b;
  --linie: #d5dfe1;
  --petrol: #173f4a;
  --petrol-hell: #e3eef0;
  --signal: #f2b33d;
  --fehler: #b3261e;
  --ok: #1f7a4d;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --schrift-zahl: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #0f1a1d; --flaeche: #16252a; --text: #e6eeef; --text-leise: #9db0b5;
    --linie: #2a3e44; --petrol: #7cc4d2; --petrol-hell: #1c3239; --signal: #f2b33d;
    --fehler: #ff8a80; --ok: #6fd3a0; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font: 16px/1.6 var(--schrift);
}
a { color: var(--petrol); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--signal); outline-offset: 2px;
}
.huelle { max-width: 1120px; margin: 0 auto; padding-inline: max(16px, 4vw); }

/* Kopf */
.kopf { background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.kopf-innen { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.marke { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--text); }
.marke strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.marke small { color: var(--text-leise); font-size: .8rem; }
.marke-zeichen { width: 38px; height: 38px; border-radius: 8px; background: #173f4a; display: grid; place-items: center; flex: none; }
.marke-zeichen svg, .erfolg-zeichen svg { width: 24px; height: 24px; fill: none; stroke: #f2b33d; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.schloss { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; color: var(--text-leise); }
.schloss svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Einstieg */
.einstieg { background: #173f4a; color: #eef5f6; padding-block: 48px 40px; }
.einstieg-raster { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.vorzeile { margin: 0 0 8px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #f2b33d; font-weight: 600; }
.einstieg h1 { margin: 0 0 16px; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; text-wrap: balance; }
.lead { margin: 0; max-width: 58ch; color: #cfe0e3; font-size: 1.05rem; }
.ablauf { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.ablauf li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; }
.ablauf li::before {
  content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid #f2b33d; color: #f2b33d; display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}
.ablauf b { color: #fff; }
.ablauf span { color: #b9cfd3; font-size: .92rem; }

/* Hauptbereich */
.haupt { display: grid; grid-template-columns: 300px 1fr; gap: 32px; padding-block: 40px 64px; align-items: start; }
.seitenleiste { display: grid; gap: 16px; position: sticky; top: 16px; }
.kasten { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 18px 20px; font-size: .92rem; }
.kasten h2 { margin: 0 0 8px; font-size: 1rem; }
.kasten p { margin: 0 0 8px; color: var(--text-leise); }
.kasten p:last-child { margin-bottom: 0; }
.kasten.leise { background: transparent; }
.haken { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--text-leise); }
.haken li { padding-left: 22px; position: relative; }
.haken li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--petrol); border-bottom: 2px solid var(--petrol); transform: rotate(-45deg); }

/* Formular */
.formular { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); min-width: 0; }
fieldset { border: 0; margin: 0; padding: 28px clamp(18px, 4vw, 36px); border-bottom: 1px solid var(--linie); display: grid; gap: 18px; min-width: 0; }
fieldset:last-of-type { border-bottom: 0; }
legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
legend + * { clear: both; }
.nr { width: 28px; height: 28px; border-radius: 6px; background: var(--petrol-hell); color: var(--petrol); display: inline-grid; place-items: center; font-size: .9rem; }
.raster { display: grid; gap: 18px; }
.raster.zwei { grid-template-columns: 1fr 1fr; }
.feld { display: grid; gap: 6px; min-width: 0; }
label, .label { font-weight: 600; font-size: .95rem; }
.pflicht, .optional { font-weight: 500; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; margin-left: 6px; }
.pflicht { color: var(--fehler); }
.optional { color: var(--text-leise); }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--grund);
  border: 1px solid var(--linie); border-radius: 8px; padding: 11px 12px;
}
textarea { resize: vertical; min-height: 6em; }
input:hover, select:hover, textarea:hover { border-color: var(--text-leise); }
[aria-invalid=true] { border-color: var(--fehler) !important; box-shadow: 0 0 0 1px var(--fehler); }
.tipp { margin: 0; font-size: .85rem; color: var(--text-leise); }
.zaehler { margin: 0; font-size: .8rem; color: var(--text-leise); text-align: right; font-variant-numeric: tabular-nums; }

.wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.karte-wahl { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--linie); border-radius: 10px; cursor: pointer; font-weight: 400; }
.karte-wahl b { display: block; }
.karte-wahl small { color: var(--text-leise); font-size: .85rem; line-height: 1.45; display: block; }
.karte-wahl:has(input:checked) { border-color: var(--petrol); background: var(--petrol-hell); }
.karte-wahl input, .zustimmung input { margin-top: 4px; accent-color: var(--petrol); width: 18px; height: 18px; flex: none; }

.leiste { display: flex; flex-wrap: wrap; gap: 8px; }
.pille { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border: 1px solid var(--linie); border-radius: 999px; font-weight: 500; cursor: pointer; }
.pille:has(input:checked) { border-color: var(--petrol); background: var(--petrol-hell); }
.pille input { accent-color: var(--petrol); }

.hinweis { margin: 0; padding: 14px 16px; border-radius: 8px; background: var(--petrol-hell); font-size: .92rem; }
.hinweis.warnung { background: #fdf0d5; color: #5a4300; }
.zustimmung { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.meldung-fehler { margin: 0; color: var(--fehler); font-weight: 600; }
.senden {
  justify-self: start; font: inherit; font-weight: 700; font-size: 1.02rem;
  background: #173f4a; color: #fff; border: 0; border-radius: 8px; padding: 14px 26px; cursor: pointer;
  box-shadow: inset 0 -3px 0 #f2b33d;
}
.senden:hover { background: #0f2f38; }
.senden[disabled] { opacity: .6; cursor: progress; }

/* Erfolg */
.erfolg { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 40px clamp(18px, 4vw, 40px); text-align: center; display: grid; justify-items: center; gap: 12px; }
.erfolg[hidden] { display: none; }
.erfolg h2 { margin: 0; font-size: 1.5rem; }
.erfolg p { margin: 0; max-width: 52ch; color: var(--text-leise); }
.erfolg-zeichen { width: 56px; height: 56px; border-radius: 50%; background: #173f4a; display: grid; place-items: center; }
.kennung { font-family: var(--schrift-zahl); font-size: 1.6rem !important; letter-spacing: .08em; color: var(--text) !important; padding: 10px 20px; border: 2px dashed var(--petrol); border-radius: 8px; user-select: all; }
.knopf-leise { font: inherit; background: transparent; border: 1px solid var(--linie); color: var(--text); border-radius: 8px; padding: 8px 16px; cursor: pointer; }

/* Rechtstexte */
.rechtstext { max-width: 760px; padding-block: 40px 64px; }
.rechtstext h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); line-height: 1.2; margin: 0 0 8px; }
.rechtstext h2 { font-size: 1.2rem; margin: 2em 0 .4em; }
.rechtstext h3 { font-size: 1rem; margin: 1.4em 0 .3em; }
.rechtstext p, .rechtstext li { max-width: 68ch; }
.rechtstext .stand { color: var(--text-leise); margin-top: 0; }
.platzhalter { background: #fdf0d5; color: #5a4300; padding: 0 4px; border-radius: 3px; }

/* Fuß */
.fuss { border-top: 1px solid var(--linie); background: var(--flaeche); font-size: .9rem; color: var(--text-leise); }
.fuss-innen { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px; }
.fuss nav { display: flex; gap: 20px; }

@media (max-width: 900px) {
  .einstieg-raster, .haupt { grid-template-columns: 1fr; }
  .seitenleiste { position: static; order: 2; }
  .einstieg { padding-block: 32px; }
}
@media (max-width: 620px) {
  .raster.zwei, .wahl { grid-template-columns: 1fr; }
  .senden { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
