/** ANCHOR MOBILE */
nav.fm-mobile {
    width: 100%;
    height: 60px;
    overflow: hidden;
    background-color: #ffffff;
    z-index: 100;
}

nav.fm-mobile.is-pinned {
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
}

nav.fm-mobile .toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

nav.fm-mobile .toolbar .logo {
    width: 100px;
    height: 60px;
}

nav.fm-mobile .toolbar .menu {
    width: 28px;
    height: 18px;
    transition: all 0.2s;
}

nav.fm-mobile .toolbar .menu:not(.open) {
    position: relative;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}

nav.fm-mobile .toolbar .menu:not(.open)::before {
    content: "";
    display: inline-block;
    width: 100%;
    height: 1px;
    background-color: #000;
    position: absolute;
    top: 50%;
}

nav.fm-mobile .toolbar .menu.open {
    position: relative;
}

nav.fm-mobile .toolbar .menu.open::before {
    content: "";
    display: inline-block;
    width: 100%;
    height: 1px;
    background-color: #000;
    position: absolute;
    top: 50%;
    transform: rotate(-45deg);
}

nav.fm-mobile .toolbar .menu.open::after {
    content: "";
    display: inline-block;
    width: 100%;
    height: 1px;
    background-color: #000;
    position: absolute;
    top: 50%;
    transform: rotate(45deg);
}

nav.fm-mobile .toolbar .burger-wrapper {
    padding: 10px 10px;
    margin-right: -10px;
}

nav.fm-mobile .mobileMenu {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100%;
    padding-top: 60px;
    overflow-y: auto;
    overflow-x: hidden;
    left: -100%;
    z-index: -1;
    z-index: 2;
    background-color: #fff;
    transition: all 0.2s ease;
}

nav.fm-mobile .mobileMenu:before {
    content: "";
    width: 100%;
    height: 1px;
    background-color: #000;
    position: absolute;
    top: 60px;
    left: 0;
}

nav.fm-mobile .mobileMenu.show {
    left: 0;
}

nav.fm-mobile .mobileMenu .menu {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    /* Damit beim Scrollen des Menüs oben der weiße Hintergrund stehen bleibt. */
    height: calc(100vh - 40px);
    background-color: #fff;
    transition: all 0.2s ease-out;
}

nav.fm-mobile .mobileMenu .menu.show {
    left: 0;
}

nav.fm-mobile .mobileMenu .menu li {
    display: flex;
    align-items: center;
    min-height: 40px;
    line-height: 1;
    border-bottom: 1px solid #ddd;
    color: #000;
    padding: 0 15px;
}

nav.fm-mobile .mobileMenu .menu li .link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    align-content: center;
    padding: 4px 0;
}

nav.fm-mobile .mobileMenu .menu--level2 .menu li:first-child .link {
    text-transform: uppercase;
}

nav.fm-mobile .item.selected > .link {
    color: var(--navMainColor);
}

nav.fm-mobile .mobileMenu .menu li.backLink {
    background: var(--navMainColor);
    color: var(--navBackLink);
}

nav.fm-mobile .mobileMenu .menu li.backLink .icon {
    height: 28px;
    width: 28px;
}

nav.fm-mobile .mobileMenu .active > .menu {
    left: 0;
}

nav.fm-mobile .mobileMenu .menu--level1 {
    position: absolute;
    top: 60px;
    z-index: 1;
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 60px);
}

nav.fm-mobile .mobileMenu .menu--level2 {
    z-index: 2;
}

nav.fm-mobile .mobileMenu .menu--level2 li:not(.backLink) {
    padding-left: 25px;
}

nav.fm-mobile .mobileMenu .menu--level3 {
    z-index: 3;
    top: 40px;
}

nav.fm-mobile .mobileMenu .menu--level3 li:not(.backLink) {
    padding-left: 35px;
}

nav.fm-mobile .mobileMenu .menu--level3 .backLink {
    padding-left: 25px;
}

nav.fm-mobile .mobileMenu .menu--level4 {
    z-index: 3;
    top: 40px;
}

nav.fm-mobile .mobileMenu .menu--level4 li:not(.backLink) {
    padding-left: 45px;
}

nav.fm-mobile .mobileMenu .menu--level4 .backLink {
    padding-left: 35px;
}

@media (max-width: 767px) {
    nav.fm-desktop {
        display: none;
    }
}

@media (min-width: 768px) {
    nav.fm-mobile {
        display: none;
    }
}
