/* ==========================================================================
   M29 Vorgehen – Figma 49:329 (graphic 480 × 620 + timeline 600) / 50:321
   Background #111 and text #fff come from the wrapper settings.
   ========================================================================== */

section.m29_vorgehen .m29_untertitel {
	color: var(--btw_hellgrau);
}

section.m29_vorgehen .m29_titel {
	color: var(--btw_weiss);
}

section.m29_vorgehen .btw_lead,
section.m29_vorgehen .btw_lead p {
	color: var(--btw_linie);
}

section.m29_vorgehen .m29_body {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 40px;
	padding-top: 96px;
}

/* ---------- Graphic (coordinates from Figma) ---------- */
section.m29_vorgehen .m29_diagramm {
	position: relative;
	flex: 0 0 480px;
	width: 480px;
	height: 620px;
	overflow: hidden;
}

section.m29_vorgehen .m29_line {
	position: absolute;
	display: block;
	background-color: var(--btw_grau);
}

section.m29_vorgehen .m29_line--v { width: 1px; }
section.m29_vorgehen .m29_line--h { height: 1px; }

section.m29_vorgehen .m29_line_1  { left: 240px; top: 56px;  height: 64px; }
section.m29_vorgehen .m29_line_2  { left: 240px; top: 168px; height: 40px; }
section.m29_vorgehen .m29_line_3  { left: 80px;  top: 208px; width: 321px; }
section.m29_vorgehen .m29_line_4  { left: 80px;  top: 208px; height: 40px; }
section.m29_vorgehen .m29_line_5  { left: 240px; top: 208px; height: 40px; }
section.m29_vorgehen .m29_line_6  { left: 400px; top: 208px; height: 40px; }
section.m29_vorgehen .m29_line_7  { left: 80px;  top: 296px; height: 40px; }
section.m29_vorgehen .m29_line_8  { left: 400px; top: 296px; height: 41px; }
section.m29_vorgehen .m29_line_9  { left: 80px;  top: 336px; width: 321px; }
section.m29_vorgehen .m29_line_10 { left: 240px; top: 296px; height: 80px; }
section.m29_vorgehen .m29_line_11 { left: 240px; top: 424px; height: 64px; }

section.m29_vorgehen .m29_box {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 180px;
	height: 48px;
	padding: 0 12px;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.32;
	text-align: center;
	color: var(--btw_weiss);
	border: 1.2px solid var(--btw_weiss);
}

section.m29_vorgehen .m29_box--filled {
	background-color: var(--btw_weiss);
	color: var(--btw_schwarz);
	border: 0;
}

section.m29_vorgehen .m29_box--tall {
	height: 56px;
}

section.m29_vorgehen .m29_box--small {
	width: 128px;
	font-size: 0.75rem;
	font-weight: 400;
	color: var(--btw_linie);
	border-color: var(--btw_grau);
}

section.m29_vorgehen .m29_box_start     { left: 150px; top: 8px; }
section.m29_vorgehen .m29_box_schritt_2 { left: 150px; top: 120px; }
section.m29_vorgehen .m29_box_analyse_1 { left: 16px;  top: 248px; }
section.m29_vorgehen .m29_box_analyse_2 { left: 176px; top: 248px; }
section.m29_vorgehen .m29_box_analyse_3 { left: 336px; top: 248px; }
section.m29_vorgehen .m29_box_schritt_4 { left: 150px; top: 376px; }
section.m29_vorgehen .m29_box_ziel      { left: 150px; top: 488px; }

section.m29_vorgehen .m29_label {
	position: absolute;
	left: 350px;
	font-size: 0.625rem;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--btw_grau);
}

section.m29_vorgehen .m29_label_2 { top: 82px; }
section.m29_vorgehen .m29_label_4 { top: 346px; }

section.m29_vorgehen .m29_baseline {
	position: absolute;
	left: 0;
	top: 588px;
	width: 480px;
	height: 1px;
	background-color: var(--btw_timeline);
}

section.m29_vorgehen .m29_fusszeile {
	position: absolute;
	left: 0;
	top: 602px;
	font-size: 0.625rem;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--btw_hellgrau);
}

/* ---------- Timeline ---------- */
section.m29_vorgehen .m29_schritte {
	flex: 0 1 600px;
	min-width: 0;
	margin: 0 0 0 auto;
	padding: 0;
	list-style: none;
}

section.m29_vorgehen .m29_schritt {
	position: relative;
	margin: 0;
	padding: 0 0 48px 40px;
	border-left: 1px solid var(--btw_timeline);
}

section.m29_vorgehen .m29_schritt::before {
	content: none;
}

section.m29_vorgehen .m29_schritt:last-child {
	padding-bottom: 0;
	border-left-color: transparent;
}

section.m29_vorgehen .m29_schritt_punkt {
	position: absolute;
	left: -5px;
	top: 7px;
	width: 9px;
	height: 9px;
	background-color: var(--btw_grau);
}

section.m29_vorgehen .m29_schritt--hell .m29_schritt_punkt {
	background-color: var(--btw_weiss);
}

section.m29_vorgehen .m29_schritt p {
	margin: 0;
}

section.m29_vorgehen .m29_schritt_label {
	font-size: 0.75rem;
	line-height: 1.4;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--btw_hellgrau);
}

section.m29_vorgehen .m29_schritt_titel_container {
	padding-top: 10px;
}

section.m29_vorgehen .m29_schritt_titel {
	color: var(--btw_weiss);
}

section.m29_vorgehen .m29_schritt_text_container {
	padding-top: 10px;
	font-size: 1rem;
	line-height: 1.65;
}

section.m29_vorgehen .m29_schritt_text_container,
section.m29_vorgehen .m29_schritt_text_container p {
	color: var(--btw_linie);
}

section.m29_vorgehen .m29_schritt_tag_container {
	display: flex;
	padding-top: 16px;
}

section.m29_vorgehen .m29_schritt_tag {
	padding: 6px 10px;
	border: 1px solid var(--btw_grau);
	font-size: 0.6875rem;
	line-height: 1.65;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--btw_weiss);
}

/* Graphic only where it fits next to the timeline (Figma mobile: hidden) */
@media all and (max-width: 1199px) {
	section.m29_vorgehen .m29_diagramm {
		display: none;
	}

	section.m29_vorgehen .m29_schritte {
		flex-basis: 100%;
		margin-left: 0;
		max-width: 720px;
	}
}

@media all and (max-width: 991px) {
	section.m29_vorgehen .m29_body {
		padding-top: 48px;
	}
}

@media all and (max-width: 575px) {
	section.m29_vorgehen .m29_body {
		padding-top: 40px;
	}

	section.m29_vorgehen .m29_schritt {
		padding: 0 0 36px 28px;
	}

	section.m29_vorgehen .m29_schritt_punkt {
		top: 6px;
	}

	section.m29_vorgehen .m29_schritt_label {
		font-size: 0.6875rem;
		line-height: 1.5;
	}

	section.m29_vorgehen .m29_schritt_titel_container,
	section.m29_vorgehen .m29_schritt_text_container {
		padding-top: 8px;
	}

	section.m29_vorgehen .m29_schritt_titel {
		font-size: 1.125rem;
		line-height: 1.25;
	}

	section.m29_vorgehen .m29_schritt_text_container {
		font-size: 0.875rem;
	}

	section.m29_vorgehen .m29_schritt_tag_container {
		padding-top: 12px;
	}

	section.m29_vorgehen .m29_schritt_tag {
		padding: 4px 9px;
		font-size: 0.625rem;
	}
}

/* ---------- Scroll effect: the diagram draws itself (Kevin 2026-11-06) ----------
   Starts when the parent sets .mM_in_view on the section (Theme-Optionen → Effekte).
   Boxes fade up, lines grow along their direction – transform/opacity only, one
   transition each, no script. Order follows the flow: start → step 2 → split into
   the three analyses → merge → step 4 → goal. Static without the parent script or
   with reduced motion. */
section.m29_vorgehen .m29_line_1,
section.m29_vorgehen .m29_label_2     { --m29_i: 1; }
section.m29_vorgehen .m29_box_schritt_2 { --m29_i: 2; }
section.m29_vorgehen .m29_line_2      { --m29_i: 3; }
section.m29_vorgehen .m29_line_3      { --m29_i: 4; }
section.m29_vorgehen .m29_line_4,
section.m29_vorgehen .m29_line_5,
section.m29_vorgehen .m29_line_6      { --m29_i: 5; }
section.m29_vorgehen .m29_box--small  { --m29_i: 6; }
section.m29_vorgehen .m29_line_7,
section.m29_vorgehen .m29_line_8,
section.m29_vorgehen .m29_line_10     { --m29_i: 7; }
section.m29_vorgehen .m29_line_9,
section.m29_vorgehen .m29_label_4     { --m29_i: 8; }
section.m29_vorgehen .m29_box_schritt_4 { --m29_i: 9; }
section.m29_vorgehen .m29_line_11     { --m29_i: 10; }
section.m29_vorgehen .m29_box_ziel    { --m29_i: 11; }
section.m29_vorgehen .m29_baseline,
section.m29_vorgehen .m29_fusszeile   { --m29_i: 12; }

@media (prefers-reduced-motion: no-preference) {
	.mM_appear_js section.m29_vorgehen .m29_diagramm > * {
		transition: transform 0.45s var(--btw_ease), opacity 0.45s var(--btw_ease);
		transition-delay: calc(0.3s + var(--m29_i, 0) * 0.14s);
	}

	.mM_appear_js section.m29_vorgehen:not(.mM_in_view) :is(.m29_box, .m29_label, .m29_fusszeile) {
		opacity: 0;
		transform: translateY(8px);
	}

	.mM_appear_js section.m29_vorgehen:not(.mM_in_view) .m29_line--v {
		transform: scaleY(0);
	}

	/* line 3 splits from the middle, line 9 merges into it, baseline runs left to right */
	.mM_appear_js section.m29_vorgehen:not(.mM_in_view) :is(.m29_line_3, .m29_line_9) {
		transform: scaleX(0);
	}

	.mM_appear_js section.m29_vorgehen:not(.mM_in_view) .m29_baseline {
		transform: scaleX(0);
	}
}

/* Origins stay put in both states, otherwise they would jump when the effect starts */
section.m29_vorgehen .m29_line--v { transform-origin: center top; }
section.m29_vorgehen .m29_line--h { transform-origin: center center; }
section.m29_vorgehen .m29_baseline { transform-origin: left center; }
