/**
 * rd-services — Leistungen (Services) Block
 * All class names are prefixed with "rd-" to prevent conflicts with existing theme styles.
 */

/* ── Block Root ── */
.rd-services {
	--rd-brand-green: #9cc329;
	--rd-brand-green-light: #afd738;
	--rd-brand-dark: #1f2933;
	--rd-brand-gray: #334155;
	--rd-brand-white: #ffffff;

	position: relative;
	overflow: hidden;
	padding: 180px 0 150px;
	background: #ffffff;
}

/* ── Inner Container ── */
.rd-services__inner {
	max-width: 1200px;
	margin: 0 auto;
}

/* ── Section Header ── */
.rd-services__header {
	text-align: center;
	margin-bottom: 72px;
}


.rd-services__title {
	font-family: "Inter", Arial, sans-serif;
	font-size: clamp(1.5625rem, 0.925rem + 2.2667vw, 2.625rem);
	font-weight: 400;
	line-height: 1.2;
	color: var(--rd-brand-dark);
}

.rd-services__title strong {
	font-weight: 700;
	color: var(--rd-brand-green);
}

.rd-services__title h1,
.rd-services__title h2,
.rd-services__title h3,
.rd-services__title h4 {
	margin-bottom: 0;
}

/* ── Service Rows (base layout) ── */
.rd-services__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
	margin-bottom: 72px;
}

/* ── Reverse layout (image right) ── */
.rd-services__row--reverse {
	direction: rtl;
}

.rd-services__row--reverse .rd-services__row-image,
.rd-services__row--reverse .rd-services__row-content {
	direction: ltr;
}

/* ── Stacked layout (centered, infographic) ── */
.rd-services__row--stacked {
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
	grid-template-columns: 1fr;
	margin-bottom: 72px;
}

.rd-services__row--stacked .rd-services__row-content {
	padding: 32px 0 0;
	text-align: center;
}

.rd-services__row--stacked .rd-services__row-desc {
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* ── Row Image ── */
.rd-services__row-image {
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rd-services__row-image img {
	display: block;
	width: 100%;
	height: 320px;
	object-fit: cover;
	object-position: top;
}

.rd-services__row--reverse .rd-services__row-image img {
	object-position: 80% 10%;
}

/* ── Row Content ── */
.rd-services__row-content {
	padding: 8px 0;
}

/* ── Number Badge ── */
.rd-services__row-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--rd-brand-green);
	color: var(--rd-brand-white);
	font-size: 1.1rem;
	font-weight: 700;
	font-family: "Inter", Arial, sans-serif;
	margin-bottom: 16px;
}

/* ── Row Title ── */
.rd-services__row-title {
	font-family: "Inter", Arial, sans-serif;
	font-size: clamp(1.25rem, calc(0.9rem + 1.2vw), 1.75rem);
	font-weight: 700;
	color: var(--rd-brand-dark);
	margin-bottom: 16px;
	line-height: 1.2;
}

/* ── Row Description ── */
.rd-services__row-desc {
	font-size: 0.95rem;
	color: var(--rd-brand-gray);
	line-height: 1.7;
	margin-bottom: 24px;
}

/* ── Row CTA Link ── */
.rd-services__row-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--rd-brand-green);
	text-decoration: none;
	font-family: "Inter", Arial, sans-serif;
	white-space: nowrap;
	transition: color 0.2s;
}

.rd-services__row-cta::after {
	content: "\2192";
	display: inline-block;
	font-size: 1.1em;
	line-height: 1;
	transition: transform 0.25s ease, color 0.25s ease;
}

.rd-services__row-cta:hover {
	color: #7da623;
}

.rd-services__row-cta:hover::after {
	transform: translateX(5px);
	color: #7da623;
}

/* ── Footer CTA ── */
.rd-services__cta {
	text-align: center;
	margin-top: 64px;
}

/* ── Bear Illustration (decorative) ── */
.rd-services__illustration {
	position: absolute;
	bottom: 0;
	left: -7px;
	pointer-events: none;
}

.rd-services__illustration img {
	display: block;
	width: 327px;
	height: auto;
	opacity: 0.85;
	transform: scaleX(-1);
}

@media screen and (max-width: 1200px) {
	.rd-services__illustration {
		display: none;
	}
	.rd-services__inner {
		padding: 0 24px;
	}
}
@keyframes fadeSlideUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.rd-services__row {
	opacity: 0;
	animation: none;
}

.rd-services__row.is-visible {
	animation: fadeSlideUp 0.6s ease-out forwards;
}

/* ── Responsive — Tablet / Mobile ── */
@media screen and (max-width: 768px) {
	.rd-services {
		padding: 100px 0 80px;
	}

	.rd-services__header {
		margin-bottom: 48px;
	}

	.rd-services__row {
		grid-template-columns: 1fr !important;
		gap: 24px !important;
		margin-bottom: 48px;
	}

	.rd-services__row--reverse {
		direction: ltr !important;
	}

	.rd-services__row--reverse .rd-services__row-image {
		order: -1;
	}

	.rd-services__row--stacked {
		max-width: 100% !important;
	}

	.rd-services__row-image img {
		height: auto !important;
	}

	.rd-services__row--stacked .rd-services__row-content {
		padding: 24px 0 0;
	}

	.rd-services__cta {
		margin-top: 40px;
	}
}

/* ── Responsive — Extra Small Mobile ── */
@media screen and (max-width: 470px) {
	.rd-services {
		padding: 80px 0 60px;
	}

	.rd-services__inner {
		padding: 0 16px;
	}

	.rd-services__row {
		margin-bottom: 36px;
	}

	.rd-services__cta {
		margin-top: 32px;
	}
}
