/* ---- Tokens (ehemals im CMS-Theme global gesetzt) ---- */
:root {
	--meganav-primary:        #00A2B8;
	--meganav-primary-light:  #0099B0;
	--meganav-primary-dark:   #00606E;
	--meganav-text:           #FFFFFF;
	--meganav-text-dark:      #15303A;
	--meganav-col2-bg:        #FFFFFF;
	--meganav-col3-bg:        #F7FBFC;
	--meganav-max-width:      1200px;
	--meganav-transition:     0.2s ease;
}

/* ---- Reset ---- */
.site-meganav,
.site-meganav *,
.site-meganav *::before,
.site-meganav *::after {
	box-sizing: border-box;
}

.site-meganav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Basis-Reset: Listenpunkte ohne vererbtes margin-bottom (aus base.css) */
.site-meganav li {
	margin: 0;
}

.site-meganav a {
	text-decoration: none;
	color: inherit;
}

.site-meganav img {
	max-width: 100%;
	height: auto;
}

/* ============================================================
   Level 1 - Horizontale Navigationsbar
   ============================================================ */

.site-meganav {
	width: 100%;
	background: var(--meganav-primary);
	position: relative;
	z-index: 1000;
	font-family:'Open Sans', sans-serif;
	font-size: 15px;
	line-height: 1.4;
	margin: 0;
	padding: 0;
}

.site-meganav:before {
	display: none;
}

.site-meganav-inner {
	max-width: var(--meganav-max-width);
	margin: 0 auto;
	display: flex;
	align-items: center;
	position: relative;
}

.site-meganav-inner > ul {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.site-meganav-inner > ul > li {
	position: static;
}

.site-meganav-inner > ul > li > a {
	display: block;
	padding: 15px;
	color: var(--meganav-text);
	font-weight: 500;
	white-space: nowrap;
	transition: background var(--meganav-transition);
}

.site-meganav-inner > ul > li > a:hover,
.site-meganav-inner > ul > li > a:focus {
	background: var(--meganav-primary-light);
}

.site-meganav-inner > ul > li.is-open > a,
.site-meganav-inner > ul > li.is-current > a {
	background: var(--meganav-primary-light);
}

@media (max-width:1023px) {

.site-meganav-inner > ul > li.is-open > a,
.site-meganav-inner > ul > li.is-current > a {
	background: var(--meganav-col2-bg);
}

}

/* Chevron Down fuer Level 1 Items mit Submenue */
.site-meganav-hassub > a {
	padding-right: 32px !important;
	position: relative;
}

.site-meganav-hassub > a::after {
	content: "";
	position: absolute;
	right: 12px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--meganav-text);
	border-bottom: 2px solid var(--meganav-text);
	transform: translateY(-65%) rotate(45deg);
	transition: transform var(--meganav-transition);
}

.site-meganav-hassub.is-open > a::after {
	transform: translateY(-35%) rotate(-135deg);
}

/* ============================================================
   Mega Dropdown
   ============================================================ */

.site-meganav-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background: var(--meganav-col2-bg);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	z-index: 1001;
}

.site-meganav-hassub.is-open > .site-meganav-dropdown {
	display: block;
}

.site-meganav-dropdown-inner {
	max-width: var(--meganav-max-width);
	margin: 0 auto;
	display: flex;
	min-height: 510px;
}

/* ---- Spalte 1: Statischer Content ---- */
.site-meganav-dropdown-col--info {
	width: 25%;
	flex-shrink: 0;
	background: var(--meganav-primary);
	color: var(--meganav-text);
	padding: 30px 25px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.site-meganav-dropdown-col--info img {
	max-width: 90px;
}

.site-meganav-dropdown-col--info p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--meganav-text);
}

.site-meganav-dropdown-col--info p b {
	font-weight:700;
}

.site-meganav-dropdown-col--info p a {
	display: inline-block;
	color: var(--meganav-text);
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.site-meganav-dropdown-col--info p a.site-meganav-button {
	background: var(--meganav-text);
	color: var(--meganav-primary);
	text-decoration: none;
	display:inline-block;
	text-align:center;
	padding:10px 20px;
	border-radius:100px;
}

.site-meganav-dropdown-col--info p a:hover {
	opacity: 0.85;
}

/* ---- Spalte 2: Level 2 Navigation ---- */
.site-meganav-dropdown-col--level2 {
	width: 37.5%;
	flex-shrink: 0;
	background: var(--meganav-col2-bg);
	position: relative;
	overflow: visible;
}

.site-meganav-dropdown-col--level2 > ul {
	padding: 10px 0;
}

.site-meganav-dropdown-col--level2 > ul > li > a {
	display: block;
	padding: 12px 40px 12px 25px;
	color: var(--meganav-text-dark);
	border-left: 3px solid transparent;
	transition: background var(--meganav-transition), border-color var(--meganav-transition);
	position: relative;
}

.site-meganav-dropdown-col--level2 > ul > li > a:hover,
.site-meganav-dropdown-col--level2 > ul > li > a:focus {
	background: rgba(0, 162, 184, 0.08);
	border-left-color: var(--meganav-primary);
}

.site-meganav-dropdown-col--level2 > ul > li.is-open > a,
.site-meganav-dropdown-col--level2 > ul > li.is-current > a {
	background: var(--meganav-col3-bg);
	border-left-color: var(--meganav-primary);
	font-weight: 600;
}

/* Chevron Right fuer Level 2 Items mit Subsubmenue */
.site-meganav-hassubsub > a::after {
	content: "";
	position: absolute;
	right: 16px;
	top: 50%;
	width: 7px;
	height: 7px;
	border-right: 2px solid var(--meganav-text-dark);
	border-bottom: 2px solid var(--meganav-text-dark);
	transform: translateY(-50%) rotate(-45deg);
	transition: transform var(--meganav-transition);
	opacity: 0.5;
}

.site-meganav-hassubsub.is-open > a::after {
	opacity: 1;
}

/* ---- Spalte 3: Level 3 Platzhalter ---- */
.site-meganav-dropdown-col--level3 {
	width: 37.5%;
	flex-shrink: 0;
	background: var(--meganav-col3-bg);
}

/* ---- Level 3 Navigation ---- */
.site-meganav-hassubsub > ul {
	display: none;
	position: absolute;
	top: 0;
	left: 100%;
	width: 100%;
	height: 100%;
	background: var(--meganav-col3-bg);
	padding: 10px 0;
	z-index: 1;
	/* Lange Listen (z. B. Spezialthemen mit 11 Punkten) dürfen nicht aus dem
	   Dropdown ragen: innerhalb des Panels scrollen statt überlaufen. */
	overflow-y: auto;
	overscroll-behavior: contain;
}

.site-meganav-hassubsub.is-open > ul {
	display: block;
}

.site-meganav-hassubsub > ul > li > a {
	display: block;
	padding: 9px 25px;
	color: var(--meganav-text-dark);
	border-left: 3px solid transparent;
	transition: background var(--meganav-transition), border-color var(--meganav-transition);
}

.site-meganav-hassubsub > ul > li > a:hover,
.site-meganav-hassubsub > ul > li > a:focus {
	background: rgba(0, 162, 184, 0.08);
	border-left-color: var(--meganav-primary);
}

.site-meganav-hassubsub > ul > li.is-current > a {
	border-left-color: var(--meganav-primary);
	font-weight: 600;
}

/* ============================================================
   Mobile Header Elements (hidden on desktop)
   ============================================================ */

.site-meganav-mobile-header {
	display: none;
}

.site-meganav-mobile-actions {
	display: none;
}

.site-meganav-burger {
	display: none;
}

/* ============================================================
   Mobile Back Button (injected by JS)
   ============================================================ */

.site-meganav-back {
	display: none;
}

/* ============================================================
   Mobile Close Button (injected by JS)
   ============================================================ */

.site-meganav-close {
	display: none;
}

/* ============================================================
   Mobile Styles (< 1024px)
   ============================================================ */

@media (min-width: 1024px) {

.site-meganav-hidedesktop {
	display:none!important;
}

}

@media (max-width: 1023px) {

	.site-meganav {
		position: relative;
		align-content:center;
	}

	.site-meganav:before {
		background:var(--meganav-col2-bg);
	}

	.site-meganav-inner {
		display: block;
		padding: 0;
	}

	/* ---- Mobile Header ---- */
	.site-meganav-mobile-header {
		display: flex;
		align-items: center;
		gap: 10px;
		flex: 1;
		min-width: 0;
		height:60px;
	}

	.site-meganav-mobile-logo {
		display: block;
		flex-shrink: 0;
	}

	.site-meganav-mobile-logo img {
		height: 50px;
		width: auto;
	}

	.site-meganav-mobile-claim {
		color: var(--meganav-primary);
		font-size: 14px;
		line-height: 1.3;
		white-space: nowrap;
		font-weight: 500;
	}

	/* ---- Mobile Actions (Lupe + Burger) ---- */
	.site-meganav-mobile-actions {
		display: flex;
		align-items: center;
		gap: 0;
		flex-shrink: 0;
	}

	.site-meganav-search {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		background: none;
		border: none;
		cursor: pointer;
		padding: 10px;
		color: #000;


		display:none;
	}

	.site-meganav-search:hover {
		opacity: 0.8;
	}

	/* ---- Burger Button ---- */
	.site-meganav-burger {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 5px;
		width: 44px;
		height: 44px;
		background: none;
		border: none;
		cursor: pointer;
		padding: 10px;
		z-index: 10001;
		position: relative;
		flex-shrink: 0;
	}

	.site-meganav-burger span {
		display: block;
		width: 24px;
		height: 2px;
		background: #000;
		transition: transform 0.3s ease, opacity 0.3s ease;
	}

	.site-meganav.is-mobile-open .site-meganav-burger span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.site-meganav.is-mobile-open .site-meganav-burger span:nth-child(2) {
		opacity: 0;
	}

	.site-meganav.is-mobile-open .site-meganav-burger span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	/* ---- Hauptmenü: füllt das Off-Canvas-Panel (Auf/Zu steuert site-header.js
	   über body.site-nav-open – kein zweiter Burger mehr). ---- */
	.site-meganav-inner > ul {
		display: flex;
		flex-direction: column;
		width: 100%;
		background: var(--meganav-col3-bg);
		padding: 56px 0 80px; /* Platz oben für das Schließen-Kreuz */
	}

	/* ---- Close Button ---- */
	.site-meganav-close {
		display: none;
		position: absolute;
		top: 10px;
		right: 10px;
		width: 44px;
		height: 44px;
		background: none;
		border: none;
		cursor: pointer;
		font-size: 24px;
		color: var(--meganav-text-dark);
		z-index: 10003;
		line-height: 1;
	}

	.site-meganav.is-mobile-open .site-meganav-close {
		display: block;
	}

	/* ---- Mobile Level 1 Items ---- */
	.site-meganav-inner > ul > li {
		width: 100%;
		border-bottom: 1px solid #e8e8e8;
	}

	.site-meganav-inner > ul > li > a {
		color: var(--meganav-text-dark);
		padding: 16px 20px;
		font-size: 17px;
	}

	.site-meganav-inner > ul > li > a:hover,
	.site-meganav-inner > ul > li > a:focus {
		background: var(--meganav-col2-bg);
		color:var(--meganav-text-dark);
	}

	.site-meganav-inner > ul > li.is-current > a {
		font-weight:600;
	}
	.site-meganav-inner > ul > li.is-current > a:hover,
	.site-meganav-inner > ul > li.is-current > a:focus {
		color:var(--meganav-text-dark);
	}

	/* Chevron Right auf Mobile fuer Level 1 */
	.site-meganav-hassub > a::after {
		border-color: var(--meganav-text-dark);
		transform: translateY(-50%) rotate(-45deg);
		right: 20px;
	}

	.site-meganav-hassub.is-open > a::after {
		transform: translateY(-50%) rotate(-45deg);
	}

	/* ---- Dropdown als Sliding Panel ---- */
	.site-meganav-dropdown {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 10002;
		background: var(--meganav-col3-bg);
		box-shadow: none;
		transform: translateX(100%);
		transition: transform 0.3s ease;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		display: block !important;
		padding-top: 0;
	}

	.site-meganav-hassub.is-mobile-active > .site-meganav-dropdown {
		transform: translateX(0);
	}

	.site-meganav-dropdown-inner {
		flex-direction: column;
		min-height: auto;
		max-width: none;
	}

	/* ---- Spalte 1 auf Mobile: Am Ende anzeigen ---- */
	.site-meganav-dropdown-col--info {
		width: 100%;
		order: 3;
		padding: 25px 20px 100px;
	}

	/* ---- Spalte 2 auf Mobile ---- */
	.site-meganav-dropdown-col--level2 {
		width: 100%;
		order: 1;
		background: var(--meganav-col3-bg);
		padding-top: 60px;
	}

	.site-meganav-dropdown-col--level2 > ul {
		padding:0;
	}

	.site-meganav-dropdown-col--level2 > ul > li > a {
		padding: 16px 40px 16px 20px;
		font-size: 17px;
		border-left: none;
	}

	.site-meganav-dropdown-col--level2 > ul > li > a:hover {
		border-left: none;
		background: var(--meganav-col2-bg);
	}

	.site-meganav-dropdown-col--level2 > ul > li.is-open > a {
		border-left: none;
		background: var(--meganav-col2-bg);
	}

	.site-meganav-dropdown-col--level2 > ul > li {
		border-bottom: 1px solid #e8e8e8;
	}

	/* ---- Spalte 3 auf Mobile: verstecken ---- */
	.site-meganav-dropdown-col--level3 {
		display: none;
	}

	/* ---- Level 3 als Sliding Panel auf Mobile ---- */
	.site-meganav-hassubsub > ul {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 10003;
		background: var(--meganav-col3-bg);
		transform: translateX(100%);
		transition: transform 0.3s ease;
		display: block !important;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		padding-top: 60px;
	}

	.site-meganav-hassubsub.is-mobile-active > ul {
		transform: translateX(0);
	}
	.site-meganav-hassubsub.is-mobile-active > ul:after {
		position:absolute;
		top:100%;
		left:0;
		right:0;
		height:500px;
		background:#fff;
		content:'';
	}

	.site-meganav-hassubsub > ul > li > a {
		padding: 16px 20px;
		font-size: 17px;
		border-left: none;
	}

	.site-meganav-hassubsub > ul > li {
		border-bottom: 1px solid #e8e8e8;
	}

	.site-meganav-hassubsub > ul > li > a:hover {
		border-left: none;
		background: var(--meganav-col2-bg);
	}

	/* ---- Zurueck Button ---- */
	.site-meganav-back {
		display: flex;
		align-items: center;
		gap: 8px;
		width: 100%;
		padding: 20px;
		background: var(--meganav-primary);
		color: var(--meganav-text);
		border: none;
		cursor: pointer;
		font-size: 16px;
		line-height:20px;
		font-weight: 500;
		text-align: left;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 1;
	}
	.site-meganav-back.site-meganav-back-safari {
		background: var(--meganav-primary);
		pointer-events:none;
		z-index:10000;		
	}


	.site-meganav-back::before {
		content: "";
		display: inline-block;
		width: 8px;
		height: 8px;
		border-left: 2px solid var(--meganav-text);
		border-bottom: 2px solid var(--meganav-text);
		transform: rotate(45deg);
		flex-shrink: 0;
	}

	.site-meganav-back:hover {
		background: var(--meganav-primary-dark);
	}

	/* Chevron fuer hassubsub auf Mobile */
	.site-meganav-hassubsub > a::after {
		border-color: var(--meganav-text-dark);
		right: 20px;
	}
}

/* ============================================================
   Body scroll lock
   ============================================================ */

body.site-meganav-noscroll {
	overflow: hidden;
}
