/* =============================================================================
   Weber Timeline Vertikal – Zeitstrahl mit Intro-Block
   Desktop: Intro links + grauer Card-Container rechts, vertikale Mittellinie
   Mobile:  Intro als Header, darunter vertikaler Zeitstrahl
   ============================================================================= */

.wbtv {
	width: 100%;
}

/* ─────────────────────────────────────────────────────────────────
   DESKTOP (≥ 768px)
───────────────────────────────────────────────────────────────── */

.wbtv__mobile { display: block; }
.wbtv__desktop { display: none; }

@media (min-width: 768px) {
	.wbtv__mobile  { display: none; }
	.wbtv__desktop {
		display: flex;
		align-items: flex-start;
		gap: 64px;
	}
}

/* ── Intro-Block ─────────────────────────────────────────────── */

.wbtv__intro {
	flex: 0 0 392px;
	width: 392px;
	padding-top: 48px;   /* optisch an erste Badge-Zeile angleichen */
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Tablet Hochformat (768–991px): feste 392px-Spalte zu eng,
   Intro stattdessen in voller Breite über dem Zeitstrahl */
@media (min-width: 768px) and (max-width: 991px) {
	.wbtv__desktop {
		flex-direction: column;
		gap: 32px;
	}
	.wbtv__intro {
		flex: 0 0 auto;
		width: 100%;
		padding-top: 0;
	}
}

.wbtv__intro-title {
	color: #1B2321;
	margin: 0;
}

.wbtv__intro-text {
	color: #1B2321;
}

.wbtv__intro-text p { margin: 0; }

/* ── Grauer Card-Container ───────────────────────────────────── */

.wbtv__card {
	flex: 1;
	min-width: 0;
	background: #EEEEEE;
	border-radius: 32px;
	padding: 48px 64px;
	position: relative;
}

/* Vertikale Mittellinie */
.wbtv__vline {
	position: absolute;
	top: 48px;
	bottom: 48px;
	left: 50%;
	width: 1.5px;
	background: #E63083;
	transform: translateX(-50%);
	z-index: 0;
}

/* ── Timeline-Items ──────────────────────────────────────────── */

.wbtv__vitem {
	display: grid;
	/* Badge-Spalte | Dot | Content-Spalte */
	grid-template-columns: 1fr 24px 1fr;
	align-items: center;
	gap: 0 32px;
	margin-bottom: 48px;
	position: relative;
	z-index: 1;
}

.wbtv__vitem:last-child {
	margin-bottom: 0;
}

/* Badge-Gruppe: Pink Badge + optional Titel darunter */
.wbtv__vbadge-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: 196px;
}

.wbtv__vbadge {
	background: #E63083;
	padding: 8px 16px 4px;
	height: 44px;
	width: 80px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #EEEEEE;
	font-weight: 700;
	font-size: 20px;
	line-height: 1;
	white-space: nowrap;
	box-sizing: border-box;
}

.wbtv__vbadge-title {
	color: #E63083;
	font-weight: 700;
	font-size: 20px;
	line-height: 1.2;
	text-align: center;
	margin: 0;
}

/* Dot */
.wbtv__vdot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #E63083;
	border: 2px solid #EEEEEE;
	flex-shrink: 0;
	justify-self: center;
	box-sizing: border-box;
}

/* Content (Bild + Text) */
.wbtv__vcontent {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.wbtv__vimage {
	width: 100%;
	margin: 0;
}

.wbtv__vimg {
	width: 100%;
	height: 203px;
	object-fit: cover;
	border-radius: 16px;
	display: block;
}

.wbtv__vimage-caption {
	line-height: 150%;
	color: #5E5E5E;
	margin-top: 8px;
	font-style: italic;
}

.wbtv__vtext {
	color: #1B2321;
	margin: 0;
}

.wbtv__vtext p { margin: 0; }

/* ── Side: Badge links / Inhalt rechts (right) ───────────────── */

.wbtv__vitem--right .wbtv__vbadge-group { grid-column: 1; justify-self: end; }
.wbtv__vitem--right .wbtv__vdot         { grid-column: 2; }
.wbtv__vitem--right .wbtv__vcontent     { grid-column: 3; }

/* ── Side: Inhalt links / Badge rechts (left) ────────────────── */

.wbtv__vitem--left .wbtv__vcontent     { grid-column: 1; }
.wbtv__vitem--left .wbtv__vdot         { grid-column: 2; }
.wbtv__vitem--left .wbtv__vbadge-group { grid-column: 3; justify-self: start; }


/* ─────────────────────────────────────────────────────────────────
   MOBILE (< 768px)
───────────────────────────────────────────────────────────────── */

/* Intro-Header */
.wbtv__mobile-intro {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 24px;
}


/* Mobile Card-Container */
.wbtv__mobile-card {
	background: #EEEEEE;
	border-radius: 12px;
	padding: 20px 24px;
	position: relative;
}

/* Vertikale Linie – nach Figma-Design (Node 729:5161)
   Figma: Dot-Mitte bei ~42 % der Card-Breite.
   Die Linie ist innerhalb von .wbtv__mobile-stack absolut positioniert,
   damit Prozent-Werte sich auf die Content-Breite (= Card minus Padding)
   beziehen und mit der Card-Breite skalieren. */
.wbtv__mobile-line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(42% - 3.1px); /* -3.1 = halber Dot: Linie sitzt mittig im Dot */
	width: 1.5px;
	background: #E63083;
	transform: translateX(-50%);
	z-index: 0;
}

.wbtv__mobile-stack {
	display: grid;
	gap: 28px;
	position: relative;
	z-index: 1;
}

/* Grid-Layout: linke Spalte 42 % (rechtsbündige Badge-Gruppe endet an Linie),
   rechte Spalte 1fr für Content. 30px Gap entspricht Figma. */
.wbtv__mobile-item {
	display: grid;
	grid-template-columns: 42% 1fr;
	gap: 30px;
	align-items: center;
}

.wbtv__mobile-left {
	justify-self: end; /* Badge-Gruppe rechtsbündig an der Linie */
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	min-width: 0;
}

.wbtv__mobile-badge-row {
	display: flex;
	align-items: center;
	gap: 14px;
}

/* Badge – proportional responsiv zwischen 320 px und 375 px Viewport.
   Figma-Werte sind die obere Grenze (padding 16/32, font 20, radius 14).
   Darunter skaliert alles linear bis 320 px (padding 12/20, font 18, radius 10). */
.wbtv__mobile-badge {
	background: #E63083;
	padding: clamp(12px, calc(12px + 4 * (100vw - 320px) / 55), 16px)
	         clamp(20px, calc(20px + 12 * (100vw - 320px) / 55), 32px);
	border-radius: clamp(10px, calc(10px + 4 * (100vw - 320px) / 55), 14px);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #F8F9F9;
	font-weight: 700;
	font-size: clamp(18px, calc(18px + 2 * (100vw - 320px) / 55), 20px);
	line-height: 1;
	white-space: nowrap;
	flex-shrink: 0;
	box-sizing: border-box;
}

/* Badge + Untertitel als eigene Spalte – Dot bleibt daneben.
   align-items: center hält das Badge auf seiner natürlichen Padding-Breite
   (unabhängig vom Untertitel) und zentriert beide Elemente in der Gruppe. */
.wbtv__mobile-badge-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.wbtv__mobile-badge-title {
	color: #E63083;
	font-weight: 700;
	font-size: clamp(12px, calc(12px + 2 * (100vw - 320px) / 55), 14px);
	line-height: 1.2;
	text-align: center;
	margin: 0;
}

.wbtv__mobile-content {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	min-width: 0;
}

.wbtv__mobile-content .wbtv__vimg {
	height: 120px;
}

.wbtv__mobile-content .wbtv__vimage-caption {
	font-size: 12px;
}

/* Dot bricht die Linie optisch: 10 px Pink-Kreis + 2 px Card-farbiger Ring
   (gleiche Idee wie Desktop-Dot). position:relative + z-index über der Linie. */
.wbtv__mobile-dot {
	width: 6.2px;
	height: 6.2px;
	border-radius: 50%;
	background: #E63083;
	border: 1px solid #EEEEEE;
	flex-shrink: 0;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
}

/* ── Kleine Mobilgeräte (≤ 479px) ──────────────────────────────── */
@media (max-width: 479px) {
	.wbtv__mobile-card {
		padding: 12px;
		border-radius: 10px;
	}

	.wbtv__mobile-stack {
		gap: 20px;
	}

	.wbtv__mobile-item {
		grid-template-columns: 42% 1fr;
		gap: 16px;
	}

	.wbtv__mobile-left {
		gap: 4px;
	}

	.wbtv__mobile-badge-row {
		gap: 10px;
	}

	/* Badge & Untertitel skalieren per clamp() automatisch,
	   keine fixen Overrides nötig. */
}

.wbtv__mobile-item .wbtv__vtext {
	min-width: 0;
}
