/* ════════════════════════════════════════════════════════════
   MODUS VEY — MODUL-SEITEN LAYER
   Ergänzt styles.css um Komponenten für /sprint/ und /build/.
   Aesthetic: Editorial-Technische Kartografie (siehe styles.css)
   ════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   MODUL-HERO
   ───────────────────────────────────────────── */
.module-hero {
  padding-top: 9rem;
  padding-bottom: 4.5rem;
  position: relative;
  overflow: hidden;
}
.module-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4.5rem;
  align-items: center;
}
@media (max-width: 980px) {
  .module-hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}
.module-hero-text {
  max-width: 40ch;
}
.module-hero h1 {
  margin-top: 1.5rem;
  margin-bottom: 1.6rem;
}
.module-hero h1 .line-2 {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--teal);
  letter-spacing: -0.02em;
}
.module-hero .lead {
  margin-bottom: 2.2rem;
  max-width: 46ch;
}

/* Signatur-Figur (vergrößerte Modul-Illustration im Dot-Corner-Frame) */
.module-figure {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bone-soft);
  border: 1px solid var(--bone-line-mid);
}
@media (max-width: 980px) {
  .module-figure {
    margin: 0 auto;
    max-width: 380px;
  }
}
.module-figure::before {
  content: '';
  position: absolute;
  inset: -14px;
  border: 1px solid var(--bone-line-strong);
  pointer-events: none;
}
.module-figure svg {
  width: 78%;
  height: 78%;
  overflow: visible;
}
.module-figure .illu-stroke {
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.2;
}
.module-figure .illu-accent {
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.4;
}
.module-figure .illu-fill {
  fill: var(--teal);
}
.module-figure .illu-bg-line {
  stroke: var(--bone-line-mid);
  fill: none;
  stroke-width: 0.6;
}
.module-figure .illu-faint {
  fill: var(--ink-faint);
  font-family: var(--mono);
}
/* Eck-Punkte wie auf der Modus-Karte */
.figure-dots,
.figure-dots::before,
.figure-dots::after,
.figure-dots > span::before,
.figure-dots > span::after {
  position: absolute;
}
.figure-dots {
  inset: -14px;
  pointer-events: none;
}
.figure-dots::before,
.figure-dots::after,
.figure-dots > span::before,
.figure-dots > span::after {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--ink);
  border-radius: 50%;
}
.figure-dots::before {
  top: -5px;
  left: -5px;
  background: var(--teal);
}
.figure-dots::after {
  top: -5px;
  right: -5px;
}
.figure-dots > span::before {
  bottom: -5px;
  left: -5px;
}
.figure-dots > span::after {
  bottom: -5px;
  right: -5px;
}

/* ─────────────────────────────────────────────
   PHASEN-LEISTE — der gemeinsame Kreislauf I–IV
   ───────────────────────────────────────────── */
.phase-rail-section {
  padding: 3rem 0;
  border-top: 1px solid var(--bone-line-mid);
  border-bottom: 1px solid var(--bone-line-mid);
  background: var(--bone-soft);
}
.phase-rail-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.2rem;
}
.phase-rail-head p {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  max-width: 52ch;
}
.phase-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  position: relative;
}
@media (max-width: 720px) {
  .phase-rail {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1px;
  }
}
/* durchlaufende Bahn hinter den Knoten */
.phase-rail::before {
  content: '';
  position: absolute;
  top: 13px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--bone-line-strong) 0,
    var(--bone-line-strong) 4px,
    transparent 4px,
    transparent 9px
  );
  z-index: 0;
}
@media (max-width: 720px) {
  .phase-rail::before {
    display: none;
  }
}
.phase {
  position: relative;
  z-index: 1;
  padding-top: 2rem;
  text-align: center;
}
.phase .phase-node {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--ink-faint);
  background: var(--bone);
}
.phase .phase-rom {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 0.4rem;
}
.phase .phase-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--ink-mute);
}
.phase .phase-tag {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
/* aktive Phase(n) des aktuellen Moduls */
.phase--active .phase-node {
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-soft);
}
.phase--active .phase-rom {
  color: var(--teal);
}
.phase--active .phase-name {
  color: var(--ink);
}
.phase--active .phase-tag {
  color: var(--teal);
}
/* vor-/nachgelagerte Phase (vom anderen Modul abgedeckt) */
.phase--done .phase-node {
  border-color: var(--teal);
  background: var(--bone);
}
.phase--done .phase-rom {
  color: var(--ink-mute);
}

/* ─────────────────────────────────────────────
   PROSE-INTRO (Sektions-Lauftext)
   ───────────────────────────────────────────── */
.prose {
  max-width: 60ch;
}
.prose p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 1.3rem;
}
.prose p:last-child {
  margin-bottom: 0;
}
.prose strong {
  color: var(--ink);
  font-weight: 500;
}
.prose .lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 1.8rem;
}

/* ─────────────────────────────────────────────
   FIT / KEIN FIT — ehrliche Qualifizierung
   ───────────────────────────────────────────── */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--bone-line-mid);
  border: 1px solid var(--bone-line-mid);
  margin-top: 3rem;
}
@media (max-width: 720px) {
  .fit-grid {
    grid-template-columns: 1fr;
  }
}
.fit-col {
  background: var(--bone);
  padding: 2.4rem 2.2rem;
}
.fit-col h3 {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.fit-col--yes h3 {
  color: var(--teal);
}
.fit-col--no h3 {
  color: var(--ink-mute);
}
.fit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.fit-list li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.fit-list li::before {
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: var(--mono);
  font-size: 0.9rem;
}
.fit-col--yes .fit-list li::before {
  content: '+';
  color: var(--teal);
  font-weight: 600;
}
.fit-col--no .fit-list li::before {
  content: '–';
  color: var(--ink-faint);
}

/* ─────────────────────────────────────────────
   TIMELINE — vertikaler Ablauf
   ───────────────────────────────────────────── */
.timeline {
  position: relative;
  margin-top: 3.5rem;
  padding-left: 2.5rem;
}
@media (max-width: 560px) {
  .timeline {
    padding-left: 1.8rem;
  }
}
/* vertikale Bahn */
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--bone-line-strong);
}
.tl-step {
  position: relative;
  padding-bottom: 2.8rem;
}
.tl-step:last-child {
  padding-bottom: 0;
}
.tl-step::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--teal);
  background: var(--bone);
}
@media (max-width: 560px) {
  .tl-step::before {
    left: -1.8rem;
  }
}
.tl-step--accent::before {
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-soft);
}
.tl-day {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.tl-step h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.tl-step p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 58ch;
}
.tl-phase-mark {
  display: inline-block;
  margin-left: 0.6rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  text-transform: uppercase;
  vertical-align: middle;
}

/* ─────────────────────────────────────────────
   DELIVERABLES — was Sie in der Hand halten
   ───────────────────────────────────────────── */
.deliverables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--bone-line-mid);
  border: 1px solid var(--bone-line-mid);
  margin-top: 3rem;
}
@media (max-width: 720px) {
  .deliverables {
    grid-template-columns: 1fr;
  }
}
.deliverable {
  background: var(--bone);
  padding: 2.2rem 2rem;
  position: relative;
}
.deliverable .d-num {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}
.deliverable .d-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 1.1rem;
}
.deliverable .d-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.deliverable .d-icon .illu-stroke {
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.3;
}
.deliverable .d-icon .illu-accent {
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.5;
}
.deliverable .d-icon .illu-fill {
  fill: var(--teal);
}
.deliverable h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.18rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 0.55rem;
}
.deliverable p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-mute);
}

/* ─────────────────────────────────────────────
   ARTEFAKT — illustratives Ergebnis-Beispiel
   ───────────────────────────────────────────── */
.artifact {
  position: relative;
  margin-top: 3rem;
  border: 1px solid var(--bone-line-strong);
  background: var(--bone-soft);
  padding: 1.5rem;
}
.artifact::before,
.artifact::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--ink-faint);
  opacity: 0.5;
}
.artifact::before {
  top: 7px;
  left: 7px;
  border-right: none;
  border-bottom: none;
}
.artifact::after {
  bottom: 7px;
  right: 7px;
  border-left: none;
  border-top: none;
}
.artifact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--bone-line-mid);
  padding: 0.3rem 0.6rem 0.9rem;
  margin-bottom: 1.2rem;
}
.artifact-bar .stamp {
  color: var(--amber);
  border: 1px solid var(--amber-soft);
  padding: 0.2rem 0.55rem;
  letter-spacing: 0.14em;
}

/* Use-Case-Tabelle (Sprint-Fahrplan) */
.usecase-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.usecase-table th {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: left;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--bone-line-strong);
  font-weight: 500;
}
.usecase-table td {
  padding: 0.85rem 0.7rem;
  border-bottom: 1px solid var(--bone-line-mid);
  color: var(--ink-soft);
  vertical-align: top;
}
.usecase-table tr:last-child td {
  border-bottom: none;
}
.usecase-table .uc-name {
  font-weight: 500;
  color: var(--ink);
}
.usecase-table .uc-rec {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.usecase-table .uc-park {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
/* kleine Aufwand/Nutzen-Pegel */
.pegel {
  display: inline-flex;
  gap: 3px;
  vertical-align: middle;
}
.pegel i {
  width: 6px;
  height: 12px;
  background: var(--bone-line-strong);
  display: inline-block;
}
.pegel i.on {
  background: var(--teal);
}
.pegel i.warn {
  background: var(--amber);
}
@media (max-width: 640px) {
  .usecase-table {
    font-size: 0.82rem;
  }
  .usecase-table th,
  .usecase-table td {
    padding: 0.55rem 0.45rem;
  }
  .usecase-table .uc-hide-sm {
    display: none;
  }
}

/* Handover-Checkliste (Build) */
.handover {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 2rem;
}
@media (max-width: 640px) {
  .handover {
    grid-template-columns: 1fr;
  }
}
.handover li {
  position: relative;
  padding-left: 1.8rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.handover li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.85rem;
}

/* ─────────────────────────────────────────────
   ABGRENZUNG — IST / IST NICHT / VORAUSSETZUNG
   ───────────────────────────────────────────── */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bone-line-mid);
  border: 1px solid var(--bone-line-mid);
  margin-top: 3rem;
}
@media (max-width: 880px) {
  .scope-grid {
    grid-template-columns: 1fr;
  }
}
.scope-block {
  background: var(--bone);
  padding: 2.2rem 2rem;
}
.scope-block--req {
  background: var(--teal-soft);
}
.scope-block h3 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.4rem;
}
.scope-block--is h3 {
  color: var(--teal);
}
.scope-block--req h3 {
  color: var(--teal);
}
.scope-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.scope-list li {
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--ink-soft);
  padding-left: 1.2rem;
  position: relative;
}
.scope-list li::before {
  content: '·';
  position: absolute;
  left: 0.2rem;
  color: var(--ink-faint);
}

/* ─────────────────────────────────────────────
   VERGLEICHSMATRIX — Sprint vs. Build
   ───────────────────────────────────────────── */
.matrix-wrap {
  margin-top: 3rem;
  border: 1px solid var(--bone-line-mid);
  overflow-x: auto;
}
.matrix {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
}
.matrix th,
.matrix td {
  padding: 1.05rem 1.3rem;
  text-align: left;
  border-bottom: 1px solid var(--bone-line-mid);
  vertical-align: top;
}
.matrix thead th {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-bottom: 1px solid var(--bone-line-strong);
}
.matrix thead th em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--teal);
}
.matrix thead th .th-tag {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.3rem;
  font-weight: 400;
}
.matrix .row-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
  width: 1%;
}
.matrix td {
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.matrix tr:last-child td {
  border-bottom: none;
}
/* hervorgehobene Spalte = aktuelles Modul */
.matrix .col-active {
  background: var(--teal-soft);
}
.matrix thead .col-active {
  border-bottom-color: var(--teal);
}

/* ─────────────────────────────────────────────
   FAQ
   ───────────────────────────────────────────── */
.faq {
  margin-top: 3rem;
  border-top: 1px solid var(--bone-line-mid);
  max-width: 800px;
}
.faq-item {
  border-bottom: 1px solid var(--bone-line-mid);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 2.5rem 1.5rem 0;
  position: relative;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover {
  color: var(--teal);
}
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink-faint);
  transition: transform 0.25s;
}
.faq-item[open] summary::after {
  content: '–';
  color: var(--teal);
}
.faq-item .faq-a {
  padding: 0 2.5rem 1.6rem 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 70ch;
}
.faq-item .faq-a strong {
  color: var(--ink);
  font-weight: 500;
}

/* ─────────────────────────────────────────────
   ÜBERGANGSBAND — Sprint ↔ Build Kontinuum
   ───────────────────────────────────────────── */
.transition {
  background: var(--teal);
  color: var(--bone);
  padding: clamp(2.6rem, 6vh, 4rem) 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--bone-line-strong);
}
.transition .wrap {
  position: relative;
  z-index: 1;
}
.transition-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 820px) {
  .transition-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    text-align: center;
  }
}
.transition-eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-soft);
  margin-bottom: 0.7rem;
}
.transition h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--bone);
  max-width: 30ch;
}
.transition h2 em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--amber-soft);
}
.transition p {
  margin-top: 0.8rem;
  color: var(--bone);
  opacity: 0.85;
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.55;
}
@media (max-width: 820px) {
  .transition p {
    margin-left: auto;
    margin-right: auto;
  }
}
/* Heller Pill-Button für dunkle/teal Flächen (Übergangsband + Closing-CTA).
   Farben sind bewusst theme-unabhängig hart gesetzt, da der Button immer auf
   einer dunklen oder teal Fläche sitzt. */
.btn-transition {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  background: #f4efe5;
  color: #15161a;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}
.btn-transition:hover {
  transform: translateY(-2px);
}
.transition .btn-transition:hover {
  background: #0e1014;
  color: #f4efe5;
}
.final .btn-transition:hover {
  background: var(--teal-bright);
  color: #f4efe5;
}
.btn-transition .arrow {
  transition: transform 0.2s;
}
.btn-transition:hover .arrow {
  transform: translateX(3px);
}
/* der Teal-Pfad aus der Modus-Karte, der weiterläuft */
.transition-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.22;
}
.transition-path path {
  fill: none;
  stroke: var(--bone);
  stroke-width: 1;
  stroke-dasharray: 4 7;
}
.transition-path circle {
  fill: var(--bone);
}

/* Übergangsband darf NICHT mit dem Night-Theme verschmelzen:
   bleibt eine Teal-Insel mit stabil hellem Text. */
[data-theme='night'] .transition,
[data-theme='night'] .transition h2,
[data-theme='night'] .transition p {
  color: #f4efe5;
}
[data-theme='night'] .transition {
  background: var(--teal);
}
[data-theme='night'] .transition h2 em,
[data-theme='night'] .transition-eyebrow {
  color: #e8d5bb;
}

/* ─────────────────────────────────────────────
   ROMAN-NUMERAL SEKTIONS-BACKDROP (wie auf index)
   ───────────────────────────────────────────── */
.num-bg {
  position: relative;
}
.num-bg::before {
  content: attr(data-num);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(140px, 24vw, 320px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  pointer-events: none;
  z-index: 0;
  position: absolute;
  top: 50%;
  right: clamp(1rem, 5vw, 5rem);
  transform: translateY(-50%);
  opacity: 0.05;
  color: var(--teal);
}
.num-bg > .wrap {
  position: relative;
  z-index: 1;
}
[data-theme='night'] .num-bg::before {
  color: var(--on-night-soft);
  opacity: 0.04;
}

/* ─────────────────────────────────────────────
   SEKTIONS-INTRO (eyebrow + headline + lead nebeneinander)
   ───────────────────────────────────────────── */
.module-section {
  padding: 6rem 0;
}
@media (max-width: 720px) {
  .module-section {
    padding: 4rem 0;
  }
}
.module-section--tight {
  padding-top: 3.5rem;
}

/* Selbstlaufende Pipeline-Animation für die Build-Hero-Figur
   (nutzt build-flow-pulse / build-dot-blink aus styles.css) */
.module-figure .flow-anim > * {
  animation: build-flow-pulse 1.5s ease-in-out infinite;
}
.module-figure .flow-anim > *:nth-child(2) {
  animation-delay: 0.2s;
}
.module-figure .flow-anim > *:nth-child(3) {
  animation-delay: 0.4s;
}
.module-figure .flow-dot {
  animation: build-dot-blink 1.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .module-figure .flow-anim > *,
  .module-figure .flow-dot,
  .stopwatch-second {
    animation: none !important;
  }
}

/* Mini-Breadcrumb im Nav für Kontext */
.nav-context {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}
.nav-context strong {
  color: var(--teal);
  font-weight: 500;
}
@media (max-width: 720px) {
  .nav-context {
    display: none;
  }
}
