/* capira Pfad: Ein geschwungener Weg auf "Über capira". Er wächst beim Scrollen. Stationen und Details erscheinen erst, wenn der Weg sie erreicht. */
.pfad { position: relative; list-style: none; margin: 0; padding: 24px 0 0; --pfad-x1: 35%; --pfad-x2: 65%; }
.pfad-weg { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; overflow: visible; }
.weg-strasse { fill: none; stroke: var(--accent); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.weg-mitte { fill: none; stroke: var(--surface); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 0.1 13; }
.weg-maske { fill: none; stroke: #fff; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }

.pfad-spitze { position: absolute; left: 0; top: 0; z-index: 4; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 9px; background: var(--accent); border: 3px solid var(--ink); box-shadow: 0 0 0 5px var(--surface); pointer-events: none; opacity: 0; transition: opacity 250ms var(--kurve-standard); will-change: transform; }
.pfad-spitze::after { content: ""; position: absolute; left: 7px; top: 13px; width: 8px; height: 8px; border-radius: 2px; background: var(--ink); }
.pfad-spitze.an { opacity: 1; }

.pfad-stop { position: relative; min-height: 310px; }
.pfad-stop:last-child { min-height: 230px; }
.pfad-marke { position: absolute; top: 0; z-index: 3; display: grid; place-items: center; width: 54px; height: 54px; margin-left: -27px; border-radius: 15px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 22px; box-shadow: 0 0 0 6px var(--surface); }
.pfad-stop:nth-child(odd) .pfad-marke { left: var(--pfad-x1); }
.pfad-stop:nth-child(even) .pfad-marke { left: var(--pfad-x2); }

.pfad-karte { position: absolute; top: -10px; z-index: 2; width: min(390px, 38%); padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface-raised); box-shadow: var(--shadow-card); }
.pfad-stop:nth-child(odd) .pfad-karte { left: calc(var(--pfad-x1) + 52px); }
.pfad-stop:nth-child(even) .pfad-karte { right: calc(100% - var(--pfad-x2) + 52px); }
.pfad-karte h3 { margin: 0 0 6px; font-size: 21px; line-height: 1.3; font-weight: 800; letter-spacing: -0.02em; }
.pfad-karte p { margin: 0; color: var(--ink-body); }
.pfad-ziel .pfad-karte { background: var(--accent-subtle); border-color: var(--accent); }

.pfad-deko { position: absolute; top: 4px; z-index: 1; width: 112px; height: 112px; overflow: visible; }
.pfad-stop:nth-child(odd) .pfad-deko { left: calc(var(--pfad-x1) - 52px - 150px); --dr: -6deg; }
.pfad-stop:nth-child(even) .pfad-deko { left: calc(var(--pfad-x2) + 56px); --dr: 6deg; }
.pfad-deko .d-st { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.pfad-deko .d-w { fill: var(--surface-raised); }
.pfad-deko .d-m { fill: var(--accent-soft); }
.pfad-deko .d-o { fill: var(--accent); }
.pfad-deko .d-i { fill: var(--ink); }

/* Erscheinen: erst wenn der Weg die Station erreicht hat */
.pfad-js .pfad-marke { opacity: 0; transform: scale(0.3); transition: opacity 200ms var(--kurve-standard), transform 450ms var(--kurve-einrasten); }
.pfad-js .pfad-karte { opacity: 0; transform: translateX(-28px); transition: opacity 450ms var(--kurve-standard) 120ms, transform 500ms var(--kurve-standard) 120ms; }
.pfad-js .pfad-stop:nth-child(even) .pfad-karte { transform: translateX(28px); }
.pfad-js .pfad-deko { opacity: 0; transform: scale(0.6) rotate(var(--dr, 0deg)); transition: opacity 400ms var(--kurve-standard) 320ms, transform 600ms var(--kurve-einrasten) 320ms; }
.pfad-js .pfad-stop.da .pfad-marke { opacity: 1; transform: none; }
.pfad-js .pfad-stop.da .pfad-karte { opacity: 1; transform: none; }
.pfad-js .pfad-stop.da .pfad-deko { opacity: 1; transform: rotate(var(--dr, 0deg)); }

@media (max-width: 880px) {
  .pfad-karte { width: min(330px, 40%); padding: 20px 22px; }
  .pfad-deko { width: 84px; height: 84px; }
  .pfad-stop:nth-child(odd) .pfad-deko { left: calc(var(--pfad-x1) - 52px - 116px); }
}
@media (max-width: 720px) {
  .pfad { padding-top: 12px; }
  .weg-strasse { stroke-width: 9; }
  .weg-mitte { stroke-width: 2; stroke-dasharray: 0.1 10; }
  .pfad-stop { min-height: 230px; }
  .pfad-stop:last-child { min-height: 150px; }
  .pfad-marke { width: 44px; height: 44px; margin-left: -22px; border-radius: 12px; font-size: 18px; box-shadow: 0 0 0 5px var(--surface); }
  .pfad-stop:nth-child(odd) .pfad-marke { left: 26px; }
  .pfad-stop:nth-child(even) .pfad-marke { left: 62px; }
  .pfad-stop:nth-child(odd) .pfad-karte, .pfad-stop:nth-child(even) .pfad-karte { left: 100px; right: 0; width: auto; top: -8px; }
  .pfad-js .pfad-stop:nth-child(even) .pfad-karte { transform: translateX(-28px); }
  .pfad-js .pfad-stop.da .pfad-karte { transform: none; }
  .pfad-deko { display: none; }
  .pfad-spitze { width: 24px; height: 24px; margin: -12px 0 0 -12px; border-width: 2.5px; box-shadow: 0 0 0 4px var(--surface); }
  .pfad-spitze::after { left: 5.5px; top: 10.5px; width: 6px; height: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .pfad-js .pfad-marke, .pfad-js .pfad-karte, .pfad-js .pfad-deko { transition: none; }
  .pfad-spitze { display: none; }
}
