/* Native Home Hero (Pilot) – strikt unter .native-home-hero scoped.
   Werte an Original (Elementor-Section 6ea5a08) angeglichen:
   - min-height: 640 / 550 / 450 / 355 px (Default / 1366 / 1024 / 767)
   - Headline: 55 / 44 / 35 / 30 px, PT Sans Narrow 600
   - CTA-Banner: ehemals absolut (top:580/510/477/271 px, width:50–61%),
     hier per Flex-Column mit margin-top:auto stabil ans untere Ende des Heros gelegt.
*/

.native-home-hero {
  position: relative;
  z-index: 1; /* eigener Stacking-Context, damit CTA über nachfolgender Section liegt */
  width: 100%;
  min-height: 640px;
  /* overflow:visible: CTA darf sichtbar über die untere Hero-Kante hinausragen.
     Video/Poster werden weiterhin sauber via .native-home-hero__media geclippt. */
  overflow: visible;
  background: #2b82cb; /* entspricht Custom-CSS .elementor-element-6ea5a08 */
  color: #ffffff;
}

.native-home-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden; /* clippt Video/Poster fest auf die Hero-Box */
}

.native-home-hero__video,
.native-home-hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.native-home-hero__poster {
  z-index: 0;
}

.native-home-hero__video {
  z-index: 1;
}

.native-home-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.30) 0%,
    rgba(0, 0, 0, 0.10) 45%,
    rgba(0, 0, 0, 0.40) 100%
  );
  pointer-events: none;
}

.native-home-hero__inner {
  position: relative;
  z-index: 3;
  max-width: 1140px;
  margin: 0 auto;
  /* Top-Padding gezielt hoch, damit Headline tief im Hero sitzt;
     Bottom klein, damit CTA über margin-top:auto nah an die Unterkante rutscht. */
  padding: 180px 20px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 640px;
  box-sizing: border-box;
}

.native-home-hero__content {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.native-home-hero__title {
  margin: 0 0 1rem;
  /* !important nötig: .elementor-kit-5 h2 (Specificity 0,1,1) setzt global
     color:#000 und font-size:35px und würde sonst diese Regel überstimmen. */
  color: #ffffff !important;
  font-family: "PT Sans Narrow", "PT Sans", sans-serif !important;
  font-weight: 600 !important;
  font-size: 55px !important;
  line-height: 1.05;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.native-home-hero__title-line {
  display: block;
  color: #ffffff !important;
}

/* CTA sitzt unten im Hero (margin-top:auto) und ragt zusätzlich per translateY
   sichtbar über die untere Hero-Kante hinaus – wie im Original-Elementor-Hero,
   bei dem das Banner absolut bei top:580px in einem 640px-Container lag und
   ebenfalls über die Section-Kante hinausstand.
   position:relative + z-index sorgen dafür, dass der CTA im Stacking-Context
   der Hero-Section über dem Video/Overlay und über der nachfolgenden Section liegt. */
.native-home-hero .native-home-hero__cta {
  display: inline-block;
  margin-top: auto;
  width: 275px !important;
  max-width: 275px !important;
  position: relative;
  z-index: 5;
  transform: translate(120px, 88px) !important;
}

.native-home-hero .native-home-hero__cta-img {
  display: block;
  width: 275px !important;
  max-width: 275px !important;
  height: auto !important;
}

/* Desktop ≤ 1366px → Original 550px */
@media (max-width: 1366px) {
  .native-home-hero,
  .native-home-hero__inner {
    min-height: 550px;
  }

  .native-home-hero__inner {
    padding: 140px 20px 25px;
  }
}

/* Desktop ≤ 1200px → Original 44px Headline */
@media (max-width: 1200px) {
  .native-home-hero__title {
    font-size: 44px !important;
  }
}

/* Tablet ≤ 1024px → Original 450px / 35px */
@media (max-width: 1024px) {
  .native-home-hero,
  .native-home-hero__inner {
    min-height: 450px;
  }

  .native-home-hero__inner {
    padding: 90px 20px 25px;
  }

  .native-home-hero__title {
    font-size: 35px !important;
  }
}

/* Mobile ≤ 767px → Original 355px / 30px / zentriert / CTA grösser */
@media (max-width: 767px) {
  .native-home-hero,
  .native-home-hero__inner {
    min-height: 355px;
  }

  .native-home-hero__inner {
    padding: 50px 15px 25px;
    align-items: center;
  }

  .native-home-hero__content {
    max-width: 100%;
    align-items: center;
    text-align: center;
  }

  .native-home-hero__title {
    font-size: 30px !important;
    line-height: 1.1;
    margin: 0 0 1rem;
  }

  .native-home-hero .native-home-hero__cta {
    align-self: center;
    /* Mobile: weniger stark überhängen, sonst kollidiert das Banner mit
       dem nachfolgenden Inhalt auf kleinen Screens. */
    width: 61% !important;
    max-width: 260px !important;
    transform: translateY(25px) !important;
  }

  .native-home-hero .native-home-hero__cta-img {
    width: 100% !important;
    max-width: 260px !important;
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Reduced motion: Video deaktivieren, Poster bleibt sichtbar */
@media (prefers-reduced-motion: reduce) {
  .native-home-hero__video {
    display: none;
  }

  .native-home-hero__poster {
    z-index: 1;
  }
}
