
html:where(:not([class^="m3d-"], [class*=" m3d-"], [class^="m3d-"] *, [class*=" m3d-"] *)) {
	background: var(--m3d-farbe-hintergrund);
}

body:where(:not([class^="m3d-"], [class*=" m3d-"], [class^="m3d-"] *, [class*=" m3d-"] *)) {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	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);
}

[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;
}

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

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