/*
 * KDR — Homepage "Erleben Sie diesen Ort" + "Schwerpunkte" section
 * (Startseite, Group 260 / Sektion 6). Loaded by the kdr child theme
 * (see functions.php). Centered heading/copy/button above a
 * horizontally-paged row of 5 cards (Besuchen, Mitleben, Mitarbeiten,
 * Mitwirken, Eintreten) — prev/next arrows page one card at a time,
 * looping at both ends. Behavior lives in kdr-erleben-slider.js.
 * Targeted via CSS classes set on the Containers/widgets in Elementor's
 * Advanced tab.
 */

.kdr-erleben-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	text-align: center;
}

.kdr-erleben-heading .elementor-heading-title {
	line-height: 0.86 !important;
	/* Figma breaks this heading after "Sie" — cap the width to force the
	   same natural wrap instead of running onto one line. */
	max-width: 320px;
}

.kdr-erleben-body {
	max-width: 588px;
}

.kdr-erleben-button {
	margin-top: 8px;
}

.kdr-page-slider {
	width: 100%;
	margin-top: 40px;
}

.kdr-page-viewport {
	overflow: hidden;
	width: 100%;
	max-width: 1300px;
	margin: 0 auto;
	padding: 60px 0;
	margin-top: -60px;
	margin-bottom: -60px;
}

.kdr-page-track {
	display: flex;
	align-items: center;
	gap: 24px;
	transition: transform 0.5s ease;
	will-change: transform;
}

.kdr-page-card {
	position: relative;
	overflow: hidden;
	flex: 0 0 auto;
	width: 330.385px;
	height: 347.774px;
	border-radius: 50px;
	box-shadow: 0 40px 52.2px -11px rgba(41, 54, 19, 0.3);
	background-size: cover;
	background-position: center;
}

.kdr-page-card-text {
	position: absolute !important;
	left: 26.86px;
	right: 26.86px;
	top: 26%;
	z-index: 2;
}

.kdr-page-card-title,
.kdr-page-card-title .elementor-heading-title {
	color: #fcfbf2 !important;
	font-size: 25px !important;
	line-height: 1.2 !important;
	text-shadow: 0 8px 16px rgba(41, 54, 19, 0.35);
	margin: 0 0 12px;
}

.kdr-page-card-body,
.kdr-page-card-body p {
	color: #fcfbf2 !important;
	font-size: 18px;
	line-height: 1.4;
	text-shadow: 0 8px 16px rgba(41, 54, 19, 0.35);
	margin: 0;
}

.kdr-page-nav {
	display: flex;
	justify-content: flex-end;
	max-width: 1300px;
	margin: 16px auto 0;
	gap: 20px;
}

.kdr-page-prev,
.kdr-page-next,
.kdr-page-prev *,
.kdr-page-next * {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	color: #6c1434 !important;
	text-decoration: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.kdr-page-prev,
.kdr-page-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
	user-select: none;
}

.kdr-page-prev:hover,
.kdr-page-next:hover,
.kdr-page-prev:hover *,
.kdr-page-next:hover * {
	opacity: 0.7;
}

.kdr-page-prev:focus,
.kdr-page-next:focus,
.kdr-page-prev:active,
.kdr-page-next:active,
.kdr-page-prev:focus *,
.kdr-page-next:focus *,
.kdr-page-prev:active *,
.kdr-page-next:active * {
	background: transparent !important;
	color: #6c1434 !important;
	box-shadow: none !important;
}

.kdr-page-prev:focus-visible,
.kdr-page-next:focus-visible {
	outline: 2px solid rgba(108, 20, 52, 0.4);
	outline-offset: 3px;
}

@media (max-width: 767px) {
	.kdr-page-card {
		width: 260px;
		height: 280px;
	}
}
