/* FTSV09 – Navigation */
body.ftsv-nav.hasfixednav {
	padding-top: 66px;
}

#header {
	text-align: left;
}

#header #nav {
	background-color: #c84037 !important;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

#header #nav > ul {
	background-color: #c84037 !important;
	font-size: 0.82rem;
}

#header #nav:not(.on) > ul {
	max-height: 66px;
}

#header #nav > ul > li {
	line-height: 66px;
}

#header #nav > ul > li > a {
	height: 66px;
	padding: 0 1.35rem;
	color: #fff !important;
	background-color: transparent !important;
	letter-spacing: 0.06em;
	font-weight: 500;
	border-bottom: 3px solid transparent;
}

#header #nav > ul > li > a:hover,
#header #nav > ul > li > a:focus,
.notouch #header #nav > ul > li > a:hover,
.notouch #header #nav > ul > li > a.active:hover {
	background-color: rgba(0, 0, 0, 0.12) !important;
	color: #fff !important;
}

#header #nav > ul > li > a.active,
#header #nav > ul > li.active > a,
#header #nav > ul > li.open > a {
	background-color: rgba(0, 0, 0, 0.18) !important;
	color: #fff !important;
	border-bottom-color: #fff;
}

/* Logo */
#header #nav > ul > li.logo {
	width: auto !important;
	min-width: 0 !important;
	opacity: 1 !important;
	overflow: visible !important;
	margin-right: 0.25rem;
}

#header #nav > ul > li.logo > a,
#header #nav > ul > li.logo > a.active {
	padding: 0 0.85rem 0 1rem !important;
	line-height: 0;
	height: 66px;
	display: inline-flex !important;
	align-items: center;
	background: transparent !important;
	border-bottom: 0 !important;
}

#header #nav > ul > li.logo > a img {
	max-height: 46px;
	width: auto;
	display: block;
}

#header #nav > ul.overflown li.logo {
	display: inline-block !important;
}

/* Dropdowns */
#header #nav > ul ul {
	background: #fff !important;
	border: 1px solid #e8e8e8;
	border-top: 3px solid #c84037;
	border-radius: 0 0 8px 8px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
	min-width: 210px;
	padding: 0.35rem 0;
}

#header #nav > ul ul li {
	line-height: 1.4;
}

#header #nav > ul ul li a {
	height: auto !important;
	padding: 0.65rem 1.25rem !important;
	color: #333 !important;
	background: transparent !important;
	text-transform: none;
	letter-spacing: 0.02em;
	font-weight: 400;
	border-bottom: 0 !important;
}

#header #nav > ul ul li a:hover,
#header #nav > ul ul li a:focus,
#header #nav > ul ul li a.active {
	background: #fdf6f5 !important;
	color: #c84037 !important;
}

#header #nav > ul ul ul {
	border-top: 0;
	margin-top: -1px;
}

/* Hamburger */
#header #nav > ul > li.overflownonly {
	background: transparent !important;
}

#header #nav > ul > li.overflownonly > a#mobilenavtoggle {
	background: #a3322b !important;
	color: #fff !important;
	padding: 0 1.1rem !important;
	font-size: 0.95rem;
	border-bottom: 0 !important;
}

#header #nav > ul > li.overflownonly > a#mobilenavtoggle:hover {
	background: #8b2a24 !important;
	color: #fff !important;
}

/* Mobile-Menü geöffnet */
#header #nav.on {
	background: #fff !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

#header #nav.on > ul {
	background: #fff !important;
}

#header #nav.on > ul > li {
	line-height: 1.4;
	border-bottom: 1px solid #eee;
}

#header #nav.on > ul > li > a {
	height: auto !important;
	line-height: 1.4 !important;
	padding: 0.9rem 1.25rem !important;
	color: #fff !important;
	background: #c84037 !important;
	border-bottom: 0 !important;
}

#header #nav.on > ul > li.logo > a {
	background: #fff !important;
	padding: 0.75rem 1rem !important;
	justify-content: flex-start;
}

#header #nav.on > ul ul {
	position: static !important;
	display: block !important;
	box-shadow: none;
	border: 0;
	border-radius: 0;
	padding: 0;
	min-width: 0;
}

#header #nav.on > ul ul li a {
	padding: 0.75rem 1.25rem 0.75rem 2rem !important;
	color: #444 !important;
	background: #fafafa !important;
}

#header #nav.on > ul ul ul li a {
	padding-left: 2.75rem !important;
}

/* Mobile – geschlossenes Menü (Logo + Hamburger) */
@media (max-width: 900px) {
	#header #nav:not(.on) > ul > li:not(.logo):not(.overflownonly) {
		display: none !important;
	}

	#header #nav:not(.on) > ul > li.overflownonly {
		display: inline-block !important;
		position: absolute;
		top: 0;
		right: 0;
	}

	#header #nav:not(.on) > ul > li.logo {
		display: inline-block !important;
		max-width: calc(100% - 7rem);
	}

	#header #nav.on {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 10000;
		max-height: 100dvh;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	#header #nav.on > ul {
		max-height: none !important;
		height: auto;
	}

	#header #nav.on > ul > li > a {
		min-height: 48px;
		display: flex;
		align-items: center;
	}

	#header #nav.on > ul ul li a {
		min-height: 44px;
		display: flex;
		align-items: center;
	}

	#header #nav > ul > li.overflownonly > a#mobilenavtoggle {
		min-height: 66px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 0 1.25rem !important;
	}

	#header #nav > ul > li > a {
		padding: 0 1rem;
		font-size: 0.78rem;
	}
}

@media (max-width: 480px) {
	#header #nav > ul > li.logo > a img {
		max-height: 40px;
	}
}
