/* HERO STYLES */

/* HERO */
.hero {
  width: 100%;
  max-width: none;
  margin: 0;
  /*background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://images.unsplash.com/photo-1601758228041-f3b2795255f1");*/
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 140px 20px;
}

.hero p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.7;
  opacity: 0.95;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero {
  position: relative;
  margin: 0;
  color: #ffffff;
  overflow: hidden; /*hier*/
  padding: 1em 0;
}

.page-hero .wp-block-cover__inner-container {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 550px;
  padding: 102px 115px 0;
  pointer-events: auto;
}

.page-hero .header-inner {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 0;
  z-index: 5;
  pointer-events: auto;
}

.page-hero .header-social {
  position: absolute;
  display: flex;
  gap: 14px;
  right: 130px;
  bottom: 72px;
  z-index: 4;
  pointer-events: auto;
  display: inline-block;
  text-align: right;
}

.page-hero .header-social__item {
  margin-left: 10px;
}

.page-hero .wp-block-post-title {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  color: #ffffff;
  font-size: clamp(4.2rem, 7vw, 5.2rem);
  font-weight: 900;
  line-height: 1.18;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  left: 50%;
  transform: translateX(-50%);
  bottom: 13%;
}

.page-hero p {
  position: relative;
  z-index: 4;
  pointer-events: none;
  margin: 0 20px 150px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.125rem;
  line-height: 1.7;
  text-align: center;
}

/*Video*/
.page-hero__bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    overflow: hidden;
    pointer-events: auto; /* allow clicks on play button */
}

.page-hero__bg-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 100%;
    height: 100%;

    min-width: 100%;
    min-height: 100%;

    transform: translate(-50%, -50%);

    border: none;
    pointer-events: none;

    object-fit: cover;
}

.hero-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2; /* must be above title/text overlay */
    transition: all 0.3s ease;
    /*box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);*/
    pointer-events: auto;
}

.hero-play-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
    /*box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);*/
}

.hero-play-btn::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 24px solid #000000;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    margin-left: 4px;
}

.hero-play-btn.hidden {
    display: none !important;
}


/* Poster wie Background */
.page-hero__bg-video .poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none; /* don't block play button clicks */
}


/* 👉 Zustand: Video läuft */
.page-hero.play .poster {
    display: none;
}

.page-hero.play .hero-play-btn {
    display: none;
}

/* Video-Modus: Video steht vor allem im Hero */
.page-hero.play .page-hero__bg-video {
    z-index: 50;
}

.page-hero.play .wp-block-cover__inner-container,
.page-hero.play .header-inner,
.page-hero.play .header-social,
.page-hero.play .page-hero__overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-hero.play .page-hero__bg-video iframe {
    pointer-events: auto; 
}

.page-hero__overlay {
    pointer-events: none; /* Ermöglicht Klicks auf darunterliegende Elemente */
    position: absolute;
    inset: 0;
    /*background: rgba(0, 0, 0, 0.38);*/
    z-index: 1;
}

/* TABLET + MOBILE */
@media (max-width: 1180px) {
  .page-hero {
    min-height: unset !important;
  }

  
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 20px;
  }

  .page-hero .wp-block-cover__inner-container {
    min-height: 300px;
    padding: 50px 20px 0;
  }

  .page-hero .wp-block-post-title {
    font-size: clamp(2.5rem, 8vw, 3rem);
    margin: 60px 20px 12px;
  }

  .page-hero p {
    margin: 0 20px 30px;
    font-size: 0.9rem;
  }

  .hero-play-btn::after {
    border-left-width: 15px;
    border-top-width: 9px;
    border-bottom-width: 9px;
    margin-left: 2px;
  }
}

@media (max-width: 980px) {
  .page-hero .wp-block-cover__inner-container {
    min-height: 320px;
    padding: 40px 80px 0;
  }

  .page-hero .header-inner {
    padding: 0;
  }

  .page-hero .header-social {
    right: 100px;
    bottom: 30px;
  }

  .page-hero .wp-block-post-title {
    margin-bottom: 0px;
    font-size: clamp(3rem, 8vw, 4rem);
    line-height: 1.4;
  }

  .page-hero p {
    margin: 0 20px 34px;
    font-size: 0.98rem;
  }

}

@media (max-width: 781px) {
  .page-hero .wp-block-post-title {
    line-height: 3.5;
  }
  .hero-play-btn {
    top: 75%;
  }

  
  .hero-play-btn {
    width: 50px;
    height: 50px;
  }
}


@media (max-width: 640px) {
  .page-hero .wp-block-post-title {
    font-size: clamp(2rem, 12vw, 3rem);
    line-height: 5;
  }
  .header-social__item img {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .page-hero .wp-block-post-title{
    font-size: clamp(1.25rem, 6vw, 1.25rem);
    line-height: 1.1;
    margin-bottom: 5rem;
  }

  .hero-play-btn {
    left: 20%;
  }
  .page-hero .wp-block-cover__inner-container { 
     padding: 40px 55px 0;
  }

  .page-hero .header-social {
    right: 70px;
  }
}