/* BASYMOD Core 1.0.1.360 - Mobile Frontend
   Smartphone <= 760px. Desktop/Tablet bleibt unveraendert. */

/* Der eigenstaendige Mobile-Header ist auf Desktop unsichtbar. */
.bm-mobile-header-nav{display:none}

@media (max-width:760px){
  /* 1.0.1.360: mobil existiert nur die Navigation im Headerbild. */
  body.bm-mobile-nav1-mode .bm-blue-mounten-topbar-before-hero,
  body.bm-mobile-nav1-mode .bm-blue-mounten-under-nav-wrap{
    display:none!important;visibility:hidden!important;opacity:0!important;
    height:0!important;min-height:0!important;max-height:0!important;overflow:hidden!important;
    pointer-events:none!important;margin:0!important;padding:0!important;border:0!important;
  }
  body.bm-mobile-nav1-mode .bm-blue-mounten-topbar-before-hero *,
  body.bm-mobile-nav1-mode .bm-blue-mounten-under-nav-wrap *{display:none!important;}

  /* Entwickler-/Testwerkzeuge gehoeren nicht auf die oeffentliche Handyansicht. */
  body[data-bm-page="front"] .bm-dev-overlay,
  body[data-bm-page="front"] .bm-design-live-editor,
  body[data-bm-page="front"] #bm-developer-test-overlay-host{display:none!important;}
  /* OVER_HEADER und UNDER_HEADER werden mobil identisch behandelt.
     Desktop-NAV1 und das Desktop-Logo verschwinden vollstaendig. */
  body.bm-blue-mounten[data-bm-nav1-position="over_header"] .bm-blue-mounten-topbar-before-hero,
  body.bm-blue-mounten[data-bm-nav1-position="over-header"] .bm-blue-mounten-topbar-before-hero,
  body.bm-blue-mounten[data-bm-nav1-position="under_header"] .bm-blue-mounten-under-nav-wrap,
  body.bm-blue-mounten[data-bm-nav1-position="under-header"] .bm-blue-mounten-under-nav-wrap{
    display:none!important;
  }

  body.bm-blue-mounten .bm-mobile-header-nav{
    display:block;
    position:absolute;
    inset:0 0 auto 0;
    height:0;
    z-index:160;
    pointer-events:none;
  }
  body.bm-blue-mounten .bm-mobile-header-nav-toggle{
    display:flex!important;
    position:absolute!important;
    top:10px!important;
    right:10px!important;
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    min-height:44px!important;
    margin:0!important;
    padding:0!important;
    align-items:center!important;
    justify-content:center!important;
    border:1px solid rgba(255,255,255,.42)!important;
    border-radius:10px!important;
    background:rgba(0,0,0,.18)!important;
    color:#fff!important;
    box-shadow:none!important;
    backdrop-filter:blur(3px)!important;
    -webkit-backdrop-filter:blur(3px)!important;
    pointer-events:auto!important;
    cursor:pointer;
  }
  body.bm-blue-mounten .bm-mobile-header-nav-toggle svg{width:25px;height:25px}
  body.bm-blue-mounten .bm-mobile-header-nav-toggle:hover,
  body.bm-blue-mounten .bm-mobile-header-nav-toggle:focus-visible{
    background:rgba(0,0,0,.30)!important;
    border-color:rgba(255,255,255,.68)!important;
  }

  body.bm-blue-mounten .bm-mobile-header-menu{
    display:none!important;
    position:absolute!important;
    top:62px!important;
    left:10px!important;
    right:10px!important;
    width:auto!important;
    max-height:calc(100vh - 84px);
    overflow:auto;
    margin:0!important;
    padding:10px!important;
    background:rgba(3,24,43,.97)!important;
    border:1px solid rgba(255,255,255,.14)!important;
    border-radius:12px!important;
    box-shadow:0 18px 36px rgba(0,0,0,.38)!important;
    color:#fff!important;
    pointer-events:auto!important;
  }
  body.bm-blue-mounten .bm-mobile-header-menu.is-open{display:block!important}
  body.bm-blue-mounten .bm-mobile-header-menu .my-page-nav-level{
    display:flex!important;
    flex-direction:column!important;
    gap:4px!important;
    margin:0!important;
    padding:0!important;
    list-style:none!important;
  }
  body.bm-blue-mounten .bm-mobile-header-menu .my-page-nav-item{width:100%!important}
  body.bm-blue-mounten .bm-mobile-header-menu .my-page-nav-item>a{
    display:block!important;
    width:100%!important;
    padding:11px 12px!important;
    border-radius:8px!important;
    color:#fff!important;
    text-decoration:none!important;
  }
  body.bm-blue-mounten .bm-mobile-header-menu .my-page-nav-item.is-active>a,
  body.bm-blue-mounten .bm-mobile-header-menu .my-page-nav-item>a:hover{background:rgba(255,255,255,.12)!important}

  body.bm-blue-mounten .bm-mobile-header-actions{
    display:grid;
    gap:7px;
    margin-top:10px;
    padding-top:10px;
    border-top:1px solid rgba(255,255,255,.15);
  }
  body.bm-blue-mounten .bm-mobile-header-action{
    display:block;
    padding:11px 12px;
    border-radius:8px;
    background:rgba(255,255,255,.08);
    color:#fff!important;
    font-weight:700;
    text-decoration:none!important;
  }
  body.bm-blue-mounten .bm-mobile-header-action.is-edit{background:var(--bm-accent,#1f78d1)!important}

  /* Inhaltsbild ohne erzwungene 16:9-Hoehe oder Leerraum. */
  body.bm-blue-mounten .bm-blue-mounten-home-visual,
  body.bm-blue-mounten .bm-inline-content-visual{
    width:100%!important;max-width:none!important;min-height:0!important;height:auto!important;
    aspect-ratio:auto!important;align-self:start!important;background:transparent!important;overflow:hidden!important;
  }
  body.bm-blue-mounten .bm-blue-mounten-home-visual img,
  body.bm-blue-mounten .bm-inline-content-visual img{
    display:block!important;width:100%!important;max-width:100%!important;height:auto!important;
    min-height:0!important;max-height:none!important;object-fit:contain!important;object-position:center center!important;
    margin:0!important;padding:0!important;
  }
  body.bm-blue-mounten .bm-blue-mounten-home-visual::after,
  body.bm-blue-mounten .bm-inline-content-visual::after{inset:0!important}
}

/* Mobile Schritt 1: die tatsaechliche obere NAV1-Topbar direkt ausblenden.
   Unter-Header-Navigation, Headerbild und weitere Mobile-Funktionen bleiben unberuehrt. */
@media (max-width:1024px){
  body[data-bm-page="front"] .bm-blue-mounten-shell > header.bm-blue-mounten-topbar{
    display:none!important;
    visibility:hidden!important;
    height:0!important;
    min-height:0!important;
    max-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    overflow:hidden!important;
    pointer-events:none!important;
  }
  body[data-bm-page="front"] .bm-blue-mounten-shell > header.bm-blue-mounten-topbar *{
    display:none!important;
  }
}
