:root {
  --bg: #f4f5f4;
  --surface: #fbfbfb;
  --surface-alt: #e9ecec;
  --ink: #2e3434;
  --ink-soft: #555d5c;
  --accent: #4c7f5e;
  --accent-ink: #3e7050;
  --accent-press: #26593b;
  --accent-soft: rgba(76, 127, 94, 0.08);
  --btn-bg: #4c7f5e;
  --btn-bg-hover: #3b6d4d;
  --btn-text: #ffffff;
  --band-bg: #3a4141;
  --hairline: #cdd2d2;
  --hairline-strong: #868e8e;
  --linie: #2e3434;
  --raster: rgba(46, 52, 52, 0.05);

  --blatt: #ffffff;
  --blatt-ink: #2e3434;
  --blatt-ink-soft: #555d5c;
  --radius: 2px;
  --font-text: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-titel: 'Barlow Condensed', 'Arial Narrow', 'Barlow', sans-serif;
  --font-mass: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --max: 1120px;
  --ease: cubic-bezier(0.25, 0.6, 0.3, 1);
}

.dunkel {
  --bg: #3a4141;
  --surface: #464f4f;
  --surface-alt: #424949;
  --ink: #e7ecec;
  --ink-soft: #c2c9c9;
  --accent: #9dcbac;
  --accent-ink: #9dcbac;
  --accent-press: #b8dbc3;
  --accent-soft: rgba(157, 203, 172, 0.12);
  --btn-bg: #4c7f5e;
  --btn-bg-hover: #3b6d4d;
  --btn-text: #ffffff;
  --hairline: #555d5c;
  --hairline-strong: #8d9494;
  --linie: #e7ecec;
  background: var(--bg);
  color: var(--ink);
}

* { box-sizing: border-box; }

body { overflow-wrap: break-word; }

h1,
h2,
h3 { hyphens: auto; }

h1,
h2,
h3,
h4 {
  font-family: var(--font-titel);
  font-weight: 600;
  letter-spacing: 0;
}

.mass,
code,
kbd {
  font-family: var(--font-mass);
  font-variant-numeric: tabular-nums;
}

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 88px; }

::selection { background: #4c7f5e; color: #ffffff; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

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

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  z-index: 100;
}

.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: var(--radius);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;

  background: var(--bg);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 62px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  min-width: 0;
}

.main-nav { margin-right: auto; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 640;
  font-size: 1.02rem;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark { display: block; flex-shrink: 0; }

.brand-mark rect:first-of-type { fill: var(--accent); }

.brand-mark g { stroke: var(--bg); }

.main-nav { display: flex; align-items: center; gap: 26px; }

.main-nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 480;
  padding: 6px 0;
  transition: color 0.18s var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: var(--accent-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}

.main-nav a:hover { color: var(--ink); }

.main-nav a:hover::after { transform: scaleX(1); }

.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 480;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  padding: 6px 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.18s var(--ease);
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle[aria-expanded="true"] { color: var(--ink); }

.nav-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s var(--ease);
}

.nav-dropdown-toggle[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);

  left: -16px;
  right: auto;
  z-index: 200;
  display: flex;
  gap: 28px;
  padding: 20px;

  min-width: 560px;
  max-width: calc(100vw - 32px);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.nav-dropdown-panel[hidden] { display: none; }

.loesungen-titel {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 12px;
  white-space: nowrap;
}

.loesungen-liste {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 2px 12px;
}

.main-nav a.loesung {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius);
  transition: background 0.16s var(--ease);
}

.main-nav a.loesung::after { content: none; }

.main-nav a.loesung:hover { background: var(--accent-soft); }

.loesung-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 560;
  color: var(--ink);
  transition: color 0.16s var(--ease);
}

.main-nav a.loesung:hover .loesung-name { color: var(--accent-ink); }

.loesung-text {
  display: block;
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--ink-soft);
  margin-top: 1px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.18s var(--ease);
}

.nav-toggle:hover { border-color: var(--ink); }

.nav-toggle-bar {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: var(--radius);
  background: currentColor;
  transition: background 0.2s var(--ease);
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: var(--radius);
  background: currentColor;
  transition: transform 0.2s var(--ease);
}

.nav-toggle-bar::before { top: -6px; }

.nav-toggle-bar::after { top: 6px; }

html.nav-open .nav-toggle-bar { background: transparent; }

html.nav-open .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }

html.nav-open .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

.btn {
  display: inline-block;
  font-family: inherit;
  cursor: pointer;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 560;
  font-size: 0.98rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);

  border: 1px solid var(--btn-bg);
}

.btn-primary:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); }

.btn-outline {
  border: 1px solid var(--hairline-strong);
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover { border-color: var(--ink); }

.section { padding: 92px 0 76px; }

.section h2 {
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.15;
  font-weight: 640;
  margin: 0 0 14px;
  max-width: 24ch;
}

.prose { max-width: 720px; }

.prose figure { margin: 24px 0 32px; }

.prose figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
}

.prose figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.prose h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.3rem);
  font-weight: 650;
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 630;
  margin-top: 44px;
  max-width: none;
}

.prose h2::before { display: none; }

.prose h3 { font-size: 1.04rem; font-weight: 620; margin-top: 30px; }

.prose p,
.prose li { font-size: 0.99rem; color: var(--ink); }

.prose p { color: var(--ink); }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 28px;
  font-size: 0.92rem;
}

.legal-table th,
.legal-table td {
  border-bottom: 1px solid var(--hairline);
  padding: 10px 14px 10px 0;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  font-weight: 600;
  border-bottom: 1px solid var(--hairline-strong);
}

@media (max-width: 640px) {
  .legal-table { display: block; overflow-x: auto; }
}

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--hairline);
  padding: 56px 0 40px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 640;
  font-size: 0.98rem;
  color: var(--ink);
}

.footer-tagline {
  margin: 10px 0 0;
  font-size: 0.88rem;
  max-width: 30ch;
}

.footer-col h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: var(--ink);
}

.footer-col a {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.18s var(--ease);
}

.footer-col a:hover { color: var(--accent-ink); }

.footer-meta {
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 860px) {
  .section { padding: 64px 0 56px; }
  
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .site-header .container {
      padding-top: 10px;
      padding-bottom: 10px;
      gap: 12px;
    }
  
  .header-actions { gap: 10px; }
  
  html.js-nav .nav-toggle { display: inline-flex; }
  
  html.js-nav .main-nav {
      display: none;
  
      align-items: stretch;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      flex-direction: column;
      gap: 0;
      padding: 4px 0;
      background: var(--bg);
      border-top: 1px solid var(--hairline);
      border-bottom: 1px solid var(--hairline);
    }
  
  html.js-nav.nav-open .main-nav { display: flex; }
  
  html.js-nav .main-nav a {
      padding: 14px 24px;
      font-size: 1rem;
      color: var(--ink);
    }
  
  html.js-nav .main-nav a::after { display: none; }
  
  .nav-dropdown-toggle { display: none; }
  
  .nav-dropdown-panel {
      position: static;
      display: block;
      padding: 0;
  
      min-width: 0;
      max-width: none;
      background: transparent;
      border: none;
      border-radius: 0;
      box-shadow: none;
    }
  
  .loesungen-gruppe + .loesungen-gruppe { margin-top: 10px; }
  
  .loesungen-titel { padding: 0 24px; margin-bottom: 4px; white-space: normal; }
  
  .loesungen-liste { grid-template-columns: minmax(0, 1fr); gap: 0; }
  
  .loesung-zeile { align-items: stretch; }
  
  .loesung-zeile .loesung { flex: 1; }
  
  html.js-nav .main-nav a.loesung { padding: 10px 24px; border-radius: 0; }
  
  .loesung-name { font-size: 0.95rem; }
  
  .loesung-text { display: none; }
  
  html:not(.js-nav) .site-header .container { flex-wrap: wrap; }
  
  html:not(.js-nav) .main-nav { flex-basis: 100%; gap: 16px; justify-content: center; }
}

.loesung-zeile {
  display: flex;
  align-items: center;
  gap: 4px;
}

.loesung-zeile .loesung { flex: 1; min-width: 0; }

.tabelle-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0;
}

.tabelle-scroll .legal-table { margin: 0; min-width: 480px; }

@media (max-width: 640px) {
  .tabelle-scroll {
      margin-right: -24px;
      padding-right: 24px;
    }
}

.kopf {
  padding: 64px 0 72px;
  border-bottom: 1px solid var(--hairline);
}

.kopf .container {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
  max-width: 1280px;
}

.kopf h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.3rem);
  line-height: 1.04;
  margin: 0 0 20px;
  text-wrap: balance;
}

.kopf .lead {
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0 0 28px;
}

.kopf-knoepfe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.kopf-notiz {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

.modell { margin: 0; }

.modell-rahmen {
  position: relative;
  border: 1px solid var(--hairline-strong);
  background: var(--surface-alt);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.modell-rahmen img,
.modell-rahmen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modell-rahmen video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.modell-rahmen.schleife-laeuft video { opacity: 1; }

.modell figcaption {
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.modell-legende {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.modell-legende .mass { color: var(--ink); }

.masskette {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0 0 12px;
  height: 18px;
  color: var(--linie);
}

.masskette::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid currentColor;
}

.masskette::after {
  content: "";
  position: absolute;
  inset: 2px 0;
  border-left: 1px solid currentColor;
  border-right: 1px solid currentColor;
}

.masskette .mass {
  position: relative;
  z-index: 1;
  padding: 0 10px;
  background: var(--bg);
  font-size: 0.82rem;
  line-height: 18px;
  white-space: nowrap;
}

.station { padding: 88px 0; }

.station + .station { border-top: 1px solid var(--hairline); }

.station h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.1;
  margin: 0 0 16px;
  max-width: 26ch;
}

.station-text {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 40px;
}

.werkplan {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.blatt {
  margin: 0;
  background: var(--blatt);
  border: 1px solid var(--hairline-strong);
  position: relative;
}

.blatt img { display: block; width: 100%; height: auto; }

.schriftfeld {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--hairline-strong);
  font-size: 0.82rem;
  color: var(--blatt-ink);
  background: var(--blatt);
}

.schriftfeld dt { color: var(--blatt-ink-soft); }

.schriftfeld dd { margin: 0; }

.stueckliste {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.stueckliste caption {
  text-align: left;
  font-family: var(--font-titel);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  padding-bottom: 10px;
}

.stueckliste th {
  text-align: left;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding: 6px 10px 6px 0;
  border-bottom: 1px solid var(--linie);
}

.stueckliste td {
  padding: 7px 10px 7px 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

.stueckliste td.mass,
.stueckliste th.zahl { text-align: right; white-space: nowrap; }

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

.beispiel-marke {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--ink-soft);
  border: 1px solid var(--hairline-strong);
  padding: 1px 8px;
  margin-bottom: 14px;
}

.planzeilen {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--linie);
}

.planzeile { border-bottom: 1px solid var(--hairline); }

.planzeile a {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 18px 0;
  color: var(--ink);
  text-decoration: none;
}

.planzeile img {
  width: 220px;
  height: 165px;
  object-fit: cover;
  border: 1px solid var(--hairline);
  background: var(--surface-alt);
}

.planzeile h3 { font-size: 1.45rem; margin: 0 0 6px; }

.planzeile p { margin: 0; color: var(--ink-soft); max-width: 56ch; }

.planzeile-pfeil {
  font-size: 0.95rem;
  color: var(--accent-ink);
  white-space: nowrap;
}

.planzeile a:hover h3,
.planzeile a:hover .planzeile-pfeil { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 4px; }

.abschluss {
  padding: 56px 0;
  border-top: 1px solid var(--linie);
}

.abschluss .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.abschluss p {
  margin: 0;
  font-family: var(--font-titel);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

@media (max-width: 900px) {
  .kopf .container,
  .werkplan { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 640px) {
  .kopf { padding: 28px 0 40px; }
  
  .kopf .container { gap: 24px; }
  
  .kopf .lead { font-size: 1.02rem; margin-bottom: 20px; }
  
  .modell-rahmen { aspect-ratio: 4 / 5; }
  
  .station { padding: 56px 0; }
  
  .planzeile a { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; }
  
  .planzeile img { width: 112px; height: 84px; }
  
  .planzeile h3 { font-size: 1.2rem; }
  
  .planzeile p { font-size: 0.92rem; }
  
  .planzeile-pfeil { display: none; }
  
  .stueckliste { font-size: 0.84rem; }
  
  .stueckliste th,
  .stueckliste td { padding-right: 6px; }
}

@media (max-width: 400px) {
  .stueckliste td.mass,
  .stueckliste th.zahl { white-space: normal; }
  
  .stueckliste { font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .modell-rahmen video { display: none; }
}

.kopfzeile-knopf {
  padding: 8px 16px;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .site-header .container { gap: 12px; }
  
  .header-actions { gap: 10px; justify-content: flex-end; }
  
  .kopfzeile-knopf { padding: 7px 12px; font-size: 0.85rem; }
}

@media (max-width: 400px) {
  .brand-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.kopf h1 em {
  display: block;
  font-style: normal;
  font-size: 0.55em;
  line-height: 1.2;
  color: var(--ink-soft);
  margin-top: 8px;
}

.ablauf { --knoten: 32px; margin: 4px 0 28px; }

.ablauf-linie {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
}

.ablauf-linie li { position: relative; }

.ablauf-linie li::before {
  content: "";
  position: absolute;
  top: calc(var(--knoten) / 2);
  left: var(--knoten);
  right: 0;
  border-top: 2px solid var(--linie);
}

.ablauf-linie li:last-child::before { display: none; }

.ablauf-linie a {
  display: block;
  padding-right: 10px;
  color: var(--ink);
  text-decoration: none;
}

.ablauf-knoten {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--knoten);
  height: var(--knoten);
  margin-bottom: 10px;
  background: var(--bg);
  border: 2px solid var(--linie);
  font-size: 0.85rem;
  font-weight: 500;
}

.ablauf-titel { display: block; font-family: var(--font-titel); font-weight: 600; font-size: 1.08rem; line-height: 1.15; }

.ablauf-text { display: block; margin-top: 3px; font-size: 0.84rem; line-height: 1.35; color: var(--ink-soft); }

.ablauf-linie a:hover .ablauf-knoten { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }

.ablauf-linie a:hover .ablauf-titel { color: var(--accent-ink); }

.ablauf-puls {
  position: absolute;
  z-index: 2;
  width: 10px;
  height: 10px;
  top: calc(var(--knoten) / 2 - 4px);
  left: 0;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .ablauf-puls { animation: ablauf-lauf 8s cubic-bezier(0.45, 0, 0.25, 1) infinite; }
}

@media (prefers-reduced-motion: no-preference) {
  .ablauf-linie li .ablauf-knoten { animation: ablauf-knoten 8s linear infinite; }
  
  .ablauf-linie li:nth-child(2) .ablauf-knoten { animation-delay: 1.9s; }
  
  .ablauf-linie li:nth-child(3) .ablauf-knoten { animation-delay: 3.8s; }
  
  .ablauf-linie li:nth-child(4) .ablauf-knoten { animation-delay: 5.7s; }
}

@keyframes ablauf-lauf {
  0%   { left: calc(var(--knoten) / 2 - 5px); opacity: 0; }
  3%   { opacity: 1; }
  24%  { left: calc(100% + var(--knoten) / 2 - 5px); }
  48%  { left: calc(200% + var(--knoten) / 2 - 5px); }
  72%  { left: calc(300% + var(--knoten) / 2 - 5px); opacity: 1; }
  78%, 100% { left: calc(300% + var(--knoten) / 2 - 5px); opacity: 0; }
}

@keyframes ablauf-knoten {
  0%, 12% { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }
  20%, 100% { background: var(--bg); border-color: var(--linie); color: var(--ink); }
}

.station-cta { margin: 32px 0 0; }

@media (max-width: 900px) {
  .ablauf-linie { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  
  .ablauf-linie li:nth-child(2)::before { display: none; }
}

@media (max-width: 640px) {
  .ablauf { --knoten: 28px; margin-bottom: 22px; }
  
  .ablauf-linie { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  
  .ablauf-linie li::before { display: block; top: var(--knoten); bottom: 0; left: calc(var(--knoten) / 2 - 1px); right: auto; border-top: 0; border-left: 2px solid var(--linie); }
  
  .ablauf-linie li:last-child::before { display: none; }
  
  .ablauf-linie a { display: grid; grid-template-columns: calc(var(--knoten) + 12px) minmax(0, 1fr); padding: 0 0 12px; }
  
  .ablauf-knoten { grid-row: 1 / span 2; margin: 0; }
  
  .ablauf-text { margin-top: 1px; }
}

@media (max-width: 900px) {
  .werkplan { gap: 18px; }
  
  .werkplan > div:first-child { display: contents; }
  
  .werkplan > div:first-child > * { margin-top: 0; margin-bottom: 0; }
  
  .werkplan > div:first-child > .station-cta { order: 9; margin-top: 6px; }
}

@media (max-width: 640px) {
  .ablauf-linie li:nth-child(2)::before { display: block; }
}

.anfragen {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: start;
}

.anfrage { margin: 0; }

.anfrage-titel {
  font-size: 1.35rem;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--linie);
}

.anfrage--ohne .anfrage-titel { border-bottom-style: dashed; color: var(--ink-soft); }

.anfrage-zettel {
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1px dashed var(--hairline-strong);
  background: var(--surface);
  font-family: var(--font-titel);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.3;
}

.anfrage-zwischen { margin: 0 0 8px; color: var(--ink-soft); font-size: 0.95rem; }

.anfrage-fragen {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.anfrage-fragen li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
}

.anfrage-fragen li::before {
  content: "?";
  flex: 0 0 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-family: var(--font-mass);
  font-size: 0.85rem;
  border: 1px solid var(--hairline-strong);
  color: var(--ink-soft);
}

.anfrage-fuss { margin: 14px 0 0; color: var(--ink-soft); font-size: 0.95rem; }

.anfrage--mit .blatt { margin-bottom: 18px; }

.stueckliste--kurz caption .beispiel-marke { margin: 0 0 0 10px; vertical-align: middle; }

.planb-beispiel { display: inline-block; margin-left: 16px; color: var(--accent-ink); white-space: nowrap; }

@media (max-width: 480px) {
  .planb-beispiel { display: block; margin: 14px 0 0; }
}

@media (max-width: 900px) {
  .anfragen { grid-template-columns: minmax(0, 1fr); }
}

.planzeilen--raster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 28px;
  border-top: 0;
}

.planzeilen--raster .planzeile { border-bottom: 0; border-top: 1px solid var(--linie); }

.planzeilen--raster .planzeile a {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  height: 100%;
  padding: 16px 0 26px;
}

.planzeilen--raster .planzeile img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

.planzeilen--raster .planzeile h3 { font-size: 1.3rem; margin: 0 0 4px; }

.planzeilen--raster .planzeile p { font-size: 0.95rem; }

.planzeilen--raster .planzeile-pfeil { margin-top: auto; font-size: 0.9rem; }

.planzeile--frei a > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border: 1px dashed var(--hairline-strong);
}

@media (max-width: 900px) {
  .planzeilen--raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .planzeilen--raster { grid-template-columns: minmax(0, 1fr); }
  
  .planzeilen--raster .planzeile a {
      display: grid;
      grid-template-columns: 112px minmax(0, 1fr);
      gap: 16px;
      align-items: center;
      padding: 14px 0;
    }
  
  .planzeilen--raster .planzeile img { width: 112px; height: 84px; }
  
  .planzeilen--raster .planzeile h3 { font-size: 1.2rem; }
  
  .planzeilen--raster .planzeile-pfeil { display: none; }
  
  .planzeilen--raster .planzeile--frei a { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  
  .planzeile--frei a > div { padding: 16px; }
  
  .planzeilen--raster .planzeile--frei .planzeile-pfeil { display: inline; }
}

.kopf-marke {
  margin: 0 0 10px;
  font-family: var(--font-titel);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent-ink);
}

.kennzahlen {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 30px 0 0;
  padding: 0;
  border-top: 1px solid var(--linie);
}

.kennzahlen li { padding: 12px 14px 0 0; }

.kennzahlen li + li { padding-left: 14px; border-left: 1px solid var(--hairline); }

.kennzahl {
  display: block;
  font-family: var(--font-mass);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.1;
  color: var(--ink);
}

.kennzahl-text { display: block; margin-top: 4px; font-size: 0.86rem; line-height: 1.35; color: var(--ink-soft); }

@media (max-width: 640px) {
  .kennzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  
  .kennzahlen li:nth-child(3) { padding-left: 0; border-left: none; }
}

.kopf-knoepfe + .kopf-notiz { margin-top: 12px; }

@media (max-width: 640px) {
  .kopf-knoepfe:has(.btn + .btn) .btn { flex: 1 1 100%; text-align: center; }
}
