/* =============================================================
   MOBIL MENU — fullscreen takeover + scroll-lås (body.lcd-menu-open)

   RETTET: body er ikke længere position:fixed. Den teknik fik
   siden til at hoppe til toppen når menuen åbnede. Scroll låses
   nu med overflow:hidden på html+body samt touchmove/wheel-
   blokering i mobilmenu.js — siden bliver stående hvor den er.
   ============================================================= */

@media (max-width: 1024px) {
  #menubar-177 .e-n-menu-heading {
    background-color: #ffffff;
    position: relative;
    z-index: 1;
  }
  body.lcd-menu-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 99999;
  }
}

/* -------------------------------------------------------------
   Scroll-lås — uden at flytte siden
   ------------------------------------------------------------- */
html.lcd-menu-open-html {
  overflow: hidden !important;
  /* Stopper iOS' "rubber band" fra at traekke siden bagved. */
  overscroll-behavior: none;
}

body.lcd-menu-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

/* -------------------------------------------------------------
   Fullscreen menu
   ------------------------------------------------------------- */
body.lcd-menu-open .elementor-location-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 70px !important;
  z-index: 9999999 !important;
  background: #fff !important;
}

body.lcd-menu-open #menubar-177 {
  position: fixed !important;
  top: 70px !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: calc(100dvh - 70px) !important;
  max-height: calc(100dvh - 70px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y !important;
  /* Forhindrer at scroll i menuen "smitter" ud paa siden bagved. */
  overscroll-behavior: contain;
  background: #fff !important;
  z-index: 999999 !important;
  padding-bottom: 120px !important;
  --stretch-width: 100vw !important;
}

body.lcd-menu-open .e-n-menu-content,
body.lcd-menu-open [id^="e-n-menu-content-"] {
  overflow: visible !important;
  overflow-y: visible !important;
  max-height: none !important;
  height: auto !important;
  position: relative !important;
}