/**----------------------------------- IMP MENU (siehe Rustika)--------------------------------*/



a.impmenu-toggle {
    z-index: 99999;
    margin-left: var(--nav-icon-padding-Y);
    background: transparent;
    font-weight: 500;
    top: auto;
    left: 0;
    letter-spacing: 0.17em;
    pointer-events: all;
    border-radius: 50%;
    position: fixed;
    transition: all .5s cubic-bezier(.65, .05, .36, 1) 0s;
    background-color: var(--ast-global-color-0);
    height: var(--nav-icon-wrapper-height);
    width: var(--nav-icon-wrapper-height);
    display: flex;
    justify-content: center;
    align-items: center;
}

.impmenu-active .impmenu-toggle {
    margin-left: var(--nav-icon-padding-Y);
}

#nav-wrapper {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    transform: scale(0);
    pointer-events: none;
    transition: all .7s cubic-bezier(.46, .03, .52, .96) 0s;
    z-index: 9999;
    clip-path: circle(0% at 50% 50%);
}

#nav-wrapper.impmenu-active {
    transform: scale(1);
    clip-path: circle(70.7% at 50% 50%);

}

#main-nav #footer-links a:hover {
    color: var(--ast-global-color-1);
}

#menu-wrapper>#footer-links {
    display: flex;
    flex-direction: revert;
    --this-gap: 2.8em;
    gap: var(--this-gap) !important;
    position: absolute;
    bottom: 4vh;
}

#menu-wrapper #footer-links .textwidget * {
    font-size: 1.2rem;
}

#menu-wrapper>#footer-links h6 {
    display: none;
}

#menu-wrapper>#footer-links .menu-footer-menu-container {
    display: none;
}

#menu-wrapper>#footer-links .textwidget {
    margin-bottom: 0;
    gap: var(--this-gap) !important;
}

#menu-wrapper>#footer-links .textwidget:nth-child(3) p:last-child {
    display: none;
}

#main-nav {
    z-index: 9999;
    transition: all .5s ease 0s;
    padding: 0;
    transition: all .5s ease 0s !important;
    position: fixed;
    left: 0;
    width: 100%;
    height: 100%;
    top: 0;
    pointer-events: all;
    background-color: var(--ast-global-color-0);
}

#menu-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
}

#menu-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#menu-hauptmenu>.menu-item {
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1em;
}

#menu-hauptmenu>.menu-item>.menu-link {
    padding: 1em 4.3em;
    font-size: 1.294rem;
    font-family: var(--mainfont);
    font-weight: 800;
    letter-spacing: 0.167em;
    text-transform: uppercase;
    line-height: 1;
    text-align: center;
    color: var(--ast-global-color-2);
    border: 0px solid var(--ast-global-color-3);
    border-radius: 13em;
    transition: all .5s ease 0s;
}

#menu-hauptmenu>.menu-item.imp-sub-active>.menu-link,
#menu-hauptmenu>.menu-item.current-menu-item>.menu-link {
    color: var(--ast-global-color-3);
    background-color: var(--ast-global-color-1);
    color: var(--ast-global-color-2);
}

.dropdown-menu-toggle.ast-header-navigation-arrow {
    display: none !important;
}

.sub-menu .menu-item>.menu-link {
    color: var(--ast-global-color-2);
    text-align: center;
    display: flex;
    width: 100%;
    justify-content: center;
    font-family: var(--mainfont);
    font-size: 20px;
    font-weight: 600;
    line-height: 2.1;
}


.sub-menu .menu-item:first-child>.menu-link {
    padding-top: 1.5em;
}

.sub-menu .menu-item:last-child>.menu-link {
    padding-bottom: 5.7em;
}

.sub-menu .current-menu-item a {
    text-decoration: underline !important;
    text-decoration-thickness: 0.1em !important;
}

.ast-arrow-svg {
    display: none !important;
}

nav#main-nav li.menu-item a {
    text-decoration: none;

}


#menu-hauptmenu {
    height: 100%;
}

#menu-wrapper #theme-logo {
    display: none;
}





/**animation*/
/*
#menu-hauptmenu>.menu-item {
    transition: all .5s cubic-bezier(.45, .05, .55, .95) 0s;
    transition-property: max-height, transform;
    transition-delay: 0s, 0.5s;
    transform: translateX(0);
}
*/


/*
#menu-hauptmenu.menu-child-sub-active>.menu-item:not(.imp-sub-active) {
    transform: translateX(-100%);
    max-height: 0;
    pointer-events: none;
    transition-delay: 0s, 0s;
}
*/



#menu-wrapper ul.sub-menu {
    max-height: 0;
    transition: all .6s ease-in-out 0s;
    overflow: hidden;
}

#menu-wrapper .imp-sub-active ul.sub-menu {
    max-height: 100vh;
    transition-delay: .65s, .6s;
    transition-property: transform, max-height;
}

/**animation burger menu*/

#nav-icon3 {
    width: var(--nav-icon-width);
    height: var(--nav-icon-height);
    position: relative;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    cursor: pointer;
}

#nav-icon3 span {
    display: block;
    position: absolute;
    height: var(--burger-line-height);
    width: 100%;
    background: var(--ast-global-color-2);
    border-radius: 13em;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
}

#nav-icon3 span:nth-child(1) {
    top: 0;
}

#nav-icon3 span:nth-child(2),
#nav-icon3 span:nth-child(3) {
    top: calc(50% - (var(--burger-line-height) / 2));
    right: 0;
    left: unset;
}

#nav-icon3 span:nth-child(4) {
    bottom: 0;
}


.impmenu-active #nav-icon3 span:nth-child(1) {
    top: 50%;
    width: 0%;
    left: 50%;
    transform: translateY(50%);
}

.impmenu-active #nav-icon3 span:nth-child(2) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

.impmenu-active #nav-icon3 span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.impmenu-active #nav-icon3 span:nth-child(4) {
    bottom: 50%;
    transform: translateY(-50%);
    width: 0%;
    left: 50%;
}

@media (max-width: 1024px) {
    #main-nav {
        background-size: var(--bg-size);
        background-image: url(/wp-content/themes/astra-impuls-child/img/grafik-bg-rot);
    }
}

@media (max-width: 990px) {
    #menu-wrapper>#footer-links {
        display: none;
    }

    #menu-hauptmenu>.menu-item>.menu-link {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    #menu-wrapper {
        justify-content: flex-start;
        padding-top: calc(var(--nav-icon-wrapper-height) + 118px);
    }

    .menu-col.col-menu-1 {
        max-width: 90vw;
    }

    #menu-hauptmenu>.menu-item>.menu-link {
        font-size: 15px;
        padding: 1em 2.9em;
    }

    .sub-menu .menu-item>.menu-link {
        font-size: 15px;
    }

    .sub-menu .menu-item:last-child>.menu-link {
        padding-bottom: 2.7em;
    }
}