/* ===== CC Zeitstrahl — gekapselt unter .ecnc-timeline-section ===== */
.ecnc-timeline-section {
	box-sizing: border-box;
	font-family: 'Poppins', sans-serif;
	color: #1a1a1a;
	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 1rem;
	line-height: 1.55;
}
.ecnc-timeline-section *,
.ecnc-timeline-section *::before,
.ecnc-timeline-section *::after { box-sizing: border-box; }

.ecnc-timeline-section .ecnc-tl-title {
	font-family: 'Poppins', sans-serif;
	font-size: clamp(28px, 3.4vw, 42px) !important;
	font-weight: 800 !important;
	color: #1C244B !important;
	margin: 0 0 .4rem;
	letter-spacing: -0.01em;
	text-align: center;
}
.ecnc-timeline-section .ecnc-tl-subtitle {
	font-family: inherit;
	font-size: 14px;
	color: #64748b;
	margin: 0 0 2.5rem;
	text-align: center;
}

/* Timeline-Container — horizontales Grid */
.ecnc-timeline-section .ecnc-tl-wrapper {
	position: relative;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
	padding: 0 0 .5rem;
}

/* Horizontale Linie auf Höhe der Marker */
.ecnc-timeline-section .ecnc-tl-wrapper::before {
	content: "";
	position: absolute;
	top: 26px;
	left: var(--ecnc-edge, 8.33%);
	right: var(--ecnc-edge, 8.33%);
	height: 2px;
	background: #1C244B;
	opacity: 0.15;
	z-index: 0;
}

/* Einzelner Step */
.ecnc-timeline-section .ecnc-tl-step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* Marker oben in der Spalte */
.ecnc-timeline-section .ecnc-tl-marker {
	position: relative;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #1C244B;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	margin-bottom: 14px;
	transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
}
.ecnc-timeline-section .ecnc-tl-step:hover .ecnc-tl-marker {
	background: #1C244B;
	transform: scale(1.08);
	box-shadow: 0 4px 14px rgba(28, 36, 75, 0.22);
}

.ecnc-timeline-section .ecnc-tl-marker svg {
	width: 22px;
	height: 22px;
	stroke: #1C244B;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: stroke .3s ease;
}
.ecnc-timeline-section .ecnc-tl-step:hover .ecnc-tl-marker svg {
	stroke: #fff;
}

/* Content Card unter dem Marker */
.ecnc-timeline-section .ecnc-tl-card {
	width: 100%;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 14px 14px;
	transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
	position: relative;
}
.ecnc-timeline-section .ecnc-tl-card:hover {
	transform: translateY(-3px);
	border-color: #1C244B;
	box-shadow: 0 6px 18px rgba(28, 36, 75, 0.1);
}

/* Step-Nummer */
.ecnc-timeline-section .ecnc-tl-number {
	font-family: inherit;
	font-size: 11px;
	font-weight: 600;
	color: #1C244B;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 4px;
	opacity: 0.65;
}

.ecnc-timeline-section .ecnc-tl-heading {
	font-family: 'Poppins', sans-serif;
	font-size: 15px !important;
	font-weight: 800 !important;
	color: #1C244B !important;
	margin: 0 0 6px;
	letter-spacing: -0.005em;
	line-height: 1.3;
}

.ecnc-timeline-section .ecnc-tl-text {
	font-family: inherit;
	font-size: 13px;
	color: #475569;
	line-height: 1.5;
	margin: 0;
	text-align: left;
}

/* ===== Tablet: 3 Spalten × 2 Reihen ===== */
@media (max-width: 1024px) and (min-width: 769px) {
	.ecnc-timeline-section .ecnc-tl-wrapper {
		/* !important, da die Spaltenzahl per Inline-Style dynamisch gesetzt wird */
		grid-template-columns: repeat(3, 1fr) !important;
		row-gap: 2rem;
	}
	.ecnc-timeline-section .ecnc-tl-wrapper::before {
		display: none;
	}
}

/* ===== Mobile: vertikales Layout ===== */
@media (max-width: 768px) {
	.ecnc-timeline-section {
		margin: 1.5rem auto;
	}
	.ecnc-timeline-section .ecnc-tl-subtitle {
		margin-bottom: 1.5rem;
	}
	.ecnc-timeline-section .ecnc-tl-wrapper {
		display: block;
		padding: .25rem 0;
	}
	.ecnc-timeline-section .ecnc-tl-wrapper::before {
		content: "";
		position: absolute;
		left: 26px;
		top: 0;
		bottom: 0;
		right: auto;
		width: 2px;
		height: auto;
		background: linear-gradient(180deg, #1C244B 0%, #1C244B 95%, transparent 100%);
		opacity: 0.15;
	}
	.ecnc-timeline-section .ecnc-tl-step {
		flex-direction: row;
		align-items: flex-start;
		text-align: left;
		padding-left: 66px;
		margin-bottom: 1rem;
		min-height: 60px;
		position: relative;
	}
	.ecnc-timeline-section .ecnc-tl-marker {
		position: absolute;
		left: 4px;
		top: 0;
		width: 44px;
		height: 44px;
		margin-bottom: 0;
	}
	.ecnc-timeline-section .ecnc-tl-marker svg {
		width: 19px;
		height: 19px;
	}
	.ecnc-timeline-section .ecnc-tl-card {
		width: 100%;
		padding: 14px 16px;
		position: relative;
	}
	.ecnc-timeline-section .ecnc-tl-card::before {
		content: "";
		position: absolute;
		top: 22px;
		left: -18px;
		width: 18px;
		height: 2px;
		background: #e5e7eb;
		transition: background .3s ease;
	}
	.ecnc-timeline-section .ecnc-tl-card:hover::before {
		background: #1C244B;
	}
	.ecnc-timeline-section .ecnc-tl-heading { font-size: 16px; }
	.ecnc-timeline-section .ecnc-tl-text { font-size: 13.5px; }
}
