 .hero {
  position: relative;
  min-height: 100vh;
  /* padding as margin substitute */
  padding: 4rem 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Full-viewport-width breakout */
  width: 100vw;
  margin-left: calc(-50vw + 50%); 
}

.hero--compact-height {
  min-height: 50vh;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.65) 100%);
}

.hero--without-image-overlay .hero__overlay {
	display: none;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.hero__arrow:hover,
.hero__arrow:focus-visible {
  opacity: 0.5;
}

.hero__arrow:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
} 

.hero__arrow--prev {
  left: 1.25rem;
}

.hero__arrow--next {
  right: 1.25rem;
}

.hero__arrow-icon {
  display: inline-flex;
  width: 2.7rem;
  height: 2.7rem;
  flex-shrink: 0;
}

.hero__arrow-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - (var(--layout-gutter-mobile) * 2)), var(--layout-max-width));
  max-width: none;
  margin: 0 auto;
}

.hero__content {
  max-width: 100%;
  width: 1440px;
  margin: auto;
}

.hero__copies {
  position: relative;
}

.hero__copy {
  display: none;
}

.hero__copy.is-active {
  display: block;
}

.hero--center .hero__content {
  margin: 0 auto;
  text-align: center;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero__button--ghost {
  color: #ffffff;
}

.hero__button--ghost:hover {
  color: rgba(255, 255, 255, 0.72);
}

.hero__button--ghost:focus,
.hero__button--ghost:focus-visible {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

.hero__actions--slide {
  margin-bottom: 1rem;
}

.hero--center .hero__actions {
  justify-content: center;
}

.hero__headline {
  margin: 0 0 1rem;
  line-height: 1.05;
}

.hero__subheader {
	margin: 0 0 0.75rem;
	line-height: 1.5;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hero__headline-underline {
  text-decoration: underline;
  text-decoration-color: var(--hero-title-underline-color, var(--global-title-underline-color, currentColor));
  text-decoration-thickness: var(--title-underline-thickness, 0.313rem);
  text-underline-offset: var(--title-underline-offset, 0.5rem);
}

.hero__text {
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  justify-content: center;
}

.hero--center .hero__controls {
  justify-content: center;
}

.hero__dots {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.hero__dot {
  width: 0.85rem;
  height: 0.85rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero__dot.is-active {
  background: #ffffff;
  border-color: #ffffff;
  transform: scale(1.05);
}

/* WCAG 2.2.2: Pause/Play-Steuerung fuer Auto-Slide und Hintergrundvideo. */
.hero__playback {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__playback-icon {
  display: inline-flex;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.hero__playback-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
}

.hero__playback-icon--play {
  display: none;
}

.hero__playback.is-paused .hero__playback-icon--pause {
  display: none;
}

.hero__playback.is-paused .hero__playback-icon--play {
  display: inline-flex;
}


@media (max-width: 767px) {
  .hero {
    min-height: 100vh;
    align-items: center;
  }

  .hero--compact-height {
    min-height: 35vh;
    padding: 1rem 0;
  }

  .hero--compact-height .hero__content {
    padding-bottom: 0;
  }

  .hero__overlay {
    padding-bottom: 0;
  }

  /* .hero__content {
    padding-bottom: 7.5rem;
  } */

  .hero__arrow {
    width: 2.5rem;
    height: 2.5rem;
  }

  .hero__arrow--prev {
    left: 0.75rem;
  }

  .hero__arrow--next {
    right: 0.75rem;
  }

  .hero__actions {
    width: 50%;
  }

  /* .hero__button {
    width: 100%;
  } 
    
  */

  .hero__controls {
    justify-content: center;
  }

  .hero__arrow {
    display: none;
  }

  /* Mobil: runder Icon-Button (nur Pause/Play-Symbol), angehoben ueber die fixe
     "Termin vereinbaren"-Leiste – auf Hoehe des "Zur Aktion"-Buttons.
     Selektor .hero__playback.btn (0,2,0) schlaegt .btn/.btn--white (0,1,0),
     damit border-radius/padding/gap zuverlaessig ueberschrieben werden. */
  .hero__playback.btn {
    right: 1rem;
    /* bottom: calc(10.4rem + env(safe-area-inset-bottom, 0px)); */
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    gap: 0;
    border-radius: 999px;
    justify-content: center;
  }

  .hero__playback-label {
    display: none;
  }

  .hero__arrow-mobile {
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  backdrop-filter: blur(8px);
}


}

@media (min-width: 768px) {
  .hero__inner {
    width: min(calc(100% - (var(--layout-gutter-desktop) * 2)), var(--layout-max-width));
  }
}

@media (max-width: 400px) {

//edge solution for mobile Safari, header overlapping elements

  .hero {
    min-height: 100vh;
    align-items: center !important;
  }

}