/* Mega-Menü study-board.de (com.amp.sbmegamenu) – Desktop ab 1025 px, nutzt die Style-Variablen (hell + dunkel). */
.sbMegaSource { display: none !important; }
.sbMega { display: none; }

@media (min-width: 1025px) {
	.mh-mainMenu .boxMenu > li.sbHasMega { position: relative; }
	.mh-mainMenu .boxMenu > li.sbHasMega > .boxMenuDepth1 { display: none !important; }
	.mh-mainMenu .boxMenu > li.sbHasMega > .boxMenuToggle[aria-expanded="true"] ~ .sbMega { display: block; }

	.sbMega {
		position: absolute;
		top: 100%;
		z-index: 30;
		background: var(--wcfContentBackground);
		border-top: 1px solid var(--wcfContentBorderInner);
		border-bottom: 1px solid var(--wcfContentBorderInner);
		box-shadow: 0 30px 60px -30px rgba(7, 11, 26, .35);
		animation: sbMegaIn 160ms cubic-bezier(.16, 1, .3, 1);
		cursor: default;
	}
	/* unsichtbare Brücke zwischen Menüpunkt und Header-Unterkante (Höhe setzt sbMegaMenu.js) */
	.sbMega::before {
		content: '';
		position: absolute;
		left: 0;
		right: 0;
		bottom: 100%;
		height: var(--sb-mega-gap, 0px);
	}
	@keyframes sbMegaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
	@media (prefers-reduced-motion: reduce) { .sbMega { animation: none; } }

	.sbMega__inner {
		max-width: var(--wcfLayoutMaxWidth, 1200px);
		margin: 0 auto;
		padding: 32px 20px 36px;
		display: grid;
		grid-template-columns: 280px 1fr;
		gap: 44px;
	}
	.sbMega__intro { border-right: 1px solid var(--wcfContentBorderInner); padding-right: 36px; }
	.sbMega__eyebrow {
		display: block;
		font-size: 12px;
		font-weight: 600;
		letter-spacing: .12em;
		text-transform: uppercase;
		color: var(--wcfContentLink);
		margin-bottom: 10px;
	}
	.sbMega__intro p {
		font-size: 20px;
		line-height: 1.3;
		font-weight: 600;
		color: var(--wcfContentHeadlineText, var(--wcfContentText));
		margin: 0 0 18px;
		white-space: normal;
	}
	a.sbMega__all { font-weight: 600; font-size: 14.5px; color: var(--wcfContentLink) !important; }
	a.sbMega__all:hover { text-decoration: underline; }

	.sbMega__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 18px; }
	.sbMega__grid a {
		display: flex !important;
		gap: 14px;
		align-items: flex-start;
		padding: 11px 12px !important;
		border-radius: 10px;
		color: var(--wcfContentText) !important;
		white-space: normal !important;
		min-height: 0 !important;
		background: transparent !important;
		text-decoration: none !important;
		transition: background .2s ease;
	}
	.sbMega__grid a:hover,
	.sbMega__grid a:focus-visible { background: var(--wcfContentContainerBackground, rgba(10, 101, 150, .06)) !important; }
	.sbMega__grid a:hover strong { color: var(--wcfContentLink); }
	.sbMega__icon {
		flex-shrink: 0;
		width: 38px;
		height: 38px;
		border-radius: 10px;
		display: flex;
		align-items: center;
		justify-content: center;
		background: rgba(10, 101, 150, .08);
		border: 1px solid rgba(10, 101, 150, .18);
		color: var(--wcfContentLink);
	}
	.sbMega__icon svg { width: 18px; height: 18px; }
	.sbMega__grid strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
	.sbMega__grid small { display: block; font-size: 13px; line-height: 1.45; color: var(--wcfContentDimmedText); }
	.boxMenuDepth1 .sbMega { display: none !important; }
}
