/* =========================================================
   EK4Y – HERO & SLIDER MODULE
   Version: 2025-11 (Parallax + Fixed Content)
========================================================= */

/* =======================
   HERO – GRUNDLAYOUT
======================= */

@media (max-width: 991.98px) {
    /* Kein fixed-height Problem bei hero */
    .hero-section {
      height: auto !important;
      min-height: 100vh;
    }
  
    /* Safari / iOS Scroll-Fix */
    @supports (-webkit-touch-callout: none) {
      html, body {
        -webkit-overflow-scrolling: touch;
      }
    }
  }
  
  #hero {
    position: relative;
    overflow: hidden;
  }
  
  #hero .carousel-item img {
    height: 100vh;
    object-fit: cover;
  }
  
  #hero .carousel-caption {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
    z-index: 2;
  }
  
  #hero .hero-box {
    max-width: 700px;
    margin: 0 auto;
  }
  
  @media (max-width: 767.98px) {
    #hero .carousel-item img { height: 100vh; }
    #hero .hero-title { font-size: 1.8rem; }
    #hero .hero-text { font-size: 1rem; }
  }
  
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    text-align: left;
    padding: 0 3rem;
  }
  
  /* =======================
     HERO – OVERLAY
  ======================= */
  .hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.65), rgba(0,0,0,0.05));
    z-index: 1;
    transition: background .4s ease;
  }
  
  /* =======================
     HERO – HINTERGRUND
  ======================= */
  .hero-bg,
  .hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    transform: translateY(0);
    transition: transform 0.1s linear;
    will-change: transform;
    z-index: 0;
  }
  
  /* =======================
     HERO – INHALT
  ======================= */
  .hero-box {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin-left: 5%;
    transform: none !important;
    backface-visibility: hidden;
  }
  
  .hero-title {
    font-size: clamp(1rem, 5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 1.75rem;
  }
  
  /* =======================
     CTA-BUTTONS
  ======================= */
  .hero-box .btn-cta {
    background: #17d68f;
    color: #fff;
    border: none;
    transition: all .3s ease;
  }
  
  .hero-box .btn-cta:hover {
    background: #13b97c;
    transform: translateY(-2px);
  }
  
  .hero-box .btn-outline-light {
    color: #fff;
    border: 2px solid #fff;
    transition: all .3s ease;
  }
  
  .hero-box .btn-outline-light:hover {
    background: #fff;
    color: #0a5c3e;
  }
  
  /* =======================
     HERO – DOTS (optional)
  ======================= */
  .hero-dots {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
  }
  
  .hero-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    transition: background .3s, transform .3s;
  }
  
  .hero-dot.active {
    background: #17d68f;
    transform: scale(1.2);
  }
  
  /* =======================
     REVIEWS-SLIDER (optional)
  ======================= */
  .reviews-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 4rem 0;
  }
  
  .reviews-track {
    display: flex;
    gap: 2rem;
    transition: transform .6s ease;
  }
  
  .review-card {
    background: #fff;
    color: #111;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
    min-width: 300px;
    max-width: 400px;
    flex-shrink: 0;
  }
  
  .review-stars i { color: #17d68f; }
  .review-author {
    font-weight: 600;
    margin-top: 1rem;
    color: #0f8a5d;
  }
  
  /* =======================
     MEDIA-QUERIES
  ======================= */
  
  /* --- TABLET --- */
  @media (max-width: 1199.98px) {
    .hero-section {
      justify-content: center;
      text-align: center;
      padding: 0 2rem;
    }
    .hero-box {
      margin: 0 auto;
      max-width: 90%;
      text-align: center;
    }
    .hero-section::before {
      background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.1));
    }
  }
  
  /* --- MOBILE --- */
  @media (max-width: 767.98px) {
    .hero-section {
      height: auto;
      min-height: 100vh;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 0 1.25rem;
    }
  
    .hero-box {
      margin: 0 auto;
      max-width: 100%;
      text-align: center;
    }
  
    .hero-title {
      font-size: clamp(1.75rem, 7vw, 2.5rem);
    }
  
    .hero-text {
      font-size: 1rem;
    }
  
    /* =========================================================
   ✅ HERO – SICHTBARER OVERLAY-EFFEKT (Gradient von links)
========================================================= */
#hero::before,
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2; /* über Bild/Video, aber unter Text */
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.35) 40%,
    rgba(0, 0, 0, 0.1) 100%
  );
  transition: opacity 0.5s ease, background 0.5s ease;
  opacity: 1;
}

/* Optional: leicht dunkler machen beim Hover oder Slide-Wechsel */
#hero:hover::before {
  opacity: 1;
}

    /* Parallax-Deaktivierung */
    .hero-bg img {
      height: 100%;
      transform: none !important;
      background-attachment: scroll;
    }
  
    .review-card { min-width: 260px; }
  }
  
  @media (max-width: 767.98px) {
    .hero-bg img {
      height: 100vh !important;
      width: 100%;
      object-fit: cover;
    }
  
    .hero-section {
      min-height: 100vh !important;
    }
  }
  