.bild {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: var(--platzhalter, var(--bg-2));
}

.bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--kurve), filter 0.6s var(--kurve);
}

.bild--16-9 { aspect-ratio: 16 / 9; }
.bild--3-2 { aspect-ratio: 3 / 2; }
.bild--4-5 { aspect-ratio: 4 / 5; }
.bild--1-1 { aspect-ratio: 1; }

.bild--duplex {
  isolation: isolate;
}

.bild--duplex img {
  filter: grayscale(1) contrast(1.05) brightness(1.06);
}

.bild--duplex::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--glut);
  mix-blend-mode: color;
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.6s var(--kurve);
}

.bild--duplex::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(15, 11, 9, 0.5), rgba(15, 11, 9, 0) 45%);
  pointer-events: none;
}

.bild--duplex:hover img,
a:hover .bild--duplex img,
a:focus-visible .bild--duplex img {
  filter: none;
  transform: scale(1.03);
}

.bild--duplex:hover::before,
a:hover .bild--duplex::before,
a:focus-visible .bild--duplex::before {
  opacity: 0;
}

.heroband {
  position: relative;
  height: clamp(340px, 74vh, 760px);
  overflow: hidden;
  isolation: isolate;
  background: var(--platzhalter, var(--bg-2));
}

.heroband img {
  position: absolute;
  inset: -14% 0;
  width: 100%;
  height: 128%;
  object-fit: cover;
  filter: grayscale(0.4) contrast(1.04) brightness(1.04);
  transform: translate3d(0, var(--versatz, 0px), 0);
  will-change: transform;
}

.heroband::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--glut);
  mix-blend-mode: color;
  opacity: 0.4;
  pointer-events: none;
}

.heroband::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to bottom, var(--bg) 0%, rgba(15, 11, 9, 0) 22%,
                    rgba(15, 11, 9, 0) 62%, var(--bg) 100%);
  pointer-events: none;
}

.strecke {
  position: relative;
  height: 420vh;
}

.strecke__buehne {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-6);
  overflow: hidden;
}

.strecke__kopf {
  flex: none;
}

.strecke__spur {
  display: flex;
  gap: var(--sp-6);
  padding-inline: var(--seitenrand);
  transform: translate3d(calc(var(--schub, 0) * -1px), 0, 0);
  will-change: transform;
}

.station {
  flex: none;
  width: min(34vw, 380px);
}

.station__nummer {
  display: block;
  margin-bottom: var(--sp-3);
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1;
  background: var(--glut);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.station h3 {
  margin-top: var(--sp-4);
}

.station p {
  margin-top: var(--sp-3);
  color: var(--muted);
}

.strecke__strich {
  flex: none;
  position: relative;
  height: 2px;
  margin-inline: var(--seitenrand);
  background: var(--rand);
}

.strecke__strich::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  background: var(--glut);
  transform: scaleX(var(--anteil, 0));
  transform-origin: 0 50%;
}

@media (max-width: 760px) {
  .strecke { height: auto; }
  .strecke__buehne {
    position: static;
    height: auto;
    padding-block: var(--sp-8);
  }
  .strecke__spur {
    flex-direction: column;
    transform: none;
    gap: var(--sp-8);
  }
  .station { width: auto; }
  .strecke__strich { display: none; }
}

.bildzeile {
  display: flex;
  gap: var(--sp-4);
  justify-content: space-between;
  align-items: baseline;
  margin-top: var(--sp-3);
  font-size: var(--fs-meta);
  color: var(--muted);
}

.bildzeile b {
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 480px) {
  .bildzeile { display: block; }
  .bildzeile span { display: block; margin-top: var(--sp-1); }
}

@media (prefers-reduced-motion: reduce) {
  .bild img { transition: none; }
  .heroband img { transform: none !important; }
  .strecke__spur { transform: none !important; }
}
