/* Section-Wrapper */
.hero-image-section {
  position: relative;
  z-index: 0; /* liegt im normalen Fluss unter der (sticky) Navi */
}

/* Slideshow Layout & sanfte Überblendung */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 450px;       /* gewünschte feste Hero-Höhe */
  overflow: hidden;
  isolation: isolate; /* ermöglicht separates Overlay */
}

.hero-slideshow::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(7, 21, 32, 0) 0%,
    rgba(7, 21, 32, 0.2) 55%,
    rgba(3, 8, 15, 0.3) 100%
  );
  mix-blend-mode: multiply;
}

/* (Optional) Feintuning nach Bildschirmgröße */


@media screen and (max-width: 880px){
     .hero-slideshow { height: 350px; } 
}

@media screen and (max-width: 640px){
     .hero-slideshow { height: 380px; } 

}

@media screen and (min-width: 2000px){
     .hero-slideshow { height: 550px; } 

}


.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center; /* horizontal zentrieren */
  align-items: center;     /* vertikal zentrieren */
  opacity: 0;
  transition: opacity 900ms ease-in-out;
  will-change: opacity;
}

.hero-slide.is-active {
  opacity: 1;
}

/* Grundzustand: exakter Kreis */
.circle-expand {
  --circle: 2.5em;
  position: relative;
  height: var(--circle);
  min-width: var(--circle);
  padding: 0;
  
  border-radius: 50%;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 1;
  font-weight: 400;
  transition: padding 0.25s ease, border-radius 0.25s ease;
}

.circle-expand .icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em; /* stabilisiert das Icon */
  pointer-events: none;
}

/* Label belegt im Kreiszustand keinen Platz */
.circle-expand .label {
  opacity: 0;
  margin-left: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.2s ease, margin-left 0.2s ease, max-width 0.25s ease;
}

/* Aufgeklappt-Zustand nur per Klasse */
.circle-expand.is-expanded {
  padding: 0 0.8em;
  border-radius: 9999px;
  justify-content: flex-start;
    padding-left:1rem !important;
      padding-right:1rem !important;
}
.circle-expand.is-expanded .label {
  opacity: 1;
  margin-left: 0.4em;
  max-width: 12em;
}

/* optional: reduced motion */
@media (prefers-reduced-motion: reduce) {
  .circle-expand,
  .circle-expand .label {
    transition: none;
  }
}

.hero-image {
  width: 100%;
  height: 100%;          /* füllt die Hero-Höhe vollständig */
  object-fit: cover;     /* beschneidet überstehende Bereiche */
  object-position: center;
  display: block;
}

/* Gradient über den Bildern (unten) */
.image-gradient-30-height {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  z-index: 2;
  pointer-events: none;
}

/* Marker-Overlay (Überschrift, Suche) */
.hero-marker-container {
  position: absolute;
  bottom: 7rem;     /* bei Bedarf je Breakpoint anpassen */
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 150;       /* über Gradient/Bild */
}


@media screen and (max-width: 640px){
.hero-marker-container {
bottom: 5rem;     /* bei Bedarf je Breakpoint anpassen */
}
}

.hero-marker-box {
 display: flex;
  flex-direction: column;
  gap: 0rem;           /* Abstand zwischen Zeilen */
}

/* Marker-Badge */
.hero-marker {
  background-color: var(--ci-dunkelblau);
  color: #fff;
  display: block;
  padding: 0.1rem 0.65rem;
  font-weight: 700;
  pointer-events: none;
  margin-bottom: 0.35rem;
  width: fit-content;         /* nur so breit wie der Text */
}

/* Steuerung (Pause/Play) */
.hero-controls {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 3; /* über Gradient/Bild, unter Header */
}

/* Bewegungspräferenz respektieren */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}
