/* HAUPTMENÜ */
.main-header-menu {
    text-align: center;
}

.main-header-menu > .menu-item {
    display: inline-block;
    text-align: left;
    color: #333333 !important;
}

.main-header-menu > .menu-item > .menu-link {
    padding-left: 1.3em !important;
    padding-right: 1.3em !important;
    position: relative;
    color: #333333 !important;
    text-transform: uppercase;
}

.main-header-menu > .menu-item > .menu-link:hover {
    color: #818d59 !important;
}

/* HAUPTMENÜ – EIGENER ARROW */
.main-header-menu > .menu-item-has-children > .menu-link::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 14px;
    margin-bottom: 4px;
    border-right: 1.5px solid #333333;
    border-bottom: 1.5px solid #333333;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.main-header-menu > .menu-item-has-children > .menu-link:hover::after {
    border-color: #818d59;
}

.main-header-menu > .menu-item-has-children:hover > .menu-link::after {
    transform: rotate(225deg);
    margin-bottom: -4px;
}

/* UNTERMENÜ */
.main-header-menu .sub-menu {
    display: block;
    min-width: 220px;
    margin: 0 !important;
    padding: 0 !important;
}

.main-header-menu .sub-menu .menu-item {
    margin: 0 !important;
    padding: 10px 5px !important;
}

.main-header-menu .sub-menu .menu-link {
    display: block;
    width: 100%;
    padding: 0 30px !important;
    box-sizing: border-box;
    white-space: nowrap;
    color: #333333 !important;
}

.main-header-menu .sub-menu .menu-link:hover {
    color: #818d59 !important;
}

.menu-link {
    height: auto !important;
}

.menu-link:before {
    content: "" !important;
}

/* MOBILE NAVIGATION */
@media (max-width: 921px) {

    /* OFF-CANVAS PANEL */
    .ast-mobile-popup-drawer .ast-mobile-popup-inner,
    .ast-mobile-popup-drawer .ast-mobile-popup-content {
        background: #EBEBE8 !important;
    }

    .ast-mobile-popup-drawer .ast-mobile-popup-content {
        padding: 0 !important;
        margin: 0 !important;
        min-height: 0 !important;
    }

    /* HEADER */
    .ast-mobile-popup-drawer .ast-mobile-popup-header {
        position: relative;
        height: 100px;
        padding: 0 24px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        background: #EBEBE8 !important;
        border-bottom: 1px solid #ffffff;
		margin-top:20px;
    }

    /* LOGO */
    .ast-mobile-popup-drawer .ast-mobile-popup-header::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: 200px;
        height: 50px;
        transform: translate(-50%, -50%);
        background-image: url("https://www.meinlangwein.de/wp-content/uploads/2019/12/wgtlang_logo_mail.png");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

    /* SCHLIESSEN X */
    .ast-mobile-popup-drawer .menu-toggle-close {
        position: relative;
        z-index: 10;
        width: 42px;
        height: 42px;
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent !important;
        border: 0 !important;
        color: #333333 !important;
    }

    .ast-mobile-popup-drawer .menu-toggle-close svg {
        width: 24px;
        height: 24px;
    }

    /* HAUPTMENÜ */
    .ast-mobile-popup-drawer .main-header-menu {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none;
        background: #EBEBE8 !important;
    }

    .ast-mobile-popup-drawer .main-header-menu > .menu-item {
        position: relative;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid #ffffff;
        background: #EBEBE8 !important;
    }

    /* HAUPTMENÜ-LINKS */
    .ast-mobile-popup-drawer .main-header-menu > .menu-item > .menu-link {
        position: relative;
        width: 100% !important;
        min-height: 68px;
        margin: 0 !important;
        padding: 0 70px !important;
        display: flex !important;
        align-items: center;
        justify-content: center !important;
        box-sizing: border-box;
        color: #333333 !important;
        background: #EBEBE8 !important;
        font-size: 18px;
        font-weight: 300;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        text-decoration: none;
    }

    .ast-mobile-popup-drawer .main-header-menu > .menu-item > .menu-link:hover,
    .ast-mobile-popup-drawer .main-header-menu > .menu-item > .menu-link:focus {
        color: #818d59 !important;
        background: #EBEBE8 !important;
    }

    /* ASTRA-PFEILE AUSBLENDEN */
    .ast-mobile-popup-drawer .main-header-menu .icon-arrow,
    .ast-mobile-popup-drawer .ast-header-navigation-arrow {
        display: none !important;
    }

    /* MOBILER EIGENER ARROW */
    .ast-mobile-popup-drawer .main-header-menu > .menu-item-has-children > .menu-link::after {
        content: "";
        display: block;
        position: absolute;
        right: 30px;
        top: 50%;
        width: 9px;
        height: 9px;
        box-sizing: border-box;
        border-right: 1.5px solid #333333;
        border-bottom: 1.5px solid #333333;
        transform: translateY(-70%) rotate(45deg);
        transition: transform 0.2s ease;
    }

    .ast-mobile-popup-drawer .main-header-menu > .menu-item-has-children > .menu-link:hover::after {
        border-color: #818d59;
    }

    /* ARROW GEÖFFNET */
    .ast-mobile-popup-drawer .main-header-menu > .menu-item-has-children.ast-submenu-expanded > .menu-link::after {
        transform: translateY(-20%) rotate(225deg);
    }

    /* ASTRA TOGGLE */
    .ast-mobile-popup-drawer .ast-menu-toggle {
        position: absolute;
        top: 0;
        right: 0;
        width: 70px;
        height: 68px;
        padding: 0;
        margin: 0;
        z-index: 5;
        background: transparent !important;
        border: 0 !important;
        color: transparent !important;
    }

    .ast-mobile-popup-drawer .ast-menu-toggle .icon-arrow {
        display: none !important;
    }

    /* UNTERMENÜ */
    .ast-mobile-popup-drawer .main-header-menu .sub-menu {
        display: none;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        border: 0 !important;
        box-shadow: none !important;
        text-align: center !important;
    }

    .ast-mobile-popup-drawer .main-header-menu .menu-item.ast-submenu-expanded > .sub-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* UNTERMENÜ-EINTRÄGE */
    .ast-mobile-popup-drawer .main-header-menu .sub-menu .menu-item {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        text-align: center !important;
        border: 0 !important;
    }

    /* UNTERMENÜ-LINKS */
    .ast-mobile-popup-drawer .main-header-menu .sub-menu .menu-link {
        width: 100% !important;
        min-height: 64px;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center !important;
        box-sizing: border-box;
        color: #333333 !important;
        background: #ffffff !important;
        font-size: 15px;
        font-weight: 400;
        letter-spacing: 0.02em;
        text-align: center !important;
        text-decoration: none;
    }

    .ast-mobile-popup-drawer .main-header-menu .sub-menu .menu-link:hover,
    .ast-mobile-popup-drawer .main-header-menu .sub-menu .menu-link:focus {
        color: #818d59 !important;
        background: #EBEBE8 !important;
    }

    /* UNTERMENÜ-TRENNLINIEN */
    .ast-mobile-popup-drawer .main-header-menu .sub-menu .menu-item:not(:last-child)::after {
        content: "";
        display: block;
        height: 1px;
        margin: -1px 30px 0;
        background: #EBEBE8;
    }

    /* ASTRA STANDARDABSTÄNDE */
    .ast-mobile-popup-drawer .main-header-menu,
    .ast-mobile-popup-drawer .main-header-menu ul,
    .ast-mobile-popup-drawer .main-header-menu li {
        box-sizing: border-box;
        list-style: none;
    }
}