/* =========================
   HERO
   ========================= */

.hero {
  --hero-current-height: calc(100svh - var(--header-height-desktop));
  --hero-divider-height: clamp(10.8rem, 15vw, 14.2rem);
  --hero-divider-overhang: clamp(4rem, 5.4vw, 5rem);

  /* SICHERHEITSABSTAND FÜR DEN CONTENT ÜBER DEM GRÜNEN BALKEN */
  --hero-content-safe-bottom: max(
    6.2rem,
    calc(var(--hero-divider-height) - var(--hero-divider-overhang) + 1.6rem)
  );

  position: relative;
  overflow: visible;
}

.hero::after {
  content: "";
  position: absolute;
  left: -2px;
  width: calc(100% + 4px);
  bottom: calc(-1 * var(--hero-divider-overhang));
  z-index: 4;
  height: var(--hero-divider-height);
  background: var(--color-green);
  clip-path: polygon(0 0, 100% 34%, 100% 100%, 0 66%);
  pointer-events: none;
}

.hero-slider {
  overflow: hidden;
}

.hero-slider,
.hero-slider .swiper-wrapper,
.hero-slider .swiper-slide,
.hero-slide,
.hero--fallback,
.hero-slide--fallback {
  min-height: var(--hero-current-height);
  height: var(--hero-current-height);
}

.hero-slide {
  position: relative;
  display: grid;
  isolation: isolate;
  background: #2c4422;
}

.hero-slide > * {
  grid-area: 1 / 1;
}

.hero-slide picture {
  display: block;
  width: 100%;
  height: 100%;
  min-height: var(--hero-current-height);
}

.hero-slide::after {
  content: "";
  grid-area: 1 / 1;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.56) 0%,
    rgba(0, 0, 0, 0.34) 42%,
    rgba(0, 0, 0, 0.18) 100%
  );
}

.hero-slide__image {
  width: 100%;
  height: 100%;
  min-height: var(--hero-current-height);
  object-fit: cover;
  object-position: center center;
}

.hero-slide__content {
  position: relative;
  z-index: 6;
  width: min(calc(100% - 2.5rem), var(--hero-content-width));
  justify-self: start;
  align-self: end;
  margin-left: var(--hero-content-offset-left);
  margin-right: 0;
  padding-top: clamp(2.2rem, 4vw, 3.2rem);
  padding-bottom: var(--hero-content-safe-bottom);
  color: #fafafa;
}

.hero-slide__title {
  margin: 0 0 1rem;
  font-family: "Montserrat-Bold", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 5.25rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-slide__text {
  max-width: 58ch;
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, 0.95);
  font-family: "Montserrat-Medium", Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.55;
}

.hero-slide__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  background: #fafafa;
  color: #111111;
  text-decoration: none;
  font-family: "Montserrat-Bold", Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.hero-slide__button:hover,
.hero-slide__button:focus-visible {
  transform: translateY(-2px);
  opacity: 1;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  outline: none;
}

.hero-slider__controls {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.hero-slider__pagination {
  position: absolute;
  left: 50%;
  bottom: max(3.1rem, calc(var(--hero-divider-overhang) + 0.9rem));
  display: flex;
  gap: 0.55rem;
  transform: translateX(-50%);
  pointer-events: auto;
}

.hero-slider .swiper-pagination-bullet {
  width: 0.72rem;
  height: 0.72rem;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.52);
  opacity: 1;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-slider .swiper-pagination-bullet-active {
  background: #fafafa;
  transform: scale(1.08);
}

.hero-slider__button-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  padding: 0.5rem 0.75rem;
  border: 0;
  background: transparent;
  color: #fafafa;
  cursor: pointer;
  transform: translateY(-50%);
  opacity: 0.92;
  pointer-events: auto;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero-slider__button-nav:hover,
.hero-slider__button-nav:focus-visible {
  transform: translateY(-50%) scale(1.06);
  opacity: 1;
  outline: none;
}

.hero-slider__button-nav span {
  display: block;
  font-family: Arial, sans-serif;
  font-size: clamp(3.5rem, 4vw, 5rem);
  line-height: 1;
  font-weight: 400;
  user-select: none;
}

.hero-slider__button-nav--prev {
  left: 1.5rem;
}

.hero-slider__button-nav--next {
  right: 1.5rem;
}

/* =========================
   HERO SCROLL DOWN
   ========================= */

.hero-scroll-down {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 6;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  transform: translateX(-50%);
  color: #fafafa;
  text-decoration: none;
}

.hero-scroll-down__label {
  font-family: "Montserrat-Medium", Arial, sans-serif;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-scroll-down__circle {
  display: grid;
  place-items: center;
  width: 3.35rem;
  height: 3.35rem;
  border: 1.5px solid rgba(250, 250, 250, 0.72);
  border-radius: 50%;
  background: transparent;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-scroll-down__arrow {
  width: 0.9rem;
  height: 0.9rem;
  border-right: 3px solid #fafafa;
  border-bottom: 3px solid #fafafa;
  transform: translateY(-10%) rotate(45deg);
}

.hero-scroll-down:hover .hero-scroll-down__circle,
.hero-scroll-down:focus-visible .hero-scroll-down__circle {
  transform: translateY(2px);
  border-color: rgba(255, 255, 255, 1);
}

.hero-scroll-down:focus-visible {
  outline: none;
}

.hero--fallback,
.hero-slide--fallback {
  background: linear-gradient(135deg, #35592b 0%, #4f8b3a 100%);
}

.hero-slide--fallback {
  display: grid;
}

.hero-slide--fallback .hero-slide__content {
  align-self: end;
}

/* =========================
   DESKTOP -> TABLET
   WICHTIG: GLEICHER BREAKPOINT WIE HEADER/NAV
   ========================= */

@media (max-width: 1300px) {
  .hero {
    --hero-current-height: calc(100svh - var(--header-height-mobile));
  }

  .hero-slide__content {
    width: min(calc(100% - 2.25rem), 42rem);
    margin-left: clamp(1.5rem, 4vw, 3rem);
  }

  .hero-slide__title {
    font-size: clamp(2.3rem, 4.7vw, 4.4rem);
  }

  .hero-slide__text {
    max-width: 52ch;
    margin-bottom: 1.7rem;
    font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  }
}

@media (max-width: 991px) {
  .hero {
    --hero-divider-height: clamp(10.2rem, 17vw, 13rem);
    --hero-divider-overhang: clamp(3.8rem, 6vw, 4.8rem);
    --hero-content-safe-bottom: max(
      6.8rem,
      calc(var(--hero-divider-height) - var(--hero-divider-overhang) + 1.7rem)
    );
  }

  .hero-slide__content {
    width: min(calc(100% - 2rem), 38rem);
    margin-left: clamp(1.25rem, 4vw, 2rem);
    padding-top: 2.15rem;
  }

  .hero-slider__button-nav--prev {
    left: 1rem;
  }

  .hero-slider__button-nav--next {
    right: 1rem;
  }
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 767px) {
  .hero {
    --hero-divider-height: clamp(10rem, 21vw, 12rem);
    --hero-divider-overhang: clamp(3.7rem, 6.8vw, 4.6rem);
    --hero-content-safe-bottom: max(
      8.8rem,
      calc(var(--hero-divider-height) - var(--hero-divider-overhang) + 2.4rem)
    );
  }

  .hero::after {
    clip-path: polygon(0 0, 100% 36%, 100% 100%, 0 64%);
  }

  .hero-slide__content {
    width: calc(100% - 1.5rem);
    margin-left: 0.75rem;
    padding-top: 2rem;
  }

  .hero-slide__title {
    font-size: clamp(2.1rem, 8.5vw, 3.4rem);
  }

  .hero-slide__text {
    margin-bottom: 1.35rem;
    font-size: 1rem;
    line-height: 1.52;
  }

  .hero-slider__pagination {
    bottom: max(3rem, calc(var(--hero-divider-overhang) + 0.7rem));
  }

  .hero-slider__button-nav {
    display: none;
  }

  .hero-scroll-down {
    bottom: -0.8rem;
    gap: 0.42rem;
  }

  .hero-scroll-down__circle {
    width: 3rem;
    height: 3rem;
  }

  .hero-scroll-down__arrow {
    width: 0.8rem;
    height: 0.8rem;
    border-right-width: 2.5px;
    border-bottom-width: 2.5px;
  }

  .hero-scroll-down__label {
    font-size: 0.72rem;
  }
}