/* möbelando Mega-Menü – scoped to the class added by megamenu.js */
body.mbe-megamenu-active {
    --mbe-menu-accent: #a7e752;
    --mbe-menu-dark: #4e4e4e;
    --mbe-menu-surface: #ffffff;
    --mbe-menu-soft: #f5f7fa;
    --mbe-menu-border: rgba(78, 78, 78, .12);
    --mbe-menu-shadow: 0 22px 55px rgba(30, 37, 42, .18);
}

body.mbe-megamenu-active #mainNavigation .nav-link {
    text-decoration: none;
}

body.mbe-megamenu-active #mainNavigation > .nav-mobile-body > .navbar-nav > .nav-item > .nav-link {
    color: var(--mbe-menu-dark);
    font-weight: 700;
    letter-spacing: -.01em;
}

body.mbe-megamenu-active #mainNavigation > .nav-mobile-body > .navbar-nav > .nav-item > .nav-link:hover,
body.mbe-megamenu-active #mainNavigation > .nav-mobile-body > .navbar-nav > .nav-item.show > .nav-link,
body.mbe-megamenu-active #mainNavigation > .nav-mobile-body > .navbar-nav > .nav-item.active > .nav-link {
    color: var(--mbe-menu-dark);
}

.mbe-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1015;
    background: rgba(25, 30, 33, .38);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

body.mbe-megamenu-active.mbe-menu-open .mbe-menu-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mbe-menu-badge {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    margin-left: .45rem;
    padding: .1rem .42rem;
    border-radius: 999px;
    background: var(--mbe-menu-accent);
    color: #263020;
    font-size: .62rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.mbe-extra-tab__icon {
    margin-right: .35rem;
    color: var(--mbe-menu-accent);
}

.mbe-promo-column {
    display: flex;
    margin-bottom: 1rem;
}

.mbe-promo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid var(--mbe-menu-border);
    border-radius: 14px;
    background: var(--mbe-promo-bg, var(--mbe-menu-soft));
    color: var(--mbe-menu-dark);
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.mbe-promo-card:hover,
.mbe-promo-card:focus-visible {
    color: var(--mbe-menu-dark);
    border-color: color-mix(in srgb, var(--mbe-menu-accent) 75%, #ffffff);
    box-shadow: 0 12px 30px rgba(34, 42, 48, .14);
    transform: translateY(-2px);
}

.mbe-promo-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e9ecef;
}

.mbe-promo-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.mbe-promo-card:hover .mbe-promo-card__media img {
    transform: scale(1.035);
}

.mbe-promo-card__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    padding: .95rem 1rem 1rem;
}

.mbe-promo-card__badge {
    display: inline-flex;
    margin-bottom: .5rem;
    padding: .22rem .5rem;
    border-radius: 999px;
    background: var(--mbe-menu-accent);
    color: #263020;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.mbe-promo-card__title,
.mbe-promo-card__text,
.mbe-promo-card__cta {
    display: block;
}

.mbe-promo-card__title {
    font-size: 1rem;
    line-height: 1.25;
}

.mbe-promo-card__text {
    margin-top: .35rem;
    color: #666;
    font-size: .8rem;
    line-height: 1.45;
}

.mbe-promo-card__cta {
    margin-top: auto;
    padding-top: .75rem;
    color: var(--mbe-menu-dark);
    font-size: .78rem;
    font-weight: 800;
}

body.mbe-megamenu-active.mbe-menu-images-hidden #mainNavigation .submenu-headline-image {
    display: none !important;
}

@media (min-width: 992px) {
    body.mbe-megamenu-active #jtl-nav-wrapper {
        z-index: 1030;
    }

    body.mbe-megamenu-active #jtl-nav-wrapper .navbar,
    body.mbe-megamenu-active #mainNavigation,
    body.mbe-megamenu-active #mainNavigation > .nav-mobile-body,
    body.mbe-megamenu-active #mainNavigation > .nav-mobile-body > .navbar-nav,
    body.mbe-megamenu-active #mainNavigation .dropdown-full {
        position: static;
    }

    body.mbe-megamenu-active #mainNavigation > .nav-mobile-body > .navbar-nav > .nav-item > .nav-link {
        position: relative;
        display: flex;
        align-items: center;
        min-height: 52px;
        padding: .75rem .82rem;
        white-space: nowrap;
    }

    body.mbe-megamenu-active #mainNavigation > .nav-mobile-body > .navbar-nav > .dropdown-full > .nav-link::before,
    body.mbe-megamenu-active #mainNavigation > .nav-mobile-body > .navbar-nav > .mbe-extra-tab > .nav-link::before {
        position: absolute;
        right: .82rem;
        bottom: 5px;
        left: .82rem;
        height: 3px;
        border-radius: 999px;
        background: var(--mbe-menu-accent);
        content: "";
        opacity: 0;
        transform: scaleX(.45);
        transition: opacity .16s ease, transform .16s ease;
    }

    body.mbe-megamenu-active #mainNavigation > .nav-mobile-body > .navbar-nav > .nav-item > .nav-link:hover::before,
    body.mbe-megamenu-active #mainNavigation > .nav-mobile-body > .navbar-nav > .nav-item.show > .nav-link::before,
    body.mbe-megamenu-active #mainNavigation > .nav-mobile-body > .navbar-nav > .nav-item.active > .nav-link::before {
        opacity: 1;
        transform: scaleX(1);
    }

    body.mbe-megamenu-active #mainNavigation .dropdown-full > .dropdown-menu {
        top: 100%;
        left: 50%;
        display: block;
        width: min(1250px, calc(100vw - 32px));
        max-height: min(72vh, 690px);
        margin: 0;
        padding: 0;
        overflow: hidden auto;
        border: 1px solid var(--mbe-menu-border);
        border-radius: 0 0 18px 18px;
        background: var(--mbe-menu-surface);
        box-shadow: var(--mbe-menu-shadow);
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, -8px);
        visibility: hidden;
        transition: opacity .17s ease, transform .17s ease, visibility .17s ease;
    }

    body.mbe-megamenu-active #mainNavigation .dropdown-full.show > .dropdown-menu,
    body.mbe-megamenu-active #mainNavigation .dropdown-full > .dropdown-menu.show {
        opacity: 1;
        pointer-events: auto;
        transform: translate(-50%, 0);
        visibility: visible;
    }

    body.mbe-megamenu-active #mainNavigation .dropdown-full > .dropdown-menu > .dropdown-body {
        padding: 1.25rem 1.35rem .35rem;
    }

    body.mbe-megamenu-active #mainNavigation .subcategory-wrapper {
        max-width: none;
        padding: 0;
    }

    body.mbe-megamenu-active #mainNavigation .subcategory-wrapper > .row {
        margin-right: -.5rem;
        margin-left: -.5rem;
    }

    body.mbe-megamenu-active #mainNavigation .subcategory-wrapper > .row > [class*="col-"] {
        padding-right: .5rem;
        padding-left: .5rem;
    }

    body.mbe-megamenu-active #mainNavigation .nav-item-lg-m {
        margin-bottom: 1rem;
    }

    body.mbe-megamenu-active #mainNavigation .submenu-headline-toplevel {
        display: grid !important;
        grid-template-columns: 42px minmax(0, 1fr);
        gap: .7rem;
        align-items: center;
        min-height: 58px;
        margin-bottom: .25rem;
        padding: .48rem .55rem;
        border-radius: 10px;
        color: var(--mbe-menu-dark);
        font-size: .9rem;
        font-weight: 800;
        line-height: 1.2;
        transition: background-color .15s ease, color .15s ease;
    }

    body.mbe-megamenu-active.mbe-menu-images-hidden #mainNavigation .submenu-headline-toplevel {
        display: block !important;
        min-height: 0;
        padding: .5rem .55rem;
    }

    body.mbe-megamenu-active #mainNavigation .submenu-headline-toplevel:hover {
        background: color-mix(in srgb, var(--mbe-menu-accent) 17%, #ffffff);
    }

    body.mbe-megamenu-active #mainNavigation .submenu-headline-image {
        width: 42px;
        height: 42px;
        margin: 0;
        border: 1px solid var(--mbe-menu-border);
        border-radius: 9px;
        background: var(--mbe-menu-soft);
        object-fit: cover;
    }

    body.mbe-megamenu-active #mainNavigation .categories-recursive-dropdown {
        position: static !important;
        display: block !important;
        min-width: 0;
        margin: 0;
        padding: 0 0 0 .55rem;
        border: 0;
        background: transparent;
        box-shadow: none;
        transform: none !important;
    }

    body.mbe-megamenu-active #mainNavigation .categories-recursive-dropdown > .nav {
        display: block;
    }

    body.mbe-megamenu-active #mainNavigation .categories-recursive-dropdown .nav-link {
        position: relative;
        display: block;
        padding: .28rem .55rem .28rem .95rem;
        overflow: visible;
        color: #62676b;
        font-size: .79rem;
        line-height: 1.35;
        white-space: normal;
    }

    body.mbe-megamenu-active #mainNavigation .categories-recursive-dropdown .nav-link::before {
        position: absolute;
        top: .72rem;
        left: .22rem;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--mbe-menu-accent);
        content: "";
    }

    body.mbe-megamenu-active #mainNavigation .categories-recursive-dropdown .nav-link:hover {
        color: var(--mbe-menu-dark);
        text-decoration: underline;
        text-decoration-color: var(--mbe-menu-accent);
        text-decoration-thickness: 2px;
        text-underline-offset: 3px;
    }

    body.mbe-megamenu-active #mainNavigation .categories-recursive-dropdown .categories-recursive-dropdown {
        margin-left: .45rem;
        padding-left: .4rem;
        border-left: 1px solid var(--mbe-menu-border);
    }

    body.mbe-megamenu-active #mainNavigation .categories-recursive-dropdown .dropdown-toggle::after,
    body.mbe-megamenu-active #mainNavigation .submenu-headline-toplevel.dropdown-toggle::after {
        display: none;
    }

    body.mbe-megamenu-active .mbe-extra-tab > .nav-link {
        color: var(--mbe-menu-dark) !important;
    }
}

@media (max-width: 991.98px) {
    body.mbe-megamenu-active.mbe-menu-mobile-open {
        overflow: hidden;
        overscroll-behavior: none;
    }

    body.mbe-megamenu-active #mainNavigation {
        width: min(92vw, 430px);
        max-width: 430px;
        background: var(--mbe-menu-surface);
        box-shadow: 12px 0 40px rgba(25, 30, 33, .22);
    }

    body.mbe-megamenu-active #mainNavigation .nav-mobile-header {
        position: sticky;
        top: 0;
        z-index: 4;
        padding: .65rem .9rem .15rem;
        background: var(--mbe-menu-surface);
    }

    body.mbe-megamenu-active #mainNavigation .nav-mobile-header-hr {
        margin: .55rem 0 0;
        border-color: var(--mbe-menu-border);
    }

    body.mbe-megamenu-active #mainNavigation .nav-mobile-header-name {
        font-weight: 800;
    }

    body.mbe-megamenu-active #mainNavigation .navbar-toggler {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--mbe-menu-soft);
    }

    body.mbe-megamenu-active #mainNavigation .nav-mobile-body {
        padding: .45rem .85rem calc(1rem + env(safe-area-inset-bottom));
        -webkit-overflow-scrolling: touch;
    }

    body.mbe-megamenu-active #mainNavigation > .nav-mobile-body > .navbar-nav > .nav-item {
        border-bottom: 1px solid var(--mbe-menu-border);
    }

    body.mbe-megamenu-active #mainNavigation > .nav-mobile-body > .navbar-nav > .nav-item > .nav-link {
        display: flex;
        align-items: center;
        min-height: 54px;
        padding: .7rem .25rem;
        font-size: .98rem;
    }

    body.mbe-megamenu-active #mainNavigation .dropdown-full > .dropdown-menu {
        background: var(--mbe-menu-surface);
    }

    body.mbe-megamenu-active #mainNavigation .dropdown-full > .dropdown-menu > .dropdown-body {
        padding: .45rem .75rem 1rem;
    }

    body.mbe-megamenu-active #mainNavigation .nav-item-lg-m {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid var(--mbe-menu-border);
    }

    body.mbe-megamenu-active #mainNavigation .submenu-headline-toplevel {
        display: flex !important;
        align-items: center;
        min-height: 56px;
        padding: .55rem .25rem;
        color: var(--mbe-menu-dark);
        font-size: .93rem;
        font-weight: 800;
    }

    body.mbe-megamenu-active #mainNavigation .submenu-headline-image {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        margin-right: .75rem;
        border: 1px solid var(--mbe-menu-border);
        border-radius: 9px;
        object-fit: cover;
    }

    body.mbe-megamenu-active #mainNavigation .categories-recursive-dropdown .nav-link {
        min-height: 50px;
        padding-top: .65rem;
        padding-bottom: .65rem;
        font-size: .9rem;
    }

    body.mbe-megamenu-active .mbe-menu-badge {
        margin-left: auto;
    }

    body.mbe-megamenu-active .mbe-promo-column {
        padding: .75rem 0 0;
    }

    body.mbe-megamenu-active .mbe-promo-card {
        display: grid;
        grid-template-columns: minmax(105px, 36%) minmax(0, 1fr);
        min-height: 138px;
    }

    body.mbe-megamenu-active .mbe-promo-card:not(:has(.mbe-promo-card__media)) {
        display: block;
        min-height: 0;
    }

    body.mbe-megamenu-active .mbe-promo-card__media {
        height: 100%;
        aspect-ratio: auto;
    }

    body.mbe-megamenu-active .mbe-promo-card__content {
        padding: .85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mbe-menu-overlay,
    body.mbe-megamenu-active #mainNavigation .dropdown-full > .dropdown-menu,
    .mbe-promo-card,
    .mbe-promo-card__media img {
        transition: none !important;
    }
}
