/**----------------------------------- IMP MENU (siehe Rustika)--------------------------------*/
html.impmenu-active {
    background-color: var(--ast-global-color-1);
}

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: 0 0 2em 0;
    position: fixed;
    transition: all 0.5s cubic-bezier(0.65, 0.05, 0.36, 1) 0s;
    top: var(--header-absolute-items-top);
}

.impmenu-active .impmenu-toggle {
    margin-left: 15px;
}

#nav-wrapper {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    transform: scale(0);
    pointer-events: none;
    transition: all 0.7s cubic-bezier(0.46, 0.03, 0.52, 0.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%);
}

#menu-wrapper #theme-logo {
    padding: 40px 40px 40px 0;
    width: 100%;
    background-color: var(--color-2);
    display: flex;
    justify-content: flex-end;
    max-width: unset;
}

#menu-wrapper>#theme-logo>.theme-logo:first-of-type {
    display: none;
}

#menu-wrapper>#theme-logo>.theme-logo:last-of-type {
    display: flex;
    width: 53vw;
    min-width: 210px;
    max-width: 360px;
}

#main-nav {
    z-index: 9999;
    transition: all 0.5s ease 0s;
    --menu-items-padding: 70px;
    padding: 0;
    transition: all 0.5s ease 0s !important;
    position: fixed;
    left: 0;
    width: 100%;
    height: 100%;
    top: 0;
    pointer-events: all;
    background-color: var(--ast-global-color-1);
}

#menu-wrapper {
    height: 100%;
    display: flex;
    align-items: flex-start;
    position: relative;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
}

#menu-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#menu-hauptmenu {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

nav#main-nav li.menu-item a {
    text-decoration: none;
    position: relative;
}

.menu-col.col-menu-1 {
    display: flex;
    align-items: center;
    position: relative;
}

nav#main-nav li.menu-item.current-menu-item>a,
#menu-hauptmenu>.menu-item.current_page_parent>a,
#menu-hauptmenu>.menu-item>a:hover {
    color: #fff !important;
}

#menu-hauptmenu>.menu-item>a {
    font-family: var(--headlinefont);
    font-size: 55px;
    font-weight: 400;
    letter-spacing: 0;
    display: flex;
    height: 100%;
    width: 100%;
    align-items: flex-end;
    line-height: 1.7;
    color: var(--ast-global-color-0);
}

.ast-icon.icon-arrow {
    display: none !important;
}

.imp-nav-target {
    display: flex;
    justify-content: space-between;
    width: 100%;
    z-index: 9;
    align-items: center;
}

.imp-nav-target-txt {
    height: fit-content;
    display: flex;
    transform: translateY(10%);
    position: relative;
}

#menu-wrapper ul.sub-menu {
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
}

@media (min-width: 991px) {
    .menu-col.col-menu-1 {
        width: 62%;
        --menu-width: 39%;
        max-width: 1667px;
        margin-left: 18vw;
    }

    #menu-wrapper ul.sub-menu {

        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%) translateX(100%);
        padding-left: 9vw;
    }
}

#menu-hauptmenu .sub-menu a {
    font-weight: 300;
    letter-spacing: 0;
    line-height: 1.8;
    font-size: 25px;
    color: #fff;
    word-break: keep-all;
    white-space: nowrap;
}

nav#main-nav .sub-menu li.menu-item.current-menu-item>a {
    color: var(--ast-global-color-0) !important;
    z-index: 9;
}

#menu-wrapper ul.sub-menu {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 9;
}

.menu-item.sub-back-btn {
    margin-top: 4.2vh;
}

.menu-item.sub-back-btn span {
    display: flex;
    align-items: center;
}

.menu-tel {
    margin-top: auto;
    width: 100%;
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    background-color: #fff;
    padding: 1em 0 2em 0;
    justify-content: space-between;
}

.menu-tel {
    display: none;
}

.menu-tel #header-tel-1,
.menu-tel #header-tel-2 {
    width: 100%;
    padding: 1em 5vw;
    margin: 0;
}

#nav-bar {
    position: absolute;
    bottom: 8.6vh;
    width: 100%;
    display: flex;
    justify-content: center;
}

#nav-bar * {
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 30px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    line-height: 1;
    color: #fff;
}

.nav-bar-item {
    max-width: 90%;
}

#nav-bar .textwidget {
    display: flex;
    gap: 16px;
}


#nav-bar a {
    padding: var(--icon-pad-top) 32px;
    display: flex;
    text-align: center;
    transition: all 0.3s ease 0s;
    align-items: center;
    gap: 15px;
    border: 2px solid var(--ast-global-color-0);
    border-radius: 13em;
}

#nav-bar a.formated-mobile {
    padding: var(--icon-pad-top);
}

#nav-bar a:hover {
    background-color: var(--ast-global-color-0);
}

#nav-bar a::before {
    content: '';
    display: block;
    --my-size: 1.5em;
    height: var(--my-size);
    width: var(--my-size);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}

#nav-bar p:nth-child(1) a::before {
    background-image: url('/wp-content/themes/astra-impuls-child/img/icon-newsletter.svg');
}

#nav-bar p:nth-child(2) a::before,
#nav-bar p:nth-child(3) a::before {
    background-image: url('/wp-content/themes/astra-impuls-child/img/icon-login.svg');
}

/**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: 991px) {
    .menu-tel {
        display: none;
    }

    /*----------------- ELEMENT -------------*/
    .menu-item.sub-back-btn {
        display: none;
    }

    #menu-hauptmenu>.menu-item {
        max-height: 100vh;
    }

    #menu-wrapper ul.sub-menu {
        max-height: 0;
        transition: all 0.6s ease-in-out 0s;
        overflow: hidden;
    }

    #menu-wrapper .imp-sub-active ul.sub-menu {
        max-height: 100%;
        transition-delay: 0.65s, 0.6s;
        transition-property: transform, max-height;
    }

    /*----------------- END ELEMENT ---------*/
}

/**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: 0.5s ease-in-out;
    -moz-transition: 0.5s ease-in-out;
    -o-transition: 0.5s ease-in-out;
    transition: 0.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: 0.25s ease-in-out;
    -moz-transition: 0.25s ease-in-out;
    -o-transition: 0.25s ease-in-out;
    transition: 0.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;
    max-width: 78%;
}

#nav-icon3 span:nth-child(4) {
    bottom: 0;
    background-color: var(--ast-global-color-1);
}

.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) {
    /*----------------- ELEMENT -------------*/

    /*----------------- END ELEMENT ---------*/

}

@media (max-width: 1500px) {
    /*----------------- ELEMENT -------------*/

    /*----------------- END ELEMENT ---------*/
}

@media (min-width: 1024px) and (max-width: 1200px) {
    .menu-col.col-menu-1 {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    #menu-wrapper ul.sub-menu {
        padding-left: 16vw;
    }
}

@media (max-width: 1200px) {
    .imp-nav-target-txt {
        height: fit-content;
        display: flex;
        transform: translateY(0);
        position: relative;
    }


    #custom-menu-nav-wrapper .custom-menu-nav-item a {
        padding: 2em 1.5em 1.75em 1.5em;
    }

}

@media (max-width: 1024px) {}

@media (max-width: 990px) {
    #menu-wrapper {
        justify-content: flex-start;
    }

    .menu-col.col-menu-1 {
        display: flex;
        align-items: center;
        position: relative;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-top: calc(var(--header-absolute-items-top) + var(--icon-pad-top) * 2 + var(--icon-height) + 5vh);
        flex-direction: column;
        height: 100%;
        max-height: 100dvh;
    }

    .menu-hauptmenu-container {
        width: 100%;
    }

    #menu-hauptmenu>.menu-item.imp-sub-active>.menu-link {
        border-bottom: 2px solid var(--ast-global-color-0);
        color: #fff;
    }

    #menu-hauptmenu>.menu-item>a,
    #menu-hauptmenu .sub-menu .menu-item {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    #menu-wrapper ul.sub-menu {
        max-height: 0;
        overflow: hidden;
        transition: all .5s cubic-bezier(.46, .03, .52, .96);

    }

    #menu-wrapper .imp-sub-active .sub-menu {
        max-height: 100vh;
        transition-delay: 0.6s;
        overflow: hidden;
        padding-top: 2.3em !important;
    }

    #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.imp-sub-active {
        overflow: visible;
    }

    .menu-item.sub-back-btn span {
        display: flex;
        color: var(--ast-global-color-0);
        font-family: var(--mainfont);
        font-weight: 400;
        gap: 15px;
    }

    .menu-item.sub-back-btn span::before {
        content: '';
        display: block;
        background-image: url(/wp-content/themes/astra-impuls-child/img/pfeil-content.svg);
        --my-size: 1.2em;
        height: var(--my-size);
        width: calc(var(--my-size) / 2.714285714285714);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        filter: brightness(13);
        transform: rotateY(180deg);
    }
}

@media (max-width: 768px) {
    #menu-hauptmenu>.menu-item>a {
        font-size: 45px;
    }

    #menu-hauptmenu .sub-menu a {
        line-height: 2.3;
        font-size: 17px;
    }

    #nav-bar * {
        font-size: 14px;
    }
}

@media (max-width: 630px) {
    .menu-tel {
        flex-direction: column;
    }

    .menu-tel #header-tel-1 {
        border-bottom: 1px solid var(--ast-global-color-1);
    }

    #header-tel-1>a a,
    #header-tel-2>a a {
        display: none;
    }


}

@media (max-width: 576px) {
    #menu-hauptmenu .sub-menu a {
        line-height: 2.6;
        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;
    }

    .header-tel-item .textwidget {
        display: flex;
        align-items: center;
        height: 100%;
    }

    .menu-tel {
        padding: 0.5em 0 0.7em 0;
    }

    #menu-hauptmenu>.menu-item>a,
    #menu-hauptmenu .sub-menu .menu-item {
        padding-left: 46px;
        padding-right: 46px;
    }

    #nav-bar .textwidget {
        flex-direction: column;
        gap: 7px;
    }

    .nav-bar-item {
        width: 100%;
    }

    #nav-bar * {
        font-size: 12px;
        text-align: center;
        justify-content: center;
    }

}

@media (max-width: 435px) {


    #menu-hauptmenu>.menu-item>a {
        font-size: 2.24rem;
    }

    #custom-menu-nav-wrapper .custom-menu-nav-item a {
        padding: 1.35em 1.3em 1.15em 1.3em;
    }

    #header-icons {
        padding-bottom: 2.8vh;
        padding-top: 0;
    }

    #menu-wrapper>#theme-logo>.theme-logo:last-of-type {
        width: 43vw;
        min-width: 175px;
        max-width: 296px;
    }

    a.impmenu-toggle {
        margin-left: 24px;
    }

    #nav-bar {
        bottom: 14.7vh;
    }

    #menu-wrapper .imp-sub-active .sub-menu {
        padding-top: 1.6em !important;
    }

    #menu-hauptmenu>.menu-item.imp-sub-active>.menu-link {
        border-bottom: 1px solid var(--ast-global-color-0);
    }
}

@media (max-width: 320px) {
    /*----------------- ELEMENT -------------*/

    /*----------------- END ELEMENT ---------*/
}