/* ================================================================
   ESF Timeline – Frontend Styles
   ================================================================ */

.esf-timeline {
	position: relative;
	padding: 60px 0 !important;
	list-style: none;
	margin: 0;
}

/* Zentrale vertikale Linie */
.esf-timeline::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 2px;
	background: #f5d000;
	transform: translateX(-50%);
}

/* ── Item ──────────────────────────────────────────────────────── */

.esf-tl-item {
	display: flex;
	align-items: center;
	position: relative;
	margin-bottom: 80px;
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.esf-tl-item:last-child {
	margin-bottom: 0;
}

.esf-tl-item.esf-tl-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.esf-tl-item {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ── Side (Bild) ───────────────────────────────────────────────── */

.esf-tl-side {
	width: 50%;
	flex-shrink: 0;
}

.esf-tl-side img {
	display: block;
	max-width: 180px;
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
}

/* ── Center (Punkt auf der Linie) – absolut positioniert ────────── */

.esf-tl-center {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1;
}

.esf-tl-point {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #f5d000;
}

/* ── Content (Text) ────────────────────────────────────────────── */

.esf-tl-content {
	width: 50%;
	flex-shrink: 0;
	color: #ffffff;
}

.esf-tl-step {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: #f5d000;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.esf-tl-title {
	font-size: 1.5rem;
	font-weight: 300;
	color: #ffffff;
	margin: 0 0 12px;
	line-height: 1.2;
}

.esf-tl-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.esf-tl-title a:hover {
	color: #f5d000;
}

.esf-tl-text {
	font-size: 1rem;
	color: #cccccc;
	line-height: 1.6;
	margin: 0;
}

/* ── Obverse: Bild links, Text rechts ──────────────────────────── */

.esf-tl-obverse .esf-tl-side {
	display: flex;
	justify-content: flex-end;
	padding-right: 40px;
}

.esf-tl-obverse .esf-tl-content {
	padding-left: 40px;
}

/* ── Reverse: Text links, Bild rechts ──────────────────────────── */

.esf-tl-reverse {
	flex-direction: row-reverse;
}

.esf-tl-reverse .esf-tl-side {
	display: flex;
	justify-content: flex-start;
	padding-left: 40px;
}

.esf-tl-reverse .esf-tl-content {
	padding-right: 40px;
	text-align: right;
}

/* ── Mobile (≤ 768px) ──────────────────────────────────────────── */

@media (max-width: 768px) {
	.esf-timeline::before {
		display: none;
	}

	.esf-tl-item,
	.esf-tl-reverse {
		flex-direction: column;
		align-items: flex-start;
		margin-bottom: 60px;
	}

	.esf-tl-side,
	.esf-tl-content {
		width: 100%;
		padding: 0 !important;
	}

	.esf-tl-side {
		display: flex;
		justify-content: center;
		margin-bottom: 24px;
	}

	.esf-tl-center {
		display: none;
	}

	.esf-tl-reverse .esf-tl-content {
		text-align: left;
	}
}
