/* Mobil Navi integration – fixed full-width offcanvas */
@media (min-width: 981px) {
  .bb-mobilemenu,
  .bb-mobilemenu * { box-sizing: border-box; }
  .bb-mobilemenu { display:none !important; }
}

@media (max-width: 980px) {
  .offcanvas.has-bb-mobilemenu > *:not([data-mobilemenu-root]) {
    display:none !important;
  }

  .offcanvas .offcanvas-links,
  .offcanvas .offcanvas-close {
    display:none !important;
  }

  .offcanvas {
    width: 100vw !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    overflow: hidden;
    padding: 0;
    background: #fff;
  }

  .bb-mobilemenu,
  .bb-mobilemenu * { box-sizing: border-box; }

  .bb-mobilemenu {
    display:flex;
    flex-direction:column;
    min-height:100vh;
    width:100%;
    background:#fff;
  }

  .bb-mobilemenu-topline {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:12px 16px 10px;
    background:#7b003f;
    position:sticky;
    top:0;
    z-index:5;
  }

  .bb-mobilemenu-toolbar {
    display:flex;
    align-items:center;
    gap:8px;
    margin-left:0;
    flex:0 0 auto;
  }

  .bb-mobilemenu-close,
  .bb-mobilemenu-back {
    appearance:none;
    border:2px solid rgba(255,255,255,.78);
    background:rgba(255,255,255,.08);
    color:#fff;
    min-width:46px;
    height:46px;
    border-radius:12px;
    line-height:1;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 2px 8px rgba(0,0,0,.12);
  }

  .bb-mobilemenu-close {
    font-size:28px;
    font-weight:500;
  }

  .bb-mobilemenu-back {
    gap:8px;
    width:auto;
    padding:0 14px;
    font-weight:700;
  }

  .bb-mobilemenu-back__icon {
    font-size:22px;
    line-height:1;
  }

  .bb-mobilemenu-back__label {
    font-size:15px;
    line-height:1;
    letter-spacing:.01em;
  }

  .bb-mobilemenu-search {
    appearance:none;
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:2px solid rgba(255,255,255,.78);
    border-radius:12px;
    background:rgba(255,255,255,.08);
    color:#fff;
    width:46px;
    min-width:46px;
    height:46px;
    padding:0;
    cursor:pointer;
    box-shadow:0 2px 8px rgba(0,0,0,.12);
  }

  .bb-mobilemenu-search__icon { color:#fff; font-size:30px; line-height:1; font-weight:700; opacity:1; }
  .bb-mobilemenu-search__text { display:none; }

  .bb-mobilemenu-level {
    display:none;
    padding:14px;
    overflow-y:auto;
    flex:1 1 auto;
  }

  .bb-mobilemenu-level.is-active { display:block; }

  .bb-mobilemenu-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }

  .bb-mobilemenu-card {
    position:relative;
    min-height:165px;
    border-radius:20px;
    overflow:hidden;
    background-color:#ddd;
    background-size:cover;
    background-position:center center;
    box-shadow:0 3px 14px rgba(0,0,0,.14);
  }

  .bb-mobilemenu-card__overlay {
    position:absolute; inset:0;
    background:linear-gradient(180deg,rgba(0,0,0,.02) 20%,rgba(0,0,0,.48) 100%);
    pointer-events:none;
  }

  .bb-mobilemenu-card__inner {
    position:absolute; inset:0; width:100%; border:0;
    background:transparent; color:#fff; text-decoration:none;
    display:flex; flex-direction:column; justify-content:flex-end; align-items:flex-start;
    gap:4px; padding:14px; text-align:left; cursor:pointer;
    font-weight:700;
  }

  .bb-mobilemenu-card__main {
    font-size:16px; line-height:1.2; font-weight:700 !important;
    text-shadow:0 1px 1px rgba(0,0,0,.35);
  }

  .bb-mobilemenu-card__sub {
    margin-top:2px;
    font-size:13px; line-height:1.3; opacity:.98;
    font-weight:400 !important;
    text-shadow:0 1px 1px rgba(0,0,0,.42);
  }

  .bb-mobilemenu-card__arrow {
    position:absolute; right:14px; top:14px; width:30px; height:30px;
    border-radius:50%; background:rgba(255,255,255,.88); color:#222;
    display:inline-flex; align-items:center; justify-content:center; font-size:14px;
  }
}


@media (max-width: 980px) {
  .bb-mobilemenu-card a,
  .bb-mobilemenu-card button,
  .bb-mobilemenu-card__inner,
  .bb-mobilemenu-card__inner:link,
  .bb-mobilemenu-card__inner:visited {
    font-weight:700;
  }
}


@media (max-width: 980px) {
  .bb-mobilemenu-card__main,
  .bb-mobilemenu-card.has-children .bb-mobilemenu-card__main,
  .bb-mobilemenu-card:not(.has-children) .bb-mobilemenu-card__main,
  .bb-mobilemenu-card a .bb-mobilemenu-card__main,
  .bb-mobilemenu-card button .bb-mobilemenu-card__main {
    font-weight: 800 !important;
  }
}

.bb-mobilemenu-card__main {
    font-family: ABeeZee, sans-serif !important;
    font-weight: 700 !important;
}

/* Scrollbereich sauber bis ganz unten nutzbar machen */
.bb-mobilemenu-level {
    padding-bottom: 0 !important;
}

.bb-mobilemenu-grid {
    padding-bottom: 0 !important;
}

.bb-mobilemenu-grid::after {
    content: "";
    display: block;
    width: 100%;
    height: calc(48px + env(safe-area-inset-bottom, 0px));
    grid-column: 1 / -1;
    flex: 0 0 100%;
}

.bb-mobilemenu-level {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
