/* Native CSS-Scroll-Snap-Bildspur; der gemeinsame Hero-Text bleibt fest. */
.hero-stage-slider__track {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.hero-stage-slider__track::-webkit-scrollbar { display: none; }

.hero-stage-slider__slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero-stage-slider .hero-stage__image {
  inset: 0;
  width: 100%;
  z-index: auto;
}

.hero-stage-slider .hero-stage__composition { pointer-events: none; }

.hero-stage-slider__controls {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-top: 32px;
  padding: 8px;
  border-radius: 32px;
  background: #003454;
}

.hero-stage-slider__controls[hidden] { display: none; }
.hero-stage-slider__controls ion-icon { display: block; font-size: 20px; }

.hero-stage-slider__controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 2px solid transparent;
  border-radius: 24px;
  background: transparent;
  color: white;
  font: 700 14px/1.5 Arial, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.hero-stage-slider__controls button:focus-visible {
  outline: 3px solid white;
  outline-offset: 3px;
}

.hero-stage-slider__arrow[aria-disabled="true"] {
  color: #afc8d8;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .hero-stage-slider__controls button:not([aria-disabled="true"]):hover { border-color: white; }
}

/* Progressive Dekoration nach der Chrome-Guidance, ohne Polyfill. */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-stage-slider__slide {
      animation: hero-slider-image-reveal auto linear both;
      animation-timeline: view(inline);
    }
  }
}

@keyframes hero-slider-image-reveal {
  0%, 100% { opacity: .65; }
  50% { opacity: 1; }
}

@media (max-width: 650px) {
  .hero-stage-slider__controls { gap: 4px; padding: 6px; border-radius: 16px; }
  .hero-stage-slider__controls button { padding-inline: 8px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stage-slider__track { scroll-behavior: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-stage-slider__track { scroll-behavior: smooth; }
}

@media (forced-colors: active) {
  .hero-stage-slider__controls { border: 1px solid CanvasText; }
  .hero-stage-slider__controls button { border-color: ButtonText; }
}
