/****************************
*   M32 Ablauf              *
****************************/

/* Der Abschnitt steht auf Schwarz und blendet nach unten ins weisse
   Kapitel darunter ueber. Der Verlauf haengt unten am Abschnitt, damit er
   unabhaengig von der Hoehe immer in reinem Weiss endet.
   Masse aus dem Entwurf: Verlaufsbild 980px, darunter bis zum weissen
   Ende 379px unter der Bezahlbox. Unterhalb von 1920px skaliert beides
   mit der Fensterbreite. */
section.m32_ablauf {
	position: relative;
	background-color: var(--color_tiefschwarz);
	padding-bottom: min(379px, 19.7vw);
}

section.m32_ablauf::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: min(980px, 51vw);
	background-image: url('../../../img/m32_uebergang.svg');
	background-size: 100% 100%;
	background-repeat: no-repeat;
	pointer-events: none;
}

section.m32_ablauf > .mM_container {
	position: relative;
	z-index: 1;
}

/* --- Bezahlbox --- */

section.m32_ablauf .m32_bezahlen {
	position: relative;
	max-width: 1212px;
	margin: 73px auto 0;
	padding: 33px 20px 63px;
	border-radius: 15px;
	background-color: rgba(247, 248, 250, .1);
	text-align: center;
}

/* Rahmen wie am Nummernkreis: oben unsichtbar, nach unten hin heller.
   Eigenes Element statt border-box-Trick, weil die Fuellung im Entwurf
   auch unter dem Rand liegt — sonst bleibt oben eine dunkle Haarlinie. */
section.m32_ablauf .m32_bezahlen::before {
	content: '';
	position: absolute;
	inset: 0;
	padding: 1px;
	border-radius: inherit;
	background: linear-gradient(180deg, rgba(22, 22, 22, 0) 0%, rgba(255, 255, 255, .3) 100%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

section.m32_ablauf .m32_bezahlen_titel {
	font-weight: 700;
	line-height: 1.471; /* 25px */
	letter-spacing: 0.03em;
	color: var(--color_weiss);
}

section.m32_ablauf .m32_bezahlen_logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 30px 80px;
	margin-top: 50px;
}

/* Die Logos sollen in ihrer Originalgroesse stehen — project.css setzt
   allen Bildern sonst width:100%. */
section.m32_ablauf .m32_bezahlen_logos img {
	display: block;
	flex: 0 0 auto;
	width: auto;
	height: auto;
	max-width: 100%;
}

/* Kopf: Titel links, Intro-Text rechts ab Seitenmitte.
   Der Entwurf setzt den Textblock nicht buendig zum Titel, sondern auf
   Hoehe der zweiten Titelzeile — daher der feste Vorlauf statt align-items. */
section.m32_ablauf .m32_kopf {
	display: flex;
	align-items: flex-start;
	gap: 30px 0;
}

section.m32_ablauf .m32_intro {
	flex: 0 0 calc(50% + 10px);
}

section.m32_ablauf .m32_titel {
	max-width: 500px; /* erzwingt den Umbruch nach "zur" */
	margin-bottom: 0;
	color: var(--color_weiss);
}

section.m32_ablauf .m32_intro_text_container {
	flex: 0 1 551px;
	padding-top: 109px;
}

section.m32_ablauf .m32_intro_text {
	line-height: 1.471; /* 25px */
	letter-spacing: 0.03em;
}

section.m32_ablauf .m32_intro_lead {
	font-weight: 700;
	font-size: 1.471rem; /* 25px */
	line-height: 1.2;
	letter-spacing: 0.03em;
	margin-bottom: 13px;
}

section.m32_ablauf .m32_hinweis {
	margin-top: 25px;
	font-size: 0.882rem; /* 15px */
	line-height: 1.667; /* 25px */
	letter-spacing: 0.03em;
}

section.m32_ablauf .m32_hinweis_link {
	text-decoration: underline;
	text-underline-position: from-font;
}

/* Schritte-Reihe.
   Die Kreismitten liegen im Entwurf 486px auseinander — schmaler als der
   Container. Statt der vollen Breite bekommt die Reihe deshalb eine eigene
   Maximalbreite, dann sitzen die Mitten auf 473/960/1447 gegen die
   469/956/1442 des Entwurfs. */
section.m32_ablauf .m32_schritte_row {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	/* Kreis / Icon / Titel / Text — die vier Zeilen teilen sich alle
	   Spalten, damit ein zweizeiliger Titel die Texte danebenbleibend
	   ausrichtet statt sie zu verschieben. */
	grid-template-rows: auto auto auto auto;
	max-width: 1460px;
	margin: 86px auto 0;
}

/* Verbindungslinie von Kreismitte zu Kreismitte */
section.m32_ablauf .m32_schritte_row::before {
	content: '';
	position: absolute;
	top: 30px;
	left: 16.6667%;
	right: 16.6667%;
	height: 1px;
	/* Der Entwurf notiert 30% Deckung, gerendert misst die Linie aber nur
	   rund 20% — gemessen am Referenzbild (65 statt 92 auf #161616). */
	background-color: rgba(255, 255, 255, .2);
}

section.m32_ablauf .m32_schritt {
	position: relative;
	min-width: 0;
	grid-row: 1 / -1;
	display: grid;
	grid-template-rows: subgrid;
	justify-items: center;
	text-align: center;
}

/* Pfeil auf der Spaltengrenze — die ist zugleich die Mitte zwischen zwei
   Kreisen. Die Grafik traegt eine 10px starke Kontur in der Grundfarbe;
   die frisst die weisse Flaeche bis auf eine duenne Linie auf UND
   unterbricht zugleich die Verbindungslinie. Der Kasten ist deshalb
   groesser als der sichtbare Pfeil (47 x 23.6). */
section.m32_ablauf .m32_schritt + .m32_schritt::before {
	content: '';
	position: absolute;
	top: 8px;
	left: -33.65px;
	width: 67.3px;
	height: 43.8px;
	background-image: url('../../../img/m32_pfeil_boozit.svg');
	background-repeat: no-repeat;
	background-position: center;
	background-size: 67.3px 43.8px;
}

/* Nummern-Kreis: Schein (::before) hinter der dunklen Scheibe (::after) */
section.m32_ablauf .m32_schritt_kreis {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
}

/* Figma: Kreis r=54 in #30AAD9 bei 50% Deckung, 50px weichgezeichnet */
section.m32_ablauf .m32_schritt_kreis::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 300px;
	height: 300px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: radial-gradient(circle closest-side,
		rgba(48, 170, 217, .25) 0%,
		rgba(48, 170, 217, .231) 21%,
		rgba(48, 170, 217, .21) 27%,
		rgba(48, 170, 217, .179) 33%,
		rgba(48, 170, 217, .144) 40%,
		rgba(48, 170, 217, .097) 50%,
		rgba(48, 170, 217, .062) 60%,
		rgba(48, 170, 217, .031) 70%,
		rgba(48, 170, 217, .015) 80%,
		rgba(48, 170, 217, 0) 100%);
	pointer-events: none;
	z-index: 1;
}

section.m32_ablauf .m32_schritt_kreis::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1px solid transparent;
	/* Rand als Verlauf: oben unsichtbar, unten Weiss — wie im Entwurf */
	background:
		linear-gradient(#212b2f, #212b2f) padding-box,
		linear-gradient(180deg, rgba(22, 22, 22, 0) 0%, rgba(255, 255, 255, .3) 100%) border-box;
	z-index: 2;
}

section.m32_ablauf .m32_schritt_kreis span {
	position: relative;
	z-index: 3;
	font-family: var(--font_headline);
	font-variation-settings: var(--font_headline_variation);
	font-size: 1.471rem; /* 25px */
	line-height: 1.4;
	color: var(--color_weiss);
}

section.m32_ablauf .m32_schritt_icon {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 63px;
	margin-top: 50px;
}

section.m32_ablauf .m32_schritt_icon img {
	height: 100%;
	width: auto;
}

section.m32_ablauf .m32_schritt_titel {
	margin-top: 26px;
	color: var(--color_weiss);
}

/* 308px ist die breiteste Textspalte des Entwurfs (die Vorlage setzt jede
   Spalte einzeln: 290/296/308). Mit einem gemeinsamen Wert bleiben so alle
   drei bei drei Zeilen; nur die erste Spalte zieht ein Wort hoch. */
section.m32_ablauf .m32_schritt_text {
	max-width: 308px;
	margin-top: 9px;
	line-height: 1.471; /* 25px */
	letter-spacing: 0.03em;
}

/* --- Responsive --- */

@media only screen and (max-width: 1199px) {
	/* Gestapelt: Kopf untereinander, Schritte als 2x2-Raster ohne Linie */
	section.m32_ablauf .m32_kopf {
		flex-direction: column;
	}

	section.m32_ablauf .m32_intro,
	section.m32_ablauf .m32_intro_text_container {
		flex: 0 0 auto;
		max-width: 100%;
	}

	section.m32_ablauf .m32_intro_text_container {
		padding-top: 0;
	}

	section.m32_ablauf .m32_titel {
		max-width: 100%;
	}

	section.m32_ablauf .m32_schritte_row {
		display: flex;
		flex-wrap: wrap;
		gap: 60px 40px;
		margin-top: 80px;
	}

	section.m32_ablauf .m32_schritt {
		display: flex;
		flex-direction: column;
		align-items: center;
		flex: 1 1 calc(50% - 20px);
	}

	section.m32_ablauf .m32_schritte_row::before,
	section.m32_ablauf .m32_schritt + .m32_schritt::before {
		display: none;
	}
}

@media only screen and (max-width: 991px) {
	section.m32_ablauf .m32_bezahlen {
		margin-top: 60px;
		padding: 28px 20px 40px;
	}

	section.m32_ablauf .m32_bezahlen_logos {
		gap: 26px 44px;
		margin-top: 32px;
	}
}

@media only screen and (max-width: 767px) {
	section.m32_ablauf .m32_schritte_row {
		gap: 50px;
		margin-top: 60px;
	}

	section.m32_ablauf .m32_schritt {
		flex: 1 1 100%;
	}
}
