/*
    assets/css/touchscreen.css
    ==========================

    Hier wird das Layout für Tablets und Smartphones angepasst.

    MH, 05.23
*/



/*
a.selected {
    pointer-events: initial;
}
*/

#navbar-phone {
    display: block;
}

#navbar ul.menu.horizontal > li > ul > li:first-child {
    display: list-item;
}

.submenu.pos-right {
    display: flex;
    position: fixed;
    width: auto;
}

.submenu li:first-child:not(:only-child) {
    display: none;
}

#navbar > .menu {
    z-index: 0;
}

#navbar > .menu > li {
    padding-bottom: 2px;
    position: relative;
}

#navbar .submenu > li:not(:last-child) {
    position: relative;
}

.menu.horizontal > li > a {
    padding: 0 12px !important;
}

.menu.horizontal > li > a.icon-menu {
    padding: 5px 0 !important;
}

#navbar .submenu li > a {
    padding: 8px 12px;
}

#navbar > .menu .submenu.pos-right {
    padding-left: 12px;
    overflow-x: auto;
}

#navbar > .menu .submenu.pos-right > li	{
    padding-left: 12px;
}

    #navbar > .menu .submenu.pos-right > li > a {
        padding-left: 0;
        padding-right: 10px;
    }

#navbar .submenu {
    color: black;
    opacity: 1 !important;
    visibility: inherit;
    width: 100%;
    border: none;
}

.toggle-search[data-open="0"] .submenu {
    opacity: 0 !important;
    height: 0 !important;
}

.toggle-search .submenü

    .submenu > li {
        width: inherit;
    }

    .submenu.pos-right {
        position: static !important;
        width: inherit;
    }

    .menu li:not(.toggle-search) > .submenu.animated:not(.toggle-search),
    .submenu li > .submenu.animated.pos-right {
        position: relative;
    }

.menu li:hover:not(.toggle-search) > .submenu.animated,
.submenu li:hover > .submenu.animated.pos-right {
    /*
     display: block;
     position:relative;
     */
     visibility: inherit;
}

#navbar li:hover {
    color: black !important;
    background-color: inherit !important;
}

#navbar > .menu > li > a:hover {
    color: #2767a8;
}

#navbar {
    display: block;
    width: 20%;
    min-width: 330px;
    max-width: 100%;
    padding: 0;
    border-width: 0 3px 0 0;
    border-color: gray;
    overflow-y: auto;
    background-color: aliceblue;
    position: absolute;
    opacity: .95;
    left: -100%;
    transition: top, left .8s ease-out, opacity .8s linear;
}

#content main:first-child {
    max-width: 100vw;
}

@media screen and (max-width: 500px) {
    #navbar {
        width: 100%;
    }
}






#navbar li > a {
    position: relative;
    z-index: 10;
}

#navbar li {
    background-color: inherit;
    padding-bottom: 0 !important;
}

#navbar .submenu li > a {
    width: auto;
}

    .submenu.animated.blend-in {
        opacity: 1;
    }

.menu li > .submenu.animated.pull-up,
.submenu li > .submenu.animated.pull-up {
    visibility: inherit;
}
    #navbar a:only-child {
        min-width: 60%;
    }

	#navbar .submenu.animated li:hover:not(:first-child) > a:not(.active):not(.selected) {
		color: #0072b7;
	}

    #navbar .submenu {
        border-width: 0;
        box-shadow: none;
    }

    #navbar:target {
        height: auto;
    }

    #navbar ul.menu.horizontal > li > ul > li:first-child {
        display: none;
    }

    #navbar-phone .menu {
    background-color: white;
    justify-content: space-between;
}

#navbar li.toggle-search,
#navbar li.BSV-Stander,
#navbar .button-login {
    display: none !important;
}



#navbar-phone .menu {
    border: solid #d9e4ef;
    border-width: 0 0 1px 0;
    flex-wrap: wrap;
}



#navbar > .menu {
    display: block;
    padding: 0;
    position: relative;
    height: inherit;
    background-color: inherit;
    color: black;
    font: normal normal 500 18px/50px "Arial",sans-serif;
}

#navbar > .menu > li > a {
    line-height: 45px;
}

.slideShow {
    margin-top: 19px; /* wegen Firefox */
}

@media not screen and (any-hover) {
    .slideshow .rewindButton:hover,
    .slideshow .forwardButton:hover  {
	    background-color: #2a588000;
    }
}

#navbar .submenu.pos-right {
	border-width: 0 0 0 4px;
	justify-content: flex-end;
	flex-flow: column;
    transition-property: all !important;
}

    .BSV-Stander {
        margin-top: 3px;
    }

	#navbar > .menu > li:not(.BSV-Stander) > a {
		height: 46px;
	}

    #navbar a:not(:only-child) {
		font-weight: bold;
	}
	
    /*
	.button-search.icon-cancel-4::after {
		top: 9px;
		left: 9px;
		font-size: 24px;
	}
        */
	
	.menu.horizontal {
		margin: 0;
	}

    .menu.horizontal > li:hover > a {
        color: #2a5880;
    }

    .toggle-submenu {
        display: initial;
        position: absolute;
        right: 0px;
        height: 46px;
        background-color: transparent;
        border: none;
        cursor: pointer;
        font-size: small;
        padding: 0 12px 0 100%;
    }

    .submenu .toggle-submenu {
        height: 40px;
    }

    .toggle-submenu::before {
        border: solid 1px;
        padding: 3px;
        margin: 0;
        top: -2px;
        position: relative;
    }

    .submenu .toggle-submenu::before {
        top: -3px;
    }

    .toggle-submenu:active {
        background-color: transparent !important;
    }

    .disconnected {
        top: 46px;
        margin: 0;
    }