/* ============================================================
   dominik-strempel.de – Website (Vorschau, Redesign 09/2026)
   Farbwelt wie die Portale: Grund #f3f5f3, Flächen weiß, Linien #e6ebe7,
   Markengrün #254436. Beige nur in der Bildmarke auf Grün.
   Alles ist unter .ds-web gekapselt, damit nichts in die Portale greift.
   ============================================================ */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

.ds-web {
  /* Farben (Portal-Welt) */
  --gruen: #254436;
  --gruen-tief: #1b3228;
  --gruen-zart: #e3efe8;
  --gruen-haken: #2e7d57;
  --grund: #f3f5f3;
  --grund-alt: #e9eeea;
  --flaeche: #ffffff;
  --linie: #e6ebe7;
  --linie-kraeftig: #d3ddd6;
  --text: #1c271f;
  --neben: #5f6a62;          /* etwas dunkler als #6a756d: besteht AA auch auf dem Grund */
  --auf-gruen: #b6c7bb;      /* Nebentext auf Grün, 6:1 */
  --beige: #e8e1d4;

  /* Tiefe (wie Portal) */
  --schatten-s: 0 1px 2px rgba(20, 28, 24, .04), 0 6px 18px rgba(20, 28, 24, .05);
  --schatten: 0 10px 34px rgba(20, 28, 24, .10);
  --schatten-l: 0 30px 60px -28px rgba(20, 28, 24, .32), 0 10px 24px -14px rgba(20, 28, 24, .12);

  /* Formen */
  --r-s: 10px;
  --r: 12px;
  --r-l: 20px;
  --r-pille: 999px;

  /* Schrift */
  --font-kopf: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Raster */
  --rahmen-breite: 1180px;
  --rand: clamp(1.25rem, .6rem + 2.6vw, 2.5rem);
  --abschnitt: clamp(4.5rem, 3rem + 6vw, 8rem);
  --kopf-h: 72px;

  /* Bewegung */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);

  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--gruen);
  accent-color: var(--gruen);
  scrollbar-color: #c3cfc7 var(--grund);
}

html:has(> body.ds-web) {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--kopf-h, 72px) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html:has(> body.ds-web) { scroll-behavior: auto; }
}

.ds-web *,
.ds-web *::before,
.ds-web *::after { box-sizing: border-box; }

.ds-web ::selection { background: var(--gruen-zart); color: var(--text); }
.ds-web img { max-width: 100%; height: auto; }

.ds-web :where(h1, h2, h3, h4) {
  font-family: var(--font-kopf);
  color: var(--gruen);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -.022em;
  margin: 0;
  text-wrap: balance;
}
.ds-web :where(p) { margin: 0; text-wrap: pretty; }
.ds-web :where(a) {
  color: var(--gruen);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color .15s ease, color .15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .ds-web :where(a):hover { text-decoration-color: currentColor; }
}
.ds-web :focus-visible {
  outline: 3px solid var(--gruen);
  outline-offset: 3px;
  border-radius: 6px;
}

.ds-web .sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ds-web .sprunglink {
  position: fixed; left: 1rem; top: .75rem; z-index: 100;
  padding: .7rem 1rem; border-radius: var(--r-pille);
  background: var(--gruen); color: #fff; font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s var(--ease-out);
}
.ds-web .sprunglink:focus-visible { transform: none; outline-color: var(--gruen-tief); }

.rahmen {
  width: min(100% - 2 * var(--rand), var(--rahmen-breite));
  margin-inline: auto;
}

/* ---------- Knöpfe (Pille wie im Portal) ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: 0 1.3rem;
  border: 1px solid transparent; border-radius: var(--r-pille);
  font: 600 .98rem/1.1 var(--font-text);
  letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .16s var(--ease-out);
}
.knopf svg {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s var(--ease-out);
}
.knopf:active { transform: scale(.97); }
.knopf--gross { min-height: 52px; padding: 0 1.6rem; font-size: 1.02rem; }
.knopf--breit { width: 100%; }
.knopf--gruen { background: var(--gruen); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 8px 20px -10px rgba(37, 68, 54, .55); }
.knopf--linie { background: var(--flaeche); color: var(--gruen); border-color: var(--linie-kraeftig); }
.knopf[disabled] { opacity: .6; cursor: progress; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .knopf--gruen:hover { background: var(--gruen-tief); }
  .knopf--gruen:hover svg { transform: translateX(3px); }
  .knopf--linie:hover { background: var(--gruen-zart); border-color: #bfd2c5; }
}

.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  width: fit-content;
  padding: .28rem .7rem;
  border-radius: var(--r-pille);
  background: var(--grund);
  border: 1px solid var(--linie);
  color: var(--neben);
  font-size: .8rem; font-weight: 600; line-height: 1.3;
  white-space: nowrap;
}
.chip--gruen { background: var(--gruen-zart); border-color: #cfe0d5; color: var(--gruen); }

/* ---------- WordPress-Hülle neutralisieren (Block-Abstände, Seitenrand, Adminleiste) ---------- */
.ds-web .wp-site-blocks { padding-top: 0; padding-bottom: 0; }
.ds-web .wp-site-blocks > * { margin-block: 0; }
.ds-web .legal-page > *,
.ds-web .legal-page__head > * { margin-block-start: 0; }
.ds-web .legal-page__head .legal-page__zurueck { margin-bottom: 1.25rem; }
.ds-web .legal-page__head { margin-bottom: 1.75rem; }
html:has(> body.ds-web.admin-bar) { scroll-padding-top: calc(var(--kopf-h, 72px) + 48px); }

/* ============================================================
   Kopf
   ============================================================ */
header:has(> .kopf) {
  position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50;
  margin: 0;
}
.kopf {
  background: rgba(243, 245, 243, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.kopf.ist-gescrollt {
  border-bottom-color: var(--linie);
  box-shadow: 0 10px 30px -24px rgba(20, 28, 24, .35);
}
.kopf__innen {
  display: flex; align-items: center; gap: 1.5rem;
  height: var(--kopf-h);
}

.marke {
  display: inline-flex; align-items: center; gap: .7rem;
  margin-right: auto;
  color: var(--text); text-decoration: none;
  border-radius: 8px;
}
.marke__kachel {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: linear-gradient(180deg, #29503d 0%, #1f3c2e 100%);
  box-shadow: 0 6px 16px rgba(31, 60, 46, .22);
}
.marke__kachel img { width: 29px; height: 29px; object-fit: contain; }
.marke__kachel--klein { width: 24px; height: 24px; border-radius: 8px; box-shadow: 0 2px 6px rgba(31, 60, 46, .2); }
.marke__kachel--klein img { width: 16px; height: 16px; }
.marke--hell .marke__kachel { background: rgba(255, 255, 255, .1); box-shadow: none; }
.marke__text { display: flex; flex-direction: column; line-height: 1.15; }
.marke__text strong {
  font-family: var(--font-kopf); font-weight: 650; font-size: 1.04rem;
  color: var(--gruen); letter-spacing: -.012em;
}
.marke__text span { font-size: .8rem; color: var(--neben); }

.kopf__nav { display: flex; align-items: center; gap: 1.25rem; }
.kopf__links { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.kopf__links a {
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 0 .85rem;
  border-radius: var(--r-pille);
  color: var(--text); text-decoration: none;
  font-size: .95rem; font-weight: 500;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.kopf__links a[aria-current="true"] {
  color: var(--gruen);
  background: var(--flaeche);
  box-shadow: inset 0 0 0 1px var(--linie);
}
.kopf__aktionen { display: flex; align-items: center; gap: .4rem; }
.kopf__login {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 40px; padding: 0 .85rem;
  border-radius: var(--r-pille);
  color: var(--text); text-decoration: none;
  font-size: .95rem; font-weight: 500;
  transition: background-color .15s ease, color .15s ease;
}
.kopf__login svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
}
.kopf .knopf { min-height: 42px; padding: 0 1.1rem; font-size: .93rem; }
.kopf__aktionen .knopf { display: none; } /* „Erstgespräch anfragen“ raus aus der Kopfzeile (28.09.2026, Dominik) – Markup bleibt, falls er zurück soll */
@media (hover: hover) and (pointer: fine) {
  .kopf__links a:hover,
  .kopf__login:hover { background: var(--gruen-zart); color: var(--gruen); }
}

.kopf__burger {
  display: none;
  width: 44px; height: 44px; padding: 0;
  align-items: center; justify-content: center;
  border: 1px solid var(--linie); border-radius: 12px;
  background: var(--flaeche); color: var(--gruen);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .16s var(--ease-out), background-color .15s ease;
}
.kopf__burger:active { transform: scale(.95); }
.kopf__burger svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
  overflow: visible;
}
.kopf__burger .strich {
  transform-box: fill-box; transform-origin: center;
  transition: transform .22s var(--ease-out);
}
.kopf__burger[aria-expanded="true"] .strich--1 { transform: translateY(4px) rotate(45deg); }
.kopf__burger[aria-expanded="true"] .strich--2 { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 960px) {
  .ds-web { --kopf-h: 64px; }
  .kopf__burger { display: inline-flex; }
  .kopf__nav {
    position: fixed; left: 0; right: 0; top: var(--kopf-h);
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: .75rem var(--rand) 1.5rem;
    background: var(--flaeche);
    border-bottom: 1px solid var(--linie);
    box-shadow: 0 24px 40px -24px rgba(20, 28, 24, .35);
    max-height: calc(100dvh - var(--kopf-h));
    overflow-y: auto;
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility 0s linear .2s;
  }
  .kopf__nav.ist-offen {
    opacity: 1; transform: none; visibility: visible;
    transition-delay: 0s;
    box-shadow: 0 24px 40px -24px rgba(20, 28, 24, .35), 0 0 0 100vmax rgba(20, 28, 24, .28);
    clip-path: inset(0 0 -100vmax 0);
  }
  .kopf__links { flex-direction: column; gap: 0; }
  .kopf__links li + li { border-top: 1px solid var(--linie); }
  .kopf__links a {
    display: flex; min-height: 54px; padding: 0 .25rem;
    border-radius: 0; font-size: 1.08rem;
  }
  .kopf__links a[aria-current="true"] { background: none; box-shadow: none; }
  .kopf__aktionen { flex-direction: column; align-items: stretch; gap: .5rem; }
  .kopf__aktionen .knopf { min-height: 52px; font-size: 1rem; order: -1; }
  .kopf__login { justify-content: center; min-height: 48px; border: 1px solid var(--linie); }
}
@media (max-width: 380px) {
  .marke__text span { display: none; }
}

/* ============================================================
   Einstieg
   ============================================================ */
.held {
  padding-block: clamp(2.25rem, 1rem + 4.5vw, 5.5rem) clamp(4rem, 2.5rem + 5vw, 7rem);
}
/* Seit 27.09.2026 ohne Foto im Einstieg (Dominik: „oben erstmal nur der Text“) – das Foto steht groß bei „Über mich“.
   Figur und Stile bleiben im Markup/CSS, damit es sich mit einer Zeile zurückholen lässt. */
.held__raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
.held__text { max-width: 54rem; }
.held h1 {
  font-size: clamp(2.3rem, 1.25rem + 3.7vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -.033em;
  font-weight: 650;
  max-width: 21ch;
}
.held__einleitung {
  margin-top: 1.4rem;
  max-width: 35em;
  font-size: clamp(1.07rem, 1rem + .3vw, 1.22rem);
  line-height: 1.6;
  color: var(--neben);
}
.held__aktionen {
  display: flex; flex-wrap: wrap; gap: .7rem;
  margin-top: 2rem;
}
.held__fakten {
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem;
  margin: 2.4rem 0 0; padding: 1.3rem 0 0;
  border-top: 1px solid var(--linie);
  list-style: none;
  font-size: .93rem; font-weight: 500;
  color: var(--text);
}
.held__fakten li { display: inline-flex; align-items: center; gap: .45rem; }
.held__fakten svg {
  width: 17px; height: 17px; flex: none;
  fill: none; stroke: var(--gruen-haken); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}

.held__person { display: none; }
.held__bild { display: none !important; }

/* Einstieg zentriert auf Grün (28.09.2026, Dominik: „ähnlich wie im Bild“) – großer Satz, ein kurzer Satz,
   zwei Knöpfe, darunter drei Fakten (dort kommen später die Bewertungen hin). Füllt den ganzen Bildschirm und
   liegt unter der Kopfzeile: oben ist die Kopfzeile durchsichtig mit heller Schrift, beim Scrollen wird sie hell. */
.held {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  margin-top: calc(-1 * var(--kopf-h) - 1px);
  min-height: 100vh;
  min-height: calc(100svh - var(--wp-admin--admin-bar--height, 0px));
  padding-block: calc(var(--kopf-h) + clamp(2.5rem, 1.5rem + 3vw, 4.5rem)) clamp(5rem, 3.5rem + 4vw, 7rem);
  background:
    radial-gradient(65% 85% at 10% -5%, rgba(126, 176, 146, .30) 0%, rgba(126, 176, 146, 0) 62%),
    radial-gradient(55% 70% at 92% 8%, rgba(232, 225, 212, .10) 0%, rgba(232, 225, 212, 0) 60%),
    radial-gradient(70% 80% at 100% 105%, rgba(8, 20, 14, .6) 0%, rgba(8, 20, 14, 0) 65%),
    var(--gruen);
  color: #fff;
  text-align: center;
}
#leistungen { scroll-margin-top: -16px; } /* hebt die 16 px Luft aus scroll-padding-top auf – sonst blitzt oben ein Streifen Grün */
.held > .rahmen { flex: none; } /* Rahmen behält seine Breite mit Seitenabstand – min(100% - 2 × Rand, …) */
.held .held__text { max-width: 74rem; margin-inline: auto; }
.held h1 { max-width: none; color: #fff; font-size: clamp(2.3rem, 1rem + 3.4vw, 4.15rem); line-height: 1.08; letter-spacing: -.035em; }
.held .held__einleitung { max-width: 40em; margin: 1.5rem auto 0; color: var(--auf-gruen); }
.held .held__aktionen { justify-content: center; gap: .8rem; margin-top: 2.4rem; }
.held :focus-visible { outline-color: var(--beige); }
/* Knöpfe: Erstgespräch im typischen Grau ohne Pfeil (28.09.2026, Dominik) / Glas mit Pfeil nach unten */
.held .knopf--gruen {
  min-height: 60px; padding: 0 1.9rem;
  background: var(--grund); color: var(--gruen);
  font-size: 1.05rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 20px 40px -18px rgba(0, 0, 0, .6);
}
.held .knopf--linie {
  min-height: 60px; padding: 0 1.5rem 0 1.7rem; gap: .6rem;
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
  font-size: 1.05rem;
}
.held .knopf--linie::after {
  content: ""; width: 18px; height: 18px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .8;
  transition: transform .2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .held .knopf--gruen:hover { background: #fff; }
  .held .knopf--linie:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .4); }
  .held .knopf--linie:hover::after { transform: translateY(2px); }
}
.held .held__fakten { justify-content: center; width: fit-content; margin: 2.8rem auto 0; padding-top: 1.4rem; border-top-color: rgba(255, 255, 255, .14); color: #e3efe8; }
.held .held__fakten svg { stroke: #9fd3b4; }
/* Pfeil unten: es geht weiter */
.held__weiter {
  position: absolute; left: 50%; bottom: clamp(1.1rem, .6rem + 1.5vw, 2rem);
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-left: -22px;
  border-radius: 50%;
  color: rgba(255, 255, 255, .75);
  border: 1px solid rgba(255, 255, 255, .2);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.held__weiter svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
  .held__weiter:hover { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); }
}
html.bewegt .held__weiter svg { animation: weiterWippen 2.4s var(--ease-in-out) 1.6s infinite; }
@keyframes weiterWippen { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(4px); } }
@media (max-width: 520px) {
  .held__weiter { display: none; }
}

/* Kopfzeile über dem Einstieg: durchsichtig, helle Schrift – bis zum ersten Scrollen bzw. solange das Handy-Menü zu ist */
body:has(.held) .kopf:not(.ist-gescrollt):not(:has(.kopf__nav.ist-offen)) {
  background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: none; border-bottom-color: transparent;
}
body:has(.held) .kopf:not(.ist-gescrollt):not(:has(.kopf__nav.ist-offen)) .marke__text strong { color: #fff; }
body:has(.held) .kopf:not(.ist-gescrollt):not(:has(.kopf__nav.ist-offen)) .marke__text span { color: var(--auf-gruen); }
body:has(.held) .kopf:not(.ist-gescrollt):not(:has(.kopf__nav.ist-offen)) .marke__kachel { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
body:has(.held) .kopf:not(.ist-gescrollt):not(:has(.kopf__nav.ist-offen)) .kopf__burger { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; }
@media (min-width: 961px) {
  body:has(.held) .kopf:not(.ist-gescrollt) .kopf__links a,
  body:has(.held) .kopf:not(.ist-gescrollt) .kopf__login { color: rgba(255, 255, 255, .88); }
  body:has(.held) .kopf:not(.ist-gescrollt) .kopf__links a[aria-current="true"] { color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
}
@media (min-width: 961px) and (hover: hover) and (pointer: fine) {
  body:has(.held) .kopf:not(.ist-gescrollt) .kopf__links a:hover,
  body:has(.held) .kopf:not(.ist-gescrollt) .kopf__login:hover { background: rgba(255, 255, 255, .1); color: #fff; }
}
.marke__text strong, .marke__text span, .kopf__links a, .kopf__login { transition: background-color .15s ease, color .2s ease, box-shadow .15s ease; }

.held h1 .zeile { display: block; }
.held__bild {
  position: relative;
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 470px;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-l);
  background: var(--grund-alt);
  box-shadow: var(--schatten-l);
}
.held__bild img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 28%;
  scale: 1.06;
}
.held__schild {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  display: flex; flex-direction: column; gap: .1rem;
  padding: .85rem 1.05rem;
  background: rgba(255, 255, 255, .96);
  border-radius: var(--r);
  box-shadow: var(--schatten-s);
  line-height: 1.35;
}
.held__schild strong { font-family: var(--font-kopf); font-weight: 650; color: var(--gruen); font-size: 1rem; }
.held__schild span { font-size: .85rem; color: var(--neben); }

@media (max-width: 900px) {
  .held { padding-top: calc(var(--kopf-h) + 2rem); }
  .held__raster { grid-template-columns: 1fr; }
  .held__bild { display: none; }
  .held__person {
    display: flex; align-items: center; gap: .8rem;
    margin-bottom: 1.4rem;
  }
  .held__person img {
    width: 56px; height: 56px; flex: none;
    border-radius: 50%;
    object-fit: cover; object-position: 50% 22%;
    background: var(--grund-alt);
    box-shadow: 0 0 0 3px var(--flaeche), 0 0 0 4px var(--linie);
  }
  .held__person span { display: flex; flex-direction: column; font-size: .86rem; color: var(--neben); line-height: 1.35; }
  .held__person strong { font-family: var(--font-kopf); font-weight: 650; font-size: 1rem; color: var(--gruen); }
  .held .held__person { justify-content: center; text-align: left; }
  .held .held__person img { box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 0 0 4px rgba(255, 255, 255, .2); }
  .held .held__person span { color: var(--auf-gruen); }
  .held .held__person strong { color: #fff; }
  .held h1 { max-width: none; }
}
@media (max-width: 520px) {
  .held__aktionen .knopf { flex: 1 1 100%; }
  .held__fakten { flex-direction: column; gap: .55rem; }
}

/* ============================================================
   Abschnitte allgemein
   ============================================================ */
.abschnitt { padding-block: var(--abschnitt); }
.abschnitt__kopf {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.25rem);
}
.abschnitt__kopf h2,
.digital h2,
.ueber h2,
.kontakt h2 {
  font-size: clamp(1.95rem, 1.35rem + 2vw, 2.9rem);
  letter-spacing: -.028em;
  line-height: 1.08;
}
.abschnitt__kopf p {
  margin-top: .9rem;
  font-size: clamp(1.05rem, 1rem + .2vw, 1.15rem);
  color: var(--neben);
}

/* ---------- Leistungen ---------- */
#leistungen { padding-top: clamp(1rem, .5rem + 2vw, 2.5rem); }
.leist__raster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, .6rem + 1.4vw, 1.5rem);
}
.leist__karte {
  transition: transform .3s var(--ease-out), box-shadow .3s ease, border-color .3s ease;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(1.5rem, 1rem + 1.8vw, 2.5rem);
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--r-l);
  box-shadow: var(--schatten-s);
}
.leist__karte h3 {
  margin-top: 1.1rem;
  font-size: clamp(1.4rem, 1.2rem + .6vw, 1.7rem);
  letter-spacing: -.02em;
}
.leist__karte > p { margin-top: .6rem; color: var(--neben); }
.haken-liste {
  display: grid; gap: .85rem;
  margin: 1.6rem 0 0; padding: 1.4rem 0 0;
  border-top: 1px solid var(--linie);
  list-style: none;
  width: 100%;
}
.haken-liste li {
  display: grid; grid-template-columns: 22px 1fr; gap: .75rem;
  align-items: start;
  line-height: 1.5;
}
.haken-liste svg {
  width: 22px; height: 22px; margin-top: 1px;
  fill: var(--gruen-zart); stroke: var(--gruen-haken); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.haken-liste svg circle { stroke: none; }
/* Drei Punkte je Karte mit Icon (28.09.2026, Dominik: „zu viel Text“) – Kachel wie im Kundenportal-Abschnitt */
.leist__punkte {
  display: grid; gap: 1rem;
  margin: 1.6rem 0 0; padding: 1.4rem 0 0;
  border-top: 1px solid var(--linie);
  list-style: none;
  width: 100%;
}
.leist__punkte li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1rem;
  align-items: center;
  font-size: 1.02rem; line-height: 1.45;
}
.leist__punkte strong { font-weight: 650; color: var(--gruen); }
.leist__ic {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gruen-zart);
  color: var(--gruen);
}
.leist__ic svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.leist__link {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: auto;
  padding-top: 1.8rem;
  font-weight: 600;
  text-decoration: none;
}
.leist__link svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .leist__link:hover { text-decoration: underline; text-underline-offset: .22em; }
  .leist__link:hover svg { transform: translateX(3px); }
}
@media (max-width: 800px) {
  .leist__raster { grid-template-columns: 1fr; }
}

/* ---------- Digital begleitet / Kundenportal ---------- */
.digital {
  padding-block: var(--abschnitt);
  background: var(--flaeche);
  border-block: 1px solid var(--linie);
}
.digital__raster {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 1rem + 4.5vw, 5.5rem);
  align-items: center;
}
.digital__text p { margin-top: 1rem; color: var(--neben); max-width: 32em; }
.digital__text h2 + p { margin-top: 1.1rem; }
/* Drei Vorteile mit Icon (28.09.2026, Dominik – statt der vier Chips) */
.digital__vorteile {
  display: grid; gap: 1.15rem;
  margin: 2rem 0 0; padding: 1.6rem 0 0; list-style: none;
  border-top: 1px solid var(--linie);
  max-width: 32em;
}
.digital__text h2 + .digital__vorteile { margin-top: 1.75rem; padding-top: 0; border-top: 0; } /* ohne Einleitungsabsatz (28.09.2026) */
.digital__vorteile li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1rem; align-items: center; }
.digital__ic {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gruen-zart);
  color: var(--gruen);
}
.digital__ic svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.digital__text .digital__vorteile p { margin: 0; max-width: none; font-size: 1.02rem; line-height: 1.5; color: var(--neben); }
.digital__vorteile strong { font-weight: 650; color: var(--gruen); }

.portal-bsp { margin: 0; min-width: 0; }
.digital { overflow-x: hidden; overflow-x: clip; } /* Sicherheitsnetz: nichts im Portal-Beispiel schiebt die Seite seitlich */
/* Desktop: Umschalter und Bildunterschrift hängen unter dem Fenster, zählen aber nicht zur Höhe – so steht der
   Text links auf Höhe der Fenstermitte (28.09.2026, Dominik: „wirkt nicht ganz mittig“) */
@media (min-width: 901px) {
  .digital { padding-bottom: calc(var(--abschnitt) + 5.4rem); }
  .portal-bsp { position: relative; }
  .portal-bsp__umschalter { position: absolute; left: 0; right: 0; top: 100%; }
  .portal-bsp figcaption { position: absolute; left: 0; right: 0; top: calc(100% + 1rem + 38px); }
}
.portal-bsp__fenster {
  overflow: hidden;
  border-radius: var(--r-l);
  background: var(--grund);
  box-shadow: 0 0 0 1px var(--linie), var(--schatten);
}
.portal-bsp__leiste {
  display: flex; align-items: center; gap: .55rem;
  padding: .75rem 1rem;
  background: rgba(243, 245, 243, .9);
  border-bottom: 1px solid var(--linie);
  font-family: var(--font-kopf); font-weight: 700; font-size: .92rem; color: var(--gruen);
  letter-spacing: -.01em;
}
.portal-bsp__nutzer {
  margin-left: auto;
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gruen); color: var(--beige);
  font-family: var(--font-text); font-size: .7rem; font-weight: 700; letter-spacing: .02em;
}
.portal-bsp__buehne {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* Szenen nie breiter als das Fenster – Safari nahm sonst lange Dateinamen als Mindestbreite (28.09.2026) */
  padding: clamp(.9rem, .5rem + 1.5vw, 1.4rem);
}
.portal-bsp__szene {
  grid-area: 1 / 1;
  display: flex; flex-direction: column;
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), filter .45s var(--ease-out), visibility 0s linear .45s;
}
.portal-bsp__szene:not(.ist-aktiv) {
  opacity: 0; visibility: hidden;
  transform: translateY(6px) scale(.985);
  filter: blur(3px);
}
.portal-bsp__szene.ist-aktiv { transition-delay: 0s; }
.portal-bsp__szene > .portal-bsp__karte { flex: 1; }
.portal-bsp__karte {
  padding: clamp(1rem, .7rem + 1vw, 1.4rem);
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--r);
  box-shadow: var(--schatten-s);
}
.portal-bsp__kopf {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
}
.portal-bsp__kopf strong {
  font-family: var(--font-kopf); font-weight: 650; font-size: 1.02rem; color: var(--text);
  letter-spacing: -.01em;
}
.portal-bsp [data-portal-zaehler] { font-variant-numeric: tabular-nums; }
.portal-bsp__balken {
  height: 6px; margin: .9rem 0 .4rem;
  border-radius: var(--r-pille);
  background: var(--grund-alt);
  overflow: hidden;
}
.portal-bsp__balken span {
  display: block; height: 100%;
  border-radius: inherit;
  background: var(--gruen-haken);
  transform-origin: left center;
  transform: scaleX(var(--anteil, 0));
  transition: transform .7s var(--ease-out);
}
.portal-bsp__liste { list-style: none; margin: 0; padding: 0; }
.portal-bsp__liste li {
  display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: .75rem;
  padding: .72rem 0;
  border-bottom: 1px solid var(--linie);
  font-size: .94rem; font-weight: 500;
}
.portal-bsp__liste li:last-child { border-bottom: 0; padding-bottom: .1rem; }
.portal-bsp__liste em {
  font-style: normal; font-size: .8rem; font-weight: 600;
  color: var(--neben);
}
.portal-bsp__liste li.ist-erledigt em { color: var(--gruen-haken); }
.portal-bsp__kreis {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--linie-kraeftig);
  background: var(--flaeche);
  transition: background-color .2s ease, border-color .2s ease;
}
.portal-bsp__kreis svg {
  width: 14px; height: 14px;
  fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 18; stroke-dashoffset: 18;
  transition: stroke-dashoffset .28s var(--ease-out) .08s;
}
.ist-erledigt .portal-bsp__kreis { background: var(--gruen-haken); border-color: var(--gruen-haken); }
.ist-erledigt .portal-bsp__kreis svg { stroke-dashoffset: 0; }
.portal-bsp__umschalter {
  display: flex; justify-content: center; gap: .4rem;
  margin-top: 1rem;
}
.portal-bsp__umschalter[hidden] { display: none; }
.portal-bsp__tab {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center;
  min-height: 38px; padding: 0 .95rem;
  border: 1px solid var(--linie); border-radius: var(--r-pille);
  background: var(--flaeche); color: var(--neben);
  font: 500 .86rem/1 var(--font-text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease, transform .16s var(--ease-out);
}
.portal-bsp__tab:active { transform: scale(.97); }
.portal-bsp__tab.ist-aktiv { color: var(--gruen); border-color: #cfe0d5; background: var(--gruen-zart); font-weight: 600; }
.portal-bsp__tab i {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--gruen-haken);
  transform-origin: left center; transform: scaleX(0);
}
.portal-bsp__tab.ist-aktiv i { animation: tabLauf var(--dauer, 6s) linear forwards; }
.portal-bsp.ist-pausiert .portal-bsp__tab i { animation-play-state: paused; }
@keyframes tabLauf { to { transform: scaleX(1); } }
@media (hover: hover) and (pointer: fine) {
  .portal-bsp__tab:not(.ist-aktiv):hover { color: var(--text); border-color: var(--linie-kraeftig); }
}
.portal-bsp figcaption {
  margin-top: .7rem;
  font-size: .82rem; color: var(--neben);
  text-align: center;
}

/* Szene 2: Dokument hochladen */
.upl { display: flex; flex-direction: column; position: relative; }
.upl__kopf {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .9rem;
}
.upl__kopf strong { font-family: var(--font-kopf); font-weight: 700; font-size: 1.02rem; color: var(--gruen); letter-spacing: -.01em; }
.upl__zu { font-size: 1.3rem; line-height: 1; color: var(--neben); }
.upl__inhalt {
  display: flex; flex-direction: column; gap: .75rem; flex: 1;
  transition: opacity .3s ease, transform .3s var(--ease-out);
}
.upl__zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem;
  flex: 1; min-height: 190px;
  padding: 1.4rem 1rem;
  text-align: center;
  border: 2px dashed #cfd8d2; border-radius: 16px;
  background: #f7f9f7;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .2s ease;
}
.upl__zone.ist-drueber { border-color: #34a86b; background: #ebf6ef; box-shadow: 0 0 0 4px rgba(52, 168, 107, .12); }
.upl__zonetxt { display: flex; flex-direction: column; gap: .2rem; }
.upl__zonetxt strong { font-size: .98rem; color: var(--gruen); }
.upl__zonetxt span { font-size: .82rem; color: var(--neben); }
.upl__zonetxt u { color: var(--gruen-haken); font-weight: 700; text-underline-offset: 2px; }
.upl__stapel { position: relative; width: 96px; height: 64px; flex: none; }
.upl__karte {
  position: absolute; top: 4px; left: 50%;
  width: 42px; height: 54px; margin-left: -21px;
  border-radius: 9px;
  background: #eef4f0; border: 1.5px solid #cfd8d2;
  box-shadow: 0 6px 14px rgba(20, 28, 24, .08);
  transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), border-color .2s ease, color .2s ease;
}
.upl__karte--l { transform: rotate(-14deg) translateX(-15px); }
.upl__karte--r { transform: rotate(14deg) translateX(15px); }
.upl__karte--m { z-index: 1; display: grid; place-items: center; background: #fff; color: var(--gruen); }
.upl__karte--m svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.upl__zone.ist-drueber .upl__karte--l { transform: rotate(-22deg) translateX(-24px) translateY(-2px); }
.upl__zone.ist-drueber .upl__karte--r { transform: rotate(22deg) translateX(24px) translateY(-2px); }
.upl__zone.ist-drueber .upl__karte--m { transform: translateY(-6px); border-color: #34a86b; color: #34a86b; }

.upl__datei {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem .75rem;
  border: 1px solid var(--linie); border-radius: 14px;
  background: var(--flaeche);
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), border-color .25s ease;
}
.upl.hat-datei .upl__datei { opacity: 1; transform: none; }
.upl.hat-datei .upl__zone { min-height: 0; flex-direction: row; gap: .7rem; padding: .6rem .9rem; text-align: left; }
.upl.hat-datei .upl__stapel { transform: scale(.62); margin: -12px -16px; }
.upl__stapel { transition: transform .25s ease, margin .25s ease; }
.upl__typ {
  flex: none;
  display: grid; place-items: end center;
  width: 32px; height: 40px; padding-bottom: 5px;
  border-radius: 7px 11px 7px 7px;
  background: #b5473a; color: #fff;
  font-size: .56rem; font-weight: 800; letter-spacing: .04em;
}
.upl__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.upl__name { font-weight: 700; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upl__meta { font-size: .76rem; color: var(--neben); font-variant-numeric: tabular-nums; }
.upl__meta.ist-ok { color: var(--gruen-haken); font-weight: 600; }
.upl__balken { display: block; height: 5px; margin-top: .3rem; border-radius: var(--r-pille); background: #e6ece8; overflow: hidden; }
.upl__balken i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #34a86b, #6fdc9b);
  transform-origin: left center; transform: scaleX(0);
  transition: transform .45s var(--ease-out);
}
.upl__stat {
  flex: none; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid #dfe8e2;
}
.upl__stat svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.upl.laedt .upl__stat { border-top-color: #34a86b; animation: uplDreh .8s linear infinite; }
.upl.datei-ok .upl__stat { border: 0; background: #34a86b; animation: uplPop .5s cubic-bezier(.3, 1.6, .5, 1) both, uplGlow 1.4s ease .2s; }
.upl.datei-ok .upl__stat svg { opacity: 1; }
.upl.datei-ok .upl__datei { border-color: #bfe3cc; }

.upl__erfolg {
  position: absolute; inset: 2.6rem 0 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
  text-align: center;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.upl__erfolg strong { font-family: var(--font-kopf); font-weight: 700; font-size: 1.12rem; color: var(--gruen); }
.upl__erfolg > span:last-child { max-width: 26ch; padding: 0 1rem; font-size: .88rem; color: var(--neben); text-wrap: balance; }
.upl__bighaken {
  display: grid; place-items: center;
  width: 84px; height: 84px; margin-bottom: .9rem;
  border-radius: 50%; background: #34a86b;
}
.upl__bighaken svg { width: 60px; height: 60px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.upl__bighaken circle { stroke: rgba(255, 255, 255, .35); stroke-width: 2; stroke-dasharray: 145; stroke-dashoffset: 145; }
.upl__bighaken path { stroke: #fff; stroke-width: 3.4; stroke-dasharray: 36; stroke-dashoffset: 36; }
.upl.fertig .upl__inhalt { opacity: 0; transform: scale(.98); }
.upl.fertig .upl__erfolg { opacity: 1; visibility: visible; transition-delay: 0s; }
.upl.fertig .upl__bighaken { animation: uplPop .55s cubic-bezier(.3, 1.5, .5, 1) both, uplGlowGross 1.9s ease .3s; }
.upl.fertig .upl__bighaken circle { animation: uplStrich .6s ease .15s forwards; }
.upl.fertig .upl__bighaken path { animation: uplStrich .45s ease .5s forwards; }

/* Fuß des Upload-Fensters wie im Portal: Summe links, „Hochladen“ rechts */
.upl__fuss {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  margin-top: auto;
  padding-top: .85rem;
  border-top: 1px solid var(--linie);
}
.upl__summe { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; color: var(--neben); font-variant-numeric: tabular-nums; }
.upl__los {
  display: inline-flex; align-items: center; gap: .45rem;
  flex: none;
  min-height: 36px; padding: 0 1rem;
  border-radius: var(--r-pille);
  background: var(--gruen); color: #fff;
  font-size: .84rem; font-weight: 600;
  white-space: nowrap;
  opacity: .55;
  transition: opacity .2s ease, transform .12s var(--ease-out), background-color .15s ease;
}
.upl.hat-datei .upl__los { opacity: 1; }
.upl__los.ist-gedrueckt { transform: scale(.95); background: var(--gruen-tief); }
.upl__drehen {
  display: none;
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: uplDreh .8s linear infinite;
}
.upl.laedt .upl__drehen { display: inline-block; }
.upl__maus {
  position: absolute; left: 0; top: 0; z-index: 4;
  width: 22px; height: 22px;
  fill: #1c271f; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25));
  opacity: 0; pointer-events: none;
}

/* Die Datei, die hineingezogen wird */
.upl__flieg {
  position: absolute; left: 0; top: 0; z-index: 3;
  display: flex; align-items: center; gap: .55rem;
  padding: .5rem .8rem .5rem .55rem;
  border-radius: 12px;
  background: var(--flaeche);
  box-shadow: 0 16px 34px -12px rgba(20, 28, 24, .35), 0 0 0 1px var(--linie);
  font-size: .82rem; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none;
  will-change: transform, opacity;
}
.upl__flieg .upl__typ { width: 26px; height: 32px; font-size: .5rem; padding-bottom: 4px; }
.upl__zeiger {
  position: absolute; right: -10px; bottom: -14px;
  width: 22px; height: 22px;
  fill: #1c271f; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25));
}
.portal-bsp__szene[data-szene="upload"] { position: relative; }
.upl__flieg.ohne-zeiger .upl__zeiger { visibility: hidden; } /* beim Ablegen übernimmt der eigene Zeiger (website.js) */

/* Szene 3: Objektunterlagen herunterladen (28.09.2026) – wie „Dokumente“ im Kundenportal: Dateien je Objekt
   mit Kategorie, vier passende werden angehakt, zwei bleiben liegen, dann als ZIP herunterladen */
.portal-bsp__szene[data-szene="download"] { position: relative; }
.dlw { display: flex; flex-direction: column; }
.dlw__kopf { display: flex; align-items: center; gap: .7rem; padding-bottom: .7rem; border-bottom: 1px solid var(--linie); }
.dlw__ordner { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--gruen-zart); color: var(--gruen); }
.dlw__ordner svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.dlw__titel { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.dlw__titel strong { font-family: var(--font-kopf); font-weight: 650; font-size: 1.02rem; color: var(--text); letter-spacing: -.01em; }
.dlw__titel small { font-size: .78rem; color: var(--neben); }
.dlw__liste { list-style: none; margin: .3rem 0 .2rem; padding: 0; }
.dlw__liste li {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: .7rem;
  margin: 0 -.5rem; padding: .3rem .5rem;
  border-radius: 10px;
  transition: background-color .2s ease;
}
.dlw__liste li + li { box-shadow: inset 0 1px 0 var(--linie); }
.dlw__liste li.ist-gewaehlt { background: var(--gruen-zart); box-shadow: none; }
.dlw__liste li.ist-gewaehlt + li { box-shadow: none; }
.dlw__pick { position: relative; display: grid; place-items: center; width: 30px; height: 30px; }
.dlw__typ {
  display: grid; place-items: end center;
  width: 22px; height: 27px; padding-bottom: 3px;
  border-radius: 5px 7px 5px 5px;
  background: #b5473a; color: #fff;
  font-size: .47rem; font-weight: 800; letter-spacing: .04em;
}
.dlw__haken {
  position: absolute; right: -3px; bottom: -1px;
  display: grid; place-items: center;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--gruen-haken); box-shadow: 0 0 0 2px var(--flaeche);
  transform: scale(0);
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.dlw__liste li.ist-gewaehlt .dlw__haken { transform: scale(1); box-shadow: 0 0 0 2px var(--gruen-zart); }
.dlw__haken svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.dlw__info { display: flex; flex-direction: column; gap: 0; min-width: 0; line-height: 1.3; }
.dlw__name { font-size: .88rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlw__meta { font-size: .74rem; color: var(--neben); font-variant-numeric: tabular-nums; }
.dlw__chip { font-size: .72rem; font-weight: 600; color: var(--neben); padding: .2rem .55rem; border-radius: var(--r-pille); background: var(--grund); border: 1px solid var(--linie); white-space: nowrap; }
.dlw__liste li.ist-gewaehlt .dlw__chip { background: var(--flaeche); color: var(--gruen); border-color: #cfe0d5; }
.dlw__leiste {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  margin-top: auto; padding-top: .85rem;
  border-top: 1px solid var(--linie);
}
.dlw__zahl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; color: var(--neben); font-variant-numeric: tabular-nums; }
.dlw.hat-wahl .dlw__zahl { color: var(--text); font-weight: 600; }
.dlw.fertig .dlw__zahl { color: var(--gruen-haken); }
.dlw__los {
  display: inline-flex; align-items: center; gap: .45rem; flex: none;
  min-height: 36px; padding: 0 1rem;
  border-radius: var(--r-pille);
  background: var(--gruen); color: #fff;
  font-size: .84rem; font-weight: 600; white-space: nowrap;
  opacity: .5;
  transition: opacity .2s ease, transform .12s var(--ease-out), background-color .25s ease;
}
.dlw__los svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dlw__ok { display: none; }
.dlw.hat-wahl .dlw__los { opacity: 1; }
.dlw__los.ist-gedrueckt { transform: scale(.95); background: var(--gruen-tief); }
.dlw.packt .upl__drehen { display: inline-block; }
.dlw.packt .dlw__pfeil { display: none; }
.dlw.fertig .dlw__los { background: #34a86b; }
.dlw.fertig .dlw__pfeil { display: none; }
.dlw.fertig .dlw__ok { display: block; animation: uplPop .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.dlw.fertig .dlw__los { animation: uplGlow 1.4s ease .1s; }
.portal-bsp.ist-messen, .portal-bsp.ist-messen * { transition: none !important; } /* nur für die Höhenmessung (website.js) */

@keyframes uplDreh { to { transform: rotate(360deg); } }
@keyframes uplPop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes uplStrich { to { stroke-dashoffset: 0; } }
@keyframes uplGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(52, 168, 107, 0); } 35% { box-shadow: 0 0 0 5px rgba(52, 168, 107, .22), 0 0 18px 4px rgba(52, 168, 107, .5); } }
@keyframes uplGlowGross { 0%, 100% { box-shadow: 0 0 0 0 rgba(52, 168, 107, 0); } 30% { box-shadow: 0 0 0 10px rgba(52, 168, 107, .18), 0 0 46px 12px rgba(52, 168, 107, .55); } 65% { box-shadow: 0 0 0 5px rgba(52, 168, 107, .12), 0 0 26px 5px rgba(52, 168, 107, .3); } }

@media (max-width: 900px) {
  .digital__raster { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .digital__vorteile li { grid-template-columns: 40px minmax(0, 1fr); gap: .85rem; }
  .digital__ic { width: 40px; height: 40px; border-radius: 11px; }
}
@media (max-width: 420px) {
  .portal-bsp__umschalter { gap: .3rem; }
  .portal-bsp__tab { padding: 0 .7rem; font-size: .82rem; }
  .dlw__liste li { grid-template-columns: 30px minmax(0, 1fr); }
  .dlw__chip { display: none; }
  .dlw__los { padding: 0 .8rem; font-size: .8rem; }
  .upl__los { padding: 0 .8rem; font-size: .8rem; }
  .portal-bsp__liste li { grid-template-columns: 20px minmax(0, 1fr) auto; gap: .6rem; padding: .5rem 0; font-size: .86rem; line-height: 1.3; }
  .portal-bsp__liste em { font-size: .72rem; }
  .portal-bsp__kreis { width: 20px; height: 20px; }
  .portal-bsp__kreis svg { width: 12px; height: 12px; }
  .upl__zone { min-height: 165px; }
}

/* ---------- Ablauf ---------- */
.ablauf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem clamp(1.5rem, 1rem + 2vw, 2.75rem);
  margin: 0; padding: 0;
  list-style: none;
}
.ablauf li {
  position: relative;
  padding-top: 2.1rem;
  border-top: 1px solid var(--linie-kraeftig);
}
.ablauf__nr {
  position: absolute; top: 0; left: 0;
  transform: translateY(-50%);
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gruen); color: #fff;
  box-shadow: 0 0 0 6px var(--grund);
  font: 650 .98rem/1 var(--font-kopf);
  font-variant-numeric: tabular-nums;
  z-index: 1; /* über der grünen Linie (li::after) – sonst läuft sie durch die weißen Ziffern */
}
.ablauf h3 { font-size: 1.22rem; letter-spacing: -.015em; }
.ablauf p { margin-top: .5rem; color: var(--neben); font-size: 1rem; line-height: 1.6; }
.ablauf .chip { margin-top: .9rem; }

@media (max-width: 900px) {
  .ablauf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ablauf { grid-template-columns: 1fr; gap: 0; }
  .ablauf li {
    padding: 0 0 2rem 3.4rem;
    border-top: 0;
  }
  .ablauf li::before {
    content: ""; position: absolute; left: 18px; top: 38px; bottom: 0;
    width: 1px; background: var(--linie-kraeftig);
  }
  .ablauf li:last-child { padding-bottom: 0; }
  .ablauf li:last-child::before { display: none; }
  .ablauf__nr { transform: none; box-shadow: none; }
  .ablauf h3 { padding-top: .45rem; }
}

/* ---------- Über mich ---------- */
.ueber {
  background: var(--flaeche);
  border-top: 1px solid var(--linie);
}
.ueber__raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 1rem + 4.5vw, 5.5rem);
  align-items: start;
}
/* Linke Spalte bleibt beim Lesen stehen – nur wenn das Fenster hoch genug für Foto, Name und Chips ist */
@media (min-width: 901px) and (min-height: 820px) {
  .ueber__links { position: sticky; top: calc(var(--kopf-h) + 2rem); }
}
/* Foto groß im Format wie am Handy (5:4), seit 27.09.2026 auch am Desktop; der runde Kopf entfällt */
.ueber__bild {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover; object-position: 50% 25%;
  border-radius: var(--r-l);
  margin-bottom: 1.75rem;
  background: var(--grund-alt);
  box-shadow: var(--schatten);
}
.ueber__avatar { display: none; }
.ueber__meta {
  display: flex; flex-wrap: wrap; gap: .45rem;
  margin: 1.4rem 0 0; padding: 0; list-style: none;
}
.ueber__meta .chip { font-size: .84rem; padding: .35rem .8rem; }
.ueber__einleitung {
  font-family: var(--font-kopf);
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.015em;
  color: var(--text);
}
.ueber__rechts > p + p { margin-top: 1.1rem; color: var(--neben); max-width: 36em; }
.ueber__zwischen {
  margin-top: 2.5rem;
  font-family: var(--font-text);
  font-size: .95rem; font-weight: 600; letter-spacing: 0;
  color: var(--text);
}
.ueber__arbeit {
  margin: .9rem 0 0; padding: 0; list-style: none;
  border-top: 1px solid var(--linie);
}
.ueber__arbeit li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--linie);
  color: var(--neben);
  line-height: 1.6;
}
.ueber__arbeit strong {
  display: block;
  margin-bottom: .2rem;
  font-family: var(--font-kopf); font-size: 1.12rem; font-weight: 650;
  color: var(--gruen); letter-spacing: -.012em;
}

@media (max-width: 900px) {
  .ueber__raster { grid-template-columns: 1fr; }
  .ueber__bild { box-shadow: none; }
}

/* ============================================================
   Kontakt (grüne Fläche)
   ============================================================ */
.kontakt {
  padding-block: var(--abschnitt);
  background: var(--gruen);
  color: #fff;
}
.kontakt__raster {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 1rem + 4.5vw, 5.5rem);
  align-items: start;
}
.kontakt h2 { color: #fff; }
.kontakt__text > p {
  margin-top: 1.1rem; max-width: 30em;
  font-size: clamp(1.05rem, 1rem + .2vw, 1.15rem);
  color: var(--auf-gruen);
}
.kontakt__wege {
  display: grid; gap: 1.1rem;
  margin: 2.25rem 0 0; padding: 0; list-style: none;
}
.kontakt__wege li { display: grid; grid-template-columns: 22px 1fr; gap: .9rem; align-items: start; }
.kontakt__wege svg {
  width: 22px; height: 22px; margin-top: 2px;
  fill: none; stroke: var(--beige); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.kontakt__wege span { display: flex; flex-direction: column; line-height: 1.45; font-weight: 500; }
.kontakt__wege small { font-size: .82rem; font-weight: 500; color: var(--auf-gruen); }
.kontakt__wege a { color: #fff; text-decoration-color: rgba(255, 255, 255, .45); overflow-wrap: anywhere; }
.kontakt :focus-visible { outline-color: var(--beige); }

.contact__form-wrap {
  padding: clamp(1.4rem, 1rem + 2vw, 2.5rem);
  background: var(--flaeche);
  color: var(--text);
  border-radius: var(--r-l);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55);
}
.contact__form-wrap :focus-visible { outline-color: var(--gruen); }
.contact__form { display: grid; gap: 1.1rem; }
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.feld-reihe--anrede { grid-template-columns: 9.5rem minmax(0, 1fr); }
.feld label {
  display: block; margin-bottom: .4rem;
  font-size: .86rem; font-weight: 600; color: var(--text);
}
.feld__optional { font-weight: 400; color: var(--neben); }
.feld :is(input, select, textarea) {
  display: block; width: 100%;
  min-height: 48px; padding: .72rem .95rem;
  font: inherit; font-size: 1rem; line-height: 1.4; color: var(--text);
  background: var(--grund);
  border: 1px solid var(--linie);
  border-radius: var(--r-s);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.feld textarea { min-height: 116px; resize: vertical; }
.feld select {
  appearance: none; -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23254436' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 18px;
  cursor: pointer;
}
.feld ::placeholder { color: var(--neben); opacity: 1; }
/* Auswahlfelder im Hausstil (website.js baut Knopf + Liste, das echte select bleibt unsichtbar) */
.auswahl { position: relative; }
.auswahl__nativ {
  position: absolute !important; inset: auto auto 0 0; width: 1px !important; height: 1px !important;
  min-height: 0 !important; padding: 0 !important; border: 0 !important;
  opacity: 0; pointer-events: none; overflow: hidden;
}
.auswahl__knopf {
  display: block; width: 100%;
  min-height: 48px; padding: .72rem 2.5rem .72rem .95rem;
  font: inherit; font-size: 1rem; line-height: 1.4; color: var(--text); text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--grund) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23254436' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .85rem center / 18px;
  border: 1px solid var(--linie);
  border-radius: var(--r-s);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.auswahl__knopf.ist-leer { color: var(--neben); }
.auswahl__knopf:focus-visible,
.auswahl.ist-offen .auswahl__knopf {
  outline: none;
  border-color: var(--gruen);
  background-color: var(--flaeche);
  box-shadow: 0 0 0 4px rgba(37, 68, 54, .13);
}
.auswahl__liste {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  margin: 0; padding: .35rem; list-style: none;
  max-height: 264px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--r);
  box-shadow: var(--schatten);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transform-origin: top center;
  transition: opacity .16s ease, transform .2s var(--ease-out), visibility 0s linear .2s;
}
.auswahl.nach-oben .auswahl__liste { top: auto; bottom: calc(100% + 6px); transform: translateY(4px); transform-origin: bottom center; }
.auswahl.ist-offen .auswahl__liste { opacity: 1; visibility: visible; transform: none; transition: opacity .16s ease, transform .2s var(--ease-out), visibility 0s; }
.auswahl__liste [role=option] {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .62rem .75rem;
  border-radius: 8px;
  font-size: .98rem; line-height: 1.35; color: var(--text);
  cursor: pointer;
}
.auswahl__liste [role=option].ist-aktiv { background: var(--grund); }
.auswahl__liste [role=option][aria-selected=true] { color: var(--gruen); font-weight: 600; }
.auswahl__liste [role=option][aria-selected=true].ist-aktiv { background: var(--gruen-zart); }
.auswahl__liste svg {
  flex: 0 0 auto; width: 18px; height: 18px;
  fill: none; stroke: var(--gruen); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0;
}
.auswahl__liste [aria-selected=true] svg { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .auswahl:not(.ist-offen) .auswahl__knopf:hover:not(:focus-visible) { border-color: var(--linie-kraeftig); }
}
@media (prefers-reduced-motion: reduce) {
  .auswahl__liste, .auswahl.ist-offen .auswahl__liste { transition: none; transform: none; }
}

.feld :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--gruen);
  background-color: var(--flaeche);
  box-shadow: 0 0 0 4px rgba(37, 68, 54, .13);
}
@media (hover: hover) and (pointer: fine) {
  .feld :is(input, select, textarea):hover:not(:focus) { border-color: var(--linie-kraeftig); }
}
.einwilligung {
  display: grid; grid-template-columns: 22px 1fr; gap: .75rem;
  align-items: start;
  padding: .2rem 0;
  font-size: .88rem; line-height: 1.5; color: var(--neben);
  cursor: pointer;
}
.einwilligung input { width: 20px; height: 20px; margin: 1px 0 0; cursor: pointer; }
.contact__form .knopf { margin-top: .2rem; }

/* Rückmeldung des Plugins (DS_Signup setzt Farbe inline) */
.contact__form-wrap .ds-cf-msg {
  margin: 1rem 0 0 !important;
  padding: .9rem 1rem;
  border-radius: var(--r);
  font-size: .95rem; line-height: 1.45;
  font-weight: 500 !important;
}
.contact__form-wrap .ds-cf-msg[style*="1a7f37"] { background: var(--gruen-zart); color: var(--gruen) !important; }
.contact__form-wrap .ds-cf-msg[style*="b3261e"] { background: #fbeceb; color: #9f231b !important; }

@media (max-width: 900px) {
  .kontakt__raster { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .feld-reihe,
  .feld-reihe--anrede { grid-template-columns: 1fr; }
}

/* ============================================================
   Fuß
   ============================================================ */
.fuss {
  padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0 2rem;
  background: var(--gruen);
  color: var(--auf-gruen);
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .95rem;
}
.fuss__oben {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.marke--hell .marke__text strong { color: #fff; }
.marke--hell .marke__text span { color: var(--auf-gruen); }
.fuss__marke p { margin-top: 1rem; max-width: 26em; line-height: 1.6; }
.fuss__titel {
  font-size: .95rem; font-weight: 600;
  color: #fff;
  margin-bottom: .5rem !important;
}
.fuss__spalte ul { list-style: none; margin: 0; padding: 0; }
.fuss a { color: var(--auf-gruen); text-decoration: none; }
.fuss__spalte a { display: inline-block; padding: .4rem 0; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) {
  .fuss a:hover { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); }
}
.fuss :focus-visible { outline-color: var(--beige); }
.fuss__unten {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  margin-top: 2.75rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .88rem;
}
@media (max-width: 900px) {
  .fuss__oben { grid-template-columns: 1fr 1fr; }
  .fuss__marke { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .fuss__oben { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ============================================================
   Rechtsseiten (Impressum, Datenschutz) – WP-Klassen aus templates/page.html
   ============================================================ */
.legal-page {
  padding-block: clamp(2.25rem, 1.5rem + 3vw, 4.5rem) var(--abschnitt);
}
.legal-page__head,
.legal-page .entry-content {
  width: min(100% - 2 * var(--rand), 780px);
  margin-inline: auto;
}
.legal-page__head { margin-bottom: 1.75rem; }
.legal-page__zurueck {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-bottom: 1.25rem;
  font-size: .92rem; font-weight: 500;
  color: var(--neben); text-decoration: none;
  border-radius: 6px;
}
.legal-page__zurueck svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
  .legal-page__zurueck:hover { color: var(--gruen); }
}
.legal-page__title {
  font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.3rem);
  letter-spacing: -.03em;
}
.legal-page .entry-content {
  padding: clamp(1.5rem, .8rem + 3.2vw, 3.25rem);
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--r-l);
  box-shadow: var(--schatten-s);
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}
.legal-page .entry-content > :first-child { margin-top: 0; }
.legal-page .entry-content h2 {
  margin: 2.6rem 0 .8rem;
  padding-top: 2rem;
  border-top: 1px solid var(--linie);
  font-size: clamp(1.35rem, 1.2rem + .5vw, 1.6rem);
  letter-spacing: -.018em;
}
.legal-page .entry-content > h2:first-child { padding-top: 0; border-top: 0; }
.legal-page .entry-content h3 {
  margin: 1.9rem 0 .5rem;
  font-size: 1.12rem;
  letter-spacing: -.01em;
  color: var(--text);
}
.legal-page .entry-content h4 {
  margin: 1.4rem 0 .4rem;
  font-family: var(--font-text); font-size: 1rem; font-weight: 600; letter-spacing: 0;
  color: var(--text);
}
.legal-page .entry-content p { margin: 0 0 1rem; color: #2f3a32; }
.legal-page .entry-content ul,
.legal-page .entry-content ol { margin: 0 0 1rem; padding-left: 1.25rem; color: #2f3a32; }
.legal-page .entry-content li { margin: .35rem 0; }
.legal-page .entry-content li::marker { color: var(--gruen-haken); }
.legal-page .entry-content strong { font-weight: 600; color: var(--text); }
.legal-page .entry-content a { overflow-wrap: anywhere; }

/* Inhaltsverzeichnis (wird per JS aus den h2 gebaut, nur bei langen Seiten) */
.legal-page__inhalt { display: none; }
@media (min-width: 1180px) {
  .legal-page.hat-inhalt {
    display: grid;
    grid-template-columns: 1fr minmax(0, 780px) 1fr;
    column-gap: 2.5rem;
  }
  .legal-page.hat-inhalt > * { grid-column: 2; }
  .legal-page.hat-inhalt .legal-page__head,
  .legal-page.hat-inhalt .entry-content { width: 100%; }
  .legal-page.hat-inhalt .legal-page__inhalt {
    display: block;
    grid-column: 1; grid-row: 2;
    justify-self: end;
    position: sticky; top: calc(var(--kopf-h) + 1.5rem);
    align-self: start;
    width: 220px;
  }
}
.legal-page__inhalt p {
  margin-bottom: .6rem;
  font-size: .8rem; font-weight: 600; color: var(--neben);
}
.legal-page__inhalt ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--linie-kraeftig); }
.legal-page__inhalt a {
  display: block;
  margin-left: -1px;
  padding: .35rem 0 .35rem .9rem;
  border-left: 2px solid transparent;
  font-size: .86rem; line-height: 1.4;
  color: var(--neben); text-decoration: none;
  transition: color .15s ease, border-color .15s ease;
}
.legal-page__inhalt a[aria-current="true"] { color: var(--gruen); border-left-color: var(--gruen); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .legal-page__inhalt a:hover { color: var(--gruen); }
}

/* ---------- Bewegung reduzieren: keine Wege, Farben und Deckkraft bleiben ---------- */
@media (prefers-reduced-motion: reduce) {
  .knopf:active,
  .kopf__burger:active { transform: none; }
  .knopf svg,
  .leist__link svg { transition: none; transform: none !important; }
  .kopf__nav { transform: none !important; }
  .kopf__burger .strich,
  .portal-bsp__balken span { transition-duration: .01ms; }
  .portal-bsp__szene { transform: none !important; filter: none !important; }
  .sprunglink { transition: none; }
}

/* Standbild (reduzierte Bewegung): Erfolg sofort vollständig */
.upl.statisch .upl__bighaken,
.upl.statisch .upl__stat { animation: none; }
.upl.statisch .upl__bighaken circle,
.upl.statisch .upl__bighaken path { animation: none; stroke-dashoffset: 0; }

/* ============================================================
   Bewegung: Motiv „Haken, der sich zeichnet“ wie im Portal.
   Greift nur mit html.bewegt (Skript im Kopf, ohne „Bewegung reduzieren“).
   Ohne diese Klasse ist alles sofort im Endzustand sichtbar.
   ============================================================ */
@keyframes einAuf { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes einZeile {
  from { opacity: 0; transform: translateY(.45em); clip-path: inset(0 0 100% 0); }
  to { opacity: 1; transform: none; clip-path: inset(-10% 0 -20% 0); }
}
@keyframes bildAuf {
  from { opacity: 0; clip-path: inset(22% 0 0 0 round var(--r-l)); }
  to { opacity: 1; clip-path: inset(0 0 0 0 round var(--r-l)); }
}
@keyframes bildSetzen { from { scale: 1.18; } to { scale: 1.06; } }
@keyframes strichZiehen { to { stroke-dashoffset: 0; } }

/* Einstieg beim Laden: reines CSS, startet mit dem ersten Bild */
html.bewegt .held__person { animation: einAuf .6s var(--ease-expo) both; }
html.bewegt .held h1 .zeile { animation: einZeile .9s var(--ease-expo) both; }
html.bewegt .held h1 .zeile:nth-child(1) { animation-delay: .06s; }
html.bewegt .held h1 .zeile:nth-child(2) { animation-delay: .18s; }
html.bewegt .held__einleitung { animation: einAuf .8s var(--ease-expo) .32s both; }
html.bewegt .held__aktionen .knopf { animation: einAuf .7s var(--ease-expo) both; }
html.bewegt .held__aktionen .knopf:nth-child(1) { animation-delay: .42s; }
html.bewegt .held__aktionen .knopf:nth-child(2) { animation-delay: .49s; }
html.bewegt .held__fakten { animation: einAuf .7s var(--ease-expo) .56s both; }
html.bewegt .held__fakten svg path { stroke-dasharray: 22; stroke-dashoffset: 22; animation: strichZiehen .45s var(--ease-out) forwards; }
html.bewegt .held__fakten li:nth-child(1) svg path { animation-delay: .72s; }
html.bewegt .held__fakten li:nth-child(2) svg path { animation-delay: .82s; }
html.bewegt .held__fakten li:nth-child(3) svg path { animation-delay: .92s; }
html.bewegt .held__bild { animation: bildAuf 1.1s var(--ease-expo) .1s both; }
html.bewegt .held__bild img { animation: bildSetzen 1.6s var(--ease-expo) .1s both; }
html.bewegt .held__schild { animation: einAuf .7s var(--ease-expo) .7s both; }

/* Beim Scrollen: sanft herein, einmalig */
html.bewegt [data-ein]:not(.ist-fertig) {
  transition: opacity .8s var(--ease-expo), transform .8s var(--ease-expo);
}
html.bewegt [data-ein]:not(.ist-da) { opacity: 0; transform: translateY(22px); }

/* Leistungen: Haken zeichnen sich, wenn die Karte da ist */
.haken-liste svg { transition: opacity .3s ease, transform .45s var(--ease-expo); }
.haken-liste svg path { stroke-dasharray: 16; stroke-dashoffset: 0; transition: stroke-dashoffset .45s var(--ease-out); }
html.bewegt .leist__karte:not(.ist-da) .haken-liste svg { opacity: 0; transform: scale(.6); }
html.bewegt .leist__karte:not(.ist-da) .haken-liste svg path { stroke-dashoffset: 16; }
.haken-liste li:nth-child(1) svg, .haken-liste li:nth-child(1) svg path { transition-delay: .35s; }
.haken-liste li:nth-child(2) svg, .haken-liste li:nth-child(2) svg path { transition-delay: .45s; }
.haken-liste li:nth-child(3) svg, .haken-liste li:nth-child(3) svg path { transition-delay: .55s; }
.haken-liste li:nth-child(4) svg, .haken-liste li:nth-child(4) svg path { transition-delay: .65s; }
.haken-liste li svg path { transition-delay: inherit; }
.leist__ic { transition: opacity .3s ease, transform .5s var(--ease-expo); }
html.bewegt .leist__karte:not(.ist-da) .leist__ic { opacity: 0; transform: scale(.6); }
.leist__punkte li:nth-child(1) .leist__ic { transition-delay: .35s; }
.leist__punkte li:nth-child(2) .leist__ic { transition-delay: .47s; }
.leist__punkte li:nth-child(3) .leist__ic { transition-delay: .59s; }
@media (hover: hover) and (pointer: fine) {
  .leist__karte.ist-fertig:hover,
  html:not(.bewegt) .leist__karte:hover { transform: translateY(-3px); box-shadow: var(--schatten); border-color: var(--linie-kraeftig); }
}

/* Ablauf: grüne Linie zieht von Schritt zu Schritt, Nummern erscheinen der Reihe nach */
.ablauf li::after {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: var(--gruen);
  transform-origin: left center;
  transition: transform .9s var(--ease-in-out);
}
.ablauf__nr { transition: transform .55s var(--ease-expo) .25s, opacity .3s ease .25s; }
.ablauf li > :not(.ablauf__nr) { transition: opacity .6s ease .35s, transform .6s var(--ease-expo) .35s; }
html.bewegt .ablauf li[data-ein]:not(.ist-da) { opacity: 1; transform: none; }
html.bewegt .ablauf li:not(.ist-da)::after { transform: scaleX(0); }
html.bewegt .ablauf li:not(.ist-da) .ablauf__nr { opacity: 0; transform: translateY(-50%) scale(.5); }
html.bewegt .ablauf li:not(.ist-da) > :not(.ablauf__nr) { opacity: 0; transform: translateY(10px); }
@media (max-width: 600px) {
  .ablauf li::after { display: none; }
  .ablauf li::before { transform-origin: top center; transition: transform .8s var(--ease-in-out) .3s; }
  html.bewegt .ablauf li:not(.ist-da)::before { transform: scaleY(0); }
  html.bewegt .ablauf li:not(.ist-da) .ablauf__nr { transform: scale(.5); }
}

/* Foto im Einstieg gleitet beim Scrollen leicht im Rahmen (nur wo der Browser es kann) */
@supports (animation-timeline: scroll()) {
  @keyframes bildGleiten { from { translate: 0 0; } to { translate: 0 3%; } }
  html.bewegt .held__bild img {
    animation: bildSetzen 1.6s var(--ease-expo) .1s both, bildGleiten linear both;
    animation-timeline: auto, scroll(root);
    animation-range: normal, 0 90vh;
  }
}
