
html:where(:not([class^="m3d-"], [class*=" m3d-"], [class^="m3d-"] *, [class*=" m3d-"] *)) {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html:where(:not([class^="m3d-"], [class*=" m3d-"], [class^="m3d-"] *, [class*=" m3d-"] *)) {
		scroll-behavior: auto;
	}
}

body:where(:not([class^="m3d-"], [class*=" m3d-"], [class^="m3d-"] *, [class*=" m3d-"] *)) {
	margin: 0;
	background: var(--m3d-farbe-hintergrund);
	color: var(--m3d-farbe-text);
	font-family: var(--m3d-schrift-text);
	font-size: var(--m3d-groesse-text);
	line-height: var(--m3d-zeilenhoehe-text);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

[data-m3d-platz="kopf"]:where(:not([class^="m3d-"], [class*=" m3d-"], [class^="m3d-"] *, [class*=" m3d-"] *)) {
	position: sticky;
	top: 0;
	z-index: 10;
}

[data-m3d-platz="inhalt"]:where(:not([class^="m3d-"], [class*=" m3d-"], [class^="m3d-"] *, [class*=" m3d-"] *)) {
	flex: 1 0 auto;
}

.fuss:where(:not([class^="m3d-"], [class*=" m3d-"], [class^="m3d-"] *, [class*=" m3d-"] *)) {
	background: var(--m3d-farbe-akzent-dunkel);
	border-top: 6px solid var(--m3d-farbe-akzent);
}

/* Fuß: links der Name, rechts abgesetzt Service und Videos – mit Abstand zum Rand */
.fuss-spalten:where(:not([class^="m3d-"], [class*=" m3d-"], [class^="m3d-"] *, [class*=" m3d-"] *)) {
	width: min(100% - 2 * var(--m3d-rand), 96rem);
	margin-inline: auto;
	padding-block: var(--m3d-abstand-xl);
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: var(--m3d-abstand-l) clamp(4rem, 9vw, 11rem);
}

@media (max-width: 48rem) {
	.fuss-spalten:where(:not([class^="m3d-"], [class*=" m3d-"], [class^="m3d-"] *, [class*=" m3d-"] *)) {
		grid-template-columns: 1fr;
	}
}

/* Nach oben: Pfeil unten rechts, liegt über Inhalt und Fuß, aber unter dem Banner */
[data-m3d-platz="nachoben"]:where(:not([class^="m3d-"], [class*=" m3d-"], [class^="m3d-"] *, [class*=" m3d-"] *)) {
	position: relative;
	z-index: 15;
}

/* Ecke: Platz für das Zustimmungs-Banner (Fenster unten links), liegt über Inhalt und Fuß */
[data-m3d-platz="ecke"]:where(:not([class^="m3d-"], [class*=" m3d-"], [class^="m3d-"] *, [class*=" m3d-"] *)) {
	position: relative;
	z-index: 20;
}
