/* Responsive Navigation – Oder Anders
   Die Navigation ist unabhängig von jQuery und SmartMenus. */

#nav {
	position: relative;
	z-index: 1000;
	width: 100%;
	display: block;
	clear: both;
	box-sizing: border-box;
	background-color: #EBEBEB;
	font-size: 1.2rem;
}
#nav *, #nav *::before, #nav *::after {
	box-sizing: border-box;
}
#nav #h-menu, #nav .main-menu, #nav .submenu {
	margin: 0;
	padding: 0;
	list-style: none;
}
#nav .main-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}
#nav .main-menu > li, #nav .submenu > li {
	position: relative;
	margin: 0;
	padding: 0;
}
#nav a, #nav .nav-disclosure {
	display: flex;
	align-items: center;
 gap: .5rem;
	width: 100%;
	min-height: 2.7rem;
 padding: .65rem .85rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: 1.35;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}
#nav .main-menu > li > a, #nav .main-menu > li > .nav-disclosure {
	width: auto;
}
 #nav a:hover, #nav .nav-disclosure:hover, #nav a:focus-visible, #nav .nav-disclosure:focus-visible {
 text-decoration: underline;
}
 #nav a:focus-visible, #nav button:focus-visible {
 outline: 2px solid currentColor;
 outline-offset: -2px;
}
#nav .nav-chevron {
	flex: 0 0 auto;
 width: .48rem;
 height: .48rem;
 margin: -.2rem .1rem 0 .15rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .15s ease;
}
#nav li.is-open > .nav-disclosure .nav-chevron {
 margin-top: .2rem;
	transform: rotate(225deg);
}
/* Dropdowns auf Desktop */
#nav .submenu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 1001;
	min-width: 16rem;
	max-width: min(26rem, 90vw);
	border: 1px solid rgba(0, 0, 0, .2);
	background: #fff;
	color: #222;
	box-shadow: 0 4px 10px rgba(0, 0, 0, .16);
}
#nav li.is-open > .submenu {
	display: block;
}
#nav .submenu > li {
	display: block;
}
#nav .submenu a, #nav .submenu .nav-disclosure {
	width: 100%;
	white-space: normal;
}
/* Weitere Ebenen öffnen seitlich */
#nav .submenu .submenu {
	top: 0;
	left: 100%;
}
#nav .menu-toggle {
	display: none;
}
 @media (max-width: 870px) {
#nav .menu-toggle {
	display: inline-flex;
	align-items: center;
 gap: .6rem;
	min-height: 2.8rem;
 padding: .65rem .9rem;
	border: 1px solid currentColor;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
#nav #h-menu {
	display: none;
	width: 100%;
}
#nav.menu-open #h-menu {
	display: block;
}
#nav .main-menu {
	display: block;
	width: 100%;
}
#nav .main-menu > li {
	display: block;
	width: 100%;
}
#nav .main-menu > li > a, #nav .main-menu > li > .nav-disclosure {
	width: 100%;
}
/* Auf Mobilgeräten werden alle Unterebenen eingerückt statt überlagert. */
#nav .submenu, #nav .submenu .submenu {
	position: static;
	min-width: 0;
	max-width: none;
	width: auto;
	margin: 0 0 0 1rem;
	border: 0;
	border-left: 2px solid rgba(0, 0, 0, .22);
	background: transparent;
	color: inherit;
	box-shadow: none;
}
#nav .submenu a, #nav .submenu .nav-disclosure {
	min-height: 2.5rem;
 padding: .55rem .8rem;
}
}
@media (prefers-reduced-motion: reduce) {
#nav .nav-chevron {
	transition: none;
}
}
