/* Menüpunkt mit Mega-Menü braucht einen Bezugsrahmen für das Panel. */
.mbmm-has-mega {
	position: relative;
}

.mbmm-toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem 0.25rem;
	color: inherit;
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
}

.mbmm-toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.mbmm-caret {
	width: 10px;
	height: 7px;
	margin-left: 0.25rem;
	transition: transform 0.15s ease;
}

.mbmm-has-mega.mbmm-open .mbmm-caret {
	transform: rotate(180deg);
}

.mbmm-panel {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 100;
	min-width: 320px;
	max-width: 90vw;
	background: #fff;
	color: #1e1e1e;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	border-radius: 4px;
	padding: 1.5rem;
}

.mbmm-panel[hidden] {
	display: none;
}

.mbmm-panel-inner {
	display: flow-root;
}

.mbmm-panel-inner img {
	max-width: 100%;
	height: auto;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Einfache mobile Grundlage - als Erweiterungspunkt gedacht (siehe Anleitung). */
@media (max-width: 782px) {
	.mbmm-has-mega {
		position: static;
	}

	.mbmm-panel {
		position: static;
		width: 100%;
		max-width: none;
		box-shadow: none;
		border-top: 1px solid rgba(0, 0, 0, 0.1);
	}
}
