/* =============================================
   Case Study Body — taubenloft/case-study-body
   Figma 81:7789
   Alternating text + image rows. container 1200 · cols 584/584 gap 32 ·
   row gap 64 · heading fs24/600 · body fs16/400 · image 584×600
   ============================================= */

.tl-cs-body {
	background: #eaebe6;
	color: #333a42;
	font-family: 'Nunito Sans', 'Nunito Sans Fallback', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	padding: 96px 24px;
}

/* In Figma both body rows live in ONE section (body frame, row gap 64). On the
   site they are two separate blocks, so the touching 96+96 padding would give a
   192px gap. Collapse consecutive blocks to a 64px gap (32+32) while the first
   keeps its 96px top and the last its 96px bottom. */
.tl-cs-body:has(+ .tl-cs-body) { padding-bottom: 32px; }
.tl-cs-body + .tl-cs-body { padding-top: 32px; }

.tl-cs-body__container {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 64px;
}

/* ── Row ────────────────────────────────────── */
.tl-cs-body__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	align-items: start;
}
/* image-right (default): text | image */
.tl-cs-body__row--image-right .tl-cs-body__text  { order: 1; padding-right: 32px; }
.tl-cs-body__row--image-right .tl-cs-body__media { order: 2; }
/* image-left (mirror): image | text */
.tl-cs-body__row--image-left .tl-cs-body__media { order: 1; }
.tl-cs-body__row--image-left .tl-cs-body__text  { order: 2; padding-left: 32px; }

/* ── Text column ────────────────────────────── */
.tl-cs-body__text {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.tl-cs-body__eyebrow {
	margin: 0;
	font-size: 20px;
	line-height: 27px;
	font-weight: 500;
	text-transform: uppercase;
	color: #333a42;
}
.tl-cs-body__heading {
	margin: 0;
	font-size: 24px;
	line-height: 29px;
	font-weight: 600;
	letter-spacing: 0;
	color: #333a42;
}
.tl-cs-body__rich {
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
	color: #333a42;
}
.tl-cs-body__rich > * { margin: 0 0 16px; }
.tl-cs-body__rich > *:last-child { margin-bottom: 0; }
.tl-cs-body__rich ul {
	margin: 0 0 16px;
	padding-left: 20px;
	list-style: disc;
}
.tl-cs-body__rich li { margin: 0 0 4px; }
.tl-cs-body__rich a { color: #333a42; text-decoration: underline; }

/* ── Image column ───────────────────────────── */
.tl-cs-body__media {
	width: 100%;
	aspect-ratio: 584 / 600;
	overflow: hidden;
	border-radius: 4px;
}
.tl-cs-body__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ── Mobile ≤767 ────────────────────────────── */
@media (max-width: 767px) {
	.tl-cs-body { padding: 48px 20px; }
	/* Figma mobile reverses the row order (Ausgangssituation before Lösung) */
	.tl-cs-body__container {
		gap: 64px;
		flex-direction: column-reverse;
	}
	.tl-cs-body__row {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	/* stack: text on top, image below — both variants (Figma mobile) */
	.tl-cs-body__row .tl-cs-body__text  { order: 1; padding: 0; }
	.tl-cs-body__row .tl-cs-body__media { order: 2; padding: 0; aspect-ratio: 408 / 600; }
	.tl-cs-body__eyebrow { font-size: 14px; line-height: 19.1px; }
	.tl-cs-body__heading { font-size: 24px; line-height: 28.8px; }
}

/* Section heading now lives inside the rich text (format → Heading 2/3) */
.tl-cs-body__rich h2 {
	margin: 0 0 16px;
	font-size: 24px;
	line-height: 29px;
	font-weight: 600;
	color: #333a42;
}
.tl-cs-body__rich h3 {
	margin: 0 0 12px;
	font-size: 20px;
	line-height: 27px;
	font-weight: 600;
	color: #333a42;
}
@media (max-width: 767px) {
	.tl-cs-body__rich h2 { font-size: 24px; line-height: 28.8px; }
}
