/* Handplant cinematic homepage hero preview.
   Loaded only on the homepage, after the retained legacy/redesign styles. */

html,
body {
  overflow-x: clip;
}

.start_wrapper {
  overflow: visible !important;
}

#start_section1.hp_hero_scroll {
  --hp-hero-progress: 0;
  position: relative;
  width: 100vw !important;
  height: 170svh !important;
  min-height: 170svh !important;
  margin: 18px 0 0 calc(50% - 50vw) !important;
  border-radius: 0 !important;
  background: #173d2b !important;
  box-shadow: none !important;
  overflow: visible !important;
  display: block !important;
}

.hp_hero_sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #173d2b;
}

.hp_hero_media,
.hp_hero_poster,
.hp_hero_video,
.hp_hero_shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hp_hero_media {
  z-index: 0;
  overflow: hidden;
  background: #173d2b;
}

.hp_hero_poster,
.hp_hero_video {
  display: block;
  object-fit: cover;
  object-position: 68% center;
}

.hp_hero_poster {
  z-index: 1;
  opacity: 1;
  transform: scale(1.002);
  transform-origin: 68% 50%;
  animation: hp-hero-breathe 14s ease-out both;
}

.hp_hero_video {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.hp_hero_scroll.hp_hero--scrubbing .hp_hero_poster {
  animation: none;
}

.hp_hero_scroll.hp_hero--video-visible .hp_hero_video {
  opacity: 1;
}

.hp_hero_scroll.hp_hero--video-visible .hp_hero_poster {
  opacity: 0;
  animation: none;
}

.hp_hero_shade {
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 28, 19, .82) 0%, rgba(12, 34, 23, .63) 28%, rgba(12, 34, 23, .18) 57%, transparent 76%),
    linear-gradient(0deg, rgba(7, 18, 12, .2), transparent 44%);
}

#start_section1_inhalt.hp_hero_content {
  position: relative;
  z-index: 5;
  height: 100%;
  width: min(1240px, calc(100% - 48px)) !important;
  max-width: none !important;
  margin: 0 auto;
  padding: clamp(42px, 8vh, 92px) 0 clamp(150px, 19vh, 210px) !important;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: flex-end;
  gap: 22px !important;
  color: #fff;
  opacity: 1;
  transform: none;
  pointer-events: none;
}

#start_section1_inhalt.hp_hero_content > * {
  pointer-events: auto;
}

#start_section1_inhalt.hp_hero_content > div {
  align-items: flex-start !important;
}

#hp_hero_title {
  display: flex;
  flex-direction: column;
  gap: .06em;
  max-width: 760px;
  margin: 0 !important;
  color: #fff !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 5.25vw, 5.35rem) !important;
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
  text-shadow: 0 4px 26px rgba(0, 0, 0, .36);
}

#hp_hero_title span:nth-child(2) {
  font-size: .72em;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.015em;
}

.hp_hero_cta.button3 {
  min-height: 52px;
  margin: 0 !important;
  padding: 0 26px !important;
  border-radius: 999px !important;
  background: #fffaf4 !important;
  color: #254216 !important;
  font-size: 1rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2) !important;
}

.hp_hero_cta.button3:hover,
.hp_hero_cta.button3:focus-visible {
  background: #495e35 !important;
  color: #fff !important;
}

.hp_hero_cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}


/* The next retained section starts on the normal warm page surface. */
#start_section1_1 {
  position: relative;
  z-index: 2;
  margin-top: 38px !important;
}

@keyframes hp-hero-breathe {
  from { transform: scale(1.002); }
  to { transform: scale(1.018); }
}

@media (max-width: 700px) {
  #start_section1.hp_hero_scroll {
    height: 140svh !important;
    min-height: 140svh !important;
    margin-top: 12px !important;
  }

  .hp_hero_poster,
  .hp_hero_video {
    object-position: 66% center;
  }

  .hp_hero_poster {
    transform-origin: 66% 50%;
  }

  .hp_hero_shade {
    background:
      linear-gradient(0deg, rgba(8, 24, 16, .9) 0%, rgba(9, 26, 17, .7) 34%, rgba(9, 26, 17, .14) 70%, rgba(8, 20, 13, .08) 100%),
      linear-gradient(90deg, rgba(8, 24, 16, .38), transparent 78%);
  }

  #start_section1_inhalt.hp_hero_content {
    width: calc(100% - 36px) !important;
    padding: 36px 0 118px !important;
    justify-content: flex-end;
    gap: 18px !important;
  }

  #hp_hero_title {
    max-width: 10.5em;
    font-size: clamp(2.15rem, 10.6vw, 3.25rem) !important;
    line-height: 1.01;
  }

  .hp_hero_cta.button3 {
    min-height: 50px;
  }

}

/* Motion/data fallbacks remove both pinning and all automatic movement. */
#start_section1.hp_hero_scroll.hp_hero--static {
  height: 100svh !important;
  min-height: 620px !important;
}

.hp_hero--static .hp_hero_sticky {
  position: relative;
}

.hp_hero--static .hp_hero_poster {
  animation: none;
  transform: none;
}

.hp_hero--static .hp_hero_video {
  display: none;
}

@media (max-width: 700px) {
  #start_section1.hp_hero_scroll.hp_hero--static {
    min-height: 620px !important;
    height: min(760px, 88svh) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #start_section1.hp_hero_scroll {
    height: 100svh !important;
    min-height: 620px !important;
  }

  .hp_hero_sticky {
    position: relative;
  }

  .hp_hero_poster {
    animation: none !important;
    transform: none !important;
  }

  .hp_hero_video {
    display: none !important;
  }

  #start_section1_inhalt.hp_hero_content {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
