
section.m44_vorteile_kacheln {
	background-color: #fff;
}

section.m44_vorteile_kacheln .m44_main {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

section.m44_vorteile_kacheln .m44_badge_container {
	margin-bottom: 22px;
}

section.m44_vorteile_kacheln .m44_badge {
	display: inline-block;
	margin: 0;
	padding: 7px 16px;
	border-radius: 999px;
	background-color: #e4f5f0;
	color: #037374;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04rem;
}

section.m44_vorteile_kacheln .m44_titel {
	margin: 0;
	/*
	 * Zeilenlaenge direkt auf der Ueberschrift, nicht auf dem Container:
	 * ch rechnet mit der Schriftgroesse des Elements, auf dem es steht.
	 */
	max-width: 32ch;
}

/* Kartenreihe — Flexbox, weil das Theme nirgends Grid verwendet. */
section.m44_vorteile_kacheln .m44_kacheln {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	width: 100%;
	margin-top: 40px;
}

section.m44_vorteile_kacheln .m44_kachel {
	display: flex;
	flex-direction: column;
	/*
	 * Die Kacheln teilen sich die Zeile gleichmaessig auf, egal ob es drei,
	 * vier oder fuenf sind. Die Basis ist nur die Umbruchgrenze, nicht die
	 * Zielbreite — deshalb 1 1 statt einer festen Prozentbreite.
	 */
	flex: 1 1 220px;
	padding: 28px 26px 30px;
	border: 1px solid #dfe5ea;
	border-radius: 10px;
	background-color: #fff;
}

/* Heller Kartenhintergrund, Rahmen bleibt gleich. */
section.m44_vorteile_kacheln.m44_stil_grau .m44_kachel {
	background-color: #f8f9fb;
}

section.m44_vorteile_kacheln .m44_icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	min-width: 44px;
	height: 44px;
	margin-bottom: 26px;
	border-radius: 50%;
	background-color: #e4f5f0;
	overflow: hidden;
}

section.m44_vorteile_kacheln .m44_icon img,
section.m44_vorteile_kacheln .m44_icon svg {
	width: 20px;
	height: 20px;
	object-fit: contain;
	fill: #037374;
	/*
	 * Die Sprite-Icons zeichnen mit currentColor. In den Shadow-Tree eines
	 * <use> kommt CSS nicht hinein, eine geerbte Eigenschaft wie color schon
	 * — deshalb wird die Farbe hier und nicht ueber einen Pfad-Selektor
	 * gesetzt. Das globale * { color: var(--font_color) } wuerde sonst
	 * greifen (Spezifitaet 0,0,0).
	 */
	color: #037374;
}

/*
 * Hochgeladene SVGs werden eingebettet und bringen eigene Farben auf den
 * Pfaden mit — die schlagen ein fill auf dem svg-Element. Deshalb hier
 * zusaetzlich die Kindelemente einfaerben.
 */
section.m44_vorteile_kacheln .m44_icon svg path,
section.m44_vorteile_kacheln .m44_icon svg polygon,
section.m44_vorteile_kacheln .m44_icon svg rect,
section.m44_vorteile_kacheln .m44_icon svg circle,
section.m44_vorteile_kacheln .m44_icon svg g {
	fill: #037374;
}

/* Nummernkreis fuer Ablauf-Schritte — gefuellt statt hinterlegt. */
section.m44_vorteile_kacheln .m44_nummer {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	min-width: 38px;
	height: 38px;
	margin-bottom: 26px;
	border-radius: 50%;
	background-color: #037374;
}

section.m44_vorteile_kacheln .m44_nummer span {
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
}

section.m44_vorteile_kacheln .m44_kachel_titel {
	margin: 0 0 10px;
	color: #0d353f;
	font-weight: 600;
}

section.m44_vorteile_kacheln .m44_kachel_text,
section.m44_vorteile_kacheln .m44_kachel_text * {
	color: #5d7279;
	font-size: 0.9375rem;
}

section.m44_vorteile_kacheln .m44_kachel_text p:last-child {
	margin-bottom: 0;
}

/*
 * Link sitzt am Kartenfuss. Farbe fuer :visited, :focus und :active
 * mitgesetzt — das Theme setzt a:visited { color: inherit }.
 */
section.m44_vorteile_kacheln .m44_kachel_link,
section.m44_vorteile_kacheln .m44_kachel_link:visited,
section.m44_vorteile_kacheln .m44_kachel_link:focus,
section.m44_vorteile_kacheln .m44_kachel_link:active {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 18px;
	color: #037374;
	font-size: 0.9375rem;
	font-weight: 600;
}

section.m44_vorteile_kacheln .m44_kachel_link svg {
	width: 20px;
	height: 11px;
	/*
	 * Der Pfeil ist mit stroke gezeichnet und folgt currentColor. Das Theme
	 * setzt * { color: var(--font_color) } — das trifft auch das svg selbst
	 * und bricht die Vererbung, deshalb hier explizit zurueckholen.
	 */
	color: inherit;
	fill: none;
	transition: transform 0.15s ease;
}

/*
 * Auch der Pfad selbst wird von * { color: ... } getroffen — ohne dieses
 * inherit loest currentColor dort wieder auf die globale Textfarbe auf.
 */
section.m44_vorteile_kacheln .m44_kachel_link svg path {
	color: inherit;
	stroke: currentColor;
}

section.m44_vorteile_kacheln .m44_kachel_link:hover svg {
	transform: translateX(3px);
}

section.m44_vorteile_kacheln .m44_links_container {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

section.m44_vorteile_kacheln .m44_links_container:not(:empty) {
	margin-top: 34px;
}

@media (max-width: 1199px) {
	section.m44_vorteile_kacheln .m44_kachel {
		padding: 24px 22px 26px;
	}
}

@media (max-width: 991px) {
	/* Umbruchgrenze anheben: mehr als zwei werden hier zu schmal. */
	section.m44_vorteile_kacheln .m44_kachel {
		flex: 1 1 260px;
	}

	section.m44_vorteile_kacheln .m44_titel {
		max-width: none;
	}
}

@media (max-width: 767px) {
	section.m44_vorteile_kacheln .m44_kacheln {
		margin-top: 32px;
	}
}

@media (max-width: 575px) {
	section.m44_vorteile_kacheln .m44_kachel {
		flex: 1 1 100%;
	}
}

@media (max-width: 374px) {
	section.m44_vorteile_kacheln .m44_kachel {
		padding: 20px 18px 22px;
	}

	/* Heller Kartenhintergrund, Rahmen bleibt gleich. */
section.m44_vorteile_kacheln.m44_stil_grau .m44_kachel {
	background-color: #f8f9fb;
}

section.m44_vorteile_kacheln .m44_icon {
		width: 38px;
		min-width: 38px;
		height: 38px;
		margin-bottom: 20px;
	}
}

@media (max-width: 319px) {
	section.m44_vorteile_kacheln .m44_badge {
		padding: 6px 12px;
		font-size: 0.75rem;
	}
}


/* --- Zentrierte Variante: Anlagentypen ------------------------------- */

section.m44_vorteile_kacheln.m44_zentriert .m44_kachel {
	align-items: center;
	padding: 30px 22px;
	text-align: center;
}

/*
 * Hier traegt das Icon keinen Kreis, sondern steht frei — wie in den
 * Antwortkacheln des Leistungschecks, auf die verlinkt wird.
 */
section.m44_vorteile_kacheln.m44_zentriert .m44_icon {
	width: auto;
	min-width: 0;
	height: 58px;
	margin-bottom: 18px;
	border-radius: 0;
	background-color: transparent;
}

section.m44_vorteile_kacheln.m44_zentriert .m44_icon img,
section.m44_vorteile_kacheln.m44_zentriert .m44_icon svg {
	width: auto;
	height: 100%;
	max-width: 74px;
}

/* Die eingebetteten SVGs bringen eigene Farben mit — hier ueberschrieben. */
section.m44_vorteile_kacheln.m44_zentriert .m44_icon svg path,
section.m44_vorteile_kacheln.m44_zentriert .m44_icon svg polygon,
section.m44_vorteile_kacheln.m44_zentriert .m44_icon svg rect,
section.m44_vorteile_kacheln.m44_zentriert .m44_icon svg circle {
	fill: #037374;
}

section.m44_vorteile_kacheln.m44_zentriert .m44_kachel_titel {
	margin-bottom: 4px;
}

section.m44_vorteile_kacheln.m44_zentriert .m44_kachel_text,
section.m44_vorteile_kacheln.m44_zentriert .m44_kachel_text * {
	font-size: 0.875rem;
}

/*
 * Komplett klickbare Kachel. Farben fuer :visited, :focus und :active
 * mitgesetzt — das Theme setzt a:visited { color: inherit }.
 */
section.m44_vorteile_kacheln a.m44_kachel,
section.m44_vorteile_kacheln a.m44_kachel:visited,
section.m44_vorteile_kacheln a.m44_kachel:focus,
section.m44_vorteile_kacheln a.m44_kachel:active {
	color: #0d353f;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

section.m44_vorteile_kacheln a.m44_kachel:hover {
	border-color: #037374;
	box-shadow: 0 4px 16px rgba(13, 53, 63, 0.08);
}

@media (max-width: 767px) {
	section.m44_vorteile_kacheln.m44_zentriert .m44_icon {
		height: 50px;
	}
}

@media (max-width: 374px) {
	section.m44_vorteile_kacheln.m44_zentriert .m44_kachel {
		padding: 24px 16px;
	}
}


/*
 * Linien-Icons aus dem Sprite.
 *
 * Die Sammelregeln weiter oben faerben jeden Pfad ein — bei einem Icon, das
 * aus Striche statt Flaechen besteht, wuerde daraus ein schwarzer Klumpen.
 * Ein Praesentationsattribut im Markup hilft nicht, CSS gewinnt dagegen
 * immer. Deshalb werden die Elemente, die sich im Sprite selbst als
 * fill="none" ausweisen, hier wieder freigestellt. Steht bewusst am
 * Dateiende: gleiche Spezifitaet wie die zentrierte Variante, die spaetere
 * Regel gewinnt.
 */
section.m44_vorteile_kacheln .m44_icon svg [fill="none"],
section.m44_vorteile_kacheln.m44_zentriert .m44_icon svg [fill="none"] {
	fill: none;
}
