/* ==========================================================================
   Vorsorge Check · Landingpage · Markenwelt 2 „Vergleichsportal-Optik“
   --------------------------------------------------------------------------
   1. Schriften und Design-Tokens   ← Farben, Schrift, Abstände, Radien
   2. Basis
   3. Bausteine        (Container, Buttons, Links, Icons, Markierungen, Sticker)
   4. Kopfbereich      (Infoleiste, Navigation, Mobilmenü)
   5. Sektionen        (Hero mit Themenwahl, Vorteile, Ablauf, Über uns,
                        Für wen, FAQ, Abschluss, Footer, Mobil-Leiste)
   6. Formular-Dialog
   7. Cookie-Hinweis
   8. Rechtsseiten
   9. Bewegung, Barrierefreiheit
   ========================================================================== */

/* Schriften lokal gehostet (SIL Open Font License, siehe assets/fonts/OFL-*.txt) */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   1. DESIGN-TOKENS
   Layout: Portal – blaue Kopfzone mit Themen-Auswahlbox, darunter helle Bänder
   mit Kachelrastern. Grün nur für Aktionen, Sonnengelb nur für Markierungen.
   Die Seite ist bewusst hell gestaltet (kein Dunkelmodus).
   ========================================================================== */
:root {
  color-scheme: light;

  /* Farben */
  --blue: #0b4dd8;          /* Markenfarbe: Kopfzone, Links, Icons */
  --blue-deep: #083ba8;     /* Hover, Verläufe */
  --blue-soft: #e8f0fe;     /* Icon-Flächen, Auswahl */
  --navy: #0a1f44;          /* Footer, Text auf Gelb */
  --ink: #13213d;           /* Fließtext */
  --muted: #4e5c78;         /* Nebentexte */
  --line: #d9e2f1;          /* Trennlinien, Kartenränder */
  --field: #76839e;         /* Rahmen von Eingabefeldern (≥ 3:1) */
  --sky: #eef3fc;           /* helle Bänder */
  --paper: #ffffff;
  --go: #0a7f43;            /* Aktions-Buttons */
  --go-deep: #086b37;
  --sun: #ffd84d;           /* Markierungen, Sticker */
  --on-blue-soft: #d6e3ff;  /* Nebentext auf Blau */
  --on-navy-soft: #b7c4de;  /* Nebentext auf Navy */
  --error: #c4320a;
  --error-soft: #fdeee8;
  --ph: #fff3a8;            /* Platzhalter-Markierung */

  /* Schrift */
  --font-display: "Bricolage Grotesque", "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-hero: clamp(2.25rem, 1.2rem + 3.4vw, 4rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.9vw, 2.625rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-tiny: 0.8125rem;

  /* Abstände (8er-Raster) */
  --gutter: 20px;
  --section: clamp(64px, 5vw + 40px, 112px);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  /* Schatten */
  --shadow-card: 0 1px 2px rgb(10 31 68 / 0.06), 0 8px 24px -12px rgb(10 31 68 / 0.18);
  --shadow-lift: 0 2px 4px rgb(10 31 68 / 0.06), 0 18px 40px -16px rgb(10 31 68 / 0.32);
  --shadow-hero-card: 0 30px 60px -24px rgb(4 18 54 / 0.55);

  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (min-width: 960px) {
  :root { --gutter: 32px; --header-h: 76px; }
}

/* ==========================================================================
   2. BASIS
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 16px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Fläche hinter der Statusleiste von Smartphones in Kopfzonen-Farbe */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--blue);
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  color: inherit;
  text-wrap: balance;
}
h1 { font-size: var(--fs-hero); font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); font-weight: 750; line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.pick__text, .group, .perk, .fact, .step, .roles, .choice__label, .check, .faq__item summary { overflow-wrap: break-word; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.on-blue :focus-visible, .hero :focus-visible, .closing :focus-visible, .footer :focus-visible, .header :focus-visible { outline-color: var(--sun); }
::selection { background: var(--sun); color: var(--navy); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: #fff; }

/* Platzhalter: vor dem Livegang ersetzen, Klasse entfernen */
.ph {
  background: var(--ph);
  color: #4a3b00;
  padding: 0 0.25em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ==========================================================================
   3. BAUSTEINE
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Buttons: Primär (Grün) für Aktionen, Sekundär (Umriss), Hell (auf Blau) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 750;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--go);
  color: #fff;
  box-shadow: 0 2px 0 var(--go-deep);
}
.btn--primary:hover { background: var(--go-deep); color: #fff; }
.btn--secondary {
  background: var(--paper);
  color: var(--blue);
  border-color: var(--line);
}
.btn--secondary:hover { border-color: var(--blue); color: var(--blue-deep); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.125rem; }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 1rem; }
.btn .icon { width: 1.1em; height: 1.1em; stroke-width: 2.4; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.is-invisible { visibility: hidden; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  text-decoration: none;
}
.link .icon { width: 1em; height: 1em; stroke-width: 2.4; transition: transform 0.18s var(--ease); }
.link:hover .icon { transform: translateX(3px); }
.link--light { color: #fff; }
.link--light:hover { color: var(--sun); }

/* Gelbe Markierung hinter Text (nur auf hellem Grund) */
.mark {
  background: linear-gradient(transparent 56%, var(--sun) 56%, var(--sun) 90%, transparent 90%);
  padding: 0 0.06em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
/* Gelber Schwung unter einem Wort (auf Blau) */
.hero h1 .answer { display: block; color: var(--sun); }
.swoosh {
  position: relative;
  white-space: nowrap;
  color: var(--sun);
}
.swoosh::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -4%;
  bottom: -0.16em;
  height: 0.28em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C 50 4, 120 2, 197 9' fill='none' stroke='%23ffd84d' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-tiny);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.section { padding-block: var(--section); }
.section--sky { background: var(--sky); }
.section__head {
  display: grid;
  gap: 12px;
  max-width: 44rem;
  margin-bottom: clamp(32px, 3vw + 16px, 48px);
}
.section__head .lead { color: var(--muted); font-size: var(--fs-lead); }
.section__head--row {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 32px;
}
.section__head--row > div { display: grid; gap: 12px; max-width: 40rem; }

/* ==========================================================================
   4. KOPFBEREICH
   ========================================================================== */
.topbar {
  background: var(--navy);
  color: var(--on-navy-soft);
  font-size: var(--fs-tiny);
  font-weight: 600;
}
.topbar ul {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  list-style: none;
  padding-block: 7px;
}
.topbar li { display: inline-flex; align-items: center; gap: 6px; }
.topbar .icon { width: 1em; height: 1em; stroke-width: 2.6; color: var(--sun); }
@media (max-width: 719px) {
  .topbar li:not(:first-child) { display: none; }
  .topbar ul { justify-content: center; }
}

.header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--blue);
  color: #fff;
  transition: box-shadow 0.2s var(--ease);
}
.header.is-scrolled { box-shadow: 0 6px 20px -8px rgb(4 18 54 / 0.5); }
.header__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}
.header__brand { display: block; flex: none; margin-right: auto; }
.header__brand img { height: 32px; width: auto; }
@media (min-width: 960px) { .header__brand img { height: 38px; } }
.header__links ul { display: flex; gap: 4px; list-style: none; }
.header__links a,
.header__menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}
.header__links a:hover { background: rgb(255 255 255 / 0.12); color: #fff; }
.header__cta { flex: none; }
.header__menu-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  cursor: pointer;
}
.header__menu-btn .icon { width: 22px; height: 22px; stroke-width: 2.2; }
.header__menu-btn[aria-expanded="true"] .i-open,
.header__menu-btn[aria-expanded="false"] .i-shut { display: none; }
.header__menu {
  border-top: 1px solid rgb(255 255 255 / 0.18);
  background: var(--blue);
  padding-block: 8px 20px;
}
.header__menu ul { list-style: none; display: grid; gap: 2px; margin-bottom: 12px; }
.header__menu a { padding: 12px 8px; font-size: 1.0625rem; }
.header__menu a:hover { background: rgb(255 255 255 / 0.12); color: #fff; }
.header__menu .btn { width: 100%; }
@media (max-width: 959px) {
  .header__links { display: none; }
}
@media (min-width: 960px) {
  .header__menu-btn, .header__menu { display: none !important; }
}
@media (max-width: 479px) {
  .header__cta-more { display: none; }
  .header__bar { gap: 10px; }
  .header__brand img { height: 26px; }
}
@media (max-width: 399px) {
  .header__brand img { height: 23px; }
  .header__cta { padding: 0 12px; }
}
/* sehr schmale Geräte: Anfrage-Button steht direkt darunter in der Themenwahl und in der festen Leiste */
@media (max-width: 359px) { .header__cta { display: none; } }

/* ==========================================================================
   5. SEKTIONEN
   ========================================================================== */

/* ---------- Hero mit Themenwahl ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(255 255 255 / 0.14) 0%, rgb(255 255 255 / 0) 55%),
    linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  padding-block: clamp(32px, 4vw + 12px, 72px) clamp(88px, 6vw + 56px, 128px);
  overflow: hidden;
}
/* dezentes Karomuster, wie kariertes Papier für Notizen zur Vorsorge */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(32px, 3vw + 12px, 48px);
}
/* Kopf: Headline links, Text rechts – darunter die Themenwahl über die volle Breite */
.hero__copy { display: grid; gap: 20px; min-width: 0; }
.hero__title, .hero__side { display: grid; gap: 20px; min-width: 0; align-content: end; }
@media (min-width: 1000px) {
  .hero__copy { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); column-gap: 64px; align-items: end; }
  .hero__side { padding-bottom: 6px; }
}
@media (max-width: 999px) {
  .hero h1 { max-width: 16ch; }
}
.hero__chip {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.14);
  font-size: var(--fs-small);
  font-weight: 650;
}
.hero__chip .icon { width: 1.05em; height: 1.05em; color: var(--sun); stroke-width: 2.2; }
.hero__lead { font-size: var(--fs-lead); color: var(--on-blue-soft); max-width: 34rem; }
.hero__lead strong { color: #fff; font-weight: 750; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* Auswahlbox */
.picker {
  position: relative;
  container: picker / inline-size;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hero-card);
  padding: clamp(20px, 2vw + 12px, 32px);
}
.picker__head { display: grid; gap: 4px; margin-bottom: 18px; }
.picker__head h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); }
.picker__head p { color: var(--muted); font-size: var(--fs-small); }
.picks {
  list-style: none;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
/* Spalten nach der Breite der Box: 1 auf dem Handy, 2 auf dem Tablet, 3 auf dem Desktop */
@container picker (max-width: 479px) { .picks { grid-template-columns: 1fr; } }
@container picker (min-width: 480px) { .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container picker (min-width: 760px) { .picks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@container picker (min-width: 760px) { .pick { padding: 16px 16px 16px 14px; gap: 14px; } .pick__title { font-size: 1.0625rem; } }
.pick {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}
.pick:hover { border-color: var(--blue); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.pick__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--blue);
}
.pick__icon .icon { width: 22px; height: 22px; }
.pick__text { display: grid; gap: 2px; min-width: 0; }
.pick__title { font-weight: 750; font-size: 1rem; line-height: 1.25; color: var(--ink); }
.pick__desc { font-size: var(--fs-small); line-height: 1.4; color: var(--muted); }
.pick:hover .pick__title { color: var(--blue); }
.pick:hover .pick__icon { background: var(--blue); color: #fff; }
.pick__icon { transition: background-color 0.18s var(--ease), color 0.18s var(--ease); }
/* „Etwas anderes“ immer über die volle Breite, damit keine Kachel allein in einer Reihe steht */
.picks > .is-other { grid-column: 1 / -1; }
.pick--other { background: var(--sky); border-style: dashed; }
.picker__foot {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: var(--fs-tiny);
  line-height: 1.5;
}
.picker__foot .icon { width: 16px; height: 16px; margin-top: 1px; color: var(--go); stroke-width: 2.2; }

/* Sticker: Aufkleber „Kostet Sie NIX!“ mit Wellenrand und weißem Stanzrand */
.sticker {
  position: absolute;
  top: -46px;
  right: -22px;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  width: 144px;
  height: 144px;
  color: var(--navy);
  text-align: center;
  transform: rotate(-10deg);
  filter: drop-shadow(0 10px 12px rgb(4 18 54 / 0.35));
}
.sticker__seal { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sticker__edge { fill: #fff; }
.sticker__fill { fill: url(#sticker-sun); }
.sticker__ring { fill: none; stroke: #d9a400; stroke-width: 1.1; }
.sticker__small, .sticker__big { position: relative; display: block; }
.sticker__small {
  padding-left: 0.14em;              /* gleicht die Laufweite rechts aus */
  font-family: var(--font-body);
  font-size: 0.71875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}
.sticker__big {
  margin-top: 3px;
  padding-bottom: 6px;               /* optische Mitte: Block leicht anheben */
  font-family: var(--font-display);
  font-size: 3.125rem;
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.035em;
}
.picker__head { padding-right: 112px; }
@media (max-width: 639px) {
  .sticker { width: 112px; height: 112px; top: -36px; right: -8px; }
  .sticker__small { font-size: 0.5625rem; }
  .sticker__big { font-size: 2.4375rem; padding-bottom: 4px; }
  .picker__head { padding-right: 88px; }
}

/* ---------- Vorteile (überlappt die blaue Kopfzone) ---------- */
.perks {
  position: relative;
  z-index: 2;
  margin-top: calc(clamp(88px, 6vw + 56px, 128px) * -0.55);
}
.perks__list {
  list-style: none;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
@media (min-width: 640px) { .perks__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .perks__list { grid-template-columns: repeat(4, 1fr); } }
.perk {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 4px 14px;
  padding: 20px;
  background: var(--paper);
}
.perk__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}
.perk__icon .icon { width: 22px; height: 22px; }
.perk h3 { font-size: 1.0625rem; font-family: var(--font-body); font-weight: 800; letter-spacing: 0; }
.perk p { font-size: var(--fs-small); color: var(--muted); line-height: 1.45; }

/* ---------- Ablauf ---------- */
.steps {
  list-style: none;
  display: grid;
  gap: 16px;
  counter-reset: step;
}
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}
.step__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.step p { color: var(--muted); }
.step__aside {
  display: inline-block;
  justify-self: start;
  margin-top: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--blue-deep);
  font-size: var(--fs-tiny);
  font-weight: 750;
}
/* gestrichelte Verbindung zwischen den Schritten */
@media (min-width: 860px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 47px;
    left: calc(24px + 48px + 12px);
    right: -12px;
    border-top: 2px dashed var(--line);
    z-index: 0;
  }
  .step:not(:last-child) { z-index: 1; }
}
@media (max-width: 859px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 47px;
    bottom: -17px;
    height: 16px;
    border-left: 2px dashed var(--line);
  }
}
.steps__cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.steps__cta p { color: var(--muted); font-size: var(--fs-small); }

/* ---------- Über uns ---------- */
.about {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 1000px) {
  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
}
.about__copy { display: grid; gap: 16px; min-width: 0; }
.about__copy .lead { color: var(--muted); font-size: var(--fs-lead); }
.about__copy h2 .muted { color: var(--blue); }

/* Rollentabelle: wer macht was */
.roles {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.roles__scroll { overflow-x: auto; }
.roles table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.roles caption {
  padding: 18px 20px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--ink);
}
.roles th, .roles td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: middle;
  border-top: 1px solid var(--line);
}
.roles thead th {
  border-top: 0;
  font-size: var(--fs-tiny);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 14px;
}
.roles thead th.is-us { color: var(--blue); }
.roles tbody th { font-weight: 650; color: var(--ink); width: 42%; }
.roles td { width: 29%; }
@media (max-width: 559px) {
  .roles th, .roles td { padding: 11px 8px; }
  .roles tbody th { width: 36%; }
  .roles td { width: 32%; }
  .roles thead th { text-transform: none; letter-spacing: 0; font-size: var(--fs-tiny) !important; }
  .roles caption { padding-inline: 14px; }
  .roles tbody th { font-size: var(--fs-tiny); }
  .roles td { font-size: var(--fs-tiny); }
  .roles__note { padding-inline: 14px; }
}
.roles .is-us { background: var(--blue-soft); }
.roles thead .is-us { background: var(--blue-soft); }
.yes, .no {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.yes { color: var(--go); }
.no { color: var(--muted); font-weight: 600; }
.yes .icon, .no .icon { width: 18px; height: 18px; stroke-width: 2.6; }
.roles__note { padding: 12px 20px 16px; color: var(--muted); font-size: var(--fs-tiny); border-top: 1px solid var(--line); }

.facts {
  list-style: none;
  display: grid;
  gap: 16px;
  margin-top: 40px;
}
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
}
.fact__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 6px;
}
.fact__icon .icon { width: 24px; height: 24px; }
.fact p { color: var(--muted); }

/* ---------- Für wen ---------- */
.groups {
  list-style: none;
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) { .groups { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .groups { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.group {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 6px;
  padding: 20px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}
.group:hover { border-color: var(--blue); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.group__title { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 750; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
.group__topics { color: var(--muted); font-size: var(--fs-small); line-height: 1.5; }
.group__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  color: var(--blue);
  font-weight: 750;
}
.group__cta .icon { width: 1em; height: 1em; stroke-width: 2.4; transition: transform 0.18s var(--ease); }
.group:hover .group__cta .icon { transform: translateX(3px); }
.group--other { background: var(--sky); border-style: dashed; }
.group__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.group__icon .icon { width: 22px; height: 22px; }
.group--other .group__icon { background: var(--paper); }
.group:hover .group__icon { background: var(--blue); color: #fff; }

/* ---------- Handy: Schritte, Fakten und Lebenslagen als kompakte Zeilen ---------- */
@media (max-width: 639px) {
  /* Schritte: Nummer links, Text rechts, gestrichelte Linie verbindet die Nummern */
  .steps { gap: 12px; }
  .step {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 6px;
    padding: 18px 18px 20px;
  }
  .step > :not(.step__num) { grid-column: 2; }
  .step__num { grid-row: 1 / span 3; width: 40px; height: 40px; font-size: 1.125rem; margin: 0; }
  .step h3 { font-size: 1.125rem; padding-top: 7px; }
  .step:not(:last-child)::after { left: 37px; bottom: -13px; height: 12px; }

  /* Fakten: Icon neben der Überschrift */
  .facts { gap: 12px; margin-top: 32px; }
  .fact { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 18px; }
  .fact__icon { width: 40px; height: 40px; margin: 0; grid-row: 1 / span 2; }
  .fact__icon .icon { width: 22px; height: 22px; }
  .fact h3 { font-size: 1.125rem; padding-top: 8px; }

  /* Lebenslagen: eine Zeile pro Karte, Pfeil rechts statt „Das bin ich“ */
  .groups { gap: 8px; }
  .group {
    grid-template-columns: 40px minmax(0, 1fr) 20px;
    grid-template-rows: auto auto;
    grid-template-areas: "icon title arrow" "icon topics arrow";
    align-items: center;
    column-gap: 14px;
    row-gap: 2px;
    padding: 14px 14px 14px 12px;
  }
  .group__icon { grid-area: icon; width: 40px; height: 40px; margin: 0; align-self: start; }
  .group__title { grid-area: title; font-size: 1.0625rem; }
  .group__topics { grid-area: topics; font-size: var(--fs-tiny); line-height: 1.45; }
  .group__cta { grid-area: arrow; margin: 0; font-size: 0; justify-content: flex-end; }
  .group__cta .icon { width: 20px; height: 20px; }
}

/* ---------- FAQ ---------- */
.faq-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 1000px) {
  .faq-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
  .faq-layout .section__head { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 32px); margin-bottom: 0; }
}
.faq { display: grid; gap: 10px; min-width: 0; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.faq__item[open] { border-color: var(--blue); box-shadow: var(--shadow-card); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 750;
  font-size: 1.0625rem;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  border-radius: var(--radius);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.faq__icon .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq__answer { padding: 0 20px 20px; color: var(--muted); display: grid; gap: 10px; max-width: 46rem; }
.prose a { font-weight: 650; }

/* ---------- Abschluss ---------- */
.closing {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 120% at 0% 100%, rgb(255 255 255 / 0.12) 0%, rgb(255 255 255 / 0) 55%),
    linear-gradient(120deg, var(--blue-deep) 0%, var(--blue) 70%);
  color: #fff;
  padding-block: clamp(64px, 5vw + 32px, 104px);
}
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(0deg, #000 0%, transparent 90%);
  mask-image: linear-gradient(0deg, #000 0%, transparent 90%);
  pointer-events: none;
}
.closing .container { position: relative; }
.closing h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; }
.closing h2 .answer { display: block; color: var(--sun); }
.closing__checks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 8px; color: var(--on-blue-soft); font-weight: 650; }
.closing__checks li { display: inline-flex; align-items: center; gap: 6px; }
.closing__checks .icon { width: 1.1em; height: 1.1em; color: var(--sun); stroke-width: 2.6; }
.closing__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}
.closing__copy { display: grid; gap: 12px; max-width: 44rem; }
.closing__copy p { color: var(--on-blue-soft); font-size: var(--fs-lead); }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: var(--on-navy-soft);
  font-size: var(--fs-small);
  padding-block: 48px 32px;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}
.footer__top img { height: 34px; width: auto; }
.footer__note { max-width: 32rem; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 24px;
}
.footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a, .footer__links button {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: inherit;
}
.footer__links a:hover, .footer__links button:hover { color: var(--sun); text-decoration: underline; }
.footer .ph { color: #4a3b00; }

/* ---------- Mobil: feste Leiste mit Anfrage-Button ---------- */
.mobilebar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -12px rgb(10 31 68 / 0.25);
  transform: translateY(110%);
  transition: transform 0.25s var(--ease);
}
.mobilebar.is-visible { transform: none; }
.mobilebar .btn { width: 100%; }
.mobilebar small { display: block; margin-top: 4px; text-align: center; color: var(--muted); font-size: var(--fs-tiny); }
@media (min-width: 960px) { .mobilebar { display: none; } }

/* ==========================================================================
   6. FORMULAR-DIALOG
   ========================================================================== */
.sheet {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.sheet::backdrop { background: rgb(10 31 68 / 0.55); }
@media (min-width: 720px) {
  .sheet {
    width: min(680px, calc(100% - 48px));
    height: auto;
    max-height: min(860px, calc(100% - 48px));
    margin: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 80px -24px rgb(4 18 54 / 0.6);
  }
}
.sheet[open] { display: flex; animation: sheet-in 0.28s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } }
.lead-form { display: flex; flex-direction: column; width: 100%; min-height: 0; }
@media (max-width: 719px) { .lead-form { height: 100%; } }

.sheet__header {
  flex: none;
  background: var(--blue);
  color: #fff;
  padding: calc(14px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px));
}
@media (min-width: 720px) { .sheet__header { padding-top: 16px; } }
.sheet__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sheet__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 750; font-size: 1.125rem; }
.sheet__brand img { height: 26px; width: auto; }
.sheet__brand span { padding-left: 10px; border-left: 1px solid rgb(255 255 255 / 0.3); font-family: var(--font-body); font-weight: 650; font-size: var(--fs-small); color: var(--on-blue-soft); }
.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.14);
  color: #fff;
  cursor: pointer;
}
.icon-btn:hover { background: rgb(255 255 255 / 0.24); }
.icon-btn .icon { width: 22px; height: 22px; stroke-width: 2.2; }
.sheet__header :focus-visible { outline-color: var(--sun); }

.progress {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 14px;
}
.progress__seg {
  display: grid;
  gap: 6px;
  font-size: var(--fs-tiny);
  font-weight: 650;
  color: var(--on-blue-soft);
}
.progress__seg::before {
  content: "";
  height: 5px;
  border-radius: 3px;
  background: rgb(255 255 255 / 0.25);
  transition: background-color 0.25s var(--ease);
}
.progress__seg.is-done::before { background: var(--sun); }
.progress__seg.is-current { color: #fff; font-weight: 800; }
@media (max-width: 379px) { .progress__seg { font-size: 0.75rem; } }

.sheet__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px max(20px, env(safe-area-inset-right, 0px)) 24px max(20px, env(safe-area-inset-left, 0px));
}
@media (min-width: 720px) { .sheet__body { padding: 28px 32px; } }
.step-panel { display: grid; gap: 18px; }
.step-panel__title { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); outline: none; }
.step-panel__hint { color: var(--muted); margin-top: -10px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.choices { display: grid; gap: 10px; }
.choices--grid { grid-template-columns: 1fr; }
@media (min-width: 480px) { .choices--grid { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__box {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  min-height: 58px;
  padding: 12px 14px;
  border: 1.5px solid var(--field);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-weight: 650;
  line-height: 1.3;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.choice__box > .icon { width: 24px; height: 24px; color: var(--blue); }
.choice__label { flex: 1 1 auto; min-width: 0; }
.choice__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--field);
  border-radius: 50%;
  color: transparent;
  transition: inherit;
}
.choice__mark .icon { width: 14px; height: 14px; stroke-width: 3; }
.choice:hover .choice__box { border-color: var(--blue); }
.choice input:checked + .choice__box { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.choice input:checked + .choice__box .choice__mark { background: var(--blue); border-color: var(--blue); color: #fff; }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--blue); outline-offset: 2px; }
.choices--compact .choice__box { min-height: 52px; }
.choices--grid .choice--other { grid-column: 1 / -1; }

.field { display: grid; gap: 6px; }
.field label, .field__label { font-weight: 700; }
.field__optional { font-weight: 500; color: var(--muted); }
.field__hint { color: var(--muted); font-size: var(--fs-small); }
.input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--field);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.input:hover { border-color: var(--blue); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(11 77 216 / 0.25); }
.input--short { max-width: 12rem; }
.is-invalid .input, .is-invalid .choice__box { border-color: var(--error); }
.field__error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--error);
  font-size: var(--fs-small);
  font-weight: 650;
}
.field__error .icon { width: 18px; height: 18px; margin-top: 2px; }
.contact-group { display: grid; gap: 16px; }
@media (min-width: 560px) {
  .contact-group { grid-template-columns: 1fr 1fr; }
  .contact-group > .field__error { grid-column: 1 / -1; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--field);
  border-radius: 999px;
  font-weight: 650;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.chip span .icon { width: 16px; height: 16px; stroke-width: 3; display: none; }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip input:checked + span .icon { display: block; }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.summary {
  margin: 0;
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sky);
}
.summary__row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 12px;
  padding: 12px 16px;
}
.summary__row + .summary__row { border-top: 1px solid var(--line); }
.summary dt { font-weight: 700; color: var(--muted); font-size: var(--fs-small); }
.summary dd { margin: 0; display: flex; justify-content: space-between; gap: 12px; min-width: 0; }
.summary dd span { white-space: pre-line; overflow-wrap: anywhere; font-weight: 600; }
.summary__edit {
  flex: none;
  align-self: start;
  border: 0;
  background: none;
  padding: 0;
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.consents { display: grid; gap: 14px; }
.check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1.5px solid var(--field);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 400 !important;
  line-height: 1.5;
}
.check:hover { border-color: var(--blue); }
.check input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.check__title { display: block; font-weight: 750; margin-bottom: 2px; }
.is-invalid .check { border-color: var(--error); }
.consents__note { font-size: var(--fs-small); color: var(--muted); }
.form-error {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--error-soft);
  color: var(--error);
  font-weight: 650;
  outline: none;
}
.form-error .icon { margin-top: 3px; }

.done { display: grid; gap: 18px; justify-items: start; padding-block: 8px; }
.done__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--go);
  color: #fff;
}
.done__icon .icon { width: 34px; height: 34px; stroke-width: 2.6; }
.done__lines { list-style: none; display: grid; gap: 12px; counter-reset: line; }
.done__lines li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  counter-increment: line;
}
.done__lines li::before {
  content: counter(line);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
}
.done__lines li { padding-top: 0; }

.sheet__footer {
  flex: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px max(20px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--line);
  background: var(--paper);
}
@media (min-width: 720px) { .sheet__footer { padding: 16px 32px; } }
.sheet__footer [data-next], .sheet__footer [data-submit] { flex: 1 1 auto; max-width: 280px; }
@media (max-width: 479px) { .sheet__footer [data-back] { padding: 0 16px; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Kleiner Dialog (Cookie-Einstellungen) */
.sheet--small { height: auto; max-height: calc(100% - 32px); margin: auto 0 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
@media (min-width: 720px) { .sheet--small { width: min(520px, calc(100% - 48px)); margin: auto; border-radius: var(--radius-lg); } }
.sheet__inner { display: grid; gap: 16px; padding: 28px max(24px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px)); width: 100%; overflow-y: auto; }
.sheet__inner .h3 { font-family: var(--font-display); font-size: 1.375rem; font-weight: 750; }
.sheet__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.toggle-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 16px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.toggle-row small { grid-column: 1; color: var(--muted); }
.toggle-row input { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; accent-color: var(--blue); }

/* ==========================================================================
   7. COOKIE-HINWEIS (nur sichtbar, wenn in config.js eingeschaltet)
   ========================================================================== */
.consent {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  display: grid;
  gap: 12px;
  max-width: 560px;
  margin-inline: auto;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-lift);
  font-size: var(--fs-small);
}
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.text-link { border: 0; background: none; padding: 0; color: var(--blue); font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ==========================================================================
   8. RECHTSSEITEN
   ========================================================================== */
.legal-header { background: var(--blue); color: #fff; }
.legal-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.legal-header img { height: 30px; width: auto; }
.legal-header .link { color: #fff; }
.legal-header .link:hover { color: var(--sun); }
.legal { padding-block: 56px 96px; }
.legal .container { max-width: 800px; display: grid; gap: 18px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); }
.legal h2 { font-size: 1.375rem; margin-top: 12px; }
.legal p { color: var(--muted); }

/* ==========================================================================
   9. BEWEGUNG, BARRIEREFREIHEIT
   ========================================================================== */
/* Einmaliger Auftritt der Auswahlbox und des Stickers beim Laden */
@media (prefers-reduced-motion: no-preference) {
  .picker { animation: rise 0.6s var(--ease) both; }
  .sticker { animation: stamp 0.5s 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
}
@keyframes rise { from { opacity: 0.001; transform: translateY(18px); } }
@keyframes stamp { from { opacity: 0.001; transform: rotate(-30deg) scale(1.5); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
@media (forced-colors: active) {
  .btn, .pick, .group, .choice__box, .input, .check { border: 1px solid CanvasText; }
}
