/****************************
*       M30 Hero            *
****************************/

.m30_hero {
	background-image: url('../../../img/hero_bg.svg');
	background-size: 100% 100%;
	background-repeat: no-repeat;
	overflow: hidden;
	/* Verlauf beginnt hinter dem transparenten Header (Figma) —
	   --header_total setzt menu.js (Topbar + Header) */
	margin-top: calc(-1 * var(--header_total, 155px));
}

.m30_hero_main {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 0 60px;
	/* Der Kopf ist mit dem Boozit-Entwurf von 165 auf 189px gewachsen —
	   der Zuschlag faengt das ab, damit Topline und Kreis auf ihren
	   Figma-Hoehen bleiben. */
	padding-top: calc(var(--header_total, 189px) + 16px);
}

/* --- Linke Spalte: Content --- */

.m30_content_wrapper {
	flex: 1 1 auto;
	min-width: 600px;
	max-width: 670px;
	padding-top: 214px;
}

/* Der obere Hero-Bereich steht auf Schwarz. Das Parent-Theme setzt die
   Schriftfarbe per `* { color }` — Vererbung greift deshalb nicht, die
   Farbe muss hier explizit gegen den Universalselektor gesetzt werden. */
.m30_hero .m30_content_wrapper,
.m30_hero .m30_content_wrapper * {
	color: var(--color_weiss);
}

/* Topline-Strich (global aus project.css) auf Weiss */
.m30_hero .mM_title_container p[class$="_untertitel"]::before {
	background-color: var(--color_weiss);
}

/* Headline: die zweite Zeile steckt im span und traegt den Neon-Schein.
   Figma stapelt dafuer drei Textebenen mit Blur — als text-shadow-Kette
   ist das eine Ebene und rendert identisch weich. */
.m30_hero .m30_titel span {
	display: block;
	text-shadow:
		0 0 15px rgba(48, 170, 217, .6),
		0 0 35px rgba(48, 170, 217, .45),
		0 0 70px rgba(48, 170, 217, .3);
}

/* Text */
.m30_hero .m30_text_container {
	max-width: 596px;
	margin-top: 50px;
}

/* Buttons (Autoinjektion in mM_links_container) */
.m30_hero .m30_content_container .m30_links_container {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 74px;
}

/* Die aeusserste Pixelreihe im Entwurf ist [60,134,162] — ich hatte daraus
   zuerst geschlossen, Figma rendere den notierten #161616-Rahmen gar nicht.
   Falsch: es ist ein VERLAUFSrand (#161616 -> Weiss, 30 %), dessen oberer
   Halt fast im Grund verschwindet. Hoehe, Polster und Ring stehen jetzt in
   der Grundregel in project.css. */

/* Knopf-Aussehen (Inset-Schein statt Versatz-Schatten, milchige
   Sekundaerflaeche) steht geteilt mit m40_subhero in css/project.css. */

/* Scroll-Pfeil (Button) */
.m30_pfeil {
	display: block;
	margin-top: 90px;
	padding: 10px;
	margin-left: -10px;
	background: none;
	border: none;
	cursor: pointer;
}

.m30_pfeil img {
	width: 24px;
	height: 47px;
	display: block;
	transition: transform .3s ease;
}

.m30_pfeil:hover img,
.m30_pfeil:focus-visible img {
	transform: translateY(6px);
}

/* --- Rechte Spalte: Bild-Buehne --- */

.m30_bild_wrapper {
	flex: 0 1 auto;
	min-width: 0;
	/* Seit die Textspalte Vorrang hat, bleibt rechts Luft uebrig — die
	   Buehne muss sie selbst aufbrauchen, sonst endet der Kreis vor dem
	   Seiteneinzug (gemessen: 1680 statt 1720). */
	margin-left: auto;
	display: flex;
	justify-content: flex-end;
}

.m30_bild_buehne {
	position: relative;
	width: 750px;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	margin-top: 24px;
}

.m30_bild_kreis {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	overflow: hidden;
	z-index: 2;
}

.m30_bild_kreis .m30_bild {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* --- Storer --- */

.m30_storer_row {
	display: flex;
	flex-wrap: wrap;
	gap: 30px 40px;
	justify-content: space-between;
	padding: 101px 0 98px 0;
}

/* Das Zahlenband steht auf dem hellen Ende des Verlaufs — wieder gegen
   den `* { color }` des Parents ausgezeichnet. */
.m30_hero .m30_storer_row,
.m30_hero .m30_storer_row * {
	color: var(--color_tiefschwarz);
}

.m30_storer_item {
	max-width: 369px;
	flex: 0 1 auto;
}

/* Gestaffeltes Layout: die beiden mittleren Storer sitzen tiefer */
.m30_storer_item:nth-child(2),
.m30_storer_item:nth-child(3) {
	margin-top: 54px;
}

.m30_storer_zahl {
	font-family: var(--font_headline);
	font-variation-settings: var(--font_headline_variation);
	font-weight: 400;
	letter-spacing: normal;
	line-height: 1.133;
	margin-bottom: 15px;
}

.m30_storer_zahl_wert {
	font-size: 4.412rem; /* 75px */
}

.m30_storer_zahl_einheit {
	font-size: 2.647rem; /* 45px */
	margin-left: 8px;
}

/* --- Responsive --- */

@media only screen and (max-width: 1500px) {
	/* Untergrenze, damit der Kreis kurz vor dem Umbruch nicht zur
	   Briefmarke schrumpft — die Textspalte hat Vorrang, aber nicht
	   unbegrenzt */
	.m30_bild_buehne {
		width: 600px;
		min-width: 420px;
	}

	.m30_content_wrapper {
		padding-top: 150px;
	}
}

/* Ab hier reicht die Breite nicht mehr fuer 75px in zwei Zeilen
   ("Power for People." braucht 583px) */
@media only screen and (max-width: 1339px) {
	/* Passt in die Treppe der Grundregel: 75 -> 60 (ab 1399) -> 56 -> 54.
	   Mit den frueheren 3.6rem stand der Hero hier groesser als eine Stufe
	   darueber. */
	.m30_hero .m30_titel,
	.m30_hero h1.m30_titel {
		font-size: 3.294rem; /* 56px */
	}

	.m30_content_wrapper {
		min-width: 500px;
	}
}

/* Umbruch auf einspaltig ab 1199px — synchron zum Header-Umbruch (Burger) */
@media only screen and (max-width: 1199px) {
	/* Gestapelt wird die Section hoch und schmal — der mit 100% 100%
	   gestreckte Bogen wuerde spitz. Stattdessen: Bogen-Streifen mit
	   breitenproportionaler Hoehe (5.73vw = Desktop-Kruemmung 110/1920)
	   + CSS-Verlauf fuer die Flaeche darueber */
	.m30_hero {
		/* Stops wie im Grundverlauf von hero_bg.svg (am Entwurf gemessen) */
		background-image:
			url('../../../img/hero_bogen_unten.svg'),
			linear-gradient(180deg,
				#161616 0%, #161616 40%, #182429 53%, #1c3a45 58%,
				#22596f 64%, #307d9b 69%, #5aa2c0 74%, #a1cede 80%,
				#e0eff5 85%, #fcfeff 90%, #ffffff 93%);
		background-size: 100% 5.73vw, 100% calc(100% - 5.73vw + 1px);
		background-position: left bottom, left top;
		background-repeat: no-repeat;
	}

	.m30_hero .m30_titel,
	.m30_hero h1.m30_titel {
		font-size: 3.2rem;
	}

	.m30_hero_main {
		flex-wrap: wrap;
		gap: 60px 0;
		padding-top: calc(var(--header_total, 155px) + 40px);
	}

	.m30_content_wrapper {
		flex: 1 1 100%;
		min-width: 0;
		max-width: 100%;
		padding-top: 40px;
	}

	.m30_bild_wrapper {
		flex: 1 1 100%;
		justify-content: center;
	}

	.m30_bild_buehne {
		width: 100%;
		max-width: 480px;
	}

	.m30_pfeil {
		display: none;
	}
}

@media only screen and (max-width: 991px) {
	.m30_storer_row {
		padding: 80px 0;
	}

	.m30_storer_item:nth-child(2),
	.m30_storer_item:nth-child(3) {
		margin-top: 0;
	}

	/* Zwei nebeneinander statt gleich vier untereinander: bei 991 ist die
	   Reihe 680px breit, der breiteste Storer misst 185. Einspaltig waere
	   das Band 750px hoch und die Zahlen stuenden verloren. */
	.m30_storer_item {
		flex: 0 1 calc(50% - 20px);
		max-width: calc(50% - 20px);
	}
}

@media only screen and (max-width: 575px) {
	.m30_hero .m30_titel,
	.m30_hero h1.m30_titel {
		font-size: 2.2rem;
	}

	.m30_storer_zahl_wert {
		font-size: 3rem;
	}

	.m30_storer_zahl_einheit {
		font-size: 1.8rem;
	}

	.m30_bild_buehne {
		margin-top: 30px;
	}

}

/* Die Zahlen bleiben so lange wie moeglich zu zweit — einspaltig wird das
   Band sehr lang. Erst wenn die Spalte die laengste Beschriftung
   ("Komplettservice") nicht mehr in einer Zeile traegt, kommt der Umbruch. */
@media only screen and (max-width: 359px) {
	.m30_storer_item {
		flex: 1 1 100%;
		max-width: 100%;
	}
}
