/****************************
*   M8 Logo Overview        *
*   (Child-Override, Basis = Parent-CSS + Top-Section-Styles)
****************************/

section.m8_logo_overview .mM_row {
	gap: 50px 20px;
}

section.m8_logo_overview .m8_item_content_image_container {
	display: flex;
	position: relative;
}

/* Heller Kreis hinter dem Icon (Figma: 60px, #f2f4fa, zentriert) */
section.m8_logo_overview .m8_item_content_image_container::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: #f2f4fa;
}

section.m8_logo_overview .m8_item_content_image_container img,
section.m8_logo_overview .m8_item_content_image_container svg {
	height: 60px;
	min-height: 60px;
	width: auto;
	max-width: 100%;
	position: relative;
	z-index: 1;
}

section.m8_logo_overview .m8_title_container {
	margin-top: 20px;
}

/* Logo above Title Start */

section.m8_logo_overview[data-logo-position="logo_above_title"] .m8_item_content_image_container {
	justify-content: center;
}

section.m8_logo_overview[data-logo-position="logo_above_title"] .m8_text,
section.m8_logo_overview[data-logo-position="logo_above_title"] .m8_subtitle,
section.m8_logo_overview[data-logo-position="logo_above_title"] .m8_title,
section.m8_logo_overview[data-logo-position="logo_above_title"] .m8_title_container {
	text-align: center;
}

/* Logo above Title End */

/* Logo besides Title Start */

section.m8_logo_overview[data-logo-position="logo_besides_title"] .m8_item_logo_title_container {
	display: flex;
	align-items: center;
	gap: 25px;
}

/* Logo besides Title End */

/* Logo besides Title and Text Start */

section.m8_logo_overview[data-logo-position="logo_besides_title_and_text"] .m8_item_content_main {
	display: flex;
	gap: 25px;
}

/* Logo besides Title and Text End */

/* --- Icon ueber der Ueberschrift --- */

section.m8_logo_overview .m8_icon_container {
	display: flex;
	justify-content: center;
	margin-bottom: 15px;
}

section.m8_logo_overview .m8_icon_container svg,
section.m8_logo_overview .m8_icon_container img {
	height: 46px;
	width: auto;
}

/* --- Statement-Titel (zentriert, Pills) --- */

section.m8_logo_overview .m8_intro {
	text-align: center;
}

section.m8_logo_overview .m8_intro .m8_titel {
	max-width: 705px;
	margin: 0 auto;
}

section.m8_logo_overview .m8_intro .m8_untertitel_container {
	margin-bottom: 10px;
}

/* Highlight-Pills im Titel (per span-Klasse) */
section.m8_logo_overview .m8_titel .m8_pill,
section.m8_logo_overview .m8_titel .m8_pill_hell {
	display: inline-block;
	padding: 0 14px;
	line-height: 1.25;
}

section.m8_logo_overview .m8_titel .m8_pill_hell {
	background-color: rgba(218, 226, 203, 0.5);
	border-radius: 15px 15px 15px 0;
}

section.m8_logo_overview .m8_titel .m8_pill {
	background-color: var(--color_salbei);
	border-radius: 15px 0 15px 15px;
}

/* --- Button-Slot (Autoinjektion) --- */

section.m8_logo_overview .m8_button_container .m8_links_container {
	display: flex;
	justify-content: center;
	margin-top: 60px;
}

/* --- Icon-Reihe mit Trennlinien --- */

section.m8_logo_overview .m8_items {
	margin-top: 90px;
}

section.m8_logo_overview .m8_item {
	position: relative;
}

section.m8_logo_overview .m8_item + .m8_item::before {
	content: '';
	position: absolute;
	left: -10px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 198px;
	border-left: 1px dashed var(--color_salbei);
}

/* --- Responsive --- */

/* Ab 1199 legt schon das Elterntheme die vier Spalten auf zwei um. Die
   Trennlinie haengt aber an "jedem Element ausser dem ersten" — in zwei
   Zeilen bekommt damit auch das dritte eine, obwohl es eine Zeile anfaengt.
   Uebrig bleiben duerfen nur die geraden: die stehen jeweils rechts. */
@media only screen and (max-width: 1199px) {
	section.m8_logo_overview .m8_item + .m8_item::before {
		display: none;
	}

	section.m8_logo_overview .m8_item:nth-child(even)::before {
		display: block;
	}
}

@media only screen and (max-width: 991px) {
	section.m8_logo_overview .m8_items {
		margin-top: 60px;
	}

	section.m8_logo_overview .m8_item.mM_col_25 {
		flex: 1 1 calc(50% - 20px);
		max-width: calc(50% - 20px);
	}
}

@media only screen and (max-width: 575px) {
	section.m8_logo_overview .m8_item.mM_col_25 {
		flex: 1 1 100%;
		max-width: 100%;
	}

	section.m8_logo_overview .m8_item + .m8_item::before {
		display: none;
	}

	section.m8_logo_overview .m8_item:nth-child(even)::before {
		display: none;
	}

	section.m8_logo_overview .m8_button_container .m8_links_container {
		margin-top: 40px;
	}
}

/* ===============================================
	Boozit — Abschnitt 1 (Figma "1")

	Statement + Button + vier Icon-Spalten auf
	schwarzem Grund. Masse aus dem 1920er Raster.
=============================================== */

section.m8_logo_overview {
	position: relative;
}

/* Weicher Cyan-Dunst hinter dem Statement (Figma: Ellipse 754x375,
   10% Deckung, 75px Weichzeichnung) */
section.m8_logo_overview .m8_intro {
	position: relative;
}

section.m8_logo_overview .m8_intro::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 1054px;
	max-width: 130%;
	height: 675px;
	background: radial-gradient(ellipse 36% 28% at 50% 50%,
		rgba(48, 170, 217, .16) 0%,
		rgba(48, 170, 217, .07) 45%,
		rgba(48, 170, 217, 0) 72%);
	pointer-events: none;
	z-index: 0;
}

section.m8_logo_overview .m8_intro > * {
	position: relative;
	z-index: 1;
}

/* Drei Zeilen wie im Entwurf (525 / 611 / 355 px breit) */
section.m8_logo_overview .m8_intro .m8_titel {
	max-width: 660px;
	margin: 0 auto;
	color: var(--color_weiss);
}

/* "boozit sorgt dafuer," traegt denselben Schein wie die Hero-Headline */
section.m8_logo_overview .m8_intro .m8_titel span {
	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);
}

/* Button: 71px unter der letzten Titelzeile */
section.m8_logo_overview .m8_button_container .m8_links_container {
	margin-top: 71px;
}

section.m8_logo_overview .button {
	background-color: rgba(255, 255, 255, .1);
	color: var(--color_weiss);
	box-shadow: none;
}

section.m8_logo_overview .button:hover {
	background-color: rgba(255, 255, 255, .22);
	color: var(--color_weiss);
}

/* --- Icon-Spalten ---------------------------- */

section.m8_logo_overview .m8_items {
	margin-top: 85px;
}

/* Der helle Kreis der Vorlage weicht dem Cyan-Schein (Figma: Kreis
   r=54 bei 80% Deckung, 50px weichgezeichnet) */
section.m8_logo_overview .m8_item_content_image_container {
	height: 108px;
	align-items: center;
	justify-content: center;
}

section.m8_logo_overview .m8_item_content_image_container::before {
	width: 260px;
	height: 260px;
	background: radial-gradient(circle closest-side,
		rgba(48, 170, 217, .40) 0%,
		rgba(48, 170, 217, .16) 42%,
		rgba(48, 170, 217, 0) 100%);
	border-radius: 50%;
}

section.m8_logo_overview .m8_item_content_image_container img,
section.m8_logo_overview .m8_item_content_image_container svg {
	height: 73px;
	min-height: 73px;
}

section.m8_logo_overview .m8_title_container {
	margin-top: 17px;
}

section.m8_logo_overview .m8_title {
	font-size: 1.471rem; /* 25px */
	line-height: 1.4;    /* 35px */
	color: var(--color_weiss);
	margin: 0;
}

section.m8_logo_overview .m8_text_container {
	margin-top: 9px;
}

section.m8_logo_overview .m8_text {
	max-width: 246px;
	margin: 0 auto;
	color: #f7f8fa;
}

/* Trennlinien: durchgezogen statt gestrichelt, 209px hoch */
section.m8_logo_overview .m8_item + .m8_item::before {
	height: 209px;
	border-left: 1px solid rgba(255, 255, 255, .3);
}

/* ===============================================
	Variante "Argumente" (Wrapper-Klasse m8_argumente)

	Dieselbe Icon-Reihe ohne Statement darueber: keine
	Trennstriche, kleinere Pictogramme. Genutzt auf
	"Werbung schalten" fuer die vier Argumente.
=============================================== */

section.m8_logo_overview.m8_argumente .m8_items {
	margin-top: 0;
}

/* Die Trennstriche gehoeren zum Statement-Block der Startseite — hier
   stehen die vier Punkte fuer sich. */
section.m8_logo_overview.m8_argumente .m8_item + .m8_item::before {
	display: none;
}

/* Die Pictogramme sind Strichzeichnungen im 24er-Raster. Auf 73px (das
   Mass der Startseiten-Symbole) waere der Strich 4,9px dick — die Staerke
   steht deshalb hier und nicht in der Datei, damit die Symbole anderswo
   in ihrer natuerlichen Staerke bleiben. */
section.m8_logo_overview.m8_argumente .m8_item_content_image_container img,
section.m8_logo_overview.m8_argumente .m8_item_content_image_container svg {
	height: 64px;
	min-height: 64px;
	stroke-width: 1;
}

/* stroke="currentColor" in den Dateien — die Farbe kommt von hier */
section.m8_logo_overview.m8_argumente .m8_item_content_image_container,
section.m8_logo_overview.m8_argumente .m8_item_content_image_container * {
	color: var(--color_primary);
}

/* Der 260px-Schein der Startseite ist auf die breite Spalte dort gerechnet.
   Im normalen Container misst eine Spalte ab 1600px abwaerts nur noch 235px
   — der Schein ragte dann aus ihr heraus (scrollWidth 248 gegen 235) und
   wurde an der Sectionkante beschnitten. Hier folgt er der Spaltenbreite. */
section.m8_logo_overview.m8_argumente .m8_item_content_image_container::before {
	width: min(100%, 220px);
	height: auto;
	aspect-ratio: 1 / 1;
}

/* Der grosse Schein hinter dem Statement der Startseite haengt am
   m8_intro — ohne Titel bleibt hier nur seine Breite uebrig (884px in
   einer 680px-Spalte). Ohne Statement kein Schein. */
section.m8_logo_overview.m8_argumente .m8_intro::before {
	content: none;
}
