/**----------------------------------- IMP MENU (siehe Rustika)--------------------------------*/
@keyframes gelatine {

    from,
    to {
        transform: scale(1, 1);
    }

    25% {
        transform: scale(0.9, 1.1);
    }

    50% {
        transform: scale(1.1, 0.9);
    }

    75% {
        transform: scale(0.95, 1.05);
    }
}

@keyframes hithere {
    30% {
        transform: scale(1.2);
    }

    40%,
    60% {
        transform: rotate(-20deg) scale(1.2);
    }

    50% {
        transform: rotate(20deg) scale(1.2);
    }

    70% {
        transform: rotate(0deg) scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

a.impmenu-toggle {
    z-index: 99999;
    margin-left: var(--nav-icon-padding-X);
    background: transparent;
    font-weight: 500;
    /* top: auto; */
    left: 0;
    pointer-events: all;
    position: fixed;
    transition: all .5s cubic-bezier(.65, .05, .36, 1) 0s;
    top: var(--nav-icon-padding-Y);
    gap: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: var(--nav-icon-width);
}

@media (pointer: fine) and (min-width: 1024px) {
    a.impmenu-toggle:hover svg {
        animation: hithere 1s ease;
    }
}

.impmenu-toggle>span {
    font-size: var(--btn-font-size);
    color: var(--ast-global-color-4);
    font-weight: 500;
    display: flex;
    line-height: 1;
    font-family: var(--mainfont);
    margin-top: 0.6em;
}

.nav-close {
    position: absolute;
    width: 32px;
    height: 32px;
    left: var(--nav-icon-padding-X);
    top: var(--nav-icon-padding-Y);
}

.impmenu-toggle-close {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center !important;
    cursor: pointer;
}

.impmenu-toggle-close span {
    width: 100%;
    height: 3px;
    position: absolute;
    transition: all .5s cubic-bezier(.86, 0, .07, 1) 0s;
}

.impmenu-toggle-close span:first-child {
    background-color: var(--ast-global-color-0);
    rotate: 45deg;
}

.impmenu-toggle-close span:last-child {
    background-color: var(--ast-global-color-1);
    rotate: -45deg;
}

.impmenu-toggle-close:hover span:first-child {
    rotate: -45deg;
}

.impmenu-toggle-close:hover span:last-child {
    rotate: 45deg;
}

#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: 9999999;
    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::before {
    content: '';
    display: block;
    --my-size: 69vh;
    width: calc(var(--my-size) / 2.384615384615385);
    height: var(--my-size);
    position: absolute;
    background-image: url(/wp-content/themes/astra-impuls-child/img/nav-flamingo);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    left: 76px;
    bottom: 0;
    transform: rotateY(180deg);
}

#menu-wrapper::after {
    content: '';
    display: block;
    --my-size: 51vh;
    width: calc(var(--my-size) / 2.384615384615385);
    height: var(--my-size);
    position: absolute;
    background-image: url(/wp-content/themes/astra-impuls-child/img/nav-flamingo);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    right: 67px;
    bottom: 0;
}


#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-5);
    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 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 {
    padding: 0;
    font-size: calc(29px + (50 - 29) * ((100vw - 375px) / (1920 - 375)));
    font-family: var(--headlinefont);
    color: var(--ast-global-color-0);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.8;
    transition: all .5s ease 0s;
}

#menu-hauptmenu>.menu-item.imp-sub-active>.menu-link,
#menu-hauptmenu>.menu-item.current-menu-item>.menu-link {
    color: #fff;
}

.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: 79.5%;
    height: auto;
    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;
    display: flex;
    justify-content: center;
}

#nav-icon3 span {
    display: block;
    position: absolute;
    height: var(--burger-line-height);
    width: 100%;
    background: var(--ast-global-color-1);
    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;
}

.home #nav-icon3 span:nth-child(1) {

    background-color: #fff;
}

#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;
    max-width: 78%;
    background-color: var(--ast-global-color-0);
}

.home #nav-icon3 span:nth-child(4) {
    background-color: #fff;
}

#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-0) !important;
}

.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-0) !important;
}

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

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

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

@media (max-width: 1200px) {
    .imp-nav-target-txt {
        height: fit-content;
        display: flex;
        transform: translateY(0);
        position: relative;
    }

    #menu-hauptmenu>.menu-item>a {
        font-size: 2.24rem;
        padding-left: 3vw;
    }

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

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

    #custom-menu-nav-wrapper p {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 41px;
        font-size: 0.9em;
    }

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

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

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

@media (max-width: 1024px) {

    #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 {
        font-size: 1.94rem;
        padding-left: 5vw;
    }

    #menu-hauptmenu>.menu-item>a .nav-icon {
        height: 2.5em;
        width: 2.4em;
        transition: all .5s ease 0s;
    }

    #menu-wrapper .imp-sub-active .nav-icon {
        opacity: 0;
    }

    #menu-wrapper .imp-sub-active .sub-menu {
        max-height: 100vh;
        transition-delay: 0.6s;
        overflow: hidden;
    }

    #menu-hauptmenu>.menu-item.menu-item-has-children>a::after {
        transition: all .5s ease 0s;
    }

    #menu-hauptmenu>.menu-item.menu-item-has-children.imp-sub-active>a::after {
        rotate: 90deg;
    }

    #menu-hauptmenu.menu-child-sub-active>.menu-item:not(.imp-sub-active) {
        max-height: 0;
    }

    #menu-wrapper ul.sub-menu {
        position: absolute;
        width: 100%;
        transition: all .5s cubic-bezier(.46, .03, .52, .96);
        height: 100%;
        justify-content: flex-start;
        padding-left: 0;
        padding-right: 0;
    }

    .sub-menu .menu-item {
        width: 100%;
    }

    #menu-hauptmenu .sub-menu a {
        line-height: 3.3;
        font-weight: 400;
        display: flex;
    }

    .sub-menu .menu-item:first-child:before {
        content: '';
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--color-1);
        opacity: 0.2;
        z-index: 9;
    }

    .sub-menu .menu-item:after {
        content: '';
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--color-1);
        opacity: 0.2;
        z-index: 9;
    }

    nav#main-nav .sub-menu li.menu-item.current-menu-item a::after {
        content: '';
        display: block;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        z-index: 1;
        background-color: var(--color-1);
        opacity: 0.2;
    }

    nav#main-nav .sub-menu li.menu-item.current-menu-item>a .imp-nav-target-txt::after {
        display: none;
    }

    nav#main-nav .sub-menu li.menu-item.current-menu-item {
        position: relative;
    }

    .sub-menu a .imp-nav-target {
        padding: 0 5vw;
    }

    .impmenu-active #nav-icon3 span:nth-child(2) {
        background-color: var(--color-1) !important;
    }

    .impmenu-active #nav-icon3 span:nth-child(3) {
        background-color: var(--color-1) !important;
    }

    #custom-menu-nav {
        max-width: 100%;
        padding-bottom: 5px;
        padding-top: 5px;
        transition: all .5s cubic-bezier(.46, .03, .52, .96) 0s;
        transition-delay: 0.6s;
    }

    #nav-wrapper.menu-child-sub-active #custom-menu-nav {
        transform: translateX(-100%);
        transition-delay: 0s;

    }

    #custom-menu-nav {
        align-items: flex-start;
    }

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

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

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

@media (max-width: 768px) {}

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

    #menu-wrapper {
        justify-content: flex-start;
        padding-top: calc(var(--nav-icon-height) + (var(--nav-icon-padding-Y) * 2) + 6vh);
    }
}

@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 #header-icons {
        padding-bottom: 0;
        padding-top: 0;
    }

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

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

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