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


a.impmenu-toggle {
    z-index: 99999;
    margin-left: var(--nav-icon-padding-X);
    background: transparent;
    font-weight: 500;
    /* top: auto; */
    left: 0;
    letter-spacing: 0.17em;
    pointer-events: all;
    border-radius: 0 0 2em 0;
    position: fixed;
    transition: all .5s cubic-bezier(.65, .05, .36, 1) 0s;
    top: var(--nav-icon-padding-Y);
}

.menu-col.col-menu-1 {
    width: 90%;
    justify-content: center;
    display: flex;
}

#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: 999;
    clip-path: circle(0% at 50% 50%);
}

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

}

#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: var(--ast-global-color-0);
    background-size: cover;
    background-position: center center;
}

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

#menu-wrapper::after {
    content: '';
    position: absolute;
    --my-size: 9.5vh;
    height: calc(var(--my-size) * 7.957664);
    width: var(--my-size);
    top: clamp(15px, 5vw, 57px);
    right: 0;
    background-image: url(/wp-content/themes/astra-impuls-child/img/icon-logo-nav);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right top;
}

#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;
}

#menu-hauptmenu>.menu-item>.menu-link {
    font-size: 38px;
    color: #fff;
    font-weight: 700;
    line-height: 2.3;
    text-align: center;
    letter-spacing: 0.01em;
    font-family: var(--headlinefont);
}

#menu-hauptmenu>.menu-item {
    position: relative;
}

.menu-item.current-menu-item::before {
    content: '';
    position: absolute;
    width: clamp(330px, 330px + ((100vw - 375px) * 0.2), 533px);
    height: 2.6em;
    background-color: var(--ast-global-color-1);
    z-index: -1;
    bottom: 0.75em;
    clip-path: polygon(4% 0, 100% 0%, 96% 100%, 0 100%);
}

.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: 24px;
    font-weight: 200;
    line-height: 2.1;
}

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

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

.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%;
}


/**HEADER ICONS*/
#menu-wrapper #header-icons {
    top: unset !important;
    bottom: 0 !important;
    width: 100%;
    display: flex;
    background-color: var(--ast-global-color-1);
    right: unset !important;
}

#menu-wrapper .icon {
    width: 100%;
    height: auto;
}

#menu-wrapper #header-icons .textwidget {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90vw;
    margin: 0 auto;
    gap: clamp(15px, 4vw, 50px);
    padding: var(--gap-m) 0;
}

#menu-wrapper #header-icons * {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 2.69;
}

#header-icons p:nth-child(4) a::before,
#header-icons p:nth-child(5) a::before,
#header-icons p:nth-child(6) a::before {
    content: '';
    display: block;
    --my-size: 2em;
    width: var(--my-size);
    height: var(--my-size);
    background-size: contain;
    margin-right: 5px;
}

#header-icons p:nth-child(4) a::before {
    background-image: url(/wp-content/themes/astra-impuls-child/img/icon-tel-nav);
}

#header-icons p:nth-child(5) a::before {
    background-image: url(/wp-content/themes/astra-impuls-child/img/icon-mail-nav);

}

#header-icons p:nth-child(6) a::before {
    background-image: url(/wp-content/themes/astra-impuls-child/img/icon-ig);

}

/**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;
}
*/

@media (min-width: 1025px) {
    #menu-hauptmenu>.menu-item {
        max-height: 100vh;
        display: flex;
        justify-content: flex-end;
        padding-right: 0;
    }

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

    #menu-wrapper .imp-sub-active ul.sub-menu {
        max-height: 100%;
        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-0);
    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);
    background-color: var(--ast-global-color-2);
}

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

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


@media (min-width: 1920px) {
    /*----------------- ELEMENT -------------*/

    /*----------------- END ELEMENT ---------*/
}

@media (min-width: 1024px) and (max-width: 1600px) {
    .menu-col.col-menu-1 {
        --menu-width: 35%;
    }

    #menu-hauptmenu>.menu-item>a {
        font-size: 2.34rem;
    }

    #menu-hauptmenu>.menu-item>a .nav-icon {
        height: 2.5em;
        width: 2.5em;
    }

    #menu-hauptmenu .sub-menu a {
        font-size: 1.31rem;
    }

    #custom-menu-nav {
        align-items: center;
        padding-bottom: 0;
    }

    #custom-menu-nav-wrapper {
        width: 94%;
    }

    #custom-menu-nav h4 {
        font-size: 1.859rem;
        margin-bottom: 1.4em;
    }

    #custom-menu-nav-wrapper .custom-menu-nav-item a {
        padding: 3.35em 1.5em 1.75em 1.5em;
    }

    #menu-wrapper #header-icons * {
        font-size: 12px;
    }
}

@media (max-width: 1300px) {
    #menu-wrapper #header-icons .textwidget {
        gap: clamp(15px, 2vw, 50px);
    }
}

@media (max-width: 1120px) {
    #menu-wrapper #header-icons .icon>.textwidget>p:nth-child(-n+3) {
        display: none;
    }
}

@media (min-width: 1024px) and (max-width: 1200px) {
    #menu-wrapper #header-icons .textwidget {
        width: 95vw;
        gap: 25px;
        justify-content: center;
    }

    #menu-wrapper #header-icons * {
        font-size: 12px;
    }
}

@media (max-width: 1024px) {
    #menu-wrapper #header-icons .textwidget {
        justify-content: space-around;
        gap: clamp(45px, 4vw, 50px);
    }

    #menu-wrapper #header-icons .textwidget p:nth-child(-n+3) {
        display: none;
    }

    #nav-wrapper {
        bottom: 0;
        top: 0;
        background-color: var(--color-2);
    }

    #main-nav {
        height: 100dvh;
    }

    .menu-col.col-menu-1 {
        --menu-width: 100%;
    }

    .menu-col.col-menu-1 {
        flex-direction: column;
    }

    #menu-hauptmenu {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .menu-hauptmenu-container {
        height: auto;
    }

    #menu-wrapper ul.sub-menu #menu-wrapper ul.sub-menu {
        max-height: 0;
    }

    #menu-wrapper ul.sub-menu {
        max-height: 0;
    }

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

    #menu-hauptmenu>.menu-item {
        max-height: 100vw;
        transition: all .5s cubic-bezier(.46, .03, .52, .96) 0s;
        transition-delay: .6s;
        overflow: hidden;
    }

    #menu-hauptmenu>.menu-item>a {
        text-align: center;
        justify-content: center;
        align-items: center;
    }

}

@media (max-width: 990px) {
    /*----------------- ELEMENT -------------*/

    /*----------------- END ELEMENT ---------*/
}

@media (max-width: 768px) {
    #nav-bar {
        flex-direction: column;
        align-items: center;
        gap: var(--gap-s);
    }

    #nav-bar .textwidget {
        flex-direction: column;
        gap: var(--gap-s);
    }

    .menu-col.col-menu-1 {
        height: 100%;
        width: 100%;
    }

    .menu-hauptmenu-container {
        height: 100%;
        display: flex;
        align-items: center;
    }

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

    #menu-hauptmenu {
        height: auto;
        display: flex;
        flex-direction: column;
        width: 90%;
        margin: 0 auto !important;
    }

    #menu-wrapper::after {
        display: none;
    }

    #menu-wrapper #header-icons * {
        font-size: 0;
    }

    #menu-wrapper #header-icons p:nth-last-child(-n + 3) a::before {
        width: var(--nav-icon-width);
        height: var(--nav-icon-width);
        margin-right: 0;
    }

    #menu-wrapper #header-icons {
        background-color: transparent;
        width: fit-content;
        top: 36px !important;
        bottom: unset !important;
        right: 36px !important;
    }

    #menu-wrapper #header-icons .textwidget {
        gap: 21px;
        padding: 0;
        width: auto;
    }

    #header-icons p:nth-child(4) a::before {
        background-image: url(/wp-content/themes/astra-impuls-child/img/icon-black-tel-nav);
    }

    #header-icons p:nth-child(5) a::before {
        background-image: url(/wp-content/themes/astra-impuls-child/img/icon-black-mail-nav);
    }

    #header-icons p:nth-child(6) a::before {
        background-image: url(/wp-content/themes/astra-impuls-child/img/icon-black-ig);
    }
}

@media (max-width: 576px) {
    #menu-hauptmenu .sub-menu a {
        line-height: 3;
        font-size: 1rem;
    }

    #custom-menu-nav-wrapper p {
        display: none;
    }

    #custom-menu-nav-wrapper {
        max-width: unset;
        width: 100%;
    }

    #custom-menu-nav h4 {
        margin-bottom: 0;
    }

    .sub-menu .menu-item:first-child::before,
    .sub-menu .menu-item::after {
        height: 1px;
    }

    #nav-bar {
        padding: var(--gap-m);
        position: unset;
    }

    #nav-bar .textwidget * {
        line-height: 1;
    }

    #nav-bar>a {
        width: clamp(87px, 15vw, 183px);
    }
}

@media (max-width: 435px) {
    #custom-menu-nav h4 {
        font-size: 1.4rem;
    }

    #custom-menu-nav h4 {
        font-size: 1.3rem;
        margin-bottom: 0;
    }

    #menu-hauptmenu>.menu-item>a {
        font-size: 1.74rem;
    }

    #custom-menu-nav-wrapper .custom-menu-nav-item a {
        padding: 1.35em 1.3em 1.15em 1.3em;
    }

    #menu-wrapper>#theme-logo>.theme-logo:last-of-type {
        width: 43vw;
        min-width: 175px;
        max-width: 296px;
    }
}

@media (max-width: 490px) {
    /*----------------- ELEMENT -------------*/

    #menu-hauptmenu>.menu-item>.menu-link {
        font-size: 25px;
        line-height: 2.5;
    }

    .menu-item.current-menu-item::before {
        width: 255px;
        height: 18px;
        bottom: 9px;
    }



    a.impmenu-toggle {
        top: 43px !important;
        left: 16px;
    }

    #nav-icon3 {
        width: var(--nav-icon-width);
        height: var(--nav-icon-height);
    }

    /*----------------- END ELEMENT ---------*/
}

@media (max-width: 320px) {
    /*----------------- ELEMENT -------------*/

    /*----------------- END ELEMENT ---------*/
}