/* ── Mein Weg: ein grosser Weg mit sechs Stationen (Leandro 29.11.2026) ────────
   Die Linie zeichnet sich beim Scrollen, die Stationen poppen mit Feder auf, ein Punkt wandert mit.
   Formen wie in der App-Wegkarte (weg-karte-r14, landing-orbit .lw2): Scheibe mit Fuss und Ringstuecken.
   Bewegt werden nur transform und opacity. Ohne Skript (kein .wg-js) steht alles fertig da. */
.wg-section { padding: 72px 0 0; }  /* unten kein Zusatz: der Weg endet direkt vor "Dein Vorteil" */
.wg {
  --wg-green: #6B8F71; --wg-green-d: #4F7255; --wg-gold: #C9A25A; --wg-gold-d: #A5833F;
  --wg-beige: #EFE8DD; --wg-beige-d: #E0D6C7; --wg-ink: #B1A391; --wg-blue: #6E87C2;
  --wg-spring: cubic-bezier(.34, 1.56, .64, 1); --wg-out: cubic-bezier(.23, 1, .32, 1);
  --wg-d: 132px;            /* seitlicher Abstand der Stationen von der Mitte */
  position: relative; max-width: 1000px; margin: 28px auto 0;
}
.wg-list { list-style: none; position: relative; z-index: 1; }
.wg-st { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 0 minmax(0, 1fr); align-items: center; min-height: 196px; }
.wg-node { grid-column: 2; grid-row: 1; position: relative; justify-self: center; width: 84px; height: 84px; margin: 0; transform: translateX(calc(var(--wg-d) * -1)); }
.wg-st:nth-child(even) .wg-node { transform: translateX(var(--wg-d)); }
.wg-disc { position: absolute; inset: 8px 8px 17px; display: block; border-radius: 50% / 47%; }
.wg-disc::before, .wg-disc::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.wg-disc::before { background: var(--wg-beige); box-shadow: 0 9px 0 var(--wg-beige-d); }
.wg-disc::after { background: var(--wg-green); box-shadow: 0 9px 0 var(--wg-green-d); opacity: 0; }
.wg-goal .wg-disc::after { background: var(--wg-gold); box-shadow: 0 9px 0 var(--wg-gold-d); }
.wg-ic { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.wg-ic-off { color: var(--wg-ink); }
.wg-ic-on { color: #fff; opacity: 0; }
.wg-ic svg { width: 30px; height: 30px; }
.wg-ring { position: absolute; left: -12px; top: -10px; width: calc(100% + 24px); height: calc(100% + 20px); overflow: visible; opacity: 0; pointer-events: none; filter: drop-shadow(0 6px 0 rgba(112, 94, 78, .26)); }
.wg-ring circle { fill: none; stroke: var(--wg-green); stroke-width: 9; stroke-linecap: round; }
.wg-goal .wg-ring circle { stroke: var(--wg-gold); }

.wg-txt { grid-row: 1; padding: 6px 0; max-width: 340px; }
.wg-st .wg-txt { grid-column: 1; justify-self: end; text-align: right; padding-right: calc(var(--wg-d) + 66px); max-width: none; width: 100%; box-sizing: border-box; }
.wg-st:nth-child(even) .wg-txt { grid-column: 3; justify-self: start; text-align: left; padding-right: 0; padding-left: calc(var(--wg-d) + 66px); }
.wg-txt > * { max-width: 330px; }
.wg-st .wg-txt > * { margin-left: auto; }
.wg-st:nth-child(even) .wg-txt > * { margin-left: 0; }
.wg-num { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-bottom: 8px; border-radius: 50%; background: var(--hn-second, #EDE2D5); color: var(--hn-primary-p, #705E4E); font-size: 12.5px; font-weight: 700; font-variant-numeric: lining-nums; }
.wg-txt h4 { font-family: var(--font-title); font-size: clamp(21px, 2vw, 25px); line-height: 1.18; color: var(--hn-text, #302823); }
.wg-txt p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--hn-text-2, #756B63); text-wrap: pretty; }


/* Weg-Linie (vom Skript gebaut) */
.wg-track { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.wg-track svg { position: absolute; left: 0; top: 0; overflow: visible; }
.wg-base-road { fill: none; stroke: #EADFD0; stroke-width: 18; stroke-linecap: round; }
.wg-base-dots { fill: none; stroke: #C9B9A5; stroke-width: 4.5; stroke-dasharray: 1 10; stroke-linecap: round; }
.wg-fill-path { fill: none; stroke-width: 9; stroke-linecap: round; }
.wg-clip, .wg-clip-in { position: absolute; inset: 0; overflow: hidden; will-change: transform; }
.wg-clip-in { overflow: visible; }
.wg-pt { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--wg-blue); border: 4px solid #fff; box-shadow: 0 0 0 1px rgba(110, 135, 194, .35), 0 6px 14px -3px rgba(70, 90, 140, .55); opacity: 0; will-change: transform; }
.wg-pt::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; background: radial-gradient(circle, rgba(110, 135, 194, .38), rgba(110, 135, 194, 0) 70%); }

/* ── Mit Skript: Zustaende vor/nach dem Erreichen ── */
.wg-js .wg-st .wg-node { opacity: .9; }
.wg-js .wg-node { transform: translateX(calc(var(--wg-d) * -1)) scale(.86); }
.wg-js .wg-st:nth-child(even) .wg-node { transform: translateX(var(--wg-d)) scale(.86); }
.wg-js .wg-st.is-on .wg-node { transform: translateX(calc(var(--wg-d) * -1)) scale(1); }
.wg-js .wg-st:nth-child(even).is-on .wg-node { transform: translateX(var(--wg-d)) scale(1); }
.wg-js .wg-txt { opacity: 0; transform: translateY(14px); }
.wg-js .wg-st.is-on .wg-txt { opacity: 1; transform: none; }
.wg-js .wg-st.is-on .wg-disc::after, .wg-js .wg-st.is-on .wg-ic-on, .wg-js .wg-st.is-on .wg-ring { opacity: 1; }
.wg-js .wg-st.is-on .wg-ic-off { opacity: 0; }
.wg-js .wg-ring { transform: rotate(-70deg) scale(.82); }
.wg-js .wg-st.is-on .wg-ring { transform: none; }
.wg-pt { transition: opacity .35s ease; }
.wg-js .wg-ring { transition: opacity .3s ease, transform .8s var(--wg-spring); }
.wg-js .wg-node { transition: transform .7s var(--wg-spring); }
.wg-js .wg-disc::after, .wg-js .wg-ic { transition: opacity .25s ease; }
.wg-js .wg-txt { transition: opacity .5s ease .1s, transform .7s var(--wg-out) .1s; }

@media (prefers-reduced-motion: no-preference) {
  .wg-js .wg-goal.is-on .wg-ring { animation: wg-breath 2.6s ease-in-out .9s infinite; transform-origin: 50% 50%; }
  .wg-pt::after { animation: wg-pulse 2.2s ease-in-out infinite; }
}
@keyframes wg-breath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes wg-pulse { 0%, 100% { transform: scale(.85); opacity: .7; } 50% { transform: scale(1.15); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .wg-js .wg-node, .wg-js .wg-ring, .wg-js .wg-txt, .wg-js .wg-disc::after, .wg-js .wg-ic { transition: none; }
  .wg-pt { display: none; }
}

/* Ohne Skript: Stationen fertig, ohne Linie */
.wg:not(.wg-js) .wg-disc::after, .wg:not(.wg-js) .wg-ic-on, .wg:not(.wg-js) .wg-ring { opacity: 1; }
.wg:not(.wg-js) .wg-ic-off { opacity: 0; }

@media (min-width: 701px) and (max-width: 900px) { .wg { --wg-d: 92px; } }

/* ── Handy: senkrechter Weg links, Text rechts, Linie schlaengelt sich leicht ── */
@media (max-width: 700px) {
  .wg-section { padding: 28px 0 14px; }
  .wg { --wg-d: 11px; margin-top: 10px; }
  .wg-st, .wg-st:nth-child(even) { grid-template-columns: 100px minmax(0, 1fr); min-height: 78px; }
  .wg-node, .wg-st:nth-child(even) .wg-node { grid-column: 1; justify-self: center; width: 60px; height: 60px; }
  .wg-st:nth-child(even) .wg-node { transform: translateX(var(--wg-d)); }
  .wg-js .wg-node { transform: translateX(calc(var(--wg-d) * -1)) scale(.86); }
  .wg-js .wg-st:nth-child(even) .wg-node { transform: translateX(var(--wg-d)) scale(.86); }
  .wg-js .wg-st.is-on .wg-node { transform: translateX(calc(var(--wg-d) * -1)) scale(1); }
  .wg-js .wg-st:nth-child(even).is-on .wg-node { transform: translateX(var(--wg-d)) scale(1); }
  .wg-disc { inset: 7px 7px 14px; }
  .wg-ic svg { width: 24px; height: 24px; }
  .wg-st .wg-txt, .wg-st:nth-child(even) .wg-txt { grid-column: 2; justify-self: stretch; text-align: left; padding: 2px 0 2px 12px; }
  .wg-st .wg-txt > *, .wg-st:nth-child(even) .wg-txt > * { margin-left: 0; max-width: none; }
  .wg-num { margin-bottom: 4px; width: 22px; height: 22px; font-size: 11.5px; }
  .wg-txt h4 { font-size: 19px; }
  .wg-txt p { display: none; }  /* Handy kurz: Name der Station genuegt, die Erklaerungen stehen in "Stress ab" */
  .wg-base-road { stroke-width: 14; } .wg-base-dots { stroke-width: 3.5; } .wg-fill-path { stroke-width: 7; }
}
