/*
 * Schritt-Pfad (nach der Vorlage „Step Path“).
 * Die Schritte sind ein normales Raster, jeder um --spth-drop × Index nach unten versetzt;
 * das SVG wird aus ihren gemessenen Positionen darübergelegt. Das Einzeichnen ist ein einziger
 * Übergang auf einem Masken-Strich; jeder Schritt und Punkt wartet per transition-delay auf die Linie.
 */
.spth {
  --spth-bg: #ffffff;
  --spth-title: #1f2a30;
  --spth-number: #E8A020;
  --spth-text: #5b6770;
  --spth-line: #007E91;
  --spth-dot: #007E91;
  width: 100%;
  container-type: inline-size;
  position: relative;
  padding: 7.5cqw 4.3cqw 6cqw;
  background: var(--spth-bg);
  color: var(--spth-title);
}
.spth__svg { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.spth__steps {
  display: grid;
  grid-template-columns: repeat(var(--spth-cols), minmax(0, 1fr));
  column-gap: 2.1cqw;
  margin: 0;
  padding: 0;
  list-style: none;
}
.spth__step {
  margin-top: calc(var(--spth-drop) * var(--spth-i));
  opacity: 0;
  translate: 0 12px;
  transition: opacity 0.6s ease, translate 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.spth.is-shown .spth__step { opacity: 1; translate: 0 0; }
.spth__title {
  margin: 0;
  font-size: clamp(16px, 1.6cqw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--spth-title);
}
.spth__number { color: var(--spth-number); }
.spth__text {
  margin: 0.55em 0 0;
  max-width: 21em;
  font-size: clamp(13px, 1.15cqw, 17px);
  line-height: 1.5;
  color: var(--spth-text);
}
.spth__draw { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset var(--spth-draw) linear; }
.spth.is-shown .spth__draw { stroke-dashoffset: 0; }
.spth__dot { fill: var(--spth-dot); scale: 0; transition: scale 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.spth.is-shown .spth__dot { scale: 1; }
/* gestapelt */
.spth.is-stacked { padding: 28px 20px; }
.spth.is-stacked .spth__steps { grid-template-columns: 1fr; row-gap: 30px; padding-left: 32px; }
.spth.is-stacked .spth__step { margin-top: 0; }
.spth.is-stacked .spth__title { font-size: 19px; }
.spth.is-stacked .spth__text { font-size: 15px; }
@media (prefers-reduced-motion: reduce) {
  .spth__step, .spth__dot, .spth__draw { transition: none; }
}
