/* ID:5361 */
@charset "utf-8";
#nav{
	--noLinkColor: #555555;
	--visibDelay: 0.2s;
	--firstLevelWidth: 17em;
	--otherLevelWidth: 23em;
}

body.plain{
	#navButton,
	#sidebarButton{
		display:none;
	}

	#nav {
		background-color:white;
		color: black;
		font-family: "liberation_sansregular", sans-serif;
		font-size: 0.7rem;
		list-style: none;
		margin: 0px;
		padding-top: calc(var(--topLevelPadding) + 6px);
		position: relative;
		width:var(--navWidth);
		z-index: 5020;
		&::after {
			/*add separator before content*/
			border-left: 1px solid lightgrey;
			bottom: 2ex;
			content: '';
			position: absolute;
			right: -1px;
			top: 2ex;
		}

		ul {
			list-style: none;
			margin: 0px;
			padding: 0px;
		}
		a{
			color: inherit;
			cursor: pointer;
			font-weight: normal;
			text-decoration: none;
			display: inline-block;
			padding: var(--navEntryPadding);
			width: 100%;
		}
		span{
			display:inline-block;
			padding: var(--navEntryPadding);
		}
		li {
			background-color: white;
			color: var(--noLinkColor);
			/* bewirkt das ausgrauen fuer menuepunkte ohne link*/
			display: block;
			font-weight : normal;
			margin: auto auto 2px auto;
			position: relative;
			text-decoration : none;
			width: calc( var(--firstLevelWidth) - 2px );
			&:hover{
				background-color:var(--themeColor);
				color:var(--themeFontColor);
				a.menuhighlight{
					background-color: unset;
					color: inherit;
					border-radius: 0;
				}
			}
			a.menuhighlight{
				background: var(--mainBarColor);
				color: var(--accordionFontColor);
				border-radius: 5px;
			}
			/* fix menu flashes*/
			ul {
				border-color: var(--themeColor);
				visibility: hidden;
			}
			&.menumeta{
				background-color: inherit;
				/* keine Rundung */
				border-radius: 0!important;
				border-top: 1px solid color-mix(in srgb, white 10%, var(--themeColor));
				padding: 0.5ex 0 0.5ex 0.5em;
				/* für aufeinanderfolgende Elemente: kein Begrenzer*/
				&+ li.menumeta{
					border-top: none;
				}
				a{
					color: inherit;
					padding: 0;
					padding-left: 0.5em;
				}
				&:hover a{
					color: var(--noLinkColor);
					text-decoration: underline;
				}
			}
			ul {
				/* second-level lists*/
				background-color:white;
				border-radius: 5px;
				border-style: solid;
				border-width: 1px;
				/*fixme: evtl "Brücke" zur vorherigen Naviebene bauen*/
				margin-left: calc( var(--firstLevelWidth) - 2px);
				/*hover fix for next level navigation*/
				position: absolute;
				top: 0;
				transition: visibility 0s, background-color 0s;
				transition-delay: var(--visibDelay), var(--visibDelay);
				visibility: hidden;
				width: var(--otherLevelWidth);
				z-index: 5001;
				li {
					/* submenu sollen breiter sein*/
					margin-bottom: 2px;
					width: calc( var(--otherLevelWidth) - 2px);
					&:nth-last-of-type(2){
						margin-bottom: 0;
					}
				}
				ul {
					/* third-and-above-level lists*/
					margin-left: var(--otherLevelWidth);
					margin-top: -1px;
					/* correct small step between higher level navs -> border-top*/
					position: absolute;
					top:0;
					width: var(--otherLevelWidth);
				}
			}

			&:hover{
				border-radius: 5px;
				ul{
					ul{
						visibility: hidden;
						ul{
							visibility: hidden;
						}
					}
				}
			}

			&:hover ul,
				&:hover,
				li li:hover ul,
				li:hover ul{
				/* lists nested under hovered list items*/
				cursor: default;
				display: block;
				transition: visibility 0s;
				transition-delay: var(--visibDelay);
				visibility: visible;
				z-index: +1;
			}
		}

		/*make sure not to display*/
		input,
		label,
		li.back{
			display: none;
		}

		label{
			&.next,
			&.back,
			&.nextx,
			&.backx{
				display:none;
			}
		}

		/*change display order*/
		li:nth-child(1n+10) > ul{
			bottom:-1px;
			top:auto !important;
		}

	}

	/* Beginn der Definitionen die nur fuer die Textnavigation greifen*/
	#text-nav {
		line-height: 2em;
		a {
			text-decoration: none;
			&:hover {
				color: inherit;
				text-decoration: underline;
			}
		}
	}

}
