/**
* Block Name: hero_home
*/

section.hero_home {
  overflow: hidden;
  height: 600px;
}

section.hero .swiper-container {
  overflow: hidden;
  max-width: 100%;
}

section.hero .swiper-wrapper {
  display: flex;
  flex-wrap: nowrap;
  max-width: 100%;
}

section.hero_home .swiper-container {
  height: 600px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

section.hero_home .hero_image {
  height: 100%;
  overflow: hidden;
  width: 100%;
  position: relative;
}

section.hero_home .image_wrapper {
  position: relative;
  height: 100%;
}

section.hero_home .swiper-slide:hover {
  text-decoration: none;
}

section.hero_home .overlay-color {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top right,
    rgba(52, 86, 62, 0.9) 0%,
    rgba(52, 86, 62, 0) 100%
  );
  mix-blend-mode: color;
  pointer-events: none;
  z-index: 1;
}

section.hero_home .overlay-darken {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top right,
    rgba(52, 86, 62, 0.85) 0%,
    /* Am Ende weiterhin 70% Deckkraft */ rgba(52, 86, 62, 0.85) 30%,
    /* In der Mitte 70% Deckkraft */ rgba(52, 86, 62, 0) 100%
      /* Transparent am Anfang */
  );
  pointer-events: none;
  z-index: 2;
}

section.hero_home .slide_content {
  width: 100%;
  z-index: 99;
  height: 200px;
  position: relative;
  transform: translateY(-200%);
  color: var(--ecru);
}

section.hero_home .slide_content .excerpt {
  opacity: 0.67;
}

section.hero_home .swiper-slide .slide_content .weiter {
  transition: all 300ms ease-in-out;
}

section.hero_home .swiper-slide:hover .slide_content .weiter {
  color: var(--minzgrun);
}

section.hero_home .swiper-slide .slide_content .weiter svg {
  transition: all 300ms ease-in-out;
}

section.hero_home .swiper-slide:hover .slide_content .weiter svg {
  transform: translateX(5px);
}

section.hero_home .swiper-slide .slide_content .weiter svg path {
  transition: all 300ms ease-in-out;
}

section.hero_home .swiper-slide:hover .slide_content .weiter svg path {
  fill: var(--minzgrun);
}

section.hero_home .swiper-pagination {
  bottom: 0;
  left: auto;
  height: 100px;
  text-align: left;
  padding-left: 11.5px;
}

.swiper-pagination-bullet {
  width: 97px;
  height: 7px;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  transition: background 200ms;
  background: rgba(245, 241, 231, 0.3);
  margin: 0 15px 0 0 !important;

  &::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transition: opacity 200ms;
  }
}

.swiper-pagination-bullet-active {
  background: rgba(#000, 0.4);

  &::before {
    background-color: var(--ecru);
    animation: slide-progress 3s cubic-bezier(0.3, 0, 0.3, 1) forwards;

    .swiper-paused & {
      animation-play-state: paused;
    }
  }
}

@keyframes slide-progress {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(0);
  }
}

/* Default für Mobile */
section.hero_home,
section.hero_home .swiper-container {
  height: 100vh;
}

/* ≥450px */
@media (min-width: 450px) {
  section.hero_home,
  section.hero_home .swiper-container {
    height: 600px;
  }
}

/* ≥768px */
@media (min-width: 768px) {
  section.hero_home,
  section.hero_home .swiper-container {
    height: 650px;
  }
}

/* ≥992px */
@media (min-width: 992px) {
  section.hero_home,
  section.hero_home .swiper-container {
    height: 700px;
  }
}

/* ≥1200px */
@media (min-width: 1200px) {
  section.hero_home,
  section.hero_home .swiper-container {
    height: 750px;
  }
}

/* ≥1400px */
@media (min-width: 1400px) {
  section.hero_home,
  section.hero_home .swiper-container {
    height: 790px;
  }
}

/* ≥1460px */
@media (min-width: 1460px) {
  section.hero_home,
  section.hero_home .swiper-container {
    height: 810px;
  }
}

/* ≥1660px */
@media (min-width: 1660px) {
  section.hero_home,
  section.hero_home .swiper-container {
    height: 830px;
  }
}

@media (max-width: 992px) {
  section.hero_home {
    padding-top: 100px;
  }
  section.hero_home .slide_content {
    position: relative;
    transform: translateY(-165%);
    width: auto;
  }

  .swiper-pagination-bullet {
    background: rgba(245, 241, 231, 0.45);
  }
}

@media (max-width: 992px) {
  section.hero_home .excerpt {
    display: none;
  }
}

@media (max-width: 767px) {
  section.hero_home .slide_content {
    padding-right: inherit;
  }
}

@media (max-width: 767.98px) {
  section.hero_home .overlay-color {
    background: linear-gradient(
      to top,
      rgba(52, 86, 62, 0.7) 0%,
      rgba(52, 86, 62, 0) 100%
    );
  }

  section.hero_home .overlay-darken {
    background: linear-gradient(
      to top,
      rgba(52, 86, 62, 0.85) 0%,
      /* Dunkel am unteren Rand */ rgba(52, 86, 62, 0.85) 30%,
      /* Bleibt dunkel */ rgba(52, 86, 62, 0) 100%
        /* Wird nach oben transparent */
    );
  }
}
