.race-roadmap-section {
  padding: 0;
  overflow-x: clip;
  overflow-y: visible;
}

.race-map {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 2350px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  --page-gutter: clamp(24px, 4vw, 72px);
  --track-width: clamp(540px, 48vw, 1020px);
  --track-gap: -8px;
  --card-pull: 120px;
  --stop-width: clamp(400px, 24vw, 380px);
  --stop-width-center: clamp(380px, 30vw, 460px);
}

.roadmap-svg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: var(--track-width);
  height: 100%;
  transform: translateX(-50%);
  z-index: 1;
  overflow: visible;
  pointer-events: none;
}

/* SVG-Marker global ausblenden */
#roadmapMarker,
#roadmapMarkerGlow {
  display: none;
}

/* Neuer runder Marker für Desktop + Mobile */
.roadmap-mobile-marker-glow {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 47, 95, 0.14);
  transform: translate(-50%, -50%);
  z-index: 4;
  pointer-events: none;
}

.roadmap-mobile-marker {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #002f5f;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
}

.race-stop {
  position: absolute;
  width: var(--stop-width);
  max-width: calc(50% - (var(--track-width) / 2) - var(--page-gutter) + var(--card-pull));
  z-index: 3;
  box-sizing: border-box;
  opacity: 0.28;
  transition: opacity 0.4s ease;
  pointer-events: auto;
}

.race-stop.is-revealed {
  opacity: 1;
}

.stop-header {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 4;
}

.stop-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1.2;
  background-color: #93c01f;
  padding: 8px 20px;
}

.stop-left .stop-header {
  justify-content: flex-end;
  text-align: right;
  margin-right: -50px;
}

.stop-left .stop-label {
  order: 1;
  text-align: right;
}

.stop-left .stop-label::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -15px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 16px solid #93c01f;
}

.stop-right .stop-header {
  justify-content: flex-start;
  text-align: left;
  margin-left: -50px;
}

.stop-right .stop-label {
  order: 2;
  text-align: left;
}

.stop-right .stop-label::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -15px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-right: 16px solid #93c01f;
}

.stop-center .stop-header {
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.stop-center .stop-label {
  text-align: center;
}

.stop-center .stop-label::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -17px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 17px solid transparent;
  border-right: 17px solid transparent;
  border-bottom: 17px solid #93c01f;
}

.stop-card {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
  transition: none;
}

.stop-card-highlight {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.stop-type {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #002f5f;
  margin-bottom: 4px;
}

.stop-format {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: 10px;
}

.stop-date {
  font-size: 15px;
  font-weight: 700;
  margin: 10px 0 8px;
}

.stop-card h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.1vw, 26px);
  line-height: 1.2;
}

.stop-description {
  margin: 0 0 18px;
}

.stop-description p {
  margin: 0 0 14px;
  line-height: 1.5;
}

.stop-description p:last-child {
  margin-bottom: 0;
}

.stop-card p {
  margin: 0 0 18px;
  line-height: 1.5;
}

.stop-button {
  display: inline-block;
  padding: 10px 18px;
  background: #002f5f;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.stop-button:hover {
  background-color: #ddd;
  color: #000;
}

/* Positionierung über side + top */
.race-stop.stop-left {
  left: calc(60% - (var(--track-width) / 2) - var(--track-gap) - var(--stop-width) + var(--card-pull));
}

.race-stop.stop-right {
  left: calc(40% + (var(--track-width) / 2) + var(--track-gap) - var(--card-pull));
}

.race-stop.stop-center {
  left: 50%;
  width: var(--stop-width-center);
  max-width: calc(100% - (var(--page-gutter) * 2));
  transform: translateX(-50%);
}

@media (max-width: 1560px) {
  .race-stop.stop-left {
    left: calc(50% - (var(--track-width) / 2) - var(--track-gap) - var(--stop-width) + var(--card-pull));
  }

  .race-stop.stop-right {
    left: calc(50% + (var(--track-width) / 2) + var(--track-gap) - var(--card-pull));
  }
}

@media (max-width: 900px) {
  .race-map {
    --page-gutter: 24px;
    --track-width: clamp(360px, 36vw, 560px);
    --track-gap: 8px;
    --card-pull: 28px;
    --stop-width: clamp(260px, 28vw, 320px);
    --stop-width-center: clamp(300px, 34vw, 380px);
  }

  .stop-card {
    padding: 22px;
  }

  .stop-card h3 {
    font-size: 24px;
  }
}

@media (max-width: 1200px) {
  #roadmapPath {
    vector-effect: non-scaling-stroke;
    stroke-width: 8;
  }

  .race-map {
    min-height: auto;
    padding: 120px 0 20px;
    position: relative;
  }

  .roadmap-svg {
    display: block;
    position: absolute;
    top: -190px;
    bottom: 0;
    left: 0;
    width: 56px;
    height: 98%;
    transform: none;
    z-index: 1;
    overflow: visible;
    pointer-events: none;
  }

  .roadmap-svg line {
    display: none;
  }

  .race-stop {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 100px;
    padding-left: 56px;
    transform: none !important;
    opacity: 0.28;
    transition: opacity 0.4s ease;
    z-index: 3;
    box-sizing: border-box;
  }

  .race-stop.is-revealed {
    opacity: 1;
  }

  .race-stop:last-child {
    margin-bottom: 0;
  }

  .stop-header,
  .stop-left .stop-header,
  .stop-right .stop-header,
  .stop-center .stop-header {
    display: block;
    text-align: left;
    margin: 0 10px 12px;
  }

  .stop-left .stop-label,
  .stop-right .stop-label,
  .stop-center .stop-label {
    display: inline-block;
    position: relative;
    text-align: left;
    max-width: 100%;
    padding: 10px 18px;
    white-space: normal;
  }

  .stop-left .stop-label::before,
  .stop-right .stop-label::before,
  .stop-center .stop-label::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -14px;
    bottom: auto;
    right: auto;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-right: 14px solid #93c01f;
    border-left: 0;
  }

  .stop-left .pit-dot,
  .stop-right .pit-dot,
  .stop-center .pit-dot {
    display: none;
  }

  .stop-card {
    width: 100%;
    padding: 20px 18px;
    border-radius: 18px;
    box-sizing: border-box;
  }

  .stop-card h3 {
    font-size: 24px;
    line-height: 1.15;
  }

  .stop-type {
    font-size: 12px;
  }

  .stop-format,
  .stop-date,
  .stop-description p,
  .stop-card p {
    line-height: 1.5;
  }

  .stop-button {
    display: inline-block;
  }
}

@media (min-width: 1201px) {
  .roadmap-mobile-marker-glow {
    width: 48px;
    height: 48px;
  }

  .roadmap-mobile-marker {
    width: 25px;
    height: 25px;
    border-width: 3px;
  }
}