/* =============================================
   Case Study Process — taubenloft/case-study-process
   Figma 81:7791  "Strukturierter Projektablauf"
   Header (eyebrow left + heading right) + numbered accordion rows.
   ============================================= */

.tl-cs-process {
	background: #eaebe6;
	color: #333a42;
	font-family: 'Nunito Sans', 'Nunito Sans Fallback', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	padding: 96px 24px;
}
.tl-cs-process__container {
	max-width: 1200px;
	margin: 0 auto;
}

/* ── Header ─────────────────────────────────── */
.tl-cs-process__titles {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 32px;
	padding-bottom: 64px;
	border-bottom: 0.5px solid rgba(51, 58, 66, 0.5);
}
.tl-cs-process__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 16px;
	line-height: 22px;
	font-weight: 500;
	text-transform: uppercase;
	color: #333a42;
}
.tl-cs-process__dot {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	border-radius: 50%;
	background: #333a42;
}
.tl-cs-process__heading {
	margin: 0;
	font-size: 36px;
	line-height: 43px;
	font-weight: 500;
	text-align: right;
	color: #333a42;
}

/* ── Accordion list ─────────────────────────── */
.tl-cs-process__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tl-cs-process__item {
	border-bottom: 0.5px solid rgba(51, 58, 66, 0.5);
}
.tl-cs-process__details {
	padding: 0;
}
.tl-cs-process__summary {
	display: flex;
	align-items: center;
	gap: 32px;
	padding: 32px 0;
	cursor: pointer;
	list-style: none;
}
.tl-cs-process__summary::-webkit-details-marker { display: none; }
.tl-cs-process__num {
	font-size: 48px;
	line-height: 1;
	font-weight: 500;
	color: #333a42;
	flex: 0 0 auto;
	min-width: 72px;
}
.tl-cs-process__title {
	font-size: 24px;
	line-height: 29px;
	font-weight: 500;
	color: #333a42;
	flex: 1 1 auto;
}
/* + / − icon — identical to the problem + faq accordions: 24×24 hit area,
   14×1.5px bars, '+' via rotated ::after, animates to '−' on open. */
.tl-cs-process__icon {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	position: relative;
}
.tl-cs-process__icon::before,
.tl-cs-process__icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 1.5px;
	background: #333a42;
	transform: translate(-50%, -50%);
	transition: transform 0.25s ease;
	transform-origin: center;
}
.tl-cs-process__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}
.tl-cs-process__details[open] .tl-cs-process__icon::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

/* ── Open panel: body + optional image ──────── */
.tl-cs-process__panel {
	display: flex;
	align-items: flex-start;
	gap: 48px;
	padding: 0 0 32px 104px;   /* indent under the number column */
}
.tl-cs-process__body {
	flex: 1 1 auto;
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
	color: #333a42;
}
.tl-cs-process__body > * { margin: 0 0 12px; }
.tl-cs-process__body > *:last-child { margin-bottom: 0; }
.tl-cs-process__body ul { margin: 0 0 12px; padding-left: 20px; list-style: disc; }
.tl-cs-process__body li { margin: 0 0 4px; }
.tl-cs-process__media {
	flex: 0 0 210px;
	width: 210px;
}
.tl-cs-process__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

/* ── Mobile ≤767 ────────────────────────────── */
@media (max-width: 767px) {
	.tl-cs-process { padding: 48px 20px; }
	.tl-cs-process__titles {
		flex-direction: column;
		gap: 16px;
		padding-bottom: 32px;
	}
	.tl-cs-process__eyebrow { font-size: 14px; line-height: 19.1px; }
	.tl-cs-process__heading { font-size: 24px; line-height: 28.8px; text-align: left; }
	.tl-cs-process__summary { gap: 16px; padding: 24px 0; }
	.tl-cs-process__num { font-size: 32px; min-width: 48px; }
	.tl-cs-process__title { font-size: 20px; line-height: 24px; }
	.tl-cs-process__panel {
		flex-direction: column;
		gap: 20px;
		padding: 0 0 24px 0;
	}
	.tl-cs-process__media { flex-basis: auto; width: 100%; }
}

/* ── Optional CTA button below the steps (right-aligned) ─────────────── */
.tl-cs-process__cta-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 64px;
}
.tl-cs-process__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 50px;
    background: #333a42;
    color: #eaebe6 !important;
    text-decoration: none;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    white-space: nowrap;
    transition: background 0.2s;
}
.tl-cs-process__cta:hover,
.tl-cs-process__cta:focus {
    background: #4a5159;
    color: #eaebe6 !important;
}
.tl-cs-process__cta-icon {
    flex: 0 0 14px;
    margin-left: -2px;
    transition: transform 0.25s ease-out;
}
.tl-cs-process__cta:hover .tl-cs-process__cta-icon,
.tl-cs-process__cta:focus .tl-cs-process__cta-icon {
    transform: translate(2px, 2px);
}

@media (max-width: 767px) {
    .tl-cs-process__cta-wrap { margin-top: 40px; }
    .tl-cs-process__cta { align-self: stretch; justify-content: center; width: 100%; }
}
