/**----------------------------------- IMP MENU (siehe Rustika)--------------------------------*/


a.impmenu-toggle {
    margin-left: var(--nav-icon-padding-Y);
    background: transparent;
    font-weight: 500;
    left: 0;
    letter-spacing: 0.17em;
    pointer-events: all;
    transition: all .5s cubic-bezier(.65, .05, .36, 1) 0s;
    position: fixed;
    top: var(--nav-bar-pad);
    z-index: 999999;
}

#nav-wrapper {
    z-index: 9999;
    padding: 0;
    transition: all .5s cubic-bezier(.45, .05, .55, .95) 0s !important;
    position: fixed;
    left: 0;
    width: auto;
    height: 100vh;
    top: 0;
    pointer-events: all;
    transform: translateY(-101%);
    width: 100vw;
}

#nav-wrapper.impmenu-active {
    transform: translateY(0);
}

#main-nav {
    height: 100%;
    background: var(--main-color);

}

#menu-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
}

.menu-col.col-menu-1 {
    height: 100%;
    display: flex;
    align-items: center;
}

.menu-col.col-menu-1 .imp-widget-wrapper {
    position: absolute;
    top: var(--nav-bar-pad);
    right: 5vw;
}

#menu-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav#main-nav li.menu-item a {
    text-decoration: none;
    position: relative;
}

/**Typografie*/

.menu-item {
    text-align: center;
}

#menu-menu-1 .menu-item>a {
    font-family: var(--headlinefont);
    font-weight: 800;
    letter-spacing: 0.045em;
    font-size: 1.9rem;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    line-height: 2.4;
}

.imp-nav-target-txt {
    position: relative;
}

.imp-nav-target-txt::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    display: block;
    position: absolute;
    bottom: 0;
    background-color: #fff;
    left: 50%;
    transform: translatex(-50%);
    transition: all .5s cubic-bezier(.45, .05, .55, .95) 0s !important;
}

#menu-menu-1 .menu-item.current-menu-item>a .imp-nav-target-txt::after,
#menu-menu-1 .menu-item>a:hover .imp-nav-target-txt::after {
    width: 100%;
}

/**formatierung*/
#main-nav .menu-item>a.menu-link {
    padding: var(--gap-m) var(--gap-s);
    border-bottom: 1px solid var(--ast-global-color-3);
}

#main-nav .menu-item>a.menu-link .imp-nav-target {
    margin-right: clamp(30px, 8vw, 130px);
}

/**----------------- NAV MENU -------------*/
.nav-menu {
    position: absolute;
    bottom: var(--gap-m);
}

.nav-menu #menu-footer-menu {
    display: flex;
    gap: var(--gap-l);
}

#menu-footer-menu * {
    color: #fff;
}

/**----------------- HEADER ICONS -------------*/

#header-icons {
    z-index: 100;
    display: flex;
    pointer-events: all;
    position: absolute;
    gap: 20px;
    bottom: 74px;
}

#header-icons img {
    height: var(--heigt-icon) !important;
    display: block;
    width: auto;
}

.icon {
    display: flex;
    text-align: center;
    vertical-align: top;
    transition: all 0.3s ease 0s;
}

.icon a {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/**----------------- NAV BAR -------------*/
.nav-bar {
    position: absolute;
    top: var(--nav-bar-pad);
    left: 0;
    padding-right: var(--nav-icon-padding-X);
    display: flex;
    justify-content: space-between;
    width: 100%;
}

#contact-expert {
    position: relative;
}

#contact-expert::after {
    content: '';
    display: block;
    border: 1px solid var(--ast-global-color-3);
    width: 30%;
    margin: 0 auto;
}

#contact-expert * {
    font-family: var(--mainfont);
    color: var(--ast-global-color-3);
    font-weight: 300;
    font-size: var(--base-font-size);
    display: block;
}

/**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) {
    /*----------------- ELEMENT -------------*/

    /*----------------- 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: .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: #fff;
    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;
    max-width: 78%;


}


.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 (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 (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;
        padding-top: 0;
        justify-content: center;
    }

    #menu-menu-1 .menu-item>a {
        font-size: 1.6rem;
    }

    /**animation*/

    #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%);
        pointer-events: all !important;
    }

    #nav-wrapper.impmenu-active {
        transform: scale(1);
        clip-path: circle(70.7% at 50% 50%);

    }
}

@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;
    }
}

@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;
    }

    #header-icons {
        padding-bottom: 2.8vh;
        padding-top: 2.8vh;
    }

    #menu-wrapper>#theme-logo>.theme-logo:last-of-type {
        width: 43vw;
        min-width: 175px;
        max-width: 296px;
    }
}

@media (max-width: 320px) {
    /*----------------- ELEMENT -------------*/

    /*----------------- END ELEMENT ---------*/
}