/* decalize · Startseite
   Farben, Schriften und Abstände als Variablen. Werte, die später im Regler-Panel
   verschoben werden sollen, stehen im Block „Regler“. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --papier: #f7f8fc;
  --weiss: #ffffff;
  --flaeche: #e4eafb;
  --linie: #d4dbee;
  --tinte: #0f1b3d;
  --leise: #4a5576;
  --kobalt: #2a52e0;
  --kobalt-tief: #1f40b8;
  --mittelblau: #7d9cf5;
  --hellblau: #c8d6fc;
  --auf-dunkel: #ffffff;
  --auf-dunkel-leise: #b9c6ea;
  --auf-kobalt-leise: #dce4ff;
  --fehler: #b3261e;

  --schrift-kopf: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --schrift-text: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  /* Regler */
  --breite: 1240px;
  --rand: clamp(16px, 4vw, 48px);
  --abschnitt: clamp(80px, 10vw, 144px);
  --h1-groesse: clamp(2.5rem, 1.2rem + 3.1vw, 4rem);
  --h2-groesse: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  --h3-groesse: clamp(1.375rem, 1.15rem + .8vw, 1.75rem);
  --text-groesse: 1.0625rem;
  --einstieg-oben: clamp(40px, 4.25vw, 61px);
  --einstieg-abdunklung: 42%;
  --kopf-hoehe: 76px;
  --radius-knopf: 999px;

  --ease-aus: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf-hoehe) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--schrift-text);
  font-size: var(--text-groesse);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--schrift-kopf); font-weight: 700; margin: 0; text-wrap: balance; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
h2 { font-size: var(--h2-groesse); line-height: 1.05; letter-spacing: -0.035em; }
h3 { font-size: var(--h3-groesse); line-height: 1.15; letter-spacing: -0.025em; }
h4 { font-size: 1rem; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--kobalt); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { color: var(--kobalt-tief); }

::selection { background: var(--hellblau); color: var(--tinte); }
.dunkel ::selection, .kobalt ::selection { background: var(--mittelblau); color: var(--tinte); }
:focus-visible { outline: 3px solid var(--kobalt); outline-offset: 3px; border-radius: 2px; }
.dunkel :focus-visible, .kobalt :focus-visible, .fuss :focus-visible { outline-color: var(--auf-dunkel); }
html { scrollbar-color: var(--mittelblau) var(--papier); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--papier); }
::-webkit-scrollbar-thumb { background: var(--mittelblau); border: 3px solid var(--papier); border-radius: 99px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--tinte); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 12px; color: #fff; }

.huelle { width: 100%; max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto; padding: 0 var(--rand); }
.einleitung { font-size: 1.1875rem; line-height: 1.55; color: var(--leise); max-width: 60ch; }
.abschnitt-kopf { display: grid; gap: 20px; margin-bottom: clamp(48px, 6vw, 80px); max-width: 820px; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  border: 0; border-radius: var(--radius-knopf);
  background: var(--kobalt); color: #fff;
  font: 600 1.0625rem/1.2 var(--schrift-text); text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease-aus), transform .25s var(--ease-aus), box-shadow .25s var(--ease-aus);
}
.knopf:hover { background: var(--kobalt-tief); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(42, 82, 224, .7); }
.knopf:active { transform: translateY(0); box-shadow: none; }
.knopf-rahmen { background: transparent; color: var(--tinte); box-shadow: inset 0 0 0 2px var(--tinte); }
.knopf-rahmen:hover { background: var(--tinte); color: #fff; box-shadow: inset 0 0 0 2px var(--tinte); }
.knopf-klein { min-height: 44px; padding: 10px 20px; font-size: 1rem; }
.knopf-weiss { background: #fff; color: var(--tinte); }
.knopf-weiss:hover { background: var(--hellblau); color: var(--tinte); box-shadow: 0 10px 24px -12px rgba(15, 27, 61, .6); }
.knopf[disabled] { opacity: .6; cursor: progress; transform: none; }
.pfeil-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.pfeil-link::after { content: ""; width: 18px; height: 2px; background: currentColor; transition: width .25s var(--ease-aus); }
.pfeil-link:hover::after { width: 30px; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 50; background: rgba(247, 248, 252, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.kopf.ist-gescrollt { border-bottom-color: var(--linie); }
.kopf-innen { max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto; padding: 0 var(--rand); height: var(--kopf-hoehe); display: flex; align-items: center; gap: 24px; }
.kopf-logo { margin-right: auto; display: block; }
.kopf-logo img { height: 30px; width: auto; }
.hauptnav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 36px); }
.hauptnav a:not(.knopf) { color: var(--tinte); text-decoration: none; font-weight: 600; position: relative; padding: 6px 0; }
.hauptnav a:not(.knopf)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--kobalt); transition: right .3s var(--ease-aus); }
.hauptnav a:not(.knopf):hover::after, .hauptnav a.ist-aktiv::after { right: 0; }
.menue-knopf { display: none; }

/* Einstieg */
.einstieg { padding-top: var(--einstieg-oben); overflow: clip; color: #fff; background-color: var(--tinte);
  background-image: linear-gradient(90deg, rgb(15 27 61 / calc(var(--einstieg-abdunklung) + 30%)) 0%, rgb(15 27 61 / calc(var(--einstieg-abdunklung) + 22%)) 55%, rgb(15 27 61 / calc(var(--einstieg-abdunklung) - 22%)) 100%), url("../img/einstieg-hg-1920.jpg");
  background-image: linear-gradient(90deg, rgb(15 27 61 / calc(var(--einstieg-abdunklung) + 30%)) 0%, rgb(15 27 61 / calc(var(--einstieg-abdunklung) + 22%)) 55%, rgb(15 27 61 / calc(var(--einstieg-abdunklung) - 22%)) 100%), image-set(url("../img/einstieg-hg-1920.webp") type("image/webp"), url("../img/einstieg-hg-1920.jpg") type("image/jpeg"));
  background-size: cover; background-position: 30% 50%; }
.einstieg-text { max-width: 860px; }
.einstieg h1 { font-size: var(--h1-groesse); line-height: 1.0; letter-spacing: -0.04em; hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; }
.einstieg h1 { color: #fff; }
.einstieg h1 span { display: block; color: var(--hellblau); }
.einstieg-unterzeile { margin-top: 24px; font-size: 1.25rem; line-height: 1.55; color: var(--leise); max-width: 54ch; }
.einstieg .einstieg-unterzeile { color: #e3e9fb; }
.einstieg .knopf-rahmen { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.einstieg .knopf-rahmen:hover { background: #fff; color: var(--tinte); }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.einstieg-beleg { margin-top: 24px; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .9375rem; color: #fff; }
.einstieg-beleg::before { content: ""; width: 12px; height: 12px; background: var(--hellblau); flex: none; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 100%, 50% 50%, 0 50%); }

.bereichsleiste { margin-top: clamp(40px, 4vw, 56px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid rgba(255, 255, 255, .85); }
.bereichsleiste li + li { border-left: 1px solid rgba(200, 214, 252, .22); }
.bereichsleiste a { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; padding: 22px 24px 32px; color: #fff; text-decoration: none; height: 100%; transition: background-color .3s var(--ease-aus); }
.bereichsleiste li:first-child a { padding-left: 0; }
.bereichsleiste a:hover { background: rgba(255, 255, 255, .06); }
.bereichsleiste li:first-child a:hover { padding-left: 0; background: none; }
.bl-nr { grid-row: span 2; font-family: var(--schrift-kopf); font-weight: 700; color: var(--hellblau); font-size: 1rem; padding-top: 3px; font-variant-numeric: tabular-nums; }
.bl-name { font-family: var(--schrift-kopf); font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.02em; line-height: 1.25; }
.bl-sub { color: var(--auf-dunkel-leise); font-size: .9375rem; }
.bereichsleiste a:hover .bl-name { color: var(--hellblau); }

/* Wiedererkennung */
.wiedererkennung { padding: var(--abschnitt) 0; background: var(--weiss); margin-top: -2px; }
.wieder-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.wieder-kopf { position: sticky; top: calc(var(--kopf-hoehe) + 40px); display: grid; gap: 20px; justify-items: start; }
.wieder-schluss { margin-top: 12px; font-family: var(--schrift-kopf); font-weight: 700; font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.02em; color: var(--kobalt); max-width: 22ch; }
.wieder-liste { counter-reset: w; border-top: 1px solid var(--linie); }
.wieder-liste li { position: relative; padding: 24px 0 24px 48px; border-bottom: 1px solid var(--linie); font-size: 1.1875rem; line-height: 1.5; }
.wieder-liste li::before {
  content: ""; position: absolute; left: 0; top: 31px; width: 18px; height: 18px; background: var(--kobalt);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 100%, 50% 50%, 0 50%);
}

/* Dunkle Abschnitte */
.dunkel { background: var(--tinte); color: var(--auf-dunkel); }
.dunkel .einleitung { color: var(--auf-dunkel-leise); }
.dunkel a { color: var(--hellblau); }
.dunkel a:hover { color: #fff; }

/* Leistungen */
.leistungen { padding: var(--abschnitt) 0; position: relative; overflow: clip; }
.leistungen::before { --ecke: clamp(180px, 20vw, 300px); content: ""; position: absolute; top: clamp(40px, 5vw, 72px); right: calc(max(var(--rand), (100vw - var(--breite)) / 2) - var(--ecke) * .0625); width: var(--ecke); aspect-ratio: 1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpolygon fill='%231a2c5e' points='6,12 38,12 38,20 14,20 14,52 46,52 46,28 54,28 54,60 6,60'/%3E%3Cpolygon fill='%232a52e0' points='44,4 60,4 60,20 52,20 52,12 44,12'/%3E%3C/svg%3E") no-repeat center / contain; pointer-events: none; }
.leistungen .huelle { position: relative; z-index: 1; }
.bereich { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 64px); padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid rgba(200, 214, 252, .22); }
.bereich:last-child { padding-bottom: 0; }
.bereich-name { position: relative; }
.bereich-nr { display: block; font-family: var(--schrift-kopf); font-weight: 700; font-size: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); line-height: .9; letter-spacing: -0.05em; color: #fff; margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.bereich-sub { margin-top: 10px; color: var(--auf-dunkel-leise); }
.bereich-mitte { display: grid; gap: 18px; align-content: start; }
.bereich-mitte p { color: var(--auf-dunkel-leise); }
.bereich-mitte .leitfrage { font-family: var(--schrift-kopf); font-weight: 600; font-size: 1.5rem; line-height: 1.3; letter-spacing: -0.02em; color: var(--auf-dunkel); }
.bereich-links { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.bereich-liste { display: grid; gap: 0; align-content: start; }
.bereich-liste li { padding: 12px 0; border-bottom: 1px solid rgba(200, 214, 252, .22); }
.bereich-liste li:first-child { padding-top: 4px; }

/* Was decalize ausmacht */
.ausmacht { padding: var(--abschnitt) 0; }
.ausmacht h2 { max-width: 18ch; margin-bottom: clamp(48px, 6vw, 80px); }
.ausmacht-raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.am-block { grid-column: span 4; display: grid; gap: 14px; align-content: start; padding-top: 24px; border-top: 2px solid var(--tinte); }
.am-block p { color: var(--leise); }
.am-neutral { grid-column: span 8; grid-row: span 2; position: relative; background: var(--kobalt); color: #fff; border-top: 0; padding: clamp(32px, 4vw, 56px); align-content: end; min-height: 360px; }
.am-neutral h3 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); letter-spacing: -0.035em; }
.am-neutral p { color: var(--auf-kobalt-leise); font-size: 1.1875rem; max-width: 46ch; }
.am-ecke { position: absolute; top: clamp(24px, 3vw, 40px); right: clamp(24px, 3vw, 40px); width: clamp(72px, 9vw, 120px); height: auto; fill: #fff; }
.am-ecke .am-ecke-block { fill: var(--hellblau); }
.am-jahre { grid-column: span 12; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 32px; }
.am-jahre .am-zahl { grid-row: span 2; font-family: var(--schrift-kopf); font-weight: 700; font-size: clamp(6rem, 4rem + 8vw, 11rem); line-height: .8; letter-spacing: -0.06em; color: var(--kobalt); }
.am-jahre p:last-child { max-width: 60ch; }

/* Ablauf */
.kobalt { background: var(--kobalt); color: #fff; }
.kobalt .einleitung { color: var(--auf-kobalt-leise); }
.ablauf { padding: var(--abschnitt) 0; position: relative; overflow: clip; }
.ablauf::after { --ecke: clamp(140px, 15vw, 220px); content: ""; position: absolute; right: calc(max(var(--rand), (100vw - var(--breite)) / 2) - var(--ecke) * .0625); top: clamp(24px, 3vw, 48px); width: var(--ecke); aspect-ratio: 1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpolygon fill='%231f40b8' points='6,12 38,12 38,20 14,20 14,52 46,52 46,28 54,28 54,60 6,60'/%3E%3Cpolygon fill='%23c8d6fc' points='44,4 60,4 60,20 52,20 52,12 44,12'/%3E%3C/svg%3E") no-repeat center / contain; pointer-events: none; }
.ablauf .huelle { position: relative; z-index: 1; }
.strecke { --fuellung: 0; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-bottom: clamp(48px, 6vw, 72px); padding-top: 32px; }
.strecke::before, .strecke::after { content: ""; position: absolute; top: 59px; left: 28px; right: 28px; height: 3px; }
.strecke::before { background: rgba(255, 255, 255, .3); }
.strecke::after { background: #fff; transform-origin: left; transform: scaleX(var(--fuellung)); }
.schritt { position: relative; display: grid; gap: 14px; align-content: start; }
.schritt-nr { position: relative; z-index: 1; width: 56px; height: 56px; display: grid; place-items: center; background: #fff; color: var(--kobalt); font-family: var(--schrift-kopf); font-weight: 700; font-size: 1.5rem; margin-bottom: 14px; transition: background-color .4s var(--ease-aus), color .4s var(--ease-aus); }
.schritt p { color: var(--auf-kobalt-leise); max-width: 38ch; }

/* Projekte */
.projekte { padding: var(--abschnitt) 0; background: var(--weiss); }
.projekt { border-top: 2px solid var(--tinte); padding: 32px 0 clamp(56px, 6vw, 88px); }
.projekt:last-child { padding-bottom: 0; }
.projekt-kopf { display: grid; gap: 14px; justify-items: start; margin-bottom: 32px; }
.projekt-kopf h3 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); letter-spacing: -0.035em; }
.projekt-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.projekt-meta span { font-size: .875rem; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: var(--flaeche); color: var(--tinte); }
.projekt-meta span:first-child { background: var(--tinte); color: #fff; }
.projekt-teile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); }
.projekt-teile h4 { margin-bottom: 14px; font-size: 1.0625rem; }
.projekt-teile p, .projekt-teile li { color: var(--leise); }
.pt-vor li { position: relative; padding: 7px 0 7px 22px; border-bottom: 1px solid var(--linie); line-height: 1.45; }
.pt-vor li::before { content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 8px; background: var(--mittelblau); }
.pt-erg { background: var(--flaeche); padding: 28px; align-self: start; position: relative; }
.pt-erg::before { content: ""; position: absolute; right: 0; top: 0; width: 28px; height: 28px; background: var(--kobalt); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 100%, 50% 50%, 0 50%); }
.pt-erg h4 { color: var(--kobalt); }
.pt-erg p { color: var(--tinte); }

/* Fragen */
.fragen { padding: var(--abschnitt) 0; }
.fragen-raster { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.fragen-kopf { position: sticky; top: calc(var(--kopf-hoehe) + 40px); display: grid; gap: 20px; }
.fragen-liste { border-top: 2px solid var(--tinte); }
.fragen-liste details { border-bottom: 1px solid var(--linie); }
.fragen-liste summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-family: var(--schrift-kopf); font-weight: 600; font-size: 1.25rem; line-height: 1.35; letter-spacing: -0.015em; }
.fragen-liste summary::-webkit-details-marker { display: none; }
.fragen-liste summary::after { content: ""; flex: none; width: 16px; height: 16px; background: var(--kobalt); clip-path: polygon(40% 0, 60% 0, 60% 40%, 100% 40%, 100% 60%, 60% 60%, 60% 100%, 40% 100%, 40% 60%, 0 60%, 0 40%, 40% 40%); transition: transform .3s var(--ease-aus); }
.fragen-liste details[open] summary::after { transform: rotate(45deg); }
.fragen-liste summary:hover { color: var(--kobalt); }
.fragen-liste details p { padding: 0 48px 26px 0; color: var(--leise); max-width: 68ch; }

/* Anfrage */
.anfrage { padding: var(--abschnitt) 0; }
.anfrage-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.anfrage-text { display: grid; gap: 24px; position: sticky; top: calc(var(--kopf-hoehe) + 40px); }
.direkt { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 16px 0 0; padding-top: 24px; border-top: 1px solid rgba(200, 214, 252, .22); }
.direkt dt { color: var(--auf-dunkel-leise); }
.direkt dd { margin: 0; font-weight: 600; }
.direkt a { color: #fff; text-decoration: none; }
.direkt a:hover { text-decoration: underline; }
.formular-flaeche { background: var(--weiss); color: var(--tinte); padding: clamp(24px, 4vw, 48px); position: relative; }
.formular-flaeche::before { content: ""; position: absolute; right: -14px; top: -14px; width: 56px; height: 56px; background: var(--kobalt); clip-path: polygon(0 0, 100% 0, 100% 100%, 75% 100%, 75% 25%, 0 25%); }
.formular-flaeche a { color: var(--kobalt); }
#inquiry-form { display: grid; gap: 20px; }
.feld-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 600; font-size: .9375rem; }
.optional { font-weight: 400; color: var(--leise); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--tinte);
  background: var(--papier); border: 1.5px solid var(--linie); border-radius: 6px;
  padding: 12px 14px; min-height: 50px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230f1b3d' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--mittelblau); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--kobalt); background: #fff; box-shadow: 0 0 0 3px rgba(42, 82, 224, .18); }
.field-hint { font-size: .875rem; color: var(--leise); }
.field-error { display: none; font-size: .875rem; font-weight: 600; color: var(--fehler); }
.field.has-error .field-error { display: block; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--fehler); background: #fff; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-weight: 400 !important; font-size: .9375rem; line-height: 1.5; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; min-height: 0; padding: 0; margin: 1px 0 0; border: 1.5px solid var(--leise); border-radius: 4px; background: #fff; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--kobalt); border-color: var(--kobalt); }
.check input:checked::after { content: ""; width: 11px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.field-check.has-error .check input { border-color: var(--fehler); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.knopf-senden { justify-self: start; min-width: 220px; }
.form-status { font-size: .9375rem; }
.form-status.is-error { color: var(--fehler); font-weight: 600; }
#form-wrap.is-sent form { display: none; }
.form-erfolg { display: grid; gap: 16px; justify-items: start; padding: 24px 0; }
.form-erfolg[hidden] { display: none; }
.form-erfolg:focus { outline: none; }
.form-erfolg svg { width: 64px; height: 64px; fill: var(--tinte); }
.form-erfolg .fe-block { fill: var(--kobalt); }
.form-erfolg p { color: var(--leise); }

/* Fuß */
.fuss { background: #0a1430; color: var(--auf-dunkel-leise); padding: 56px 0 40px; font-size: .9375rem; }
.fuss-raster { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr auto; gap: 24px 40px; align-items: end; }
.fuss img { height: 28px; width: auto; margin-bottom: 14px; }
.fuss a { color: #fff; text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss-nav { display: flex; gap: 24px; }

/* Bewegung: Die Ecke setzt sich beim Laden zusammen */
@media (prefers-reduced-motion: no-preference) {
  .js .strecke::after { transition: transform 1.4s var(--ease-aus); }
  .js .schritt-nr { transition-delay: calc(var(--i, 0) * 0.35s); }
  .js .einstieg-text > * { animation: hoch .9s var(--ease-aus) both; }
  .js .einstieg-text > :nth-child(2) { animation-delay: .08s; }
  .js .einstieg-text > :nth-child(3) { animation-delay: .16s; }
  .js .einstieg-text > :nth-child(4) { animation-delay: .24s; }
}
@keyframes hoch { from { transform: translateY(16px); opacity: 0; } }
.strecke.ist-sichtbar .schritt-nr { background: var(--tinte); color: #fff; }

/* Tablet */
@media (max-width: 1080px) {
  .bereich { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bereich-name { grid-column: 1 / -1; }
  .projekt-teile { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pt-erg { grid-column: 1 / -1; }
  .fuss-raster { grid-template-columns: 1fr 1fr; }
}

/* Handy */
@media (max-width: 860px) {
  :root { --kopf-hoehe: 64px; --h1-groesse: clamp(1.875rem, 8.2vw, 2.5rem); }
  .ablauf::after, .leistungen::before { display: none; }
  .menue-knopf { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; background: none; border: 0; font: 600 1rem var(--schrift-text); color: var(--tinte); cursor: pointer; }
  .menue-linien, .menue-linien::before, .menue-linien::after { display: block; width: 22px; height: 2px; background: var(--tinte); position: relative; transition: transform .3s var(--ease-aus), background-color .2s; }
  .menue-linien::before, .menue-linien::after { content: ""; position: absolute; left: 0; }
  .menue-linien::before { top: -7px; } .menue-linien::after { top: 7px; }
  .menue-knopf[aria-expanded="true"] .menue-linien { background: transparent; }
  .menue-knopf[aria-expanded="true"] .menue-linien::before { transform: translateY(7px) rotate(45deg); }
  .menue-knopf[aria-expanded="true"] .menue-linien::after { transform: translateY(-7px) rotate(-45deg); }
  .hauptnav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--rand) 24px; background: var(--papier); border-bottom: 1px solid var(--linie); display: none; }
  .hauptnav.ist-offen { display: flex; }
  .hauptnav a:not(.knopf) { padding: 14px 0; border-bottom: 1px solid var(--linie); font-size: 1.125rem; }
  .hauptnav a:not(.knopf)::after { display: none; }
  .hauptnav .knopf { margin-top: 20px; }

  .einstieg-raster, .wieder-raster, .fragen-raster, .anfrage-raster { grid-template-columns: minmax(0, 1fr); }
  .einstieg-unterzeile { font-size: 1.125rem; }
  .knoepfe .knopf { flex: 1 1 100%; }
  .bereichsleiste { grid-template-columns: minmax(0, 1fr); }
  .bereichsleiste li + li { border-left: 0; border-top: 1px solid rgba(200, 214, 252, .22); }
  .einstieg { background-position: 25% 50%;
    background-image: linear-gradient(rgb(15 27 61 / calc(var(--einstieg-abdunklung) + 26%)), rgb(15 27 61 / calc(var(--einstieg-abdunklung) + 26%))), url("../img/einstieg-hg-900.jpg");
    background-image: linear-gradient(rgb(15 27 61 / calc(var(--einstieg-abdunklung) + 26%)), rgb(15 27 61 / calc(var(--einstieg-abdunklung) + 26%))), image-set(url("../img/einstieg-hg-900.webp") type("image/webp"), url("../img/einstieg-hg-900.jpg") type("image/jpeg")); }
  .bereichsleiste a, .bereichsleiste li:first-child a { padding: 18px 0; }
  .bereichsleiste a:hover { background: none; }
  .wieder-kopf, .fragen-kopf, .anfrage-text { position: static; }
  .wieder-liste li { font-size: 1.0625rem; padding-left: 36px; }
  .bereich { grid-template-columns: minmax(0, 1fr); }
  .ausmacht-raster { grid-template-columns: minmax(0, 1fr); }
  .am-block, .am-neutral, .am-jahre { grid-column: auto; grid-row: auto; }
  .am-neutral { min-height: 0; padding-top: 120px; }
  .am-jahre { grid-template-columns: minmax(0, 1fr); }
  .am-jahre .am-zahl { grid-row: auto; }
  .strecke { grid-template-columns: minmax(0, 1fr); padding-top: 0; padding-left: 0; gap: 36px; }
  .strecke::before, .strecke::after { top: 28px; bottom: 28px; left: 27px; right: auto; width: 3px; height: auto; }
  .strecke::after { transform-origin: top; transform: scaleY(var(--fuellung)); }
  .schritt { grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; }
  .schritt-nr { grid-row: span 2; margin-bottom: 0; }
  .ablauf .knopf-weiss { width: 100%; }
  .projekt-teile { grid-template-columns: minmax(0, 1fr); }
  .pt-erg { padding: 24px; }
  .fragen-liste summary { font-size: 1.125rem; }
  .fragen-liste details p { padding-right: 0; }
  .feld-zeile { grid-template-columns: minmax(0, 1fr); }
  .knopf-senden { width: 100%; }
  .formular-flaeche::before { right: -6px; top: -6px; width: 40px; height: 40px; }
  .fuss-raster { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

/* Rechtliche Seiten */
.rechtliches { padding: clamp(56px, 8vw, 120px) 0 var(--abschnitt); min-height: 60vh; }
.rechtliches h1 { font-size: var(--h2-groesse); letter-spacing: -0.035em; margin-bottom: 24px; }
.rechtliches .einleitung { margin-bottom: 32px; }
.recht-text > * { max-width: 72ch; }
.recht-text h2 { font-size: var(--h3-groesse); letter-spacing: -0.025em; margin: 48px 0 14px; }
.recht-text h3 { font-size: 1.1875rem; letter-spacing: -0.02em; margin: 28px 0 10px; }
.recht-text p + p, .recht-text ul + p, .recht-text p + ul { margin-top: 14px; }
.recht-text ul { list-style: disc; padding-left: 1.25em; display: grid; gap: 4px; }
.recht-text dl { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 10px 24px; padding-top: 4px; }
.recht-text dt { font-weight: 600; }
.recht-text a:not(.pfeil-link) { color: var(--kobalt); }
.recht-text > p:last-child { margin-top: 48px; }
@media (max-width: 600px) { .recht-text dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .recht-text dd { margin-bottom: 12px; } }
.dunkel .formular-flaeche a:hover { color: var(--kobalt-tief); }
