.refsec { padding-top: 28px; }

.refx { cursor: pointer; }
.refx[hidden] { display: none; }
.refx .in h2 {
	font-size: 20px;
	font-weight: 900;
	line-height: 1.2;
}

.refempty {
	margin-top: 20px;
	font-size: 15px;
	color: var(--mut);
}
.refempty[hidden] { display: none; }

.refhinweis {
	margin-top: 24px;
	font-size: 13.5px;
	color: var(--mut);
}

.rmodal {
	position: fixed;
	inset: 0;
	z-index: 210;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: var(--wp--preset--color--overlay);
	background: color-mix(in srgb, var(--wp--preset--color--overlay) 58%, transparent);
}
.rmodal:target,
.rmodal.show { display: flex; }

.rmodalin {
	background: var(--card);
	border-radius: var(--wp--custom--radius--overlay);
	max-width: 900px;
	width: 100%;
	max-height: 92vh;
	overflow: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
}

.rmodal .popx {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	text-decoration: none;
}

.rbild {
	position: relative;
	flex: none;
}

.rbild-video { background: var(--wp--custom--ui--flaeche-bild); }
.rbild-video .vidbox,
.rbild-video .vidplayer {
	height: min(52vh, 440px);
	width: 100%;
	object-fit: cover;
}

.rimg {
	display: flex;
	height: min(52vh, 440px);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	background: var(--wp--custom--ui--flaeche-bild);
	scrollbar-width: none;
}
.rimg::-webkit-scrollbar { display: none; }
.rslide {
	flex: 0 0 100%;
	scroll-snap-align: center;
	background-size: cover;
	background-position: center;
}

.rnav {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 16px;
	pointer-events: none;
}
.rnav[hidden] { display: none; }
.rnav button {
	pointer-events: auto;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: none;
	background: var(--wp--preset--color--white);
	background: color-mix(in srgb, var(--wp--preset--color--white) 94%, transparent);
	color: var(--ink);
	font-family: inherit;
	font-size: 22px;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
}

.rcount {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 14px;
	background: var(--wp--preset--color--overlay);
	background: color-mix(in srgb, var(--wp--preset--color--overlay) 78%, transparent);
	color: var(--wp--preset--color--white);
	font-size: 12px;
	font-weight: 900;
	border-radius: 30px;
	padding: 6px 14px;
}
.rcount[hidden] { display: none; }

.rbody {
	overflow: auto;
	padding: 30px 34px 34px;
}
.rbody h3 {
	font-size: 24px;
	font-weight: 900;
	letter-spacing: -0.5px;
}
.rmeta {
	display: flex;
	gap: 10px;
	margin: 14px 0 12px;
	flex-wrap: wrap;
}
.rmeta span {
	display: inline-block;
	background: var(--wp--custom--ui--flaeche-hell);
	color: var(--ink);
	border-radius: 30px;
	padding: 6px 14px;
	font-size: 12.5px;
	font-weight: 900;
}
.rmeta span.k {
	background: var(--blue);
	color: var(--wp--preset--color--white);
}
.rbody p {
	font-size: 14.5px;
	color: var(--mut);
}
.rbody .rhinweis {
	margin-top: 10px;
	font-size: 13.5px;
}
.rbody .rannot { margin-top: 12px; }
.rbody .btn {
	margin-top: 20px;
	padding: 13px 26px;
	font-size: 14px;
}

@media (max-width: 700px) {
	.rmodal { padding: 12px; }
	.rimg { height: min(38vh, 260px); }
	.rbody { padding: 24px 22px 26px; }
	.rbody h3 { font-size: 21px; }
}

.reffilter {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 28px;
}
.reffilter .annot { margin-left: 6px; }

.reffilter .refleiste-rahmen {
	--refleiste-rand: calc(var(--wp--custom--gutter) + 24px);
	position: relative;
	margin: 0 calc(-1 * var(--wp--custom--gutter));
}
.reffilter .refleiste {
	position: relative;
	z-index: 1;
	display: flex;
	gap: 4px;
	margin: -4px 0;
	padding: 4px var(--wp--custom--gutter);
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}
.reffilter .refleiste::-webkit-scrollbar { display: none; }

.reffilter .kann-rechts .refleiste {
	-webkit-mask-image: linear-gradient(to left, transparent, var(--ink) var(--refleiste-rand));
	        mask-image: linear-gradient(to left, transparent, var(--ink) var(--refleiste-rand));
}
.reffilter .kann-links .refleiste {
	-webkit-mask-image: linear-gradient(to right, transparent, var(--ink) var(--refleiste-rand));
	        mask-image: linear-gradient(to right, transparent, var(--ink) var(--refleiste-rand));
}
.reffilter .kann-links.kann-rechts .refleiste {
	-webkit-mask-image: linear-gradient(to right, transparent, var(--ink) var(--refleiste-rand), var(--ink) calc(100% - var(--refleiste-rand)), transparent);
	        mask-image: linear-gradient(to right, transparent, var(--ink) var(--refleiste-rand), var(--ink) calc(100% - var(--refleiste-rand)), transparent);
}

.reffilter .reffilter-pfeil {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: -20px 0 0;
	padding: 0;
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--custom--ui--flaeche-hell);
	color: var(--ink);
	font: inherit;
	cursor: pointer;
	-webkit-appearance: none;
	        appearance: none;
}
.reffilter .reffilter-pfeil.zurueck { left: 4px; }
.reffilter .reffilter-pfeil.vor { right: 4px; }
.reffilter .reffilter-pfeil svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) and (min-width: 701px) {
	.reffilter .kann-links .reffilter-pfeil.zurueck,
	.reffilter .kann-rechts .reffilter-pfeil.vor { display: flex; }
	.reffilter .reffilter-pfeil:hover {
		background: var(--wp--preset--color--primary-soft);
		color: var(--blue);
	}
}

.reffilter .fchip {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	background: transparent;
	color: var(--wp--custom--ui--ink-nav);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
}
.reffilter .refleiste .fchip {
	min-height: 40px;
	padding: 0 12px;
}
.reffilter .refleiste .fchip.on,
.reffilter .refseg .fchip.on {
	background: var(--green);
	color: var(--ink);
}

@supports ((-webkit-mask-image: none) or (mask-image: none)) {
	.reffilter .refleiste .fchip.on::before,
	.reffilter .refseg .fchip.on::before {
		content: "";
		flex: none;
		width: 14px;
		height: 14px;
		background: currentColor;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
		        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	}
}

.reffilter .refseg {
	display: inline-flex;
	flex: none;
	gap: 2px;
	padding: 4px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--custom--ui--flaeche-hell);
}
.reffilter .refseg .fchip {
	min-height: 36px;
	padding: 0 16px;
}

@media (hover: hover) {
	.reffilter .refleiste .fchip:not(.on):hover {
		background: var(--wp--preset--color--primary-soft);
		color: var(--blue);
	}
	.reffilter .refseg .fchip:not(.on):hover {
		background: var(--card);
		color: var(--blue);
	}
}

.reffilter .reffilter-fuss {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 24px;
}
.reffilter .reftreffer {
	margin: 0;
	padding: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--mut);
	white-space: nowrap;
}

.reffilter ~ .refempty {
	margin-top: 0;
	padding: 26px 24px;
	background: var(--wp--custom--ui--flaeche-hell);
	color: var(--mut);
	font-size: 15.5px;
	line-height: 1.6;
}

.refmehr {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-top: 48px;
	text-align: center;
}
.refmehr[hidden] { display: none; }
.refmehr .refmehr-stand {
	margin: 0;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--mut);
}

.refmehr .refmehr-balken {
	display: block;
	width: 168px;
	max-width: 100%;
	height: 3px;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--line);
}
.refmehr .refmehr-fuellung {
	display: block;
	height: 100%;
	background: var(--blue);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform var(--dauer-lang) var(--kurve);
}
.refmehr .refmehr-knopf {
	margin-top: 8px;
	max-width: 100%;
	padding: 14px 32px;
	border: 1.5px solid var(--wp--custom--ui--line-strong);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--card);
	color: var(--blue);
	font: inherit;
	font-size: 15px;
	font-weight: 900;
	cursor: pointer;
	-webkit-appearance: none;
	        appearance: none;
	-webkit-tap-highlight-color: transparent;
	transition:
		color var(--dauer) var(--kurve),
		background-color var(--dauer) var(--kurve),
		border-color var(--dauer) var(--kurve),
		transform var(--dauer) var(--kurve);
}
@media (hover: hover) {
	.refmehr .refmehr-knopf:hover {
		background: var(--wp--custom--ui--hover-soft);
		border-color: var(--blue);
	}
}
@media (prefers-reduced-motion: no-preference) {
	.refmehr .refmehr-knopf:active { transform: translateY(1px); }
}

@keyframes refein {
	from { opacity: 0; transform: translateY(12px); }
}
@media (prefers-reduced-motion: no-preference) {
	.refband .refx.refx-neu { animation: refein var(--dauer-lang) var(--kurve) both; }
}

@media (max-width: 700px) {
	.reffilter { gap: 12px; margin-bottom: 24px; }
	.reffilter .refleiste .fchip { min-height: 44px; }

	.reffilter .reffilter-fuss {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}
	.reffilter .refseg {
		order: -1;
		display: flex;
	}
	.reffilter .refseg .fchip {
		flex: 1 1 auto;
		min-height: 40px;
		padding: 0 8px;
	}

	.refmehr { margin-top: 40px; }
	.refmehr .refmehr-knopf { padding: 14px 24px; }
}
