.page-header {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

/* Bild-Hintergrund */
.page-header__image {
  position: absolute;
  inset: -80px 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  transform: translateY(0) scale(1.12);
  will-change: transform;

  z-index: 0;
}

/* Video-Hintergrund */
/* Beide Klassennamen zur Sicherheit:
   page-header__video = aktuelles Modul
   page-header-video = falls noch ältere Variante irgendwo drinsteht
*/
.page-header__video,
.page-header-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  z-index: 0;
}

/* Overlay liegt über Bild/Video, aber unter dem Text */
.page-header__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.08) 35%,
    rgba(0, 0, 0, 0.12) 65%,
    rgba(0, 0, 0, 0.32) 100%
  );
}

/* Inhalt liegt ganz oben */
.page-header__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: calc(100% - 12rem);
  margin: 0 auto 1.5rem;
  padding: 2rem 0 2.5rem 6rem;
  background-color: rgba(255, 255, 255, 0.58);
  border-radius: 35px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.page-header h1 {
  margin: 0;
  color: #444;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1.05;
  font-weight: 300;
  max-width: 1200px;
}

.hero-subtitle {
  margin: 0.75rem 0 -0.75rem;
  color: #444 !important;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 400;
  max-width: 780px;
  letter-spacing: 1px;
}

/* Tablet */
@media (max-width: 980px) {
  .page-header {
    min-height: 60vh;
  }

  .page-header__content {
    max-width: calc(100% - 4rem);
    padding: 2rem 2.5rem;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .page-header {
    min-height: 45vh;
  }

  .page-header__image {
    inset: 0;
    transform: none;
  }

  .page-header__video,
  .page-header-video {
    object-fit: cover;
    object-position: center center;
  }

  .page-header__content {
    max-width: calc(100% - 2rem);
    margin: 0 auto 1rem;
    padding: 1.5rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.68);
    border-radius: 24px;
  }

  .page-header h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.25rem);
    margin: 0.5rem 0 0;
  }
}
