/* Direktlinks - Leiste oberer Header */

nav.direct {
	height: 30px;
	height: var( --directnav-height );
	display: flex;
	justify-content: flex-end;
}
nav.direct menu {
	height: 100%;
	display: flex;
}
nav.direct menuitem {
	height: 100%;
}
nav.direct menuitem a {
	width: calc( 100% - 20px );
	height: 100%;
	text-decoration: none;
	padding: 0 10px;
	border-right: 1px solid #1c2431;
	border-right: 1px solid var( --text-color );
	display: flex;
	align-items: center;
}
nav.direct menuitem:first-child a {
	border-left: 1px solid #1c2431;
	border-left: 1px solid var( --text-color );
}
nav.direct menuitem:last-child a {
	width: calc( 100% - 21px );
	padding-right: 10px;
	padding-right: var( --body-padding );
}
nav.direct menuitem a:hover {
	color: #c53d31;
	color: var( --menu-hover-color );
}
nav.direct menuitem a {
	font-size: 16px;
	font-size: var( --std-smallfontsize );
}

/* Abschaltung der Direktlinks bei zu kleinem Bildschirm */

@media only screen and (max-width: 600px) {

	nav.direct menu {
		display: none;
	}

}

/* Hauptnavigation - Leiste unterer Header */

nav.main {
	height: 50px;
	height: var( --mainnav-height );
	display: flex;
	justify-content: flex-end;
}
nav.main > menu {
	height: 100%;
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
}
nav.main > menu > menuitem {
	height: 100%;
}
nav.main menuitem > a {
	text-decoration: none;
}
nav.main menuitem > label {
	cursor: pointer;
}
nav.main menuitem > a, nav.main menuitem > label {
	width: calc( 100% - 30px );
	height: 100%;
	padding: 0 15px;
	display: flex;
	align-items: center;
}
nav.main > menu > menuitem:last-child > a, nav.main > menu > menuitem:last-child > label {
	padding-right: 10px;
	padding-right: var( --body-padding );
}
nav.main menuitem > a:hover, nav.main menuitem > label:hover {
	color: #c53d31;
	color: var( --menu-hover-color );
}

/* Ausklappmechanik - Hovermenüs */

nav.main .expandable_menuitem {
	position: relative;
}
nav.main menuitem > menu {
	height: min-content;
	width: min-content;
	background: #edf2f7;
	background: var( --lighter-backgroundcolor );
	border-left: 1px solid #c7d6e7;
	border-left: 1px solid var( --background-color );
	border-right: 1px solid #c7d6e7;
	border-right: 1px solid var( --background-color );
	border-bottom: 1px solid #c7d6e7;
	border-bottom: 1px solid var( --background-color );
	display: none;
	flex-direction: column;
	align-items: flex-left;
	position: absolute;
	right: 0;
	top: 50px;
	top: var( --mainnav-height );
	z-index: 10;
}	
nav.main menuitem menuitem {
	height: 35px;
	height: var( --submenu-itemheight );
	border-left: 1px dotted #c7d6e7;
	border-left: 1px dotted var( --background-color );
	border-bottom: 1px dotted #c7d6e7;
	border-bottom: 1px dotted var( --background-color );
	border-right: 1px dotted #c7d6e7;
	border-right: 1px dotted var( --background-color );
}
nav.main menuitem:hover > menu {
	display: flex;
}

/* Schalter für Burgermenü */

.toggle_burgermenu {
	width: 30px;
	height: 22px;
	height: var( --burgermenu-height );
	position: absolute;
	top: 71px;
	top: calc( var( --header-height ) - var( --mainnav-height ) + var( --burgermenu-height ) / 2 );
	right: 10px;
	right: var( --body-padding );
	display: none;
	flex-direction: column;
	justify-content: space-between;
	cursor: pointer;
}
.burgermenu_bar {
	height: 4px;
	width: 100%;
	background: #1c2431;
	background: var( --text-color );
	border-radius: 2px;
}

@media only screen and (max-width: 600px) {

	.toggle_burgermenu {
		top: 44px;
		top: calc( ( var( --header-height ) - var( --burgermenu-height ) ) / 2 );
	}

}

/* Verstecken der Umschalter-Checkboxen */

nav.main input[type="checkbox"] {
	display: none;
}

/* Umschaltung der Hauptnavigation auf Burgermenü bei kleinem Bildschirm */

@media only screen and (max-width: 850px) {

	.toggle_burgermenu {
		display: flex;
	}
	nav.main > menu {
		height: min-content;
		width: 300px;
		width: var( --burgermenu-width );
		background: #edf2f7;
		background: var( --lighter-backgroundcolor );
		border-left: 1px solid #c7d6e7;
		border-left: 1px solid var( --background-color );
		border-right: 1px solid #c7d6e7;
		border-right: 1px solid var( --background-color );
		border-bottom: 1px solid #c7d6e7;
		border-bottom: 1px solid var( --background-color );
		display: none;
		position: absolute;
		top: 110px;
		top: var( --header-height );
		right: 0;
		z-index: 10;
	}
	nav.main menuitem menuitem {
		border: 0;
	}
	nav.main menuitem > a, nav.main menuitem > label {
		width: calc( 100% - 12px );
		padding: 5px;
		border-left: 1px dotted #c7d6e7;
		border-left: 1px dotted var( --background-color );
		border-right: 1px dotted #c7d6e7;
		border-right: 1px dotted var( --background-color );
		border-bottom: 1px dotted #c7d6e7;
		border-bottom: 1px dotted var( --background-color );
		justify-content: center;
	}
	nav.main > menu > menuitem:last-child a, nav.main > menu > menuitem:last-child label {
		padding-right: 5px;
	}
	nav.main menuitem.expandable_menuitem menu {
		background: #ffffff;
		background: var( --evenlighter-backgroundcolor );
		width: calc( 100% - 2px );
		position: static;
	}

	#toggle_burgermenu:checked ~ menu {
		display: block;
	}

/* Mechanik ausgeklapptes Burgermenü */

	nav.main menuitem:hover > menu {
		display: none;
	}
	nav.main menuitem.expandable_menuitem input[type="checkbox"]:checked ~ menu {
		display: block;
	}

}