/* hd-lobeck.de
   Gestaltung nach Apple-Grundsätzen: Systemschrift, größenabhängige Laufweite,
   Abstände in rem (wachsen mit der Schriftgröße), Bewegung nur als Rückmeldung,
   gedämpfte Feder ohne Überschwingen, reduzierte Bewegung wird respektiert. */

:root {
  /* Marke */
  --stahl: #14202E;
  --stahl-2: #1C2B3D;
  --stahl-3: #2A3B50;
  --orange: #E8772E;
  --orange-hell: #F08C47;
  --orange-text: #A64B12;      /* Orange für Text auf Weiß, Kontrast > 4,5:1 */

  /* Flächen und Text (hell) */
  --grund: #FFFFFF;
  --flaeche: #F4F5F7;
  --linie: rgba(20, 32, 46, 0.12);
  --text: #14202E;
  --text-2: #4A5868;
  --feld: #FFFFFF;
  --feld-rand: rgba(20, 32, 46, 0.22);
  --fehler: #B42318;

  /* Schrift */
  --schrift: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --schrift-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Abstände: 8er-Raster in rem */
  --a1: 0.5rem;
  --a2: 1rem;
  --a3: 1.5rem;
  --a4: 2rem;
  --a5: 3rem;
  --a6: 4rem;
  --abschnitt: clamp(4.5rem, 10vw, 8rem);
  --breite: 70rem;
  --zeile: 38rem;              /* angenehme Zeilenlänge für Fließtext */
  --rand: clamp(1rem, 4vw, 2rem);

  --radius: 0.875rem;
  --radius-gross: 1.375rem;

  /* Bewegung: kritisch gedämpfte Feder (Dämpfung 1,0) als CSS-Kurve.
     Dauer 0,6 s entspricht „Response 0,4 s“, 0,45 s entspricht 0,3 s. */
  --feder: cubic-bezier(0.2, 0.8, 0.2, 1);
  --feder-lang: 600ms;
  --feder-kurz: 450ms;
  --druck: 100ms;
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --feder: linear(0, 0.0596, 0.186, 0.3294, 0.4656, 0.584, 0.6819, 0.7601, 0.821, 0.8677, 0.9029, 0.9292, 0.9487, 0.963, 0.9734, 0.9809, 0.9864, 0.9903, 0.9931, 0.9951, 0.9966, 0.9976, 0.9983, 0.9988, 1);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #0E1720;
    --flaeche: #131F2B;
    --linie: rgba(255, 255, 255, 0.1);
    --text: #F2F4F7;
    --text-2: #A9B4C1;
    --feld: #182635;
    --feld-rand: rgba(255, 255, 255, 0.2);
    --orange-text: #F08C47;
    --fehler: #FF8A80;
  }
}

/* ------------------------------------------------------------------ */
/* Grundlagen                                                          */
/* ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 1.0625rem;        /* 17 px wie Apples Fließtext */
  line-height: 1.55;
  letter-spacing: -0.003em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--orange-text); text-decoration-thickness: 0.06em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.1em; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprung {
  position: absolute;
  left: var(--a2);
  top: -4rem;
  z-index: 100;
  padding: var(--a1) var(--a2);
  background: var(--orange);
  color: var(--stahl);
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
}
.sprung:focus { top: var(--a2); }

/* Typografie: Laufweite und Zeilenabstand je Größe */
h1, h2, h3, h4 { margin: 0; font-family: var(--schrift-display); color: inherit; text-wrap: balance; }

.display {
  font-size: clamp(2.375rem, 6.2vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.032em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.875rem, 3.8vw, 2.875rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
}

h3 {
  font-size: 1.3125rem;
  line-height: 1.25;
  letter-spacing: -0.012em;
  font-weight: 650;
}

.eyebrow {
  margin: 0 0 var(--a2);
  font-size: 0.8125rem;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--orange-text);
}
.eyebrow--hell { color: var(--orange-hell); }

/* ------------------------------------------------------------------ */
/* Kopfzeile: lichtdurchlässiges Material, Inhalt läuft darunter durch */
/* ------------------------------------------------------------------ */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: rgba(20, 32, 46, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  padding-top: env(safe-area-inset-top);
}

/* Kanteneffekt statt harter Linie: erst sichtbar, wenn Inhalt darunter liegt */
.kopf::after {
  content: "";
  position: absolute;
  inset: 100% 0 auto;
  height: 1rem;
  background: linear-gradient(rgba(10, 16, 24, 0.22), rgba(10, 16, 24, 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.kopf.ist-gescrollt::after { opacity: 1; }

.kopf__innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0.75rem var(--rand);
  display: flex;
  align-items: center;
  gap: var(--a3);
}

.marke {
  display: flex;
  flex-direction: column;
  color: #fff;
  text-decoration: none;
  margin-right: auto;
  line-height: 1.15;
}
.marke__name { font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.012em; }
.marke__zusatz { font-size: 0.75rem; letter-spacing: 0.012em; color: rgba(255, 255, 255, 0.72); }

.navi { display: none; gap: var(--a3); }
.navi a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  font-weight: 500;
  padding: 0.5rem 0.25rem;
  transition: color 150ms ease;
}
.navi a:hover { color: #fff; }

@media (min-width: 48rem) {
  .navi { display: flex; }
}

/* ------------------------------------------------------------------ */
/* Knöpfe: Rückmeldung beim Drücken, nicht erst beim Loslassen         */
/* ------------------------------------------------------------------ */

.knopf {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.375rem;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: var(--stahl);
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--feder-kurz) var(--feder), background-color 200ms ease, box-shadow 200ms ease;
}
.knopf:hover { background: var(--orange-hell); }
.knopf:active {
  transform: scale(0.97);
  transition: transform var(--druck) ease-out;
}
.knopf--klein { min-height: 2.25rem; padding: 0.375rem 1rem; font-size: 0.9375rem; }
.knopf--rand {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4);
}
.knopf--rand:hover { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
.knopf--breit { width: 100%; }
.knopf[aria-busy="true"] { cursor: progress; background: var(--orange-hell); }

/* ------------------------------------------------------------------ */
/* Einstieg                                                            */
/* ------------------------------------------------------------------ */

.held {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(232, 119, 46, 0.16), transparent 60%),
    linear-gradient(180deg, var(--stahl) 0%, var(--stahl-2) 100%);
  color: #fff;
  margin-top: -4.25rem;        /* Kopfzeile liegt über dem Einstieg */
  padding: calc(4.25rem + clamp(4rem, 11vw, 8.5rem)) var(--rand) clamp(3rem, 7vw, 5rem);
}

.held__innen { max-width: var(--breite); margin: 0 auto; }
.held .display { max-width: 15em; }

.held__text {
  max-width: 34rem;
  margin-top: var(--a3);
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
  letter-spacing: -0.008em;
  color: rgba(255, 255, 255, 0.82);
}
.held__text p { margin: 0 0 var(--a2); }
.held__text p:last-child { margin-bottom: 0; }
.held__text a { color: var(--orange-hell); }

.held__knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--a4); }

.fakten {
  max-width: var(--breite);
  margin: clamp(3.5rem, 8vw, 6rem) auto 0;
  padding: 0;
  display: grid;
  gap: var(--a3);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: var(--a4);
}
.fakt dt {
  font-family: var(--schrift-display);
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.018em;
  font-weight: 650;
}
.fakt dd {
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
}
@media (min-width: 48rem) {
  .fakten { grid-template-columns: repeat(3, 1fr); gap: var(--a4); }
}

/* ------------------------------------------------------------------ */
/* Abschnitte                                                          */
/* ------------------------------------------------------------------ */

.abschnitt { padding: var(--abschnitt) var(--rand); }
.abschnitt--flaeche { background: var(--flaeche); }
.abschnitt--dunkel { background: var(--stahl); color: #fff; }
.abschnitt__innen { max-width: var(--breite); margin: 0 auto; }
.abschnitt__kopf { margin-bottom: var(--a4); max-width: 40rem; }

/* Fließtext aus WordPress */
.text { max-width: var(--zeile); color: var(--text); }
.text > :first-child { margin-top: 0; }
.text > :last-child { margin-bottom: 0; }
.text p { margin: 0 0 1.1em; }
.text p:first-child { font-size: 1.1875rem; line-height: 1.5; letter-spacing: -0.01em; color: var(--text); }
.text h2 { font-size: 1.75rem; margin: 2.2em 0 0.6em; }
.text h3 { margin: 2.25em 0 0.5em; }
.text h4 { font-size: 1.0625rem; font-weight: 650; margin: 1.8em 0 0.4em; }
.text ul, .text ol { margin: 0 0 1.25em; padding-left: 1.25em; }
.text li { margin: 0.45em 0; padding-left: 0.25em; }
.text li::marker { color: var(--orange-text); }
.text strong { font-weight: 650; }
.text blockquote {
  margin: 1.75em 0;
  padding: 0.25em 0 0.25em 1.25em;
  border-left: 3px solid var(--orange);
  font-size: 1.1875rem;
  color: var(--text-2);
}
.text figure { margin: 1.75em 0; }
.text img { border-radius: var(--radius); }
.text figcaption { font-size: 0.875rem; letter-spacing: 0.005em; color: var(--text-2); margin-top: 0.5em; }
.text hr { border: 0; border-top: 1px solid var(--linie); margin: 2.5em 0; }
.text table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; margin: 1.5em 0; }
.text th, .text td { text-align: left; padding: 0.6em 0.75em 0.6em 0; border-bottom: 1px solid var(--linie); vertical-align: top; }

.text--hell, .text--hell p:first-child { color: rgba(255, 255, 255, 0.84); }
.text--hell a { color: var(--orange-hell); }

/* Breiter Text auf großen Bildschirmen: Angebot in zwei Spalten */
@media (min-width: 64rem) {
  #angebot .abschnitt__innen { display: grid; grid-template-columns: 22rem 1fr; gap: var(--a6); align-items: start; }
  #angebot .abschnitt__kopf { position: sticky; top: 6rem; }
}

/* Ablauf: nummerierte Liste aus WordPress wird zu Schritten */
.text--schritte { max-width: none; }
.text--schritte ol {
  list-style: none;
  counter-reset: schritt;
  padding: 0;
  margin: 0 0 var(--a4);
  display: grid;
  gap: var(--a2);
}
.text--schritte ol > li {
  counter-increment: schritt;
  position: relative;
  margin: 0;
  padding: var(--a3) var(--a3) var(--a3) 4.25rem;
  background: var(--grund);
  border-radius: var(--radius-gross);
  box-shadow: 0 1px 2px rgba(20, 32, 46, 0.05), 0 0 0 1px var(--linie);
}
.text--schritte ol > li::before {
  content: counter(schritt);
  position: absolute;
  left: var(--a3);
  top: var(--a3);
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--stahl);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.text--schritte ol > li strong:first-child { display: block; font-size: 1.125rem; letter-spacing: -0.01em; margin-bottom: 0.15em; }
.text--schritte > p { max-width: var(--zeile); }
@media (min-width: 48rem) {
  .text--schritte ol { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 72rem) {
  .text--schritte ol { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-color-scheme: dark) {
  .text--schritte ol > li::before { background: var(--orange); color: var(--stahl); }
}

/* Über mich */
.ueber { display: grid; gap: var(--a4); align-items: start; }
.ueber__bild { margin: 0; width: 12rem; }
.ueber__bild img { border-radius: var(--radius-gross); aspect-ratio: 1; object-fit: cover; box-shadow: 0 12px 32px rgba(20, 32, 46, 0.18); }
.ueber__link { margin: var(--a3) 0 0; font-weight: 600; }
.ueber__link a { text-decoration: none; }
.ueber__link a span { display: inline-block; transition: transform var(--feder-kurz) var(--feder); }
.ueber__link a:hover span { transform: translateX(0.25rem); }
@media (min-width: 60rem) {
  .ueber { grid-template-columns: 20rem 1fr; gap: var(--a6); }
  .ueber__bild { width: 100%; position: sticky; top: 6rem; }
}

/* ------------------------------------------------------------------ */
/* Kontakt und Formular                                                */
/* ------------------------------------------------------------------ */

.kontakt { display: grid; gap: var(--a5); align-items: start; }
@media (min-width: 60rem) {
  .kontakt { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--a6); }
}
.kontakt__direkt { margin: var(--a4) 0 0; color: rgba(255, 255, 255, 0.68); font-size: 0.9375rem; line-height: 1.6; }
.kontakt__direkt a { color: #fff; font-weight: 600; font-size: 1.0625rem; word-break: break-word; }

.karte {
  background: var(--grund);
  color: var(--text);
  border-radius: var(--radius-gross);
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
@media (prefers-color-scheme: dark) {
  .karte { background: var(--flaeche); box-shadow: 0 0 0 1px var(--linie), 0 24px 60px rgba(0, 0, 0, 0.4); }
}

.formular { display: grid; gap: var(--a3); }
.formular__reihe { display: grid; gap: var(--a3); align-items: start; }
@media (min-width: 36rem) {
  .formular__reihe { grid-template-columns: 1fr 1fr; }
}

.feld { display: grid; gap: 0.4rem; align-content: start; }
.feld label { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.005em; }
.feld__optional { font-weight: 400; color: var(--text-2); font-size: 0.8125rem; letter-spacing: 0.01em; margin-left: 0.25rem; }

.feld input, .feld textarea {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  font: inherit;
  font-size: 1.0625rem;        /* mind. 16 px: kein automatisches Hineinzoomen auf dem iPhone */
  line-height: 1.4;
  color: var(--text);
  background: var(--feld);
  border: 1px solid var(--feld-rand);
  border-radius: 0.75rem;
  padding: 0.75rem 0.875rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.feld textarea { resize: vertical; min-height: 9rem; }
.feld input:focus, .feld textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(232, 119, 46, 0.22);
}

.feld__fehler {
  margin: 0;
  min-height: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  letter-spacing: 0.005em;
  color: var(--fehler);
  opacity: 0;
  transform: translateY(-0.25rem);
  transition: opacity 200ms ease, transform var(--feder-kurz) var(--feder);
}
.feld__fehler:empty { display: none; }
.feld--fehler .feld__fehler { opacity: 1; transform: none; }
.feld--fehler input, .feld--fehler textarea { border-color: var(--fehler); }
.feld--fehler input:focus, .feld--fehler textarea:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.18); }

.formular__hinweis { margin: 0; font-size: 0.875rem; line-height: 1.5; letter-spacing: 0.005em; color: var(--text-2); }
.formular__meldung {
  margin: 0;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: rgba(180, 35, 24, 0.08);
  color: var(--fehler);
  font-size: 0.9375rem;
}

/* Honigtopf für Spam-Programme: für Menschen unsichtbar */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Bestätigung: erscheint aus der Formularkarte heraus, Feder ohne Überschwingen */
.erfolg { text-align: center; padding: var(--a5) var(--a2); outline: none; }
.erfolg h3 { margin-top: var(--a3); }
.erfolg p { margin: var(--a1) 0 0; color: var(--text-2); }
.erfolg__haken {
  display: inline-grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--orange);
  position: relative;
}
.erfolg__haken::after {
  content: "";
  width: 0.75rem;
  height: 1.375rem;
  border: solid var(--stahl);
  border-width: 0 0.2rem 0.2rem 0;
  transform: translateY(-0.125rem) rotate(45deg);
}
.erfolg.ist-neu { animation: erscheinen var(--feder-lang) var(--feder) both; }
.formular.ist-weg { animation: verschwinden 200ms ease both; }

@keyframes erscheinen {
  from { opacity: 0; transform: scale(0.94); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes verschwinden {
  to { opacity: 0; transform: scale(0.98); }
}

/* ------------------------------------------------------------------ */
/* Fragebogen                                                          */
/* ------------------------------------------------------------------ */

/* Hinweis auf der Startseite */
.hinweis-fragebogen { display: grid; gap: var(--a3); align-items: end; }
.hinweis-fragebogen h2 { max-width: 14em; }
.hinweis-fragebogen__text p { margin: 0 0 var(--a3); max-width: var(--zeile); font-size: 1.1875rem; line-height: 1.5; letter-spacing: -0.01em; color: var(--text-2); }
@media (min-width: 60rem) {
  .hinweis-fragebogen { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--a6); }
  .hinweis-fragebogen .eyebrow { margin-bottom: var(--a2); }
}

.navi a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--orange); }

/* Seite /fragebogen */
.fragebogen__einleitung { margin-bottom: var(--a4); }
.karte--hell { box-shadow: 0 1px 2px rgba(20, 32, 46, 0.06), 0 0 0 1px var(--linie), 0 16px 40px rgba(20, 32, 46, 0.08); }
@media (prefers-color-scheme: dark) {
  .karte--hell { box-shadow: 0 0 0 1px var(--linie), 0 16px 40px rgba(0, 0, 0, 0.35); }
}

.fortschritt__spur {
  height: 0.375rem;
  border-radius: 999px;
  background: var(--linie);
  overflow: hidden;
}
.fortschritt__balken {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
  transform: scaleX(0.1);
  transform-origin: left center;
  transition: transform var(--feder-lang) var(--feder);
}

.frage { gap: 0.5rem; }
.frage__titel { display: grid; gap: 0.375rem; }
.feld .frage__titel { font-weight: 400; font-size: inherit; }
.frage__nr {
  font-size: 0.8125rem;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--orange-text);
  font-variant-numeric: tabular-nums;
}
.frage__text {
  font-family: var(--schrift-display);
  font-size: 1.3125rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
  font-weight: 650;
  color: var(--text);
  text-wrap: pretty;
}
.frage__hilfe { margin: 0; font-size: 0.9375rem; line-height: 1.45; color: var(--text-2); }
.frage textarea { min-height: 8rem; }

/* Ohne JavaScript: alle Fragen untereinander, durch Linien getrennt */
.fragebogen .formular:not(.ist-schrittweise) .frage + .frage { border-top: 1px solid var(--linie); padding-top: var(--a3); }

/* Schrittweise: eine Frage, mehr Platz zum Schreiben */
.ist-schrittweise .frage textarea { min-height: 12rem; }
.ist-schrittweise .frage__text { font-size: clamp(1.375rem, 2.4vw, 1.625rem); line-height: 1.25; letter-spacing: -0.016em; }

.frage--auswahl .auswahl, .frage--rolle .auswahl { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 0.5rem; }
.frage--auswahl legend, .frage--rolle legend { padding: 0; margin-bottom: 0.375rem; }
.auswahl__liste { display: grid; gap: 0.5rem; margin-top: var(--a1); }
.auswahl__option {
  display: flex; align-items: center; gap: 0.75rem;
  min-height: 3rem; padding: 0.625rem 0.875rem;
  border: 1px solid var(--feld-rand); border-radius: 0.75rem; background: var(--feld);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform var(--feder-kurz) var(--feder);
}
.auswahl__option:active { transform: scale(0.99); transition: transform var(--druck) ease-out; }
.auswahl__option:has(input:checked) { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232, 119, 46, 0.22); }
.feld .auswahl__option input[type=radio] {
  -webkit-appearance: radio; appearance: auto;
  flex: none; width: 1.125rem; height: 1.125rem; margin: 0; padding: 0;
  border: 0; border-radius: 50%; background: none; box-shadow: none;
  accent-color: var(--orange);
}
.auswahl__option--andere { flex-wrap: wrap; cursor: default; }
.auswahl__andere-wahl { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; }
.feld .auswahl__option--andere input[type=text] {
  flex: 1 1 12rem; width: auto; min-width: 0; font: inherit; font-size: 1.0625rem; color: var(--text);
  background: transparent; border: 0; border-bottom: 1px solid var(--feld-rand); border-radius: 0; padding: 0.25rem 0; box-shadow: none;
}
.feld .auswahl__option--andere input[type=text]:focus { outline: none; border-bottom-color: var(--orange); box-shadow: none; }
.auswahl--zweite { margin-top: var(--a3); padding-top: var(--a3) !important; border-top: 1px solid var(--linie) !important; }
.frage__text--klein { font-size: 1.1875rem !important; }
.auswahl--zweite > legend { float: left; width: 100%; margin-bottom: 0.5rem; }
.auswahl--zweite > .auswahl__liste { clear: both; }
.auswahl__liste--reihe { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.ist-schrittweise .frage--auswahl .frage__text { font-size: clamp(1.375rem, 2.4vw, 1.625rem); }
.ist-schrittweise .frage--rolle .frage__text { font-size: clamp(1.375rem, 2.4vw, 1.625rem); }

.fragebogen__knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: flex-end; }
.ist-schrittweise .fragebogen__knoepfe { justify-content: space-between; }
.fragebogen__knoepfe .knopf { min-width: 8.5rem; }

.knopf--zweit { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--feld-rand); }
.knopf--zweit:hover { background: var(--flaeche); box-shadow: inset 0 0 0 1.5px var(--text-2); }
.knopf:disabled { opacity: 0.4; cursor: default; pointer-events: none; }

/* Neue Frage kommt aus der Richtung, in die man geht; zurück kommt sie von links */
.frage.kommt-von-rechts { animation: von-rechts var(--feder-kurz) var(--feder) both; }
.frage.kommt-von-links { animation: von-links var(--feder-kurz) var(--feder) both; }
@keyframes von-rechts { from { opacity: 0; transform: translateX(1.5rem); } to { opacity: 1; transform: none; } }
@keyframes von-links { from { opacity: 0; transform: translateX(-1.5rem); } to { opacity: 1; transform: none; } }

.fragebogen .erfolg p { max-width: 30rem; margin-left: auto; margin-right: auto; }
.bericht { margin: var(--a4) auto 0; padding-top: var(--a3); border-top: 1px solid var(--linie); max-width: 30rem; text-align: left; }
.bericht__formular { display: grid; gap: var(--a2); }
.fragebogen .erfolg .bericht__titel, .fragebogen .erfolg .bericht__hinweis, .fragebogen .erfolg .bericht__erfolg { margin: 0; max-width: none; }
.fragebogen .erfolg .bericht__titel { color: var(--text); }
.bericht__titel strong, .bericht__erfolg strong { font-weight: 650; }
.fragebogen .erfolg .bericht__hinweis { font-size: 0.875rem; }
.bericht .knopf { justify-self: start; }
.haken { display: flex; gap: 0.625rem; align-items: flex-start; font-weight: 400 !important; font-size: 0.9375rem !important; line-height: 1.45; cursor: pointer; }
.feld .haken input[type=checkbox] { -webkit-appearance: checkbox; appearance: auto; flex: none; width: 1.125rem; height: 1.125rem; margin: 0.15rem 0 0; padding: 0; border: 0; box-shadow: none; accent-color: var(--orange); }
.bericht__meldung { margin: 0 0 var(--a3); }
.weitersagen { margin: var(--a4) auto 0; padding-top: var(--a3); border-top: 1px solid var(--linie); max-width: 30rem; }
.fragebogen .erfolg .weitersagen__text { margin-top: 0; color: var(--text); }
.weitersagen__text strong { font-weight: 650; }
.fragebogen .erfolg .weitersagen__link { margin-top: 0.375rem; font-weight: 600; overflow-wrap: anywhere; }
.weitersagen .knopf { margin-top: var(--a2); }
.knopf.ist-kopiert { box-shadow: inset 0 0 0 1.5px #1A7F37; color: #1A7F37; }
.erfolg__titel { margin-top: var(--a3); font-size: 1.3125rem; line-height: 1.25; letter-spacing: -0.012em; font-weight: 650; }

/* ------------------------------------------------------------------ */
/* Auswertung (intern)                                                 */
/* ------------------------------------------------------------------ */

.fragebogen noscript .formular__meldung { margin-bottom: var(--a3); }
.knopf--gefahr { background: transparent; color: var(--fehler); box-shadow: inset 0 0 0 1.5px currentColor; }
.knopf--gefahr:hover { background: rgba(180, 35, 24, 0.08); }
.knopf.ist-aktiv { background: var(--stahl); color: #fff; }
@media (prefers-color-scheme: dark) {
  .knopf.ist-aktiv { background: var(--text); color: var(--grund); }
}

.auswertung-anmeldung { max-width: 26rem; }
.auswertung__innen { max-width: 58rem; }
.auswertung__zahlen { margin: calc(-1 * var(--a2)) 0 var(--a3); color: var(--text-2); font-variant-numeric: tabular-nums; }
.auswertung__zahlen strong { color: var(--text); font-weight: 650; }
.auswertung__rollen { margin: calc(-1 * var(--a2)) 0 var(--a3); font-size: 0.9375rem; color: var(--text-2); }
.auswertung__rollen > span { font-weight: 600; color: var(--text); }
.auswertung__rollen strong { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.auswertung__kopf { row-gap: 0.25rem; }
.auswertung__rolle { flex-basis: 100%; order: 3; margin: 0; font-size: 0.9375rem; font-weight: 600; }
.auswertung__rolle span { font-weight: 400; color: var(--text-2); }
.verteilung { margin: 0; display: grid; gap: 0.625rem; }
.verteilung__zeile { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: var(--a2); align-items: center; }
.verteilung dt { font-weight: 600; font-size: 0.9375rem; }
.verteilung dd { margin: 0; display: flex; align-items: center; gap: 0.625rem; }
.verteilung__balken { display: block; height: 0.625rem; width: var(--anteil, 0%); min-width: 2px; border-radius: 999px; background: var(--orange); }
.verteilung__zahl { font-variant-numeric: tabular-nums; font-weight: 650; }
@media (max-width: 36rem) { .verteilung__zeile { grid-template-columns: 1fr; gap: 0.25rem; } }
.anteil-0 { --anteil: 0%; }
.anteil-5 { --anteil: 5%; }
.anteil-10 { --anteil: 10%; }
.anteil-15 { --anteil: 15%; }
.anteil-20 { --anteil: 20%; }
.anteil-25 { --anteil: 25%; }
.anteil-30 { --anteil: 30%; }
.anteil-35 { --anteil: 35%; }
.anteil-40 { --anteil: 40%; }
.anteil-45 { --anteil: 45%; }
.anteil-50 { --anteil: 50%; }
.anteil-55 { --anteil: 55%; }
.anteil-60 { --anteil: 60%; }
.anteil-65 { --anteil: 65%; }
.anteil-70 { --anteil: 70%; }
.anteil-75 { --anteil: 75%; }
.anteil-80 { --anteil: 80%; }
.anteil-85 { --anteil: 85%; }
.anteil-90 { --anteil: 90%; }
.anteil-95 { --anteil: 95%; }
.anteil-100 { --anteil: 100%; }
.adressen { list-style: none; margin: 0; padding: 0; }
.adressen li { display: flex; flex-wrap: wrap; gap: var(--a2); align-items: center; justify-content: space-between; padding: 0.625rem 0; border-top: 1px solid var(--linie); overflow-wrap: anywhere; }
.adressen em { color: var(--text-2); font-style: normal; font-size: 0.875rem; }
.auswertung__meldung { margin: 0 0 var(--a3); padding: 0.75rem 1rem; border-radius: 0.75rem; background: rgba(26, 127, 55, 0.1); color: var(--text); }
.auswertung__leiste { display: flex; flex-wrap: wrap; gap: var(--a2); align-items: center; justify-content: space-between; margin-bottom: var(--a3); }
.auswertung__rechts, .umschalter, .auswertung__aktionen { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.aktion { margin: 0; }
.auswertung__karte { margin-bottom: var(--a3); }
.auswertung__karte.ist-verdacht { box-shadow: 0 0 0 1.5px var(--fehler); }
.auswertung__kopf { display: flex; flex-wrap: wrap; gap: var(--a2); align-items: center; justify-content: space-between; margin-bottom: var(--a2); }
.auswertung__kopf .frage__nr { margin: 0; }
.auswertung__liste { margin: 0; display: grid; gap: 0.25rem 0; }
.auswertung__liste dt { font-weight: 650; letter-spacing: -0.005em; margin-top: var(--a2); display: flex; gap: 0.625rem; align-items: baseline; }
.auswertung__liste dt:first-child { margin-top: 0; }
.auswertung__liste dd { margin: 0 0 0 2.125rem; color: var(--text); overflow-wrap: anywhere; }
.auswertung__nr {
  flex: none; display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--flaeche); color: var(--text-2); font-size: 0.8125rem; font-variant-numeric: tabular-nums;
}
.auswertung__frage { font-size: 1.3125rem; line-height: 1.3; letter-spacing: -0.012em; margin: 0.375rem 0 var(--a2); }
.auswertung__antworten { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.auswertung__antworten li { padding: var(--a2) 0; border-top: 1px solid var(--linie); }
.auswertung__antworten p { margin: 0; overflow-wrap: anywhere; }
.auswertung__herkunft { display: block; margin-top: 0.25rem; font-size: 0.8125rem; color: var(--text-2); }
.auswertung__leer { color: var(--text-2); }
.auswertung__verdacht { margin-top: var(--a5); padding-top: var(--a4); border-top: 1px solid var(--linie); }
.auswertung__zwischentitel { font-size: 1.5rem; letter-spacing: -0.016em; }
.auswertung__hinweis { margin: calc(-1 * var(--a1)) 0 var(--a3); color: var(--text-2); font-size: 0.9375rem; max-width: var(--zeile); }

/* ------------------------------------------------------------------ */
/* Einzelseiten (Impressum, Datenschutz, 404)                          */
/* ------------------------------------------------------------------ */

.einzel { padding: clamp(3rem, 8vw, 6rem) var(--rand) var(--abschnitt); }
.einzel__innen { max-width: 46rem; }
.einzel__titel { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.08; letter-spacing: -0.028em; font-weight: 700; margin-bottom: var(--a4); }
.einzel .text { max-width: none; }
.einzel .text p:first-child { font-size: inherit; }
.einzel__zurueck { margin-top: var(--a5); font-weight: 600; }
.einzel__zurueck a { text-decoration: none; }

.tabelle { width: 100%; }
.gruen { color: #1A7F37; font-weight: 600; }
.rot { color: var(--fehler); font-weight: 600; }

/* ------------------------------------------------------------------ */
/* Fußzeile                                                            */
/* ------------------------------------------------------------------ */

.fuss { background: var(--stahl); color: rgba(255, 255, 255, 0.68); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.fuss__innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: var(--a4) var(--rand) calc(var(--a4) + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: var(--a2) var(--a4);
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  letter-spacing: 0.005em;
}
.fuss__name { margin: 0; }
.fuss__navi { display: flex; flex-wrap: wrap; gap: var(--a1) var(--a3); }
.fuss__navi a { color: rgba(255, 255, 255, 0.86); text-decoration: none; padding: 0.25rem 0; }
.fuss__navi a:hover { color: #fff; text-decoration: underline; }

/* ------------------------------------------------------------------ */
/* Barrierefreiheit: weniger Bewegung, weniger Transparenz, mehr Kontrast */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .knopf, .knopf:active { transition: background-color 150ms ease; transform: none; }
  .ueber__link a:hover span { transform: none; }
  .feld__fehler { transform: none; }
  .erfolg.ist-neu { animation: nur-blenden 200ms ease both; }
  .formular.ist-weg { animation: none; }
  .fortschritt__balken { transition: none; }
  .frage.kommt-von-rechts, .frage.kommt-von-links { animation: nur-blenden 150ms ease both; }
  .auswahl__option, .auswahl__option:active { transform: none; }
}
@keyframes nur-blenden { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-transparency: reduce) {
  .kopf { background: var(--stahl); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  .kopf { background: var(--stahl); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid #fff; }
  .feld input, .feld textarea { border-width: 2px; border-color: var(--text); }
  .knopf--rand { box-shadow: inset 0 0 0 2px #fff; }
  .held__text, .fakt dd, .marke__zusatz { color: #fff; }
}

@media print {
  .kopf, .fuss, .held__knoepfe, .karte { display: none; }
  .held, .abschnitt--dunkel { background: none; color: #000; margin: 0; padding: 1rem 0; }
}
