/* ==========================================================================
   LENIS SMOOTH SCROLL – CORE CSS (optimiert für Elementor)
   ========================================================================== */

/* Verhindert, dass Lenis die Seite auf eine fixe Höhe setzt */
html.lenis {
  height: auto;
}

/* Verhindert Browser-Jumps + Scroll-Glitches */
html.lenis body {
  height: auto;
  overscroll-behavior: none;
}

/* ==========================================================================
   Prävention für Elemente, die nicht gescrollt werden dürfen
   (z. B. Modals, Popups, Slider während Drag)
   ========================================================================== */

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

/* ==========================================================================
   Wenn Lenis gestoppt wird (z. B. während Popups / Modals)
   ========================================================================== */

.lenis.lenis-stopped {
  overflow: hidden;       /* besser unterstützt als overflow: clip */
  overscroll-behavior: none;
}

/* ==========================================================================
   Iframes während Scroll deaktivieren (Performance-Boost)
   Nur während smooth scrolling aktiv!
   ========================================================================== */

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* ==========================================================================
   Safari Fix (iOS): verhindert Flickering und „overscroll bounce“
   ========================================================================== */

@supports (-webkit-touch-callout: none) {
  html.lenis {
    scroll-behavior: auto !important;
  }
}