/* NMW Mega-Menü – gescopet auf .nmw-mm. Anpassung über --nmw-mm-* (Design → Mega-Menü). */

.nmw-mm {
	--mm-accent: var(--nmw-mm-accent, #e5007d);
	--mm-accent-dark: color-mix(in srgb, var(--mm-accent) 82%, #000);
	--mm-ink: #2b2530;
	--mm-muted: #75707b;
	--mm-line: #ececf0;
	--mm-rose: #fbe9f3;
	--mm-lila: #efedf8;
	--mm-font: var(--nmw-mm-font, inherit);
	--mm-font-strong: var(--nmw-mm-font-strong, var(--nmw-mm-font, inherit));
	--mm-fs: var(--nmw-mm-fs, 18px);
	--mm-top: 100px; /* wird per JS auf die Unterkante des Headers gesetzt */

	position: relative;
	font-family: var(--mm-font);
	font-size: var(--mm-fs);
	line-height: 1.3;
	color: var(--mm-ink);
}

.nmw-mm *,
.nmw-mm *::before,
.nmw-mm *::after { box-sizing: border-box; }

.nmw-mm ul,
.nmw-mm li { margin: 0; padding: 0; list-style: none; }

.nmw-mm p { margin: 0; padding: 0; }

.nmw-mm a { text-decoration: none; box-shadow: none; }

.nmw-mm__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.nmw-mm-empty { font-size: 13px; color: #b32d2e; }

.nmw-mm__burger { display: none; }

/* Nur mobil sichtbar */
.nmw-mm .nmw-mm__mtop,
.nmw-mm .nmw-mm__help,
.nmw-mm .nmw-mm__foot,
.nmw-mm .nmw-mm__mhead,
.nmw-mm .nmw-mm__ptag,
.nmw-mm .nmw-mm__mi,
.nmw-mm .nmw-mm__m,
.nmw-mm .nmw-mm__cta.nmw-mm__cta--bar { display: none; }

.nmw-mm__sheet { display: contents; }

/* ------------------------------------------------------------------ Desktop */

@media (min-width: 981px) {

	.nmw-mm__list {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		flex-wrap: nowrap;
		gap: 0 4px;
	}

	.nmw-mm__item { position: static; }

	.nmw-mm .nmw-mm__top {
		appearance: none;
		-webkit-appearance: none;
		display: inline-flex;
		align-items: center;
		gap: .45em;
		position: relative;
		margin: 0;
		padding: .85em .7em;
		background: none;
		border: 0;
		border-radius: 0;
		cursor: pointer;
		font-family: var(--mm-font-strong);
		font-size: 1em;
		font-weight: 700;
		line-height: 1.2;
		letter-spacing: 0;
		text-transform: none;
		color: var(--mm-ink);
		white-space: nowrap;
		transition: color .15s ease;
	}

	.nmw-mm .nmw-mm__top::after {
		content: "";
		position: absolute;
		left: .7em;
		right: .7em;
		bottom: 0;
		height: 3px;
		border-radius: 2px;
		background: var(--mm-accent);
		transform: scaleX(0);
		transform-origin: left center;
		transition: transform .2s ease;
	}

	.nmw-mm .nmw-mm__top:hover,
	.nmw-mm .nmw-mm__item.is-current > .nmw-mm__top,
	.nmw-mm .nmw-mm__item.is-open > .nmw-mm__top { color: var(--mm-accent); background: none; }

	.nmw-mm .nmw-mm__item.is-current > .nmw-mm__top::after,
	.nmw-mm .nmw-mm__item.is-open > .nmw-mm__top::after,
	.nmw-mm .nmw-mm__top:hover::after { transform: scaleX(1); }

	.nmw-mm__chev { flex: none; transition: transform .2s ease; }
	.nmw-mm__item.is-open > .nmw-mm__top .nmw-mm__chev { transform: rotate(180deg); }

	/* CTA „Gutscheine“ */
	.nmw-mm__item--cta { margin-left: 14px; }

	.nmw-mm .nmw-mm__cta {
		display: inline-flex;
		align-items: center;
		gap: .55em;
		padding: .7em 1.15em;
		border-radius: 8px;
		background: var(--mm-accent);
		color: #fff;
		font-family: var(--mm-font-strong);
		font-size: 1em;
		font-weight: 700;
		line-height: 1.2;
		white-space: nowrap;
		box-shadow: 0 2px 8px color-mix(in srgb, var(--mm-accent) 35%, transparent);
		transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
	}

	.nmw-mm .nmw-mm__cta:hover { background: var(--mm-accent-dark); color: #fff; transform: translateY(-1px); }

	.nmw-mm .nmw-mm__cta:focus-visible { outline: 2px solid var(--mm-accent); outline-offset: 3px; }

	/* Panel (volle Breite unter dem Header, Position per JS) */
	.nmw-mm__panel {
		display: none;
		position: fixed;
		left: 0;
		right: 0;
		top: var(--mm-top);
		z-index: 99990;
		background: #fff;
		border-top: 1px solid var(--mm-line);
		box-shadow: 0 22px 40px -12px rgba(43, 37, 48, .18);
	}

	.nmw-mm__item.is-open > .nmw-mm__panel { display: block; animation: nmw-mm-in .18s ease both; }

	@keyframes nmw-mm-in {
		from { opacity: 0; transform: translateY(-6px); }
		to   { opacity: 1; transform: none; }
	}

	.nmw-mm__panel-inner {
		display: flex;
		align-items: stretch;
		max-width: var(--nmw-mm-wrap, 1280px);
		margin: 0 auto;
		padding: 24px 32px 30px;
	}

	.nmw-mm__col { flex: 1 1 0; min-width: 0; padding: 4px 36px; }
	.nmw-mm__col + .nmw-mm__col { border-left: 1px solid var(--mm-line); }
	.nmw-mm__promo + .nmw-mm__col { padding-left: 40px; }
	.nmw-mm__col:first-child { padding-left: 4px; }
	.nmw-mm__promo + .nmw-mm__col:not(:first-child) { border-left: 0; }

	.nmw-mm__promo { flex: 0 0 clamp(300px, 29%, 380px); }
}

/* ------------------------------------------------------------------ Panel-Inhalt (gemeinsam) */

.nmw-mm__col-title {
	margin-bottom: .7em !important;
	font-family: var(--mm-font-strong);
	font-size: .68em;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--mm-muted);
}

.nmw-mm .nmw-mm__link {
	display: block;
	padding: .38em 0;
	font-family: var(--mm-font);
	font-size: .92em;
	font-weight: 400;
	color: var(--mm-ink);
	transition: color .15s ease, transform .15s ease;
}

.nmw-mm .nmw-mm__link:hover,
.nmw-mm .nmw-mm__link.is-current { color: var(--mm-accent); transform: translateX(2px); }

.nmw-mm__promo {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	border-radius: 12px;
	padding: 20px 24px 22px;
}

.nmw-mm__promo--rose { background: var(--mm-rose); }
.nmw-mm__promo--lila { background: var(--mm-lila); }

.nmw-mm__eyebrow {
	margin-bottom: .55em !important;
	font-family: var(--mm-font-strong);
	font-size: .62em;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--mm-accent);
}

.nmw-mm__promo-title {
	margin-bottom: .35em !important;
	font-family: var(--mm-font-strong);
	font-size: 1.3em;
	font-weight: 700;
	line-height: 1.15;
	color: var(--mm-ink);
}

.nmw-mm__promo-text {
	margin-bottom: 1em !important;
	font-size: .82em;
	line-height: 1.45;
	color: var(--mm-muted);
}

.nmw-mm__promo-actions { display: flex; flex-direction: column; align-items: stretch; gap: .6em; width: 100%; margin-top: auto; }

.nmw-mm .nmw-mm__btn {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: .6em;
	padding: .55em .95em;
	border-radius: 6px;
	background: var(--mm-accent);
	color: #fff;
	font-family: var(--mm-font-strong);
	font-size: .78em;
	font-weight: 700;
	line-height: 1.2;
	transition: background .15s ease;
}

.nmw-mm .nmw-mm__btn:hover { background: var(--mm-accent-dark); color: #fff; }

.nmw-mm .nmw-mm__arrowlink {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	font-family: var(--mm-font-strong);
	font-size: .82em;
	font-weight: 700;
	color: var(--mm-accent);
}

.nmw-mm .nmw-mm__arrowlink:hover { color: var(--mm-accent-dark); }

.nmw-mm .nmw-mm__arrowlink .nmw-mm__arrow,
.nmw-mm .nmw-mm__btn .nmw-mm__arrow { flex: none; transition: transform .15s ease; }
.nmw-mm .nmw-mm__arrowlink:hover .nmw-mm__arrow,
.nmw-mm .nmw-mm__btn:hover .nmw-mm__arrow { transform: translateX(3px); }

.nmw-mm a:focus-visible,
.nmw-mm button:focus-visible { outline: 2px solid var(--mm-accent); outline-offset: 2px; }

/* ------------------------------------------------------------------ Mobil / Tablet */

@media (max-width: 980px) {

	.nmw-mm { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

	.nmw-mm .nmw-mm__d { display: none; }
	.nmw-mm .nmw-mm__m { display: inline; }

	/* Kopfzeile: Gutscheine + Burger */
	.nmw-mm .nmw-mm__cta.nmw-mm__cta--bar {
		display: inline-flex;
		align-items: center;
		gap: .5em;
		padding: .6em .95em;
		border-radius: 10px;
		background: var(--mm-accent);
		color: #fff;
		font-family: var(--mm-font-strong);
		font-size: .92em;
		font-weight: 700;
		line-height: 1.2;
		white-space: nowrap;
	}
	.nmw-mm .nmw-mm__cta--bar .nmw-mm__gift { width: 18px; height: 18px; }

	.nmw-mm .nmw-mm__burger {
		appearance: none;
		-webkit-appearance: none;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: none;
		width: 46px;
		height: 46px;
		margin: 0;
		padding: 0;
		background: #fff;
		border: 1px solid #dedbe3;
		border-radius: 12px;
		cursor: pointer;
		color: var(--mm-ink);
	}

	.nmw-mm__bars,
	.nmw-mm__bars::before,
	.nmw-mm__bars::after {
		display: block;
		width: 22px;
		height: 2px;
		border-radius: 2px;
		background: currentColor;
		transition: transform .2s ease, opacity .2s ease;
	}
	.nmw-mm__bars { position: relative; }
	.nmw-mm__bars::before,
	.nmw-mm__bars::after { content: ""; position: absolute; left: 0; }
	.nmw-mm__bars::before { top: -7px; }
	.nmw-mm__bars::after { top: 7px; }

	.nmw-mm.is-mobile-open .nmw-mm__bars { background: transparent; }
	.nmw-mm.is-mobile-open .nmw-mm__bars::before { top: 0; transform: rotate(45deg); }
	.nmw-mm.is-mobile-open .nmw-mm__bars::after { top: 0; transform: rotate(-45deg); }

	/* Vollbild-Sheet unter der Kopfzeile */
	.nmw-mm .nmw-mm__sheet {
		display: none;
		position: fixed;
		left: 0;
		right: 0;
		top: var(--mm-top);
		bottom: 0;
		z-index: 99990;
		flex-direction: column;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		padding: 0 20px 28px;
		background: #fff;
		border-top: 1px solid var(--mm-line);
	}
	.nmw-mm.is-mobile-open .nmw-mm__sheet { display: flex; }

	/* Kurs-Karte oben */
	.nmw-mm .nmw-mm__mtop { display: block; padding-top: 22px; }
	.nmw-mm__mlabel {
		margin-bottom: .8em !important;
		font-family: var(--mm-font-strong);
		font-size: .7em;
		font-weight: 700;
		letter-spacing: .09em;
		text-transform: uppercase;
		color: var(--mm-muted);
	}

	.nmw-mm .nmw-mm__promo { flex: none; width: 100%; padding: 18px 20px; border-radius: 14px; }
	.nmw-mm .nmw-mm__eyebrow { display: none; }
	.nmw-mm .nmw-mm__promo-title { margin-bottom: .3em !important; font-size: 1.15em; color: var(--mm-accent); }
	.nmw-mm .nmw-mm__promo-text { margin-bottom: .9em !important; font-size: .82em; }
	.nmw-mm .nmw-mm__promo-actions { margin-top: 0; gap: .5em; }

	.nmw-mm .nmw-mm__promo .nmw-mm__btn {
		display: flex;
		align-items: center;
		justify-content: space-between;
		align-self: stretch;
		padding: 0;
		background: none;
		border-radius: 0;
		color: var(--mm-accent);
		font-size: .92em;
	}
	.nmw-mm .nmw-mm__promo .nmw-mm__btn:hover { background: none; color: var(--mm-accent-dark); }
	.nmw-mm .nmw-mm__promo .nmw-mm__btn .nmw-mm__arrow { display: none; }
	.nmw-mm .nmw-mm__promo .nmw-mm__btn .nmw-mm__mi { display: block; }

	/* Hauptliste */
	.nmw-mm .nmw-mm__list { display: block; margin-top: 18px; }
	.nmw-mm .nmw-mm__item { border-bottom: 1px solid var(--mm-line); }
	.nmw-mm .nmw-mm__item--cta { display: none; }

	.nmw-mm .nmw-mm__top {
		appearance: none;
		-webkit-appearance: none;
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		margin: 0;
		padding: 1.05em 2px;
		background: none;
		border: 0;
		border-radius: 0;
		cursor: pointer;
		text-align: left;
		font-family: var(--mm-font-strong);
		font-size: 1.2em;
		font-weight: 700;
		letter-spacing: 0;
		text-transform: none;
		color: var(--mm-ink);
	}
	.nmw-mm .nmw-mm__top::after { display: none; }
	.nmw-mm .nmw-mm__item.is-current > .nmw-mm__top { color: var(--mm-accent); }

	.nmw-mm .nmw-mm__chev { display: none; }
	.nmw-mm .nmw-mm__mi { display: block; flex: none; }
	.nmw-mm .nmw-mm__item--has-panel > .nmw-mm__top .nmw-mm__mi { color: var(--mm-accent); }

	/* Hilfe + Fuß */
	.nmw-mm .nmw-mm__help { display: block; margin-top: 34px; }
	.nmw-mm__help-text { margin-bottom: .9em !important; font-size: .85em; color: var(--mm-muted); }
	.nmw-mm__help-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
	.nmw-mm .nmw-mm__help-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		padding: .95em .6em;
		border: 1px solid #dedbe3;
		border-radius: 12px;
		background: #fff;
		color: var(--mm-ink);
		font-family: var(--mm-font-strong);
		font-size: .92em;
		font-weight: 700;
		text-align: center;
	}

	.nmw-mm .nmw-mm__foot { display: block; margin-top: auto; padding-top: 34px; font-size: .72em; line-height: 1.6; color: var(--mm-muted); }

	/* Untermenü = eigene Ansicht (Drill-down) */
	.nmw-mm.is-sub .nmw-mm__mtop,
	.nmw-mm.is-sub .nmw-mm__help,
	.nmw-mm.is-sub .nmw-mm__foot,
	.nmw-mm.is-sub .nmw-mm__list > .nmw-mm__item:not(.is-open) { display: none; }

	.nmw-mm.is-sub .nmw-mm__list { margin-top: 0; }
	.nmw-mm.is-sub .nmw-mm__item.is-open { border-bottom: 0; }
	.nmw-mm.is-sub .nmw-mm__item.is-open > .nmw-mm__top { display: none; }

	.nmw-mm .nmw-mm__panel { display: none; padding: 0; position: static; box-shadow: none; border: 0; }
	.nmw-mm .nmw-mm__item.is-open > .nmw-mm__panel { display: block; animation: none; }

	.nmw-mm .nmw-mm__mhead { display: block; padding-top: 20px; }
	.nmw-mm .nmw-mm__back {
		appearance: none;
		-webkit-appearance: none;
		display: inline-flex;
		align-items: center;
		gap: .6em;
		margin: 0;
		padding: .3em 0;
		background: none;
		border: 0;
		cursor: pointer;
		font-family: var(--mm-font-strong);
		font-size: .85em;
		font-weight: 700;
		color: var(--mm-accent);
	}
	.nmw-mm__mtitle { margin: .55em 0 .7em !important; font-family: var(--mm-font-strong); font-size: 2em; font-weight: 700; line-height: 1.1; color: var(--mm-ink); }

	.nmw-mm .nmw-mm__panel-inner { display: flex; flex-direction: column; max-width: none; margin: 0; padding: 0; }
	.nmw-mm .nmw-mm__promo { order: -1; margin: 0 0 8px; }
	.nmw-mm .nmw-mm__col { flex: none; padding: 0; border: 0; }
	.nmw-mm .nmw-mm__col + .nmw-mm__col { border: 0; }
	.nmw-mm .nmw-mm__col-title { margin: 1.6em 0 .3em !important; }

	.nmw-mm .nmw-mm__link {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: .9em 2px;
		border-bottom: 1px solid var(--mm-line);
		font-size: 1.02em;
		transform: none;
	}
	.nmw-mm .nmw-mm__link .nmw-mm__mi { color: #6d6874; }
	.nmw-mm .nmw-mm__link:hover,
	.nmw-mm .nmw-mm__link.is-current { transform: none; }

	.nmw-mm .nmw-mm__ptag { display: block; margin-top: 2.6em !important; font-size: .8em; color: var(--mm-muted); }

	html.nmw-mm-lock { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
	.nmw-mm *, .nmw-mm *::before, .nmw-mm *::after { animation: none !important; transition: none !important; }
}
