/* QRIX Fullpage – Frontend */

/* Seite mit Vollbild-Abschnitten: Einrasten (Touch), fixierter Header */
html:has(.is-style-vollbild, .is-style-rundgang) {
	scroll-snap-type: y mandatory;
}
@media (prefers-reduced-motion: no-preference) {
	html:has(.is-style-vollbild, .is-style-rundgang),
	.wp-block-group.is-style-rundgang {
		scroll-behavior: smooth;
	}
}
/* Fixierter Header: per Einstellung, Inline-CSS aus PHP */
html:has(.is-style-vollbild, .is-style-rundgang) .wp-site-blocks > footer {
	scroll-snap-align: end;
}
html:has(.is-style-vollbild, .is-style-rundgang) main {
	margin-top: 0 !important;
}

/* Mit Maus/Trackpad steuert das Skript; CSS-Einrasten würde die Animation stören */
@media (hover: hover) and (pointer: fine) {
	html.fp-aktiv,
	html.fp-aktiv .wp-block-group.is-style-rundgang {
		scroll-snap-type: none !important;
	}
}

/* Vollbild-Abschnitt (auch der Rundgang ist ein Abschnitt) */
.is-style-vollbild,
.is-style-rundgang {
	height: 100vh;
	height: 100svh;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	box-sizing: border-box;
	margin-block: 0 !important;
}
.is-style-vollbild {
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow-y: auto;
}
.is-style-vollbild > * {
	width: 100%;
	box-sizing: border-box;
}

/* Horizontaler Rundgang: jede Untergruppe ist eine Vollbild-Station */
.wp-block-group.is-style-rundgang {
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: thin;
	padding: 0 !important;
}
.wp-block-group.is-style-rundgang > * {
	flex: 0 0 100%;
	max-width: none !important;
	margin: 0 !important;
	height: 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow-y: auto;
}
.wp-block-group.is-style-rundgang > * > * {
	width: 100%;
	box-sizing: border-box;
}
.wp-block-group.is-style-rundgang:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: -3px;
}

/* Vor/Zurück-Pfeile (vom Skript eingefügt) */
.fp-pfeile {
	position: absolute;
	max-width: none !important;
	margin: 0 !important;
	pointer-events: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 1rem;
	box-sizing: border-box;
	z-index: 50;
}
.fp-pfeil {
	pointer-events: auto;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	border: 1px solid currentColor;
	background: rgba(255, 255, 255, 0.85);
	color: #111;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}
.fp-pfeil:disabled {
	opacity: 0;
	pointer-events: none;
}
.fp-pfeil:focus-visible {
	outline: 3px solid #111;
	outline-offset: 3px;
}
@media (hover: none) {
	.fp-pfeile {
		display: none;
	}
}
