/*
 * MC Website – frontend helpers that every site gets.
 */

/*
 * Never scroll sideways: anything that sticks out on the right (an
 * off-canvas menu, an element wider than a phone screen) is cut at the
 * screen edge instead of widening the page. "clip" (unlike "hidden")
 * creates no scroll container, so position: sticky keeps working.
 */
html {
	overflow-x: hidden;
}

@supports (overflow: clip) {
	html {
		overflow-x: clip;
	}
}

body {
	overflow-x: clip;
}

/* RaiseNow form ([mc_raisenow]) */
.mc-raisenow {
	width: 100%;
	min-height: 120px;
}

.mc-raisenow--platzhalter {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 360px;
	padding: var(--abstand-l, 24px);
	border: 2px dashed color-mix(in srgb, currentColor 25%, transparent);
	border-radius: var(--radius-s, 8px);
	text-align: center;
	opacity: 0.7;
}

.mc-raisenow-link {
	font-weight: 700;
}

/* Sticky sub navigation (Bereiche einer Seite). */
.mc-unternavigation {
	position: sticky;
	top: var(--mc-unternavigation-top, 0px);
	z-index: 20;
}

@media (prefers-reduced-motion: no-preference) {
	html:has(.mc-unternavigation) {
		scroll-behavior: smooth;
	}
}
