/* Welle 7 auf mitmachen.php: Weg zur Mitgliedschaft (drei Schritte, ein Brief fliegt mit) und Gluehwuermchen im Sommer.
   Ohne Skript, mit Weniger Bewegung und in Leichter Sprache steht der Brief am Ziel und alles ist fertig. */

.mm-weg {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.25rem, 3.5vw, 2.25rem) clamp(1rem, 3.5vw, 2.25rem) clamp(1.5rem, 3.5vw, 2.25rem);
  border: 2px solid var(--mm-rand);
  border-radius: var(--radius-md, 14px);
  background: var(--surface);
}
.mm-weg-titel {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: var(--fs-xl, 1.4rem);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--ink);
  text-wrap: balance;
}
.mm-weg-bahn {
  position: relative;
}
.mm-weg-linie {
  position: absolute;
  left: 1.35rem;
  top: 1.35rem;
  bottom: 1.5rem;
  width: 0;
  border-left: 4px dashed var(--mm-rand);
  margin-left: -2px;
}
.mm-weg-strich {
  position: absolute;
  left: -4px;
  top: 0;
  width: 4px;
  height: 100%;
  margin-left: 0;
  background: var(--accent-fill);
  transform-origin: 50% 0;
}
.mm-weg-brief {
  position: absolute;
  left: 50%;
  bottom: -.9rem;
  width: 3.5rem;
  height: auto;
  margin-left: -1.75rem;
  filter: none;
}
.mm-weg-brief .br-papier { fill: #fffdf8; stroke: #1c1712; stroke-width: 3; }
.mm-weg-brief .br-klappe { fill: none; stroke: #1c1712; stroke-width: 3; stroke-linejoin: round; }
.mm-weg-brief .br-siegel { fill: var(--accent-fill); stroke: #1c1712; stroke-width: 2.4; }
.mm-weg-liste {
  display: grid;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mm-weg-schritt {
  position: relative;
  min-width: 0;
  padding-left: 4.5rem;
}
.mm-weg-nr {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--accent-3);
  color: #15120f;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  line-height: 1;
}
.mm-weg-bild {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 0 .4rem;
}
.mm-weg-bild .wb-papier { fill: #fffdf8; stroke: #1c1712; stroke-width: 3; stroke-linejoin: round; }
.mm-weg-bild .wb-linie { fill: none; stroke: #1c1712; stroke-width: 3; stroke-linecap: round; }
.mm-weg-bild .wb-stift { fill: var(--accent-3); stroke: #1c1712; stroke-width: 3; stroke-linejoin: round; }
.mm-weg-bild .wb-dach { fill: var(--accent-fill); stroke: #1c1712; stroke-width: 3; stroke-linejoin: round; }
.mm-weg-bild .wb-tuer { fill: #bfe3f5; stroke: #1c1712; stroke-width: 3; }
.mm-weg-bild .wb-strich { fill: none; stroke: #1c1712; stroke-width: 2; stroke-dasharray: 3 4; }
.mm-weg-bild .wb-haken { fill: none; stroke: var(--accent-2); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.mm-weg-schritt h4 {
  margin: 0 0 .3rem;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--ink);
}
.mm-weg-schritt p {
  margin: 0 0 .5rem;
  font-size: var(--fs-md);
  line-height: var(--lh-snug);
  color: var(--muted);
}
.page-mitmachen .mm-weg-link {
  display: inline-block;
  padding: .45rem 0;
  color: var(--accent-2-strong);
  font-weight: var(--fw-bold);
  text-decoration: underline;
  text-underline-offset: .2em;
}
[data-theme="dark"] .page-mitmachen .mm-weg-link { color: var(--ink); }
.mm-weg-preis {
  margin: 1.75rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 2px dashed var(--mm-rand);
  font-size: var(--fs-md);
  line-height: var(--lh-snug);
  color: var(--ink);
}
.mm-weg-knopf { display: inline-flex; }
@media (min-width: 900px) {
  .mm-weg { max-width: 46rem; margin-inline: auto; }
}

/* Gluehwuermchen ueber der Lichterkette (nur im Sommer, von mitmachen-szenen.js angelegt) */
.mm-gluehwurm {
  position: absolute;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffe9a8;
  box-shadow: 0 0 0 4px rgba(255, 233, 168, .28);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
html[data-leichte-sprache="on"] .mm-gluehwurm { display: none; }
