/* Keplova · Stylesheet */

@font-face { font-family: "Space Grotesk"; src: url("schriften/SpaceGrotesk-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("schriften/SpaceGrotesk-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("schriften/JetBrainsMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("schriften/JetBrainsMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* Dunkel */
  --nachtgrund: #070B14;
  --flaeche: #0C1220;
  --flaeche-hover: #101829;
  --linie: #1B2740;
  --text: #E7EEF5;
  --fliesstext: #B8C6D4;
  --sekundaer: #8FA3B8;
  --mint: #2FE6A8;
  --mint-hell: #7CF3C8;

  /* Hell */
  --hellgrund: #F4F7FA;
  --weiss: #FFFFFF;
  --rand-hell: #D5DEE7;
  /* Eingabefeld- und Auswahlrahmen mit mindestens 5:1 Kontrast auf Weiß */
  --rand-feld: #5C7189;
  --tinte: #0B2135;
  --tiefblau: #0B4F7A;
  --sekundaer-hell: #3E5670;
  --code-hell: #2C4A63;

  /* Statusfarben (Formularfehler, Cookies) */
  --ok: #1FB57F;       --ok-text: #0B6B4A;
  --pruefen: #F2B84B;  --pruefen-text: #7A5300;
  --kritisch: #E5484D; --kritisch-text: #A12A2A;

  --schrift-text: "Space Grotesk", system-ui, sans-serif;
  --schrift-code: "JetBrains Mono", ui-monospace, monospace;

  --rand: clamp(20px, 5.5vw, 80px);
  --breite: 1280px;
  --abstand: clamp(72px, 8.5vw, 124px);
}

/* Farbrollen je Abschnittsgrund */
.dunkel {
  --grund: var(--nachtgrund);
  --kasten: var(--flaeche);
  --kasten-linie: var(--linie);
  --titel: var(--text);
  --fliess: var(--fliesstext);
  --label: var(--sekundaer);
  --akzent: var(--mint);
  --akzent-hover: var(--mint-hell);
  --knopf-text: var(--nachtgrund);
}
.hell {
  --grund: var(--hellgrund);
  --kasten: var(--weiss);
  --kasten-linie: var(--rand-hell);
  --titel: var(--tinte);
  --fliess: var(--tinte);
  --label: var(--sekundaer-hell);
  --akzent: var(--tiefblau);
  --akzent-hover: #0A6399;
  --knopf-text: var(--weiss);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; scroll-padding-bottom: var(--einwilligung-hoehe, 0px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  padding-bottom: var(--einwilligung-hoehe, 0px);
  margin: 0;
  background: var(--nachtgrund);
  color: var(--fliesstext);
  font-family: var(--schrift-text);
  font-size: 18px;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

section, footer { background: var(--grund); color: var(--fliess); }
main { overflow-x: clip; }
main:focus { outline: none; }

img { display: block; max-width: 100%; }
a { color: var(--akzent); text-underline-offset: 3px; }
a:hover { color: var(--akzent-hover); }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; border-radius: 2px; }

.rahmen { width: 100%; max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto; padding: 0 var(--rand); position: relative; z-index: 1; }
.abschnitt { padding: var(--abstand) 0; position: relative; overflow: clip; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Bausteine ---------- */

.kicker {
  display: block;
  font-family: var(--schrift-code);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--akzent);
  margin: 0 0 18px;
  white-space: nowrap;
}
.kicker::before { content: "// "; }

.label {
  font-family: var(--schrift-code);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--label);
}

h1, h2, h3 { font-weight: 500; color: var(--titel); margin: 0; text-wrap: balance; }
p, li { text-wrap: pretty; }
h2 { font-size: clamp(28px, 3.8vw, 46px); line-height: 1.12; letter-spacing: -0.03em; max-width: 24ch; }
h2.breit { max-width: 28ch; }
h3 { font-size: 21px; line-height: 1.3; letter-spacing: -0.02em; }

.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--fliess); max-width: 44em; margin: 20px 0 0; }
.kopfzeile { margin-bottom: clamp(40px, 5vw, 64px); }

.kasten { background: var(--kasten); border: 1px solid var(--kasten-linie); border-radius: 4px; }

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border: 0;
  border-radius: 4px;
  background: var(--akzent);
  color: var(--knopf-text);
  font: 500 17px/1.2 var(--schrift-text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.knopf:hover { background: var(--akzent-hover); color: var(--knopf-text); }
.knopf.klein { min-height: 42px; padding: 10px 18px; font-size: 15.5px; }
.knopf.zweit { background: none; color: var(--titel); box-shadow: inset 0 0 0 1px var(--kasten-linie); }
.knopf.zweit:hover { color: var(--akzent); box-shadow: inset 0 0 0 1px var(--akzent); }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 6px 0;
  font-family: var(--schrift-code);
  font-size: 14px;
  font-weight: 500;
  color: var(--akzent);
  text-decoration: none;
}
.textlink::after { content: "→"; display: inline-block; transition: transform 0.22s ease; }
.textlink:hover { color: var(--akzent-hover); text-decoration: underline; }
.textlink:hover::after { transform: translateX(4px); }

/* Kurzform: Icon und Wortmarke */
.kurzform { display: inline-flex; align-items: center; gap: 0.3em; font-size: 28px; line-height: 1; text-decoration: none; }
.kurzform img { height: 1.7em; width: auto; }
.kurzform span { font-weight: 500; letter-spacing: -0.02em; color: var(--titel); line-height: 0.9; }

/* ---------- Navigation ---------- */

.kopfleiste {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 11, 20, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);
}
.kopfleiste .rahmen { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.kopfleiste .kurzform { font-size: 26px; }
.kopfleiste .rahmen > .knopf { white-space: nowrap; }
.menue { display: flex; align-items: center; gap: 32px; }
.menue ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.menue ul a { color: var(--sekundaer); text-decoration: none; font-size: 16px; white-space: nowrap; transition: color 0.25s ease; }
.menue ul a:hover { color: var(--text); }
.menue ul a.aktiv { color: var(--text); text-decoration: underline 2px var(--mint); text-underline-offset: 8px; }
.menue .knopf { white-space: nowrap; }
.menue .menue-aufruf { display: none; }

/* Sprunglink für die Tastatur: erst beim Fokus sichtbar */
.sprunglink { position: absolute; left: 16px; top: 12px; z-index: 100; padding: 10px 16px; border-radius: 4px; background: var(--mint); color: var(--nachtgrund); font-weight: 500; text-decoration: none; transform: translateY(-200%); }
.sprunglink:focus { transform: none; }

.menue-knopf {
  display: none;
  background: none;
  border: 1px solid var(--linie);
  border-radius: 4px;
  color: var(--text);
  font: 500 14px/1 var(--schrift-code);
  padding: 12px 14px;
  cursor: pointer;
}

/* ---------- Kopf / Hero ---------- */

.kopf {
  --feld: 0.55;
  position: relative;
  overflow: clip;
  min-height: min(calc(100svh - 76px), 840px);
  display: flex;
  padding: clamp(64px, 8.5vw, 112px) 0 clamp(64px, 8vw, 104px);
}
.kopf .rahmen { display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
.codefeld {
  position: absolute;
  z-index: 0;
  width: clamp(560px, 54vw, 820px);
  right: -9vw;
  top: 50%;
  transform: translateY(-50%);
  opacity: var(--feld);
  pointer-events: none;
}
.held { max-width: 740px; }
.hero-kicker { margin-bottom: 24px; letter-spacing: 0.04em; }
.claim {
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: none;
}
.claim .zeile-1 { display: block; color: var(--fliesstext); font-weight: 400; }
.claim .zeile-2 { display: block; color: var(--text); font-weight: 500; margin-top: 4px; }
.unterzeile {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--fliesstext);
  margin: 28px 0 0;
  max-width: 38em;
  text-wrap: balance;
}
.aufruf { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.aufruf-text {
  font-family: var(--schrift-code);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--sekundaer);
  max-width: 54em;
  margin: 18px 0 0;
}

/* ---------- Haltung (Dunkel) ---------- */

.haltung { border-top: 1px solid var(--linie); }
.haltung .rahmen { display: grid; grid-template-columns: 5fr 7fr; gap: 32px 72px; align-items: start; }
.haltung h2 { font-size: clamp(28px, 3.6vw, 44px); }
.haltung p:not(.kicker) { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.58; color: var(--fliesstext); margin: 0; }
.haltung p:not(.kicker) + p { margin-top: 20px; }

/* ---------- 6 Leistungsfelder (Dunkel) ---------- */

.leistungen { border-top: 1px solid var(--linie); }
.matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--linie);
  border-left: 1px solid var(--linie);
  background: var(--flaeche);
}
.zelle {
  padding: clamp(24px, 2.6vw, 34px) clamp(20px, 2.2vw, 30px) clamp(22px, 2.4vw, 30px);
  border-right: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  row-gap: 0;
  align-content: start;
  position: relative;
  transition: background-color 0.22s ease;
}
.zelle::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.zelle:hover { background: var(--flaeche-hover); }
.zelle:hover::before { transform: scaleX(1); }
.zelle-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.zelle-icon { width: 24px; height: 24px; color: var(--mint); flex: none; }
.zelle-nr { font-family: var(--schrift-code); font-size: 13px; color: var(--sekundaer); }
.zelle h3 {
  margin-bottom: 14px;
  font-size: clamp(17.5px, 1.32vw, 19px);
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-wrap: normal;
  align-self: start;
}
.zelle-text { margin: 0 0 20px; font-size: 16px; line-height: 1.55; color: var(--fliesstext); align-self: start; }
.zelle-fuss { align-self: start; }
.zelle-tags { margin: 0; font-family: var(--schrift-code); font-size: 12.5px; line-height: 1.55; color: var(--sekundaer); }
.zelle-hinweis {
  margin: 14px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--linie);
  font-size: 14px;
  line-height: 1.48;
  color: var(--sekundaer);
}

/* ---------- Arbeitsweise, Unterstützung & Partner (Hell) ---------- */

.arbeitsweise-kopf {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 24px clamp(40px, 5vw, 72px);
  align-items: start;
}
.arbeitsweise-lead p {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--sekundaer-hell);
}
.arbeitsweise-lead p + p { margin-top: 16px; }

.phasen {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 0;
}
.phase {
  position: relative;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  row-gap: 0;
  align-content: start;
  padding: 28px 26px 24px;
  border-top: 3px solid var(--tiefblau);
}
.phase.phase-umgebung {
  border-top: 3px dashed var(--rand-feld);
}
/* Exakte Verbindungslinie mit Pfeilspitze zwischen den Phasen-Karten auf Desktop */
.phase:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 28px;
  right: -22px;
  font-family: var(--schrift-code);
  font-size: 16px;
  line-height: 1;
  color: var(--tiefblau);
  pointer-events: none;
}
.phase-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.phase-nr {
  font-family: var(--schrift-code);
  font-size: 15px;
  font-weight: 500;
  color: var(--tiefblau);
}
.phase-rolle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--schrift-code);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sekundaer-hell);
}
.phase-punkt {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.8px solid var(--tiefblau);
  background: var(--tiefblau);
  flex: none;
}
.phase-punkt.offen { background: var(--weiss); }
.phase h3 { margin-bottom: 12px; font-size: 22px; }
.phase-text {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.58;
  color: var(--tinte);
}
.phase-ergebnis {
  margin-top: auto;
  padding: 14px 16px;
  background: var(--hellgrund);
  border-radius: 4px;
  border-left: 2px solid var(--tiefblau);
}
.phase-ergebnis .label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--tiefblau);
}
.phase-ergebnis p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.48;
  color: var(--tinte);
}

.unterstuetzung-block {
  margin-top: clamp(56px, 7vw, 92px);
  padding-top: clamp(48px, 6vw, 76px);
  border-top: 1px solid var(--rand-hell);
}
.unterstuetzung-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 0;
}
.modul-karte {
  padding: 24px 22px;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  row-gap: 0;
  align-content: start;
}
.modul-tick { width: 22px; height: 2px; background: var(--tiefblau); margin-bottom: 16px; }
.modul-karte h3 { margin-bottom: 10px; font-size: 19px; }
.modul-karte p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--sekundaer-hell); }

.partner-kasten {
  margin-top: 32px;
  padding: clamp(24px, 3vw, 34px) clamp(24px, 3.2vw, 38px);
  border-left: 3px solid var(--tiefblau);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 40px;
  align-items: center;
}
.partner-kasten .kicker { margin-bottom: 10px; }
.partner-kasten h3 { margin-bottom: 10px; font-size: 22px; }
.partner-kasten p:not(.kicker) { margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--sekundaer-hell); max-width: 58ch; }

/* ---------- Über uns (Dunkel) ---------- */

.ueber .rahmen > .kopfzeile { display: grid; grid-template-columns: 5fr 7fr; gap: 24px clamp(40px, 5vw, 72px); align-items: start; }
.ueber .kopfzeile p:not(.kicker) { margin: 0; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--fliess); }
.ueber .kopfzeile p:not(.kicker) + p { margin-top: 16px; }
.personen { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3.5vw, 40px); }
.person { padding: 0; overflow: hidden; display: grid; grid-template-columns: minmax(160px, 2fr) 3fr; transition: border-color 0.25s ease; }
.person:hover { border-color: var(--akzent); }
.person .text { padding: 28px clamp(22px, 2.4vw, 34px); }
/* Vollbreite ohne Porträtbild */
.person:not(:has(.portraet)) { grid-template-columns: 1fr; }
.person h3 { margin: 0 0 8px; font-size: 25px; }
.person .label { margin: 0; color: var(--akzent); }
.person .rolle { margin: 2px 0 16px; color: var(--label); font-size: 16px; }
.person p { margin: 0; font-size: 17px; line-height: 1.58; }
.person p + p:not(.label):not(.rolle):not(.profil) { margin-top: 14px; }
.person .profil { margin: 18px 0 0; font-family: var(--schrift-code); font-size: 14px; }
.person .profil a { display: inline-block; padding: 6px 0; text-decoration: none; }
.person .profil a::after { content: " ↗"; }
.person .profil a:hover { text-decoration: underline; }

/* ---------- Fragen (Hell) ---------- */

.fragen .rahmen { display: grid; grid-template-columns: 4fr 8fr; gap: 40px clamp(40px, 5vw, 72px); align-items: start; }
.fragen .kopfzeile { position: sticky; top: 120px; margin: 0; }
.faq { border-top: 1px solid var(--rand-hell); }
.faq details { border-bottom: 1px solid var(--rand-hell); }
.faq summary {
  list-style: none;
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  align-items: baseline;
  gap: 8px;
  padding: 22px 0;
  cursor: pointer;
  font-size: 19px;
  font-weight: 500;
  color: var(--tinte);
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .nr { font-family: var(--schrift-code); font-size: 14px; font-weight: 400; color: var(--tiefblau); }
.faq .zeichen { font-family: var(--schrift-code); color: var(--tiefblau); text-align: right; }
.faq .zeichen::before { content: "+"; display: inline-block; transition: transform 0.28s ease; }
.faq details[open] .zeichen::before { content: "−"; transform: rotate(180deg); }
.faq summary:hover { color: var(--tiefblau); }
.faq .antwort { padding: 0 32px 24px 52px; margin: 0; color: var(--sekundaer-hell); font-size: 17px; line-height: 1.6; max-width: 44em; }
.bewegt .faq .antwort { overflow: hidden; }

/* ---------- Kontakt (Hell) ---------- */

.kontakt { border-top: 1px solid var(--rand-hell); }
.kontakt .rahmen { display: grid; grid-template-columns: 5fr 7fr; gap: 48px clamp(40px, 5vw, 80px); align-items: start; }
.kontakt .lead { margin-bottom: 28px; }
.kontakt-infos { padding-top: 22px; border-top: 1px solid var(--rand-hell); display: grid; gap: 10px; }
.pflicht { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--sekundaer-hell); }
.formular { padding: clamp(24px, 3.5vw, 40px); }
.formular form { display: grid; gap: 22px; }
.formular .paar { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.feld-block { display: grid; gap: 6px; align-content: start; }
.feld-kopf label, .feld-block legend { font-weight: 500; font-size: 16px; color: var(--tinte); padding: 0; }

.feld-kopf { position: relative; display: flex; align-items: center; gap: 4px; min-height: 28px; }
.info { display: inline-grid; place-items: center; width: 32px; height: 32px; margin: 0; padding: 0; background: none; border: 0; border-radius: 50%; color: var(--tiefblau); cursor: pointer; }
.info span { display: grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 50%; font: 500 11px/1 var(--schrift-code); transition: background-color 0.15s ease, color 0.15s ease; }
.info:hover span, .feld-kopf.offen .info span { background: var(--tiefblau); color: var(--weiss); }
.info:focus-visible { outline: 2px solid var(--tiefblau); outline-offset: 0; }
.feld-kopf .hilfe {
  display: none;
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  left: 0;
  width: max-content;
  max-width: min(320px, calc(100vw - 72px));
  margin: 0;
  padding: 10px 14px;
  background: var(--hellgrund);
  border: 1px solid var(--rand-hell);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(11, 33, 53, 0.1);
  font-size: 14px;
  line-height: 1.45;
  color: var(--tinte);
}
.feld-kopf .hilfe::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 8px;
}
.freiwillig { margin-left: 8px; font-family: var(--schrift-code); font-size: 13px; font-weight: 400; color: var(--label); }
.info:hover + .hilfe, .info:focus-visible + .hilfe, .feld-kopf .hilfe:hover, .feld-kopf.offen .hilfe { display: block; }
.feld-kopf.zu .hilfe { display: none; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  font: 400 17px/1.4 var(--schrift-text);
  color: var(--tinte);
  background: var(--weiss);
  border: 1px solid var(--rand-feld);
  border-radius: 4px;
  padding: 12px 14px;
}
textarea { min-height: 132px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--tiefblau); outline-offset: 0; border-color: var(--tiefblau); }
.fehler { display: none; font-size: 14px; color: var(--kritisch-text); margin: 0; }
.feld-block.falsch .fehler { display: block; }
.feld-block.falsch input, .feld-block.falsch textarea { border-color: var(--kritisch-text); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset legend { margin-bottom: 8px; }
.wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl label { position: relative; cursor: pointer; }
.wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wahl span { display: inline-block; padding: 9px 16px; border: 1px solid var(--rand-feld); border-radius: 4px; font-size: 16px; color: var(--sekundaer-hell); background: var(--weiss); }
.wahl input:checked + span { border-color: var(--tiefblau); color: var(--tiefblau); box-shadow: inset 0 0 0 1px var(--tiefblau); }
.wahl input:focus-visible + span { outline: 2px solid var(--tiefblau); outline-offset: 2px; }
.formular .knopf { justify-self: start; }
.formular .knopf[aria-disabled="true"] { opacity: 0.6; cursor: progress; }
.sendefehler { font-size: 16px; color: var(--kritisch-text); margin: 0; }
.sendefehler a { color: inherit; }
.formular .datenschutz { font-size: 14px; line-height: 1.5; color: var(--sekundaer-hell); }
.formular .datenschutz p { margin: 0; }
.datenschutz details { margin-top: 10px; }
.datenschutz summary { display: inline-block; padding: 6px 0; cursor: pointer; list-style: none; font-weight: 500; color: var(--tiefblau); }
.datenschutz summary::-webkit-details-marker { display: none; }
.datenschutz summary::before { content: "+"; display: inline-block; width: 1.3em; font-family: var(--schrift-code); }
.datenschutz details[open] summary::before { content: "−"; }
.datenschutz dl { display: grid; gap: 8px; margin: 12px 0 0; padding: 14px 16px; background: var(--hellgrund); border-radius: 4px; }
.datenschutz dl div { display: grid; grid-template-columns: 128px 1fr; gap: 4px 12px; }
.datenschutz dt { font-weight: 500; color: var(--tinte); }
.datenschutz dd { margin: 0; }
.angekommen h3 { font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -0.03em; margin-bottom: 16px; }
.angekommen h3:focus { outline: none; }
.angekommen p:not(.kicker) { margin: 0; max-width: 32em; }

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

.fuss { padding: 64px 0 40px; border-top: 1px solid var(--linie); }
.fuss .rahmen { display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; }
.fuss .kurzform { font-size: 24px; }
.fuss .claim-klein { margin: 18px 0 4px; color: var(--text); font-size: 18px; }
.fuss .fuer-wen { margin: 0; color: var(--sekundaer); font-size: 15px; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 15px; align-self: start; }
.fuss [data-ew-oeffnen] { border: 0; background: none; font: inherit; cursor: pointer; }
.fuss ul :is(a, [data-ew-oeffnen]) { display: inline-block; padding: 6px 0; color: var(--sekundaer); text-decoration: none; }
.fuss ul :is(a, [data-ew-oeffnen]):hover { color: var(--text); }
.fuss a[aria-current="page"] { color: var(--text); }

/* ---------- Rechtliche Seiten: Impressum, Datenschutz, Cookies ---------- */

.recht { min-height: calc(100svh - 76px); }
.recht h1 { font-size: clamp(40px, 5.5vw, 64px); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: clamp(32px, 4vw, 48px); }
.recht h2 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; letter-spacing: -0.02em; margin: clamp(56px, 7vw, 88px) 0 12px; max-width: none; }
.recht .aviso > p { max-width: 46em; margin: 0 0 24px; font-size: 16px; line-height: 1.6; color: var(--sekundaer-hell); }
.recht .kurz { max-width: 820px; padding: 24px 28px; margin-bottom: clamp(24px, 3vw, 40px); }
.recht .kurz .label { margin: 0 0 8px; }
.recht .kurz p:not(.label) { margin: 0; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--tinte); }
.erklaerung { max-width: 46em; }
.recht .erklaerung h2, .recht .erklaerung h3 { display: flex; gap: 14px; align-items: baseline; max-width: none; margin: 40px 0 10px; font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; }
.erklaerung h2 span, .erklaerung h3 span { font: 400 14px/1 var(--schrift-code); color: var(--tiefblau); }
.erklaerung p { margin: 0 0 14px; line-height: 1.65; color: var(--tinte); }
.erklaerung p strong, .erklaerung li strong { font-weight: 500; color: var(--titel); }
.erklaerung ul { margin: 0 0 14px; padding-left: 1.25em; line-height: 1.65; color: var(--tinte); }
.erklaerung li { margin: 0 0 8px; }

.cookie-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1080px; margin: 4px 0 8px; }
.cookie-liste article { padding: 22px 24px 10px; }
.cookie-liste .label { margin: 0 0 4px; color: var(--tiefblau); }
.cookie-liste .angaben { max-width: none; padding: 0; }
.cookie-liste .angaben > div { grid-template-columns: 90px 1fr; gap: 4px 16px; padding: 12px 0; font-size: 15.5px; }
.recht code { font-family: var(--schrift-code); font-size: 0.9em; color: var(--code-hell); }
.angaben { max-width: 920px; margin: 0; padding: 6px 32px; }
.angaben > div { display: grid; grid-template-columns: minmax(170px, 1fr) 3fr; gap: 4px 32px; padding: 18px 0; border-bottom: 1px solid var(--rand-hell); }
.angaben > div:last-child { border-bottom: 0; }
.angaben dt { padding-top: 3px; font-family: var(--schrift-code); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sekundaer-hell); }
.angaben dd { margin: 0; line-height: 1.6; color: var(--tinte); overflow-wrap: anywhere; }
.angaben .zusammen { white-space: nowrap; }

.erklaerung.zaehlt { counter-reset: abschnitt; }
.erklaerung.zaehlt :is(h2, h3) { counter-increment: abschnitt; }
.erklaerung.zaehlt :is(h2, h3) > span::before { content: counter(abschnitt, decimal-leading-zero); }

/* ---------- Einwilligung in Cookies (einwilligung.js) ---------- */

.einwilligung {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "titel knoepfe" "text knoepfe" "auswahl auswahl";
  column-gap: 32px;
  align-items: center;
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding: 14px max(var(--rand), calc((100% - var(--breite)) / 2)) calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linie);
  background: var(--flaeche);
  color: var(--fliesstext);
  box-shadow: 0 -12px 40px rgba(7, 11, 20, 0.35);
}
.einwilligung[hidden] { display: none; }
.einwilligung .kicker { display: none; }
.einwilligung h2 { grid-area: titel; align-self: end; max-width: none; margin: 0 0 2px; font-size: 17px; letter-spacing: -0.01em; }
.einwilligung h2:focus { outline: none; }
.einwilligung .ew-text { grid-area: text; align-self: start; max-width: 92ch; margin: 0; font-size: 14px; line-height: 1.5; }
.ew-auswahl { grid-area: auswahl; display: grid; gap: 12px; margin: 14px 0 4px; padding: 16px 0 0; border: 0; border-top: 1px solid var(--linie); }
.ew-auswahl label { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 14.5px; line-height: 1.5; cursor: pointer; }
.ew-auswahl input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--mint); cursor: pointer; }
.ew-auswahl input:disabled { cursor: default; }
.ew-auswahl b { display: block; font-weight: 500; color: var(--text); }
.ew-knoepfe { grid-area: knoepfe; display: grid; grid-template-columns: repeat(3, auto); gap: 8px; margin: 0; }
.einwilligung .knopf.zweit { color: var(--text); box-shadow: inset 0 0 0 1px var(--sekundaer); }
.einwilligung .knopf.zweit:hover { color: var(--mint); box-shadow: inset 0 0 0 1px var(--mint); }
.ew-knoepfe .knopf { width: 100%; min-height: 38px; padding: 8px 14px; font-size: 14px; white-space: nowrap; }

/* ---------- Bewegung ---------- */

.js [data-zeigen] { opacity: 0; transform: translateY(10px); transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1); }
.js [data-zeigen].da { opacity: 1; transform: none; }
.js .sofort { transition: none !important; animation: none !important; width: auto !important; }
.js .kopf [data-zeigen] { opacity: 1; transform: none; transition: none; }
.js:not(.js-bereit) [data-zeigen] { animation: notfall-zeigen 0.6s ease-out 3s forwards; }
.js:not(.js-bereit) .kicker[data-tippen] { animation: notfall-kicker 0s 3s forwards; }
.js:not(.js-bereit) h2.woerter .w { animation: notfall-zeigen 0.6s ease-out 3s forwards; }
@keyframes notfall-zeigen { to { opacity: 1; transform: none; filter: none; } }
@keyframes notfall-kicker { to { width: max-content; } }

.js .kicker[data-tippen] { overflow: hidden; width: 0; }
.js .kicker[data-tippen].da { animation: tippen calc(var(--n) * 45ms) steps(var(--n), end) 0.2s forwards; }
.bewegt .kicker[data-tippen].da { animation: tippen calc(var(--n) * 45ms) steps(var(--n), end) 0.2s forwards, schreibmarke 0.8s step-end 0.2s 5; }
@keyframes tippen { from { width: 0; } to { width: calc(var(--n) * 1ch + 2px); } }
@keyframes schreibmarke { 0%, 100% { box-shadow: 3px 0 0 var(--akzent); } 50% { box-shadow: 3px 0 0 transparent; } }
.js .kicker[data-tippen].getippt { width: max-content !important; overflow: visible; }

.js .codefeld { opacity: 0; transition: opacity 3s ease-out 0.4s; }
.js .codefeld.da { opacity: var(--feld); }

.zeichenflaeche { position: absolute; z-index: 0; pointer-events: none; }
.kopf .zeichenflaeche { opacity: var(--feld); }
.kopf.lebt .codefeld { visibility: hidden; }

/* Buchstaben, die sich entschlüsseln: Solange einer "wirr" ist, steht an seiner Stelle ein Codezeichen */
.z { position: relative; }
.z.wirr { color: transparent; }
.z.wirr::after {
  content: attr(data-z);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 400 0.74em/1 var(--schrift-code);
  letter-spacing: 0;
  color: var(--wirr, var(--akzent));
}
.knopf { --wirr: var(--knopf-text); }

/* Überschriften: Wort für Wort, von unscharf zu scharf */
.bewegt h2.woerter[data-zeigen] { opacity: 1; transform: none; }
.bewegt h2.woerter .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.28em);
  filter: blur(5px);
  transition: opacity 0.75s ease, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), filter 0.75s ease;
  transition-delay: calc(var(--i) * 55ms);
}
.bewegt h2.woerter.da .w { opacity: 1; transform: none; filter: none; }

/* Kopfleiste: Fortschritt beim Scrollen */
.fortschritt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-zeigen] { opacity: 1; transform: none; transition: none; }
  .js .kicker[data-tippen] { width: auto; animation: none !important; }
  .js .codefeld { opacity: var(--feld); transition: none; }
}

/* ---------- 404 ---------- */

.nicht-gefunden { min-height: calc(100svh - 76px); display: flex; align-items: center; padding: 80px 0; }
.nicht-gefunden h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; letter-spacing: -0.03em; }
.nicht-gefunden .aufruf { margin-top: 40px; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .menue ul { gap: 20px; }
  .kopf { --feld: 0.32; }
  .codefeld { right: -18vw; }
  .matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phasen { grid-template-columns: 1fr; row-gap: 20px; }
  .phase { display: flex; flex-direction: column; grid-row: auto; }
  .phase:not(:last-child)::after { display: none; }
  .unterstuetzung-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .modul-karte { display: block; grid-row: auto; }
  .person { grid-template-columns: 1fr; }
}

@media (max-width: 1060px) {
  html.js .menue ul { display: none; }
  html.js .menue-knopf { display: inline-block; }
  html:not(.js) .kopfleiste .rahmen { height: auto; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
  html:not(.js) .menue ul { flex-wrap: wrap; gap: 10px 18px; }
  .menue.offen ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--nachtgrund);
    border-bottom: 1px solid var(--linie);
    padding: 8px var(--rand) 20px;
  }
  .menue.offen ul a { display: block; padding: 14px 0; font-size: 18px; color: var(--text); border-bottom: 1px solid var(--linie); }
}

@media (max-width: 900px) {
  .haltung .rahmen,
  .arbeitsweise-kopf,
  .ueber .rahmen > .kopfzeile,
  .fragen .rahmen,
  .kontakt .rahmen,
  .partner-kasten { grid-template-columns: 1fr; }
  .fragen .kopfzeile { position: static; }
  .personen { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .kopfleiste .rahmen { height: 64px; }
  html { scroll-padding-top: 76px; }
  .menue.offen ul { top: 64px; }
  .kopfleiste .kurzform { font-size: 22px; }
  .menue .knopf { display: none; }
  .menue.offen .menue-aufruf { display: block; padding-top: 18px; }
  .menue.offen ul .menue-aufruf a { display: flex; width: 100%; padding: 14px 16px; border-bottom: 0; color: var(--knopf-text); }

  .kopf { min-height: 0; padding-bottom: 220px; --feld: 0.45; }
  .kopf .rahmen { gap: 40px; }
  .codefeld { top: auto; bottom: -250px; right: -150px; width: 420px; transform: none; }
  .aufruf .knopf { width: 100%; }
  .knopf { font-size: 16.5px; padding-left: 16px; padding-right: 16px; }

  .matrix { grid-template-columns: 1fr; }
  .zelle { display: flex; flex-direction: column; grid-row: auto; }
  .unterstuetzung-grid { grid-template-columns: 1fr; }

  .formular .paar { grid-template-columns: 1fr; }
  .formular .knopf { width: 100%; }
  .faq summary { grid-template-columns: 36px 1fr 20px; font-size: 18px; }
  .faq .antwort { padding: 0 0 22px 44px; }

  .angaben { padding: 4px 20px; }
  .angaben > div { grid-template-columns: 1fr; }
  .datenschutz dl div { grid-template-columns: 1fr; gap: 0; }
  .recht .kurz { padding: 20px; }
  .einwilligung { grid-template-columns: 1fr; grid-template-areas: "titel" "text" "auswahl" "knoepfe"; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
  .einwilligung h2 { font-size: 16px; }
  .einwilligung .ew-text { font-size: 13.5px; line-height: 1.45; }
  .ew-knoepfe { grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
  .ew-knoepfe .knopf { padding: 8px 4px; font-size: 13.5px; }
  .cookie-liste { grid-template-columns: 1fr; }
  .fuss .rahmen { grid-template-columns: 1fr; }
}

@media (max-width: 359px) { .ew-knoepfe .knopf { white-space: normal; line-height: 1.2; } }

@media (min-width: 761px) and (max-width: 1100px) {
  .codefeld { width: 500px; right: -170px; top: 24px; transform: none; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .kopfleiste .rahmen { height: 60px; }
  html { scroll-padding-top: 72px; }
  .menue.offen ul { top: 60px; max-height: calc(100svh - 60px); overflow-y: auto; }
  .menue.offen ul a { padding: 10px 0; font-size: 17px; }
  .kopf { min-height: 0; padding: 24px 0 32px; }
  .kopf .rahmen { gap: 28px; }
  .claim { font-size: 38px; }
  .unterzeile { margin-top: 12px; font-size: 17px; }
  .aufruf { margin-top: 16px; }
}
