/**Navigation*/

#menu-hauptmenu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid;
    gap: var(--gap-s);
}

#menu-hauptmenu>.menu-item {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: var(--gap-s);
}

#menu-hauptmenu>.menu-item>a {
    color: #fff;
    font-family: var(--mainfont);
    font-size: var(--base-font-size);
    font-style: normal;
    font-weight: 400;
    line-height: 1.62;
    display: flex;
    width: fit-content;
    flex-direction: column;
    gap: 5px;
}

#menu-hauptmenu>.menu-item>a::after {
    content: "";
    display: block;
    width: 0;
    height: 3px;
    border-radius: 3em;
    background-color: #fff;
    transition: all 0.3s cubic-bezier(0.86, 0, 0.07, 1) 0s;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
}

#menu-hauptmenu>.menu-item>a:hover:after,
#menu-hauptmenu>.menu-item.current-menu-item>a::after {
    width: 4px;
}


/**nav icon*/

a.impmenu-toggle {
    z-index: 99999;
    margin-left: var(--nav-icon-padding-Y);
    background: transparent;
    right: var(--nav-icon-padding-X);
    width: calc(var(--nav-icon-width) * 1.5);
    height: calc(var(--nav-icon-width) * 1.5);
    pointer-events: all;
    position: fixed;
    transition: all 0.5s cubic-bezier(0.65, 0.05, 0.36, 1) 0s;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.small .impmenu-toggle {
    background-color: var(--ast-global-color-0);
}

#nav-icon3 {
    width: var(--nav-icon-width);
    height: var(--nav-icon-height);
    position: relative;
    transform: rotate(0deg);
    transition: 0.5s ease-in-out;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

#nav-icon3 span {
    display: block;
    position: absolute;
    height: var(--burger-line-height);
    width: 100%;
    background: #fff;
    border-radius: 13em;
    opacity: 1;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

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

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

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

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

.impmenu-active #nav-icon3 span:nth-child(2) {
    transform: rotate(45deg);
    background-color: #fff;
}

.impmenu-active #nav-icon3 span:nth-child(3) {
    transform: rotate(-45deg);
    background-color: #fff;
}

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


/**Desktop*/

@media (min-width: 1300px) {
    a.impmenu-toggle {
        display: none;
    }
}


/**Mobile*/

@media (max-width: 1299px) {
    #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: 999;
        clip-path: circle(0% at 50% 50%);
        pointer-events: all;
        background-color: var(--ast-global-color-0);
    }
    #nav-wrapper.impmenu-active {
        transform: scale(1);
        clip-path: circle(70.7% at 50% 50%);
    }
    .menu-col.col-menu-1 {
        padding-top: calc(var(--nav-icon-height) + var(--nav-icon-padding-X) + 14vh);
    }
}

@media (min-width: 767px) and (max-width: 1299px) {
    #menu-hauptmenu>.menu-item>a {
        font-size: var(--base-font-size);
        line-height: 1.8;
    }
}

@media (max-width: 576px) {
    #menu-hauptmenu>.menu-item>a {
        font-size: calc( var(--base-font-size) *1.3);
    }
}


/**end Navigation*/