/* JORGALLI Facility & Gebäudeservice
   Tokens: siehe DESIGN.md. Mobile-first, Breakpoints 40em / 64em / 90em. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-900: oklch(0.25 0.045 168);
  --navy-800: oklch(0.3 0.055 166);
  --navy-700: oklch(0.36 0.065 163);
  --blue-600: oklch(0.47 0.07 158);
  --green-500: oklch(0.86 0.17 125);
  --green-400: oklch(0.9 0.15 125);
  --green-700: oklch(0.48 0.11 150);
  --paper: oklch(0.982 0.006 110);
  --white: oklch(0.996 0.003 110);
  --mist: oklch(0.948 0.018 145);
  --ink: oklch(0.24 0.03 165);
  --ink-soft: oklch(0.45 0.025 160);
  --line: oklch(0.89 0.016 140);
  --danger: oklch(0.52 0.19 28);
  --on-dark-soft: oklch(0.86 0.03 150);
  --on-dark-line: oklch(0.982 0.006 110 / 0.16);

  --accent-ink: var(--green-700);
  --focus: var(--green-700);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.375rem, 1.2rem + 0.6vw, 1.6rem);
  --step-3: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  --step-4: clamp(2rem, 1.2rem + 2.8vw, 3.5rem);
  --step-5: clamp(2.5rem, 1.3rem + 4.2vw, 4.75rem);
  --step-6: clamp(2.6rem, 1.4rem + 3.5vw, 4.6rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-12: 6rem;
  --section: clamp(4rem, 2.5rem + 6vw, 8rem);
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 4rem);
  --maxw: 82rem;
  --pad-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  --sidebar: 15.5rem;
  --bar: 4rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Basis ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-stretch: 100%;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

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

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection { background: var(--green-500); color: var(--navy-900); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--navy-900);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

.accent { color: var(--accent-ink); }

.on-dark {
  --accent-ink: var(--green-500);
  --focus: var(--green-500);
  color: var(--paper);
}

.display-1,
.display-2 {
  font-stretch: 104%;
  font-weight: 400;
  letter-spacing: -0.032em;
  color: var(--navy-900);
  text-wrap: balance;
}
.display-1 { font-size: var(--step-5); line-height: 1; }
.display-2 { font-size: var(--step-4); line-height: 1.04; }
.on-dark .display-1,
.on-dark .display-2 { color: var(--paper); }

.lead {
  font-size: var(--step-2);
  line-height: 1.45;
  color: var(--navy-900);
  text-wrap: pretty;
}

p { text-wrap: pretty; }

/* ---------- Buttons & Links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 1.5px solid transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.btn svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  transition: transform 0.3s var(--ease-out);
}
.btn:hover svg:last-child:not(:first-child) { transform: translateX(3px); }

.btn--primary { background: var(--green-500); color: var(--navy-900); }
.btn--primary:hover { background: var(--green-400); }

.btn--navy { background: var(--navy-700); color: var(--white); }
.btn--navy:hover { background: var(--navy-900); }

.btn--line { border-color: var(--line); color: var(--navy-700); background: transparent; }
.btn--line:hover { border-color: var(--navy-700); background: var(--white); }

.btn--line-light { border-color: oklch(0.982 0.006 110 / 0.42); color: var(--paper); background: transparent; }
.btn--line-light:hover { border-color: var(--paper); background: oklch(0.982 0.006 110 / 0.08); }

.btn--lg { min-height: 3.5rem; padding: 1rem 1.5rem; font-size: 1rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding-block: 0.35rem;
  font-weight: 600;
  color: var(--navy-700);
  text-decoration: none;
  border-bottom: 1.5px solid var(--line);
  transition: border-color 0.2s var(--ease-out);
}
.link-arrow svg {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--accent-ink);
  transition: transform 0.3s var(--ease-out);
}
.link-arrow:hover { border-color: currentColor; }
.link-arrow:hover svg { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--paper); border-color: var(--on-dark-line); }
.on-dark .link-arrow:hover { border-color: var(--paper); }

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

.sidebar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.sidebar__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: var(--bar);
  padding-inline: var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  color: var(--navy-700);
  text-decoration: none;
}
.brand__mark { width: 2.4rem; height: 2.4rem; flex: none; }
.brand__leaf { fill: var(--green-500); }
.brand__text { display: grid; line-height: 1; }
.brand__name {
  font-size: 1.25rem;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: 0.01em;
  color: var(--navy-900);
}
.brand__sub {
  margin-top: 0.3rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.bar-call,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 2.75rem;
  height: 2.75rem;
  padding-inline: 0.65rem;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--navy-900);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.bar-call { background: var(--green-500); border-color: var(--green-500); }
.bar-call svg,
.menu-toggle svg { width: 1.25rem; height: 1.25rem; }
.menu-toggle[aria-expanded="true"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }

.sidebar__panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-3) var(--gutter) var(--space-4);
}

html.js .sidebar__panel {
  position: fixed;
  inset: var(--bar) 0 0 0;
  overflow-y: auto;
  background: var(--white);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s var(--ease-out), visibility 0s linear 0.4s;
}
html.js .sidebar.is-open .sidebar__panel {
  transform: none;
  visibility: visible;
  transition: transform 0.4s var(--ease-out), visibility 0s;
}

.nav-main a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.55rem;
  font-size: 1.5rem;
  font-weight: 500;
  font-stretch: 108%;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.nav-main a::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: transparent;
  transition: background-color 0.2s var(--ease-out);
}
.nav-main a:hover { color: var(--navy-700); }
.nav-main a:hover::before { background: var(--line); }
.nav-main a[aria-current] { color: var(--navy-700); font-weight: 700; }
.nav-main a[aria-current]::before { background: var(--green-500); }
.nav-sub a[aria-current="page"] { color: var(--navy-900); font-weight: 700; }

.nav-sub ul { border-top: 1px solid var(--line); }
.nav-sub a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.nav-sub svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  color: var(--green-700);
  transition: transform 0.3s var(--ease-out);
}
.nav-sub a:hover { color: var(--navy-900); }
.nav-sub a:hover svg { transform: translateX(3px); }

.sidebar__contact { display: grid; gap: 0.6rem; }
.sidebar__contact .btn { justify-content: flex-start; }
.sidebar__area {
  margin-top: 0.4rem;
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--ink-soft);
}

@media (min-width: 64em) {
  html { scroll-padding-top: 1.5rem; }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar);
    display: flex;
    flex-direction: column;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    overflow-y: auto;
  }
  .sidebar__bar { height: auto; padding: 2rem 1.5rem 0; }
  .bar-call,
  .menu-toggle { display: none; }

  .sidebar__panel,
  html.js .sidebar__panel {
    position: static;
    flex: 1;
    gap: 2.5rem;
    padding: 3rem 1.5rem 1.75rem;
    overflow: visible;
    transform: none;
    visibility: visible;
    transition: none;
    background: transparent;
  }
  .nav-main a { font-size: 1.0625rem; padding-block: 0.4rem; font-stretch: 100%; }
  .nav-sub a { font-size: 0.875rem; min-height: 2.5rem; }
  .sidebar__contact { margin-top: auto; }

  main,
  .footer { margin-left: var(--sidebar); }
}

/* ---------- Hero (Startseite): fünf Streifen ----------
   Signature: die Diagonalstreifen der Referenz als Fotostreifen, ein Streifen pro Leistung.
   Einheitliche Bildsprache: alle Fotos grün getönt, nur der aktive Streifen in Farbe.
   Steuerleiste wie ein Corporate-Slider: 03 / 05, Fortschritt, Vor/Zurück, Autoplay. */

.hero {
  --accent-ink: var(--green-500);
  --focus: var(--green-500);
  --skew: 10deg;
  --dur: 6s;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  contain: paint;
  background: var(--navy-900);
  color: var(--paper);
}

/* Inhalt links */
.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--space-3);
  align-content: center;
  padding: var(--space-6) var(--gutter) var(--space-4);
}
.hero__title {
  font-size: clamp(2.6rem, 1.2rem + 4vw, 5.2rem);
  font-weight: 380;
  font-stretch: 104%;
  line-height: 0.96;
  letter-spacing: -0.04em;
}
.hero__lead { max-width: 30rem; font-size: 1.125rem; line-height: 1.6; color: var(--on-dark-soft); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: var(--space-1); }
.hero__call { display: inline-flex; align-items: center; gap: 0.85rem; color: var(--paper); text-decoration: none; }
.hero__call svg {
  width: 3.25rem;
  height: 3.25rem;
  padding: 0.95rem;
  border: 1px solid var(--on-dark-line);
  transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.hero__call span { display: grid; font-size: 1.0625rem; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; }
.hero__call small { font-size: 0.75rem; font-weight: 500; color: var(--on-dark-soft); }
.hero__call:hover svg { border-color: var(--green-500); color: var(--green-500); }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--on-dark-line);
  font-size: 0.9375rem;
  font-weight: 500;
}
.hero__facts li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__facts svg { width: 1.05rem; height: 1.05rem; color: var(--green-500); }

/* Streifen, mobil: schräg geschnittene Bänder */
.strips__list { display: grid; }
.strip { position: relative; margin-top: -1rem; }
.strip:first-child { margin-top: 0; }
.strip a {
  position: relative;
  isolation: isolate;
  display: block;
  height: 7.75rem;
  overflow: hidden;
  color: var(--paper);
  text-decoration: none;
  clip-path: polygon(0 1rem, 100% 0, 100% calc(100% - 1rem), 0 100%);
}
.strip img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
/* Duotone: färbt das Foto im Markengrün, nur Opacity wird animiert */
.strip__tone {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--navy-700);
  mix-blend-mode: color;
  transition: opacity 0.8s var(--ease-out);
}
.strip a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, oklch(0.21 0.04 168 / 0.9) 0%, oklch(0.21 0.04 168 / 0.5) 60%, oklch(0.21 0.04 168 / 0.25) 100%);
}
.strip.is-active .strip__tone { opacity: 0; }

.strip__inner { position: absolute; inset: 0; display: flex; align-items: center; gap: 0.9rem; padding: 1rem var(--gutter); }
.strip__num {
  flex: none;
  padding: 0.1rem 0.45rem;
  background: oklch(0.982 0.006 110 / 0.14);
  color: var(--paper);
  font-size: var(--step--1);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.strip.is-active .strip__num { background: var(--green-500); color: var(--navy-900); }
.strip__label { display: none; }
.strip__more { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.1rem 1rem; flex: 1; min-width: 0; }
.strip__title {
  grid-column: 1;
  grid-row: 1;
  font-size: 1.375rem;
  font-weight: 450;
  font-stretch: 104%;
  line-height: 1.1;
  letter-spacing: -0.02em;
  hyphens: manual;
}
.strip__text { grid-column: 1; grid-row: 2; font-size: 0.875rem; line-height: 1.4; color: oklch(0.93 0.02 140); }
.strip__link { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--green-500); }
.strip__link span { display: none; }
.strip__link svg { width: 1.6rem; height: 1.6rem; transition: transform 0.35s var(--ease-out); }
.strip a:hover .strip__link svg { transform: translateX(5px); }

/* Steuerleiste */
.hero__rail {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem 1.5rem;
  padding: 1rem var(--gutter) 1.25rem;
  border-top: 1px solid var(--on-dark-line);
  background: var(--navy-900);
}
.rail__now { display: flex; align-items: baseline; gap: 0.9rem; min-width: 0; }
.rail__count { flex: none; font-size: 1.5rem; font-weight: 300; font-stretch: 112%; font-variant-numeric: tabular-nums; color: var(--on-dark-soft); }
.rail__count b { font-weight: 500; color: var(--green-500); }
.rail__name { min-width: 0; font-weight: 500; line-height: 1.3; }
.rail__progress { grid-column: 1 / -1; display: flex; gap: 0.4rem; }
.rail__progress li { position: relative; flex: 1; height: 3px; overflow: hidden; background: var(--on-dark-line); }
.rail__progress span { position: absolute; inset: 0; background: var(--green-500); transform: scaleX(0); transform-origin: 0 50%; }
.rail__progress li.is-done span { transform: scaleX(1); }
.rail__progress li.is-active span { animation: rail-fill var(--dur) linear forwards; }
.hero.is-offscreen .rail__progress li.is-active span,
.hero.is-hidden .rail__progress li.is-active span,
.hero:hover .rail__progress li.is-active span,
.hero:focus-within .rail__progress li.is-active span { animation-play-state: paused; }
.rail__nav { grid-column: 2; grid-row: 1; display: flex; gap: 0.5rem; }
.rail__btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--on-dark-line);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.rail__btn svg { width: 1.15rem; height: 1.15rem; }
.rail__btn[data-dir="-1"] svg { transform: rotate(180deg); }
.rail__btn:hover { border-color: var(--green-500); color: var(--green-500); }
html:not(.js) .rail__nav { display: none; }

@keyframes rail-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (min-width: 40em) {
  .strip a { height: 9.5rem; }
  .strip__title { font-size: 1.6rem; }
  .strip__link span { display: inline; }
}

/* Desktop: schräge Fotostreifen in voller Höhe */
@media (min-width: 64em) {
  .hero {
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: clamp(40rem, 100svh, 60rem);
  }
  .hero__content { gap: var(--space-2); padding: clamp(2rem, 7svh, 4rem) var(--space-3) clamp(1.25rem, 3svh, 2rem) clamp(2.5rem, 5vw, 5rem); }
  .hero__title { font-size: clamp(2.8rem, min(1.2rem + 3.4vw, 7.4svh), 4.75rem); margin-bottom: var(--space-1); }
  .hero__facts { margin-top: var(--space-1); padding-top: var(--space-2); }
  .strips { position: relative; grid-column: 2; grid-row: 1; }

  .strips__list {
    position: absolute;
    inset: 0 -0.75rem 0 1.5rem;
    display: flex;
    gap: 0.55rem;
    transform: skewX(calc(var(--skew) * -1));
  }
  .strip { flex: 1 1 0; min-width: 0; margin: 0; transition: flex-grow 0.7s var(--ease-out); }
  .strip.is-active { flex-grow: 3.6; }
  .strip a { position: absolute; inset: 0; height: auto; clip-path: none; }
  .strip img {
    left: 50%;
    width: 48vw;
    max-width: none;
    transform: translateX(-50%) skewX(var(--skew)) scale(1.22);
  }
  .strip.is-active img { transform: translateX(-50%) skewX(var(--skew)) scale(1.3); transition: transform var(--dur) linear; }
  .strip a::after { background: linear-gradient(0deg, oklch(0.21 0.04 168 / 0.94) 0%, oklch(0.21 0.04 168 / 0.3) 50%, oklch(0.21 0.04 168 / 0.15) 100%); }

  /* Text liegt im schrägen Streifen und wird pro Element aufgerichtet */
  .strip__inner { display: block; inset: 0; padding: 0; }
  .strip__num { position: absolute; bottom: 2.25rem; left: 50%; transform: translateX(-50%) skewX(var(--skew)); }
  .strip__label {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    writing-mode: vertical-rl;
    transform: translate(-50%, -50%) skewX(var(--skew)) rotate(180deg);
    font-size: 1.125rem;
    font-weight: 500;
    font-stretch: 104%;
    letter-spacing: -0.005em;
    white-space: nowrap;
    color: oklch(0.982 0.006 110 / 0.86);
    transition: opacity 0.35s var(--ease-out);
  }
  .strip__more {
    position: absolute;
    left: 2.75rem;
    right: 2.5rem;
    bottom: 2.5rem;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr);
    opacity: 0;
    transform: translateY(14px) skewX(var(--skew));
    transition: opacity 0.3s var(--ease-out), transform 0.6s var(--ease-out);
    pointer-events: none;
  }
  .strip__title { font-size: clamp(1.9rem, 0.9rem + 1.7vw, 2.8rem); line-height: 1.02; letter-spacing: -0.032em; overflow-wrap: break-word; }
  .strip__text { grid-row: auto; max-width: 28ch; font-size: 1rem; }
  .strip__link { grid-column: 1; grid-row: auto; margin-top: 0.4rem; }
  .strip__link span { display: inline; }
  .strip__link svg { width: 1.3rem; height: 1.3rem; }

  .strip.is-active .strip__label { opacity: 0; }
  .strip.is-active .strip__more { opacity: 1; transform: skewX(var(--skew)); transition-delay: 0.2s; }
  .strip.is-active .strip__num { top: 2.5rem; bottom: auto; left: 3.5rem; transform: skewX(var(--skew)); }

  .hero__rail {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 20rem) auto;
    gap: 2.5rem;
    padding: 1.1rem var(--gutter) 1.1rem clamp(2.5rem, 5vw, 5rem);
  }
  .rail__now { min-width: 0; }
  .rail__progress { grid-column: auto; }
  .rail__nav { grid-column: auto; grid-row: auto; }
  .rail__btn { width: 3rem; height: 3rem; }
}

/* Niedrige Laptop-Bildschirme: Hero samt Steuerleiste bleibt im ersten Bild */
@media (min-width: 64em) and (max-height: 820px) {
  .hero__facts { display: none; }
  .hero__lead { font-size: 1rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__content > * { animation: rise 1s var(--ease-out) both; }
  .hero__content > :nth-child(2) { animation-delay: 0.1s; }
  .hero__content > :nth-child(3) { animation-delay: 0.2s; }
  .hero__content > :nth-child(4) { animation-delay: 0.3s; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 64em) {
  .strip { animation: strip-in 0.9s var(--ease-out) both; }
  .strip:nth-child(2) { animation-delay: 0.07s; }
  .strip:nth-child(3) { animation-delay: 0.14s; }
  .strip:nth-child(4) { animation-delay: 0.21s; }
  .strip:nth-child(5) { animation-delay: 0.28s; }
}
@media (prefers-reduced-motion: reduce) {
  .rail__progress li.is-active span { animation: none; transform: scaleX(1); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes strip-in {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Gemeinsame Bildsprache: Duotone, Farbe bei Interaktion ---------- */

.duo { position: relative; display: block; overflow: hidden; isolation: isolate; }
.duo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.duo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy-700);
  mix-blend-mode: color;
  transition: opacity 0.6s var(--ease-out);
}
a:hover .duo::after,
a:focus-visible .duo::after { opacity: 0; }
a:hover .duo img { transform: scale(1.04); }

/* ---------- Bezirke-Navigation: schräge Kacheln als Echo der Hero-Streifen ---------- */

.bz { padding: var(--space-6) var(--pad-inline) var(--space-8); background: var(--paper); }
.bz__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: var(--space-4);
}
.bz__title {
  font-size: var(--step-3);
  font-weight: 400;
  font-stretch: 104%;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--navy-900);
}
.bz__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.bz__item.is-focus,
.bz__item:last-child { grid-column: 1 / -1; }
.bz__item a {
  --fg-arrow: var(--green-500);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 5.75rem;
  padding: 1rem 3rem 1rem 1.1rem;
  background: var(--navy-700);
  color: var(--paper);
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 0.9rem), calc(100% - 0.9rem) 100%, 0 100%);
  transition: background-color 0.3s var(--ease-out), transform 0.5s var(--ease-out);
}
.bz__item.is-focus a { --fg-arrow: var(--navy-900); background: var(--green-500); color: var(--navy-900); }
.bz__name {
  font-size: clamp(1.15rem, 0.9rem + 0.8vw, 1.5rem);
  font-weight: 450;
  font-stretch: 104%;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.bz__tag {
  position: absolute;
  top: 0.9rem;
  left: 1.1rem;
  font-size: var(--step--1);
  font-weight: 700;
}
.bz__item a svg {
  position: absolute;
  right: 1.1rem;
  bottom: 1rem;
  width: 1.3rem;
  height: 1.3rem;
  color: var(--fg-arrow);
  transition: transform 0.35s var(--ease-out);
}
.bz__item a:hover { background: var(--blue-600); }
.bz__item.is-focus a:hover { background: var(--green-400); }
.bz__item a:hover svg { transform: translateX(5px); }

@media (min-width: 64em) {
  .bz { padding-top: var(--space-8); }
  .bz__list {
    display: flex;
    gap: 0.55rem;
    margin-inline: 0.75rem;
    transform: skewX(-10deg);
  }
  .bz__item { flex: 1 1 0; min-width: 0; }
  .bz__item.is-focus { flex-grow: 1.25; }
  .bz__item a { min-height: 9.5rem; padding: 1.25rem 1.2rem 1.4rem; clip-path: none; }
  .bz__name { font-size: clamp(1rem, 0.7rem + 0.6vw, 1.35rem); }
  .bz__name,
  .bz__tag { transform: skewX(10deg); transform-origin: 0 100%; }
  .bz__tag { top: 1.25rem; left: 1.4rem; }
  .bz__item a svg { top: 1.25rem; right: 1.2rem; bottom: auto; opacity: 0; transform: translate(-6px, 0) skewX(10deg); transition: opacity 0.3s var(--ease-out), transform 0.4s var(--ease-out); }
  .bz__item a:hover { transform: translateY(-6px); }
  .bz__item a:hover svg,
  .bz__item a:focus-visible svg { opacity: 1; transform: translate(0, 0) skewX(10deg); }
}

/* Laptop-Breiten: Schwerpunkte oben breit, die fünf übrigen Bezirke darunter */
@media (min-width: 64em) and (max-width: 89.99em) {
  .bz__list { flex-wrap: wrap; row-gap: 0.55rem; }
  .bz__item.is-focus { flex: 1 1 45%; }
  .bz__item:not(.is-focus) { flex: 1 1 15%; }
  .bz__item a { min-height: 7.5rem; }
}

/* Abgeschrägte Kacheln: Fokusring nach innen, sonst schneidet clip-path ihn ab */
.bz__item a { --focus: var(--green-500); }
.bz__item.is-focus a { --focus: var(--navy-900); }
.bz__item a:focus-visible,
.contact-way:focus-visible,
.steps__tile:focus-visible { outline-offset: -6px; }

/* Sprungziel aus der Bezirke-Navigation kurz hervorheben */
.districts details:target .districts__name { color: var(--green-700); }

/* ---------- Aktuell ---------- */

.news { padding: var(--section) var(--pad-inline) calc(var(--section) * 0.8); background: var(--white); }
.news__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: var(--space-4);
}
.news__title {
  font-size: var(--step-4);
  font-weight: 400;
  font-stretch: 104%;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--navy-900);
}
.news__list { display: grid; gap: 1.25rem; }
.card a {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  grid-template-areas: "media time" "media title";
  gap: 0.3rem 1rem;
  align-content: start;
  color: var(--ink);
  text-decoration: none;
}
.card__media { grid-area: media; aspect-ratio: 1; clip-path: polygon(0 0, 100% 0, 100% 82%, 82% 100%, 0 100%); }
.card time { grid-area: time; font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.card__title { grid-area: title; font-size: 1.0625rem; font-weight: 500; line-height: 1.4; color: var(--navy-900); }
.card a:hover .card__title { text-decoration: underline; text-underline-offset: 0.2em; }

@media (min-width: 40em) {
  .news__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
  .card a { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "time" "title"; gap: 0.7rem; }
  .card__media { aspect-ratio: 4 / 3; clip-path: polygon(0 0, 100% 0, 100% 86%, 88% 100%, 0 100%); }
}
@media (min-width: 64em) {
  .news__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Intro ---------- */

.intro { display: grid; gap: var(--space-6); padding: var(--section) var(--pad-inline); }
.intro__body { display: grid; gap: var(--space-4); align-content: center; justify-items: start; }
.intro__body .lead { max-width: 30ch; }
.usp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; width: 100%; }
.usp li { display: flex; }
.usp__tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.1rem;
  width: 100%;
  min-height: 6.75rem;
  padding: 0.95rem 1rem 1.05rem;
  background: var(--mist);
  color: var(--navy-900);
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.0625rem);
  font-weight: 600;
  line-height: 1.25;
  hyphens: auto;
  overflow-wrap: break-word;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 0.9rem), calc(100% - 0.9rem) 100%, 0 100%);
}
.usp svg {
  flex: none;
  width: 2.1rem;
  height: 1.6rem;
  padding: 0.3rem 0.6rem;
  background: var(--green-500);
  color: var(--navy-900);
  clip-path: polygon(0.3rem 0, 100% 0, calc(100% - 0.3rem) 100%, 0 100%);
}
.usp svg path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: square; }
.intro__media { margin: 0; }
.intro__frame { position: relative; overflow: hidden; aspect-ratio: 16 / 10; clip-path: polygon(11% 0, 100% 0, 89% 100%, 0 100%); }
.intro__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.intro__caption { display: grid; gap: 0.1rem; margin-top: 1rem; padding-left: 11%; color: var(--ink-soft); font-size: 0.9375rem; }
.intro__name { font-size: var(--step-1); font-weight: 600; color: var(--navy-900); }
.intro__caption small { margin-top: 0.25rem; font-size: 0.75rem; color: var(--ink-soft); }

@media (min-width: 64em) {
  .intro { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-8); align-items: center; }
  .intro__frame { aspect-ratio: 4 / 5; clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); }
  .intro__caption { padding-left: 0; }
  /* Vorteile als schräge Platten, unten bündig mit dem Text, oben der Hero-Neigung folgend */
  .usp { gap: 0.55rem; transform: skewX(-10deg); transform-origin: 0 100%; }
  .usp__tile { min-height: 6rem; padding: 1.1rem 1.25rem 1.2rem; clip-path: none; }
  .usp__tile > * { transform: skewX(10deg); transform-origin: 0 100%; }
}

/* ---------- Leistungen als Index-Liste ---------- */

.index { padding: var(--section) var(--pad-inline); background: var(--mist); }
.index__head { margin-bottom: var(--space-6); }
.index__list { position: relative; border-top: 2px solid var(--navy-900); }
.index__item a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title arrow" "facts facts";
  gap: 0.3rem 0.75rem;
  align-items: center;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--line);
  color: var(--navy-900);
  text-decoration: none;
}
.index__title {
  grid-area: title;
  font-size: clamp(1.6rem, 1rem + 2.2vw, 3rem);
  font-weight: 400;
  font-stretch: 104%;
  line-height: 1.05;
  letter-spacing: -0.03em;
  transition: transform 0.5s var(--ease-out), color 0.3s var(--ease-out);
}
.index__facts { grid-area: facts; font-size: 0.9375rem; color: var(--ink-soft); transition: opacity 0.3s var(--ease-out); }
.index__arrow { grid-area: arrow; width: 1.6rem; height: 1.6rem; color: var(--navy-900); transition: transform 0.4s var(--ease-out), color 0.3s var(--ease-out); }
.index__preview { display: none; }
.index__item a:hover .index__arrow,
.index__item a:focus-visible .index__arrow { color: var(--green-700); transform: translateX(5px); }
.index__all { margin-top: var(--space-6); }

@media (min-width: 64em) {
  .index__item a {
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr) 3rem;
    grid-template-areas: "title facts arrow";
    padding-block: 1.6rem;
  }
  .index__item a:hover .index__title,
  .index__item a:focus-visible .index__title { transform: translateX(1rem); color: var(--green-700); }
  .index__preview {
    display: block;
    position: absolute;
    right: 4.5rem;
    top: 50%;
    z-index: 2;
    width: 17rem;
    aspect-ratio: 3 / 2;
    clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
    opacity: 0;
    transform: translateY(-50%) scale(0.9) rotate(-2deg);
    transition: opacity 0.35s var(--ease-out), transform 0.6s var(--ease-out);
    pointer-events: none;
  }
  .index__preview::after { opacity: 0; }
  .index__item a:hover .index__preview,
  .index__item a:focus-visible .index__preview { opacity: 1; transform: translateY(-50%) scale(1) rotate(0); }
  .index__item a:hover .index__facts,
  .index__item a:focus-visible .index__facts { opacity: 0; }
}

/* ---------- Versprechen ---------- */

.promise {
  --accent-ink: var(--green-500);
  --focus: var(--green-500);
  position: relative;
  isolation: isolate;
  contain: paint;
  background: var(--navy-900);
  color: var(--paper);
}
.promise__media {
  position: relative;
  z-index: -1;
  height: 12rem;
  -webkit-mask-image: repeating-linear-gradient(100deg, #000 0 2.6rem, transparent 2.6rem 3.3rem);
  mask-image: repeating-linear-gradient(100deg, #000 0 2.6rem, transparent 2.6rem 3.3rem);
}
.promise__media img { width: 100%; height: 100%; object-fit: cover; }
.promise__media::after { content: ""; position: absolute; inset: 0; background: var(--navy-700); mix-blend-mode: color; }
.promise .display-2 { color: var(--paper); }
.promise__inner { display: grid; gap: var(--space-4); padding: var(--space-6) var(--pad-inline) var(--section); }
.promise__list > div { position: relative; display: grid; gap: 0.35rem; padding: 1.5rem 0 1.5rem 5rem; border-top: 1px solid var(--on-dark-line); }
.promise__list .promise__scene {
  --scene-fill: var(--navy-900);
  position: absolute;
  left: 0;
  top: 50%;
  width: 3.75rem;
  padding: 0;
  margin: 0;
  color: var(--paper);
  translate: 0 -50%;
}
.promise__list dt {
  font-size: var(--step-4);
  font-weight: 380;
  font-stretch: 104%;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--paper);
}
.promise__list dd { max-width: 40ch; font-size: 1.0625rem; color: var(--on-dark-soft); }

@media (min-width: 64em) {
  .promise__list > div { padding-left: 6.75rem; }
  .promise__list .promise__scene { width: 5rem; }
  .promise__media {
    position: absolute;
    inset: 0 0 0 auto;
    width: 58%;
    height: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%), repeating-linear-gradient(100deg, #000 0 3.4rem, transparent 3.4rem 4.3rem);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 45%), repeating-linear-gradient(100deg, #000 0 3.4rem, transparent 3.4rem 4.3rem);
    mask-composite: intersect;
    opacity: 0.3;
  }
  .promise__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-8); padding-top: var(--section); }
}

/* ---------- Abschnittskopf (Unterseiten) ---------- */

.section-head { display: grid; gap: var(--space-2); margin-bottom: var(--space-6); }
.section-head p { max-width: 44ch; color: var(--ink-soft); }

@media (min-width: 64em) {
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; gap: var(--space-8); }
  .section-head p { justify-self: end; }
}

/* ---------- Ablauf als Schritt-Kacheln ---------- */

.process { padding: var(--section) var(--pad-inline); }
.process__head { margin-bottom: var(--space-6); }
.steps { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; padding-top: 1.25rem; }
.steps::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--green-500);
  transform-origin: 0 50%;
}
.steps__item { display: flex; }
.steps__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  width: 100%;
  overflow: hidden;
  padding: 1rem 1.1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy-900);
  text-decoration: none;
}
.steps__tile h3 { font-size: var(--step-2); font-weight: 450; font-stretch: 104%; line-height: 1.1; letter-spacing: -0.02em; }
.steps__tile p { min-height: 2.8em; font-size: 0.9375rem; line-height: 1.4; color: var(--ink-soft); }
.steps__item.is-start .steps__tile {
  --focus: var(--navy-900);
  background: var(--green-500);
  border-color: var(--green-500);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 0.9rem), calc(100% - 0.9rem) 100%, 0 100%);
}
.steps__item.is-start p { color: var(--navy-900); }
.steps__arrow {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  width: 1.3rem;
  height: 1.3rem;
  transition: transform 0.35s var(--ease-out);
}
a.steps__tile { transition: background-color 0.3s var(--ease-out), transform 0.5s var(--ease-out); }
a.steps__tile:hover { background: var(--green-400); }
a.steps__tile:hover .steps__arrow { transform: translateX(5px); }

@media (min-width: 64em) {
  .steps { display: flex; gap: 0.55rem; margin-inline: 1rem; padding-top: 1.5rem; transform: skewX(-10deg); }
  .steps__item { flex: 1 1 0; min-width: 0; }
  .steps__tile { min-height: 14rem; padding: 1.4rem 1.4rem 1.5rem; }
  .steps .scene { width: min(8.5rem, 100%); }
  .steps__item.is-start .steps__tile { clip-path: none; }
  .steps__tile > * { transform: skewX(10deg); transform-origin: 0 100%; }
  .steps__arrow { top: 1.4rem; right: 1.4rem; }
  a.steps__tile:hover { transform: translateY(-6px); }
  a.steps__tile:hover .steps__arrow { transform: translateX(5px) skewX(10deg); }
}

/* ---------- Motion-Grafiken ----------
   Kleine Vektor-Szenen im Lottie-Stil, reines SVG + CSS. Jede Szene ([data-scene]) spielt einmal,
   sobald sie sichtbar ist (main.js setzt .play), danach steht sie.
   Ohne JS oder bei reduzierter Bewegung steht das fertige Bild. Keine Endlosschleifen. */
.scene {
  width: min(7rem, 100%);
  height: auto;
  margin-bottom: auto;
  padding-bottom: 0.9rem;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scene .sc-fill { fill: var(--scene-fill, var(--white)); }
.scene .sc-accent { fill: var(--green-500); }
.scene .sc-dot,
.scene .sc-snow { fill: currentColor; stroke: none; }
.scene .sc-trail,
.scene .sc-tick,
.scene .sc-tape { stroke: var(--green-500); }
.sc-draw,
.sc-streak { stroke-dasharray: 1; }
.scene .sc-ink { stroke: var(--navy-900); }
.scene .sc-pop,
.scene .sc-move,
.scene .sc-wheel,
.scene .sc-shake,
.scene .sc-settle,
.scene .sc-puff,
.scene .sc-clear { transform-box: fill-box; transform-origin: var(--o, center); }
.scene .sc-shake { --o: 50% 100%; }
.scene .sc-settle { --o: 100% 100%; }
.scene .sc-clear { --o: 100% 50%; scale: 0 1; }
.scene .sc-puff { scale: 0; }
.scene .sc-snip { transform-box: view-box; transform-origin: 0 0; }
.steps__item.is-start .sc-accent { fill: var(--navy-900); }

@keyframes sc-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes sc-streak { 0% { stroke-dashoffset: 1; } 45% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
@keyframes sc-pop { from { scale: 0; } to { scale: 1; } }
@keyframes sc-move { from { translate: var(--fx, 0px) var(--fy, 0px); rotate: var(--fr, 0deg); } to { translate: 0 0; rotate: 0deg; } }
@keyframes sc-shake { 0%, 100% { rotate: 0deg; } 15% { rotate: -9deg; } 30% { rotate: 8deg; } 45% { rotate: -6deg; } 60% { rotate: 4deg; } 75% { rotate: -2deg; } }
@keyframes sc-sweep { 0% { translate: 46px -14px; } 55% { translate: -40px -4px; } 100% { translate: 0 0; } }
@keyframes sc-drive { from { translate: -110px 0; } to { translate: 0 0; } }
@keyframes sc-wheel { from { rotate: -720deg; } to { rotate: 0deg; } }
@keyframes sc-settle { 0%, 100% { rotate: 0deg; } 35% { rotate: 2.5deg; } 70% { rotate: -1deg; } }
@keyframes sc-puff { 0% { scale: 0; translate: 0 0; } 45% { scale: 1; } 100% { scale: 0; translate: -10px -5px; } }
@keyframes sc-clear { from { scale: 1 1; } to { scale: 0 1; } }
@keyframes sc-snip { 0%, 30%, 60%, 100% { rotate: 0deg; } 15%, 45%, 80% { rotate: calc(var(--dir, 1) * 16deg); } }
@keyframes sc-pen {
  0% { translate: -16px -24px; }
  23% { translate: 14px -24px; }
  25% { translate: -16px -16px; }
  48% { translate: 18px -16px; }
  50% { translate: -16px -8px; }
  73% { translate: 10px -8px; }
  75% { translate: -16px 0; }
  98%, 100% { translate: 0 0; }
}

html.anim [data-scene] .sc-draw { animation: sc-draw var(--dur, 0.7s) var(--ease, var(--ease-out)) calc(var(--s, 0s) + var(--t, 0s)) both; }
html.anim [data-scene] .sc-streak { animation: sc-streak 1.1s var(--ease-out) calc(var(--s, 0s) + var(--t, 0s)) both; }
html.anim [data-scene] .sc-pop { animation: sc-pop var(--dur, 0.55s) var(--ease-out) calc(var(--s, 0s) + var(--t, 0s)) both; }
html.anim [data-scene] .sc-move { animation: sc-move var(--dur, 0.9s) var(--ease, var(--ease-out)) calc(var(--s, 0s) + var(--t, 0s)) both; }
html.anim [data-scene] .sc-clear { animation: sc-clear var(--dur, 1.4s) cubic-bezier(0.65, 0, 0.35, 1) calc(var(--s, 0s) + var(--t, 0s)) both; }
html.anim [data-scene] .sc-snip { animation: sc-snip var(--dur, 1.6s) linear calc(var(--s, 0s) + var(--t, 0s)) both; }
html.anim [data-scene] .sc-shake { animation: sc-shake 0.9s ease-in-out calc(var(--s, 0s) + 0.1s) both; }
html.anim [data-scene] .sc-sweep { animation: sc-sweep 1.5s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--s, 0s) + 1s) both; }
html.anim [data-scene] .sc-drive { animation: sc-drive 1.5s var(--ease-out) calc(var(--s, 0s) + 0.2s) both; }
html.anim [data-scene] .sc-wheel { animation: sc-wheel 1.5s var(--ease-out) calc(var(--s, 0s) + 0.2s) both; }
html.anim [data-scene] .sc-settle { animation: sc-settle 0.8s ease-in-out calc(var(--s, 0s) + 1.4s) both; }
html.anim [data-scene] .sc-puff { animation: sc-puff 0.7s var(--ease-out) calc(var(--s, 0s) + var(--t, 0s)) 2 both; }
html.anim [data-scene] .sc-pen { animation: sc-pen 1.4s linear calc(var(--s, 0s) + 0.6s) both; }
/* Bis die Szene sichtbar ist, steht sie auf dem Anfangsbild */
html.anim [data-scene]:not(.play),
html.anim [data-scene]:not(.play) * { animation-play-state: paused !important; }

/* Kontaktwege: Symbol bewegt sich einmal beim Auftritt (eigene translate/rotate, Scherung bleibt) */
@keyframes ico-ring { 0%, 100% { rotate: 0deg; } 20% { rotate: -14deg; } 40% { rotate: 12deg; } 60% { rotate: -8deg; } 80% { rotate: 4deg; } }
@keyframes ico-drop { from { translate: 0 -1.25rem; } to { translate: 0 0; } }
@keyframes ico-slide { from { translate: -1.5rem 0; } to { translate: 0 0; } }
html.anim .contact-ways__list li.is-in .contact-way__icon { animation: 0.9s var(--ease-out) calc(var(--d, 0s) + 0.45s) both; }
html.anim .contact-ways__list li.is-in .contact-way--green .contact-way__icon { animation-name: ico-ring; animation-timing-function: ease-in-out; }
html.anim .contact-ways__list li.is-in .contact-way--blue .contact-way__icon { animation-name: sc-pop; }
html.anim .contact-ways__list li.is-in .contact-way--navy .contact-way__icon { animation-name: ico-slide; }
html.anim .contact-ways__list li.is-in .contact-way--mist .contact-way__icon { animation-name: ico-drop; }

/* ---------- Einsatzgebiet ---------- */

.area { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); padding: var(--section) var(--pad-inline); background: var(--white); }
.area__media { position: relative; margin: 0; }
.area__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; clip-path: polygon(0 22%, 50% 0, 100% 22%, 100% 100%, 0 100%); }
.area__body { display: grid; gap: var(--space-3); align-content: center; justify-items: start; min-width: 0; }
.area__body > p { max-width: 44ch; font-size: 1.0625rem; color: var(--ink-soft); }

.districts { width: 100%; border-top: 2px solid var(--navy-900); }
.districts details { border-bottom: 1px solid var(--line); }
.districts summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
  min-height: 3.5rem;
  padding-block: 0.75rem;
  cursor: pointer;
  list-style: none;
}
.districts summary::-webkit-details-marker { display: none; }
.districts__name { font-size: clamp(1.35rem, 1rem + 1vw, 1.9rem); font-weight: 400; font-stretch: 104%; letter-spacing: -0.02em; color: var(--navy-900); }
.districts__tag { padding: 0.15rem 0.5rem; background: var(--green-500); color: var(--navy-900); font-size: var(--step--1); font-weight: 700; }
.districts__count { margin-left: auto; font-size: 0.875rem; color: var(--ink-soft); white-space: nowrap; }
.districts summary svg { flex: none; width: 1.25rem; height: 1.25rem; color: var(--green-700); transition: transform 0.3s var(--ease-out); }
.districts details[open] summary svg { transform: rotate(45deg); }
.districts details p { max-width: 62ch; padding-bottom: 1.1rem; font-size: 0.9375rem; line-height: 1.7; color: var(--ink-soft); }
.districts__name { transition: color 0.25s var(--ease-out); }
.districts summary:hover .districts__name { color: var(--green-700); }

/* Weiches Auf- und Zuklappen: die Zeile wächst per grid-template-rows (kein height),
   der Text gleitet dabei nach. Ohne ::details-content klappt es wie bisher sofort auf. */
.districts__panel { min-height: 0; overflow: hidden; }
.districts details::details-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s cubic-bezier(0.65, 0, 0.35, 1), content-visibility 0.42s allow-discrete;
}
.districts details[open]::details-content {
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.55s var(--ease-out), content-visibility 0.55s allow-discrete;
}
.districts__panel p { transform: translateY(-0.75rem); transition: transform 0.55s var(--ease-out); }
.districts details[open] .districts__panel p { transform: none; }
@starting-style {
  .districts details[open] .districts__panel p { transform: translateY(-0.75rem); }
}
@media (prefers-reduced-motion: reduce) {
  .districts details::details-content { transition: none; }
}

@media (min-width: 64em) {
  /* Bild oben verankert und mitlaufend: Aufklappen eines Bezirks verschiebt es nicht mehr */
  .area { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--space-8); align-items: start; }
  .area__media { position: sticky; top: var(--space-6); }
  .area__media img { aspect-ratio: 4 / 5; clip-path: polygon(0 16%, 50% 0, 100% 16%, 100% 100%, 0 100%); }
}

/* ---------- Anzeige (Partner-Werbung, als Anzeige gekennzeichnet) ---------- */

.ad {
  display: grid;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-6) var(--pad-inline);
  background: var(--mist);
  border-top: 1px solid var(--line);
}
/* Szene im Tannengrün-Parallelogramm, gleiche Form wie die Bild-Badges der Seite */
.ad__badge {
  --scene-fill: var(--navy-900);
  width: min(13rem, 72%);
  padding: 1rem 1.6rem 0.8rem 1.9rem;
  background: var(--navy-900);
  color: var(--paper);
  clip-path: polygon(1.1rem 0, 100% 0, calc(100% - 1.1rem) 100%, 0 100%);
}
.ad__badge .scene { display: block; width: 100%; padding: 0; margin: 0; }
html.anim .ad__badge { animation: badge-in 0.7s var(--ease-out) both; }
.ad__side { display: grid; gap: var(--space-3); justify-items: start; align-content: start; min-width: 0; }

/* Logo des Werbepartners in seinen eigenen Farben (Voulgaris: Asphalt, Signal-Orange, Kupfer) */
.ad__brand {
  --vl-ink: #120d0a;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--vl-ink);
  text-decoration: none;
}
.ad__mark { flex: none; width: 3.75rem; height: 3.75rem; transition: translate 0.3s var(--ease-out); }
.ad__mark .vl-bg { fill: #120d0a; }
.ad__mark .vl-day,
.ad__mark .vl-night { fill: none; stroke-width: 6; }
.ad__mark .vl-day { stroke: #fe6e16; stroke-dasharray: 17 7; }
.ad__mark .vl-night { stroke: #bb7234; stroke-dasharray: 0 17 6 1; }
.ad__mark .vl-hole { fill: #f4efea; }
.ad__mark .vl-turn,
.ad__mark .vl-hole { transform-box: fill-box; transform-origin: center; }
.ad__brandtext { display: grid; gap: 0.35rem; }
.ad__wordmark { display: block; width: auto; height: 1.6rem; overflow: visible; fill: var(--vl-ink); }
.ad__brandsub {
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  color: oklch(0.47 0.15 40);
}
.ad__brand:hover .ad__mark { translate: 0 -3px; }

/* Einmal beim Hereinscrollen: Abzeichen dreht sich wie ein Schloss auf, der 24h-Ring zeichnet sich */
@keyframes vl-turn { from { rotate: -100deg; } to { rotate: 0deg; } }
@keyframes vl-day { from { stroke-dasharray: 0 24; } to { stroke-dasharray: 17 7; } }
@keyframes vl-night { from { stroke-dasharray: 0 17 0 7; } to { stroke-dasharray: 0 17 6 1; } }
html.anim .ad__brand[data-scene] .vl-turn { animation: vl-turn 1.1s cubic-bezier(0.3, 0.6, 0.3, 1) 0.5s both; }
html.anim .ad__brand[data-scene] .vl-day { animation: vl-day 0.9s var(--ease-out) 0.55s both; }
html.anim .ad__brand[data-scene] .vl-night { animation: vl-night 0.5s var(--ease-out) 1.35s both; }
html.anim .ad__brand[data-scene] .vl-hole { animation: sc-pop 0.5s var(--ease-out) 0.3s both; }

/* Handy: Logo statt Szene, damit die Anzeige kurz bleibt */
@media (max-width: 47.99em) {
  .ad__badge { display: none; }
}
.ad__body { display: grid; gap: 0.75rem; justify-items: start; min-width: 0; }
.ad__facts { max-width: 54ch; margin-top: 0.25rem; font-size: 0.9375rem; color: var(--ink-soft); }
.ad__facts strong { color: var(--navy-900); font-weight: 600; }
.ad__label {
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--ink-soft);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ad__title {
  font-size: var(--step-3);
  font-weight: 400;
  font-stretch: 104%;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--navy-900);
  text-wrap: balance;
}
.ad__text { max-width: 54ch; color: var(--ink-soft); }
.ad__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

@media (min-width: 48em) {
  .ad { grid-template-columns: 18.75rem minmax(0, 1fr); gap: var(--space-4) var(--space-6); align-items: start; padding-block: var(--space-8); }
  .ad__badge { width: 100%; }
  .ad__actions { grid-column: 2; }
}
@media (min-width: 64em) {
  .ad { grid-template-columns: 18.75rem minmax(0, 1fr) auto; align-items: center; }
  .ad__actions { grid-column: auto; flex-direction: column; align-items: stretch; }
}

/* ---------- Footer ---------- */

.footer {
  --accent-ink: var(--green-500);
  --focus: var(--green-500);
  background: var(--navy-900);
  color: var(--paper);
  padding: var(--section) var(--pad-inline) var(--space-4);
}
.footer__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--on-dark-line);
}
.footer__claim {
  font-size: var(--step-5);
  font-weight: 380;
  font-stretch: 104%;
  line-height: 1;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.footer__arrow {
  display: inline-flex;
  width: clamp(4rem, 3rem + 4vw, 7rem);
  height: clamp(4rem, 3rem + 4vw, 7rem);
  color: var(--green-500);
  transition: transform 0.4s var(--ease-out);
}
.footer__arrow svg { width: 100%; height: 100%; }
.footer__arrow:hover { transform: translate(6px, -6px); }

.footer__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4) var(--space-3);
  padding-block: var(--space-6);
}
.footer__h {
  margin-bottom: 0.9rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: oklch(0.76 0.035 150);
}
.footer__list { display: grid; gap: 0.5rem; font-size: 0.9375rem; line-height: 1.5; color: var(--on-dark-soft); }
.footer__list a { color: var(--paper); text-decoration: none; }
.footer__list a:hover { text-decoration: underline; text-decoration-color: var(--green-500); text-underline-offset: 0.25em; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: var(--space-3);
  border-top: 1px solid var(--on-dark-line);
  font-size: 0.875rem;
  color: oklch(0.76 0.035 150);
}
.footer__ad {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding-bottom: var(--space-3);
  font-size: 0.9375rem;
  color: var(--on-dark-soft);
}
.footer__ad-label {
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--on-dark-line);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: oklch(0.76 0.035 150);
}
.footer__ad a { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--paper); text-decoration: underline; text-decoration-color: var(--green-500); text-underline-offset: 0.25em; }
.footer__ad img { flex: none; width: 1.375rem; height: 1.375rem; }
.footer__ad a:hover { color: var(--green-500); }

@media (min-width: 64em) {
  .footer__grid { grid-template-columns: repeat(4, 1fr); }
}

.footer__strips { display: none; }
@media (min-width: 64em) {
  .footer__cta { flex-wrap: nowrap; }
  .footer__strips {
    display: flex;
    flex: none;
    gap: 0.45rem;
    width: 17rem;
    height: 9.5rem;
    margin-left: auto;
    transform: skewX(-10deg);
  }
  .footer__strips li { position: relative; flex: 1; overflow: hidden; }
  .footer__strips img {
    position: absolute;
    top: 0;
    left: 50%;
    width: 15rem;
    max-width: none;
    height: 100%;
    object-fit: cover;
    transform: translateX(-50%) skewX(10deg) scale(1.2);
  }
  .footer__strips li::after { content: ""; position: absolute; inset: 0; background: var(--navy-700); mix-blend-mode: color; }
  .footer__strips li:nth-child(2)::after { opacity: 0; }
}

/* ---------- Seitenkopf (Unterseiten) ---------- */

.page-head {
  --accent-ink: var(--green-500);
  --focus: var(--green-500);
  position: relative;
  isolation: isolate;
  display: grid;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--paper);
}
.page-head .display-1 { color: var(--paper); }
.page-head__media {
  position: relative;
  height: 15rem;
  -webkit-mask-image: repeating-linear-gradient(-55deg, #000 0 2.75rem, transparent 2.75rem 3.5rem);
  mask-image: repeating-linear-gradient(-55deg, #000 0 2.75rem, transparent 2.75rem 3.5rem);
}
.page-head__media img { width: 100%; height: 100%; object-fit: cover; }
.page-head__body {
  display: grid;
  gap: var(--space-3);
  align-content: center;
  padding: var(--space-6) var(--gutter) var(--space-8);
}
.page-head__body .lead { max-width: 38rem; color: var(--on-dark-soft); font-size: var(--step-1); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: var(--step--1); font-weight: 600; color: oklch(0.76 0.035 150); }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; }
.crumbs a { color: var(--paper); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
/* Brotkrumen auf hellem Grund (Leistungs- und Ratgeberseiten) */
.crumbs--dark ol { color: var(--ink-soft); }
.crumbs--dark a { color: var(--navy-700); }

@media (min-width: 64em) {
  .page-head { grid-template-columns: 7fr 5fr; min-height: 30rem; }
  .page-head__body { order: -1; padding: var(--space-12) var(--gutter) var(--space-12) clamp(2.5rem, 5vw, 5rem); }
  .page-head__media {
    height: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%), repeating-linear-gradient(-55deg, #000 0 3.25rem, transparent 3.25rem 4.25rem);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 30%), repeating-linear-gradient(-55deg, #000 0 3.25rem, transparent 3.25rem 4.25rem);
    mask-composite: intersect;
  }
}

.page-head--plain { min-height: 0; }
.page-head--plain .page-head__body { padding-bottom: var(--space-6); }
@media (min-width: 64em) {
  .page-head--plain { grid-template-columns: 1fr; min-height: 0; }
  .page-head--plain .page-head__body { padding-block: var(--space-8) var(--space-6); }
}

/* ---------- Sprungleiste ---------- */

.jump {
  position: sticky;
  top: var(--bar);
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.jump ul {
  display: flex;
  gap: 0.25rem;
  padding-inline: var(--pad-inline);
  overflow-x: auto;
  scrollbar-width: none;
}
.jump ul::-webkit-scrollbar { display: none; }
.jump a {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.5rem;
  padding-inline: 0.9rem;
  white-space: nowrap;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
/* Schräge Markierung: fährt per scaleX ein, Nebelgrün beim Zeigen, Blattgrün für das aktuelle Kapitel */
.jump a::before {
  content: "";
  position: absolute;
  inset: 0.65rem 0.15rem;
  z-index: -1;
  background: var(--mist);
  transform: skewX(-10deg) scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease-out);
}
.jump a:hover { color: var(--navy-900); }
.jump a:hover::before { transform: skewX(-10deg) scaleX(1); }
.jump a.is-current { color: var(--navy-900); }
.jump a.is-current::before { background: var(--green-500); transform: skewX(-10deg) scaleX(1); }

@media (min-width: 64em) {
  .jump { top: 0; }
}

/* ---------- Leistungs-Kapitel ---------- */

.service {
  display: grid;
  gap: var(--space-4);
  padding: var(--section) var(--pad-inline) 0;
  scroll-margin-top: 5rem;
}
.service:last-of-type { padding-bottom: var(--section); }
.service__media { position: relative; }
.service__frame { position: relative; }
/* Motion-Badge am Kapitelbild: Szene auf Tannengrün, fährt per Maske ein */
.service__badge,
.area__badge {
  --scene-fill: var(--navy-900);
  position: absolute;
  z-index: 4;
  left: 1rem;
  bottom: -1.5rem;
  width: clamp(8.5rem, 34%, 11.5rem);
  padding: 0.8rem 1.2rem 0.7rem 1.5rem;
  background: var(--navy-900);
  color: var(--paper);
  clip-path: polygon(1.1rem 0, 100% 0, calc(100% - 1.1rem) 100%, 0 100%);
}
.service--flip .service__badge { left: auto; right: 1rem; }
.service__badge .scene,
.area__badge .scene { display: block; width: 100%; padding: 0; margin: 0; }
.area__badge { left: auto; right: 1rem; width: clamp(12rem, 52%, 17rem); }
@keyframes badge-in {
  from { clip-path: polygon(1.1rem 0, 1.1rem 0, 0 100%, 0 100%); }
  to { clip-path: polygon(1.1rem 0, 100% 0, calc(100% - 1.1rem) 100%, 0 100%); }
}
html.anim .service__badge,
html.anim .area__badge { animation: badge-in 0.7s var(--ease-out) both; }
.service__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 88% 100%, 0 100%);
}
.service__tag {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  background: var(--green-500);
  color: var(--navy-900);
  font-weight: 700;
  font-stretch: 112%;
  font-size: var(--step-1);
  font-variant-numeric: tabular-nums;
}
.service__body { display: grid; gap: var(--space-3); align-content: start; justify-items: start; }
.service__body > p { max-width: 58ch; color: var(--ink-soft); }
.service__body > .service__area { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9375rem; }
.service__area svg { flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; color: var(--green-700); }
.service__area a { color: var(--navy-700); font-weight: 600; text-underline-offset: 0.2em; }
/* Weitere Leistungen: vier Kacheln, mobil 2 x 2 */
.bz--more { padding-top: var(--space-6); }
.bz--more .bz__item:last-child { grid-column: auto; }
@media (max-width: 63.99em) {
  .bz--more .bz__item a { padding-right: 1.1rem; }
  .bz--more .bz__name { font-size: 1.0625rem; hyphens: manual; }
  .bz--more .bz__item a svg { top: 1rem; bottom: auto; }
}
@media (min-width: 64em) {
  .service__wide .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); }
}
.service__body h3 {
  margin-top: var(--space-1);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-700);
}
.checklist { display: grid; gap: 0.6rem; width: 100%; }
.checklist li { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.75rem; align-items: start; }
.checklist svg { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; color: var(--green-700); }
.service__for {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--mist);
  font-size: 0.9375rem;
  color: var(--ink);
}
.service__for strong { color: var(--navy-900); }

/* Breiter Block unter einem Kapitel (Hausmeister-Kontrollgang) */
.service__wide { display: grid; gap: var(--space-3); }
.service__wide h3,
.service__wide h2.service__sub {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-700);
}
.points {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--navy-900);
}
.points li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  color: var(--navy-900);
}
.points li svg { width: 1.2rem; height: 1.2rem; color: var(--green-700); }
.service__notes { display: grid; gap: var(--space-2); }

@media (min-width: 40em) {
  .points { grid-template-columns: repeat(2, 1fr); column-gap: var(--space-4); }
}
@media (min-width: 64em) {
  .service__wide { grid-column: 1 / -1; }
  /* Gespiegelte Kapitel: Bild und Text fest in Zeile 1, der breite Block darunter */
  .service--flip .service__body { grid-row: 1; grid-column: 1; }
  .service--flip .service__media { grid-row: 1; grid-column: 2; }
  .points { grid-template-columns: repeat(4, 1fr); }
  .service__notes { grid-template-columns: 3fr 2fr; gap: var(--space-4); align-items: start; }
}

/* Rhythmus-Leiste: drei feste Eckdaten pro Leistung */
.service__facts {
  display: grid;
  width: 100%;
  border-top: 2px solid var(--navy-900);
  border-bottom: 1px solid var(--line);
}
.service__facts > div {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.service__facts > div:first-child { border-top: 0; }
.service__facts dt {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-soft);
}
.service__facts dd {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy-900);
}

.service__not { width: 100%; border-top: 1px solid var(--line); }
.service__not summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy-900);
  cursor: pointer;
  list-style: none;
}
.service__not summary::-webkit-details-marker { display: none; }
.service__not summary svg { width: 1.15rem; height: 1.15rem; color: var(--green-700); transition: transform 0.3s var(--ease-out); }
.service__not[open] summary svg { transform: rotate(45deg); }
.service__not p { padding-bottom: 0.75rem; font-size: 0.9375rem; color: var(--ink-soft); }

@media (min-width: 40em) {
  .service__facts { grid-template-columns: repeat(3, 1fr); }
  .service__facts > div { padding: 0.9rem 1rem 0.9rem 0; border-top: 0; }
  .service__facts > div + div { padding-left: 1rem; border-left: 1px solid var(--line); }
  .checklist--2 { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
}

@media (min-width: 64em) {
  .service { grid-template-columns: 7fr 5fr; gap: var(--space-8); align-items: start; scroll-margin-top: 4.5rem; }
  .service--flip { grid-template-columns: 5fr 7fr; }
  .service--flip .service__media { order: 2; }
  .service--flip .service__media img { clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%, 0 86%); }
  .service--flip .service__tag { left: auto; right: 0; }
  .service__media { align-self: stretch; }
  .service__frame { position: sticky; top: 5.5rem; }
  .service__body { padding-top: var(--space-2); }
}

/* ---------- FAQ ---------- */

.faq { padding: var(--section) var(--pad-inline); background: var(--mist); }
.faq__list { max-width: 56rem; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  padding-block: 1rem;
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--navy-900);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 1.4rem; height: 1.4rem; flex: none; color: var(--green-700); transition: transform 0.3s var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { max-width: 64ch; padding-bottom: 1.5rem; color: var(--ink-soft); }

/* ---------- CTA-Band ---------- */

.cta-band {
  --accent-ink: var(--green-500);
  --focus: var(--green-500);
  display: grid;
  gap: var(--space-4);
  padding: var(--space-8) var(--pad-inline);
  background: var(--blue-600);
  color: var(--white);
}
.cta-band h2 { font-size: var(--step-4); font-weight: 400; font-stretch: 104%; line-height: 1.1; letter-spacing: -0.028em; text-wrap: balance; }
.cta-band p { max-width: 46ch; color: var(--white); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-self: end; }

@media (min-width: 64em) {
  .cta-band { grid-template-columns: 1fr auto; align-items: end; gap: var(--space-8); }
}

/* ---------- Kontakt ---------- */

.contact-ways { padding: var(--section) var(--pad-inline) 0; }
.contact-ways__list { display: grid; gap: 0.75rem; }
.contact-ways__list li { display: flex; }
.contact-way {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.35rem;
  width: 100%;
  min-height: 10rem;
  padding: 1.5rem 1.5rem 3.5rem;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 0.9rem), calc(100% - 0.9rem) 100%, 0 100%);
  transition: background-color 0.25s var(--ease-out), transform 0.5s var(--ease-out);
}
.contact-way__icon { width: 1.75rem; height: 1.75rem; margin-bottom: 0.75rem; }
.contact-way__label { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.04em; }
.contact-way__value { font-size: var(--step-2); font-weight: 500; font-stretch: 104%; line-height: 1.2; overflow-wrap: anywhere; }
.contact-way__arrow { position: absolute; right: 1.5rem; bottom: 1.5rem; width: 1.6rem; height: 1.6rem; transition: transform 0.35s var(--ease-out); }
a.contact-way:hover .contact-way__arrow { transform: translateX(5px); }
.contact-way--green { background: var(--green-500); color: var(--navy-900); --focus: var(--navy-900); }
.contact-way--green:hover { background: var(--green-400); }
.contact-way--blue { background: var(--blue-600); color: var(--white); --focus: var(--green-500); }
.contact-way--blue:hover { background: oklch(0.52 0.07 158); }
.contact-way--blue .contact-way__icon,
.contact-way--blue .contact-way__arrow { color: var(--green-500); }
.contact-way--navy { background: var(--navy-700); color: var(--white); --focus: var(--green-500); }
.contact-way--navy:hover { background: var(--navy-800); }
.contact-way--navy .contact-way__icon,
.contact-way--navy .contact-way__arrow { color: var(--green-500); }
.contact-way--mist { background: var(--mist); color: var(--navy-900); }
.contact-way--mist .contact-way__icon { color: var(--green-700); }

@media (min-width: 40em) {
  .contact-ways__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Desktop: eine schräge Reihe wie die Bezirke, Anrufen breiter */
@media (min-width: 64em) {
  .contact-ways__list { display: flex; gap: 0.55rem; margin-inline: 1.25rem; transform: skewX(-10deg); }
  .contact-ways__list li { flex: 1 1 0; min-width: 0; }
  .contact-ways__list li.is-focus { flex-grow: 1.3; }
  .contact-way { min-height: 12.5rem; padding: 1.5rem 1.4rem 3.75rem; clip-path: none; }
  .contact-way > * { transform: skewX(10deg); transform-origin: 0 100%; }
  .contact-way__value { font-size: clamp(1.05rem, 0.55rem + 0.75vw, 1.6rem); }
  a.contact-way:hover { transform: translateY(-6px); }
  a.contact-way:hover .contact-way__arrow { transform: translateX(5px) skewX(10deg); }
}

.enquiry {
  display: grid;
  gap: var(--space-6);
  padding: var(--section) var(--pad-inline);
}
.enquiry__intro { display: grid; gap: var(--space-3); align-content: start; justify-items: start; }
.enquiry__intro > p { max-width: 46ch; color: var(--ink-soft); }
.enquiry__note { font-size: 0.9375rem; color: var(--ink-soft); }

.form { display: grid; gap: var(--space-3); }
.form__row { display: grid; gap: var(--space-3); }
.field { display: grid; gap: 0.4rem; }
.field label,
.field legend {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy-900);
}
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.9rem;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 0;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.field input:hover,
.field textarea:hover { border-color: oklch(0.76 0.025 150); }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px oklch(0.48 0.11 150 / 0.35);
}
.field__hint { font-size: 0.875rem; color: var(--ink-soft); }
.field__error { display: none; font-size: 0.875rem; font-weight: 600; color: var(--danger); }
.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--danger); }
.field.is-invalid .field__error { display: block; }

fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.field legend { margin-bottom: 0.5rem; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.95rem;
  background: var(--white);
  border: 1.5px solid var(--line);
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
.choice label::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  border: 1.5px solid var(--ink-soft);
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.choice input:hover + label { border-color: oklch(0.76 0.025 150); }
.choice input:checked + label { border-color: var(--navy-700); background: var(--mist); color: var(--navy-900); }
.choice input:checked + label::before { background: var(--green-500); border-color: var(--green-700); }
.choice input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }

.form__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.form__status {
  display: none;
  padding: 1rem 1.25rem;
  font-weight: 500;
}
.form__status.is-success { display: block; background: oklch(0.94 0.05 130); color: oklch(0.34 0.08 150); }
.form__status.is-error { display: block; background: oklch(0.95 0.03 28); color: oklch(0.42 0.15 28); }
.form__legal { max-width: 68ch; font-size: 0.875rem; color: var(--ink-soft); }
.form__legal a { color: var(--navy-700); }
html:not(.js) [data-js-only] { display: none; }

@media (min-width: 40em) {
  .form__row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 64em) {
  .enquiry { grid-template-columns: 4fr 7fr; gap: var(--space-8); }
  .enquiry__intro { position: sticky; top: 2rem; }
}

.owner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--mist);
}
.owner__portrait {
  position: relative;
  min-height: 26rem;
  margin: 0;
  overflow: hidden;
  background: var(--navy-700);
  container-type: size;
}
.owner__strips { position: absolute; inset: 0; }
/* Fünf Streifen im Hero-Winkel (10°): Neigung = 17,6 % der Höhe */
.owner__strips span {
  --sl: 17.6cqh;
  --a: calc(var(--k) * 20%);
  --b: calc(var(--k) * 20% + 20% + 1px);
  position: absolute;
  inset: 0;
  clip-path: polygon(calc(var(--a) + var(--sl) / 2) 0, calc(var(--b) + var(--sl) / 2) 0, calc(var(--b) - var(--sl) / 2) 100%, calc(var(--a) - var(--sl) / 2) 100%);
  transition: transform 0.7s var(--ease-out);
}
.owner__strips span:first-child { --a: -50%; }
.owner__strips span:last-child { --b: 150%; }
.owner__strips img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.owner__portrait:hover .owner__strips span:nth-child(odd) { transform: translateY(-0.45rem); }
.owner__portrait:hover .owner__strips span:nth-child(even) { transform: translateY(0.45rem); }
.owner__badge {
  position: absolute;
  left: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 7.5rem;
  height: 6rem;
  background: var(--navy-900);
  color: var(--paper);
  clip-path: polygon(0 0, calc(100% - 1.05rem) 0, 100% 100%, 0 100%);
}
.owner__badge .scene { width: 3.6rem; padding: 0; margin: 0; stroke-width: 3; }
.owner__note {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.2rem 0.5rem;
  background: oklch(0.25 0.045 168 / 0.78);
  color: var(--paper);
  font-size: 0.75rem;
}
@keyframes strip-in { from { translate: 0 calc(var(--dir) * 104%); } to { translate: 0 0; } }
@keyframes strip-zoom { from { scale: 1.18; } to { scale: 1; } }
html.anim [data-scene] .owner__strips span { --dir: 1; animation: strip-in 1.15s var(--ease-out) calc(var(--k) * 0.09s) both; }
html.anim [data-scene] .owner__strips span:nth-child(even) { --dir: -1; }
html.anim [data-scene] .owner__strips img { animation: strip-zoom 1.8s var(--ease-out) both; }
html.anim [data-scene] .owner__badge { animation: badge-in 0.6s var(--ease-out) 0.7s both; }
.owner__body { display: grid; gap: var(--space-3); align-content: center; justify-items: start; padding: var(--space-8) var(--gutter) var(--section); }
.owner__body > p { max-width: 56ch; color: var(--ink-soft); }
.owner__facts { display: grid; gap: 0; width: 100%; max-width: 36rem; }
.owner__facts > div { display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr); gap: 1rem; padding-block: 0.8rem; border-top: 1px solid var(--line); }
.owner__facts dt { font-weight: 700; color: var(--navy-900); }
.owner__facts dd { color: var(--ink-soft); overflow-wrap: break-word; hyphens: auto; }

@media (min-width: 64em) {
  .owner { grid-template-columns: 5fr 7fr; }
  .owner__portrait { min-height: 100%; }
  .owner__body { padding: var(--section) var(--pad-inline) var(--section) clamp(2.5rem, 5vw, 5rem); }
}

/* ---------- Blog ---------- */

.blog-index { padding: var(--section) var(--pad-inline); }

.feature {
  display: grid;
  background: var(--white);
  border: 1px solid var(--line);
  margin-bottom: var(--space-6);
}
.feature__media { position: relative; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.25rem), calc(100% - 1.25rem) 100%, 0 100%); }
.feature__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.feature:hover .feature__media img { transform: scale(1.03); }
.feature__body { display: grid; gap: var(--space-2); align-content: center; justify-items: start; padding: var(--space-4) var(--space-3); }
.feature__body h2 { font-size: var(--step-3); font-weight: 450; font-stretch: 104%; line-height: 1.3; letter-spacing: -0.02em; color: var(--navy-900); text-wrap: balance; }
.feature__body h2 a { text-decoration: none; }
.feature__body h2 a::after { content: ""; position: absolute; inset: 0; }
.feature { position: relative; }
.feature__body p { max-width: 52ch; color: var(--ink-soft); }
.feature .link-arrow { position: relative; z-index: 1; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-soft);
}
.meta__cat { color: var(--green-700); }

.posts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.post a {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem 1.25rem;
  align-items: center;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.post img {
  --slant: 1.15rem;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
  transition: clip-path 0.5s var(--ease-out);
}
.post a:hover img { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.post__text { display: grid; gap: 0.4rem; }
.post__title { font-size: var(--step-1); font-weight: 600; line-height: 1.3; color: var(--navy-900); text-wrap: balance; }
.post__arrow { display: none; width: 1.5rem; height: 1.5rem; color: var(--green-700); transition: transform 0.3s var(--ease-out); }
.post a:hover .post__title { color: var(--navy-700); text-decoration: underline; text-underline-offset: 0.2em; }
.post a:hover .post__arrow { transform: translateX(5px); }

@media (min-width: 40em) {
  .post a { grid-template-columns: 10rem 1fr auto; }
  .post img { --slant: 1.32rem; aspect-ratio: 4 / 3; }
  .post__arrow { display: block; }
}
@media (min-width: 64em) {
  .feature { grid-template-columns: 7fr 5fr; }
  .feature__media { clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); }
  .feature__body { padding: var(--space-6) var(--space-6); }
}

.article {
  padding: var(--section) var(--pad-inline);
  border-top: 1px solid var(--line);
  scroll-margin-top: 4rem;
}
.article:nth-of-type(even) { background: var(--white); }
.article__inner { max-width: 46rem; }
.article__head { display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }
.article__head h1,
.article__head h2 { font-size: var(--step-4); font-weight: 400; font-stretch: 104%; line-height: 1.06; letter-spacing: -0.028em; color: var(--navy-900); text-wrap: balance; }
.article__media { margin-bottom: var(--space-4); }
.article__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 92% 100%, 0 100%);
}
.article__media figcaption { max-width: 68ch; margin-top: 0.6rem; font-size: 0.875rem; color: var(--ink-soft); }
.prose { display: grid; gap: 1.1rem; }
.prose > p,
.prose li { max-width: 62ch; }
.prose h2,
.prose h3 { margin-top: 1rem; font-size: var(--step-2); font-weight: 600; font-stretch: 108%; line-height: 1.25; color: var(--navy-900); }
.prose ul,
.prose ol { display: grid; gap: 0.5rem; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.5rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 0.5rem; height: 0.5rem; background: var(--green-500); }
.prose ol { counter-reset: item; }
.prose ol li { position: relative; padding-left: 2.25rem; counter-increment: item; }
.prose ol li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--blue-600);
  font-variant-numeric: tabular-nums;
}
.prose strong { color: var(--navy-900); }
.prose a { color: var(--navy-700); text-underline-offset: 0.2em; }
.callout {
  padding: 1.25rem 1.5rem;
  background: var(--mist);
  border: 1px solid var(--line);
}
.callout p { max-width: 60ch; }
.source { font-size: 0.875rem; color: var(--ink-soft); }
.article--single { border-top: 0; }
.article__by { font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); }
.callout--summary { margin-bottom: var(--space-3); }
.article__foot { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; margin-top: var(--space-6); padding-top: var(--space-3); border-top: 1px solid var(--line); }

/* ---------- Rechtliches ---------- */

.legal { padding: var(--section) var(--pad-inline); }
.legal__inner { display: grid; gap: var(--space-3); max-width: 46rem; }
.legal h2 { margin-top: var(--space-3); font-size: var(--step-2); font-weight: 600; font-stretch: 108%; color: var(--navy-900); }
.legal p,
.legal address,
.legal li { font-style: normal; max-width: 60ch; }
.legal h3 { margin-top: 0.75rem; font-size: var(--step-1); font-weight: 600; color: var(--navy-900); }
.legal a { color: var(--navy-700); text-underline-offset: 0.2em; }
.legal a.btn { text-decoration: none; }
.legal a.btn--navy { color: var(--white); }
.placeholder {
  padding: 1.25rem 1.5rem;
  background: oklch(0.96 0.05 95);
  border: 1.5px dashed oklch(0.7 0.12 85);
  color: oklch(0.35 0.07 75);
  font-weight: 500;
}

/* Rechtstexte der IT-Recht Kanzlei (Wortlaut unverändert, nur Gestaltung) */
.rt-toc { padding: var(--space-3); background: var(--mist); border: 1px solid var(--line); }
.rt-toc__h { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.rt-toc ol { display: grid; gap: 0.4rem; margin-top: var(--space-2); padding-left: 1.4rem; list-style: decimal; }
.rt-toc li::marker { color: var(--green-700); font-weight: 600; }
.rt-text { display: grid; gap: var(--space-2); overflow-wrap: anywhere; }
.rt-text h2 { margin-top: var(--space-4); scroll-margin-top: calc(var(--bar) + var(--space-3)); }
.rt-text h2:first-child { margin-top: 0; }
.rt-text .rt-sub { margin-top: var(--space-1); font-size: var(--step-1); font-weight: 600; color: var(--navy-900); }
.rt-text ul { display: grid; gap: 0.4rem; padding-left: 0; list-style: none; }
.rt-text ul li { position: relative; padding-left: 1.5rem; }
.rt-text ul li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 0.5rem; height: 0.5rem; background: var(--green-500); }
.rt-caps { display: grid; gap: var(--space-2); padding: var(--space-3); background: var(--mist); border-left: 4px solid var(--green-700); }
.rt-caps p { font-size: 0.9375rem; letter-spacing: 0.01em; }
.rt-caps .rt-sub { margin-top: 0; }
.rt-stand { margin-top: var(--space-3); font-size: var(--step--1); color: var(--ink-soft); }
.rt-copyright { justify-self: start; display: block; max-width: 100%; opacity: 0.85; }
.rt-copyright:hover { opacity: 1; }
.rt-copyright img { display: block; max-width: 100%; height: auto; }
.rt-extra { display: grid; gap: var(--space-3); margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.rt-extra > h2:first-child { margin-top: 0; }

/* ---------- Mobil-Feinschliff (Desktop bleibt unberührt) ---------- */

@media (max-width: 63.99em) {
  /* Wischbare Leisten zeigen rechts einen Auslauf, damit klar ist: da geht es weiter */
  .jump ul {
    padding-right: 2.5rem;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 3rem), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 3rem), transparent);
  }
  /* Sprungziel: Abschnitts-Innenabstand + scroll-padding reichen, Bild landet knapp unter der Sprungleiste */
  .service { scroll-margin-top: 0; }
  .article { scroll-margin-top: calc(var(--bar) + 1rem); }
}

@media (max-width: 39.99em) {
  /* Weg-Kacheln als kompakte Zeilen mit Pfeil rechts */
  .way a { min-height: 0; padding: 1.25rem 4rem 1.25rem 1.5rem; }
  .way svg { top: 50%; bottom: auto; transform: translateY(-50%); }
  .way a:hover svg { transform: translate(5px, -50%); }

  /* Eckdaten als Zeilen: Label links, Wert rechts */
  .service__facts > div {
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: baseline;
    padding: 0.6rem 0;
  }
  .service__facts dd { font-size: 1rem; }

  /* Prüfpunkte dichter */
  .points li { grid-template-columns: 1.75rem minmax(0, 1fr); padding: 0.65rem 0; font-size: 0.9875rem; }

  /* Kontaktwege 2 x 2 statt viermal untereinander */
  .contact-ways__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .contact-way { min-height: 8.5rem; padding: 1.1rem 1.1rem 3rem; }
  .contact-way__icon { width: 1.5rem; height: 1.5rem; margin-bottom: 0.4rem; }
  .contact-way__value { font-size: 1.0625rem; }
  .contact-way--green .contact-way__value { white-space: nowrap; font-size: min(1rem, 3.9vw); font-variant-numeric: tabular-nums; }
  .contact-way__arrow { right: 1.1rem; bottom: 1.1rem; }
}

/* ---------- Bewegung beim Hereinscrollen ----------
   Nur mit JS (html.anim) und ohne reduzierte Bewegung. Texte werden hinter einer Maske freigelegt
   statt halbtransparent eingeblendet, Bilder per Blattgrün-Vorhang. Einmalig pro Element. */

html.anim [data-reveal="text"],
html.anim [data-reveal="rise"] {
  clip-path: inset(0 0 100% 0);
  transform: translateY(1.5rem);
  transition: clip-path 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
html.anim [data-reveal="text"].is-in,
html.anim [data-reveal="rise"].is-in { clip-path: inset(0 0 0 0); transform: none; }
/* Nur die Auftritts-Maske entfernen, Bildmasken (Parallelogramm, Ecke) bleiben */
html.anim [data-reveal="text"].is-done,
html.anim [data-reveal="rise"].is-done { clip-path: none; }

html.anim [data-reveal="curtain"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--green-500);
  transform-origin: 100% 50%;
  transition: transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
html.anim [data-reveal="curtain"].is-in::before { transform: scaleX(0); }
html.anim [data-reveal="curtain"] img { transition: transform 1.6s var(--ease-out); }
html.anim [data-reveal="curtain"]:not(.is-in) img { transform: scale(1.15); }

html.anim [data-reveal="zoom"] {
  opacity: 0;
  transform: translateY(2rem) scale(1.06);
  transition: opacity 0.9s var(--ease-out), transform 1.3s var(--ease-out);
}
html.anim [data-reveal="zoom"].is-in { opacity: 1; transform: none; }

/* Ablauf: Blattgrün-Linie zieht sich über die Schritt-Kacheln */
html.anim [data-reveal="line"]::before { transform: scaleX(0); transition: transform 1.4s var(--ease-out); }
html.anim [data-reveal="line"].is-in::before { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
