/* ==========================================================================
   M31 Förderung – Figma 49:524 / 50:407
   ========================================================================== */

section.m31_foerderung .m31_foerderung_main {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 40px;
}

section.m31_foerderung .m31_col_text {
	flex: 0 1 480px;
	min-width: 0;
}

section.m31_foerderung .m31_col_rechnung {
	flex: 0 1 640px;
	min-width: 0;
}

section.m31_foerderung p,
section.m31_foerderung dl,
section.m31_foerderung dd {
	margin: 0;
}

/* Figma: line break after "80 %" */
section.m31_foerderung .m31_titel {
	max-width: 10.5em;
}

section.m31_foerderung .m31_text_container {
	padding-top: 24px;
	font-size: 1rem;
	line-height: 1.65;
}

section.m31_foerderung .m31_text_container > p + p {
	margin-top: 16px;
}

/* Optional short label on smartphones (Figma mobile: "Bemessungsgrundlage" without "(netto)") */
section.m31_foerderung .m31_mobil {
	display: none;
}

/* Example calculation */
section.m31_foerderung .m31_rechnung {
	border: 1px solid var(--btw_schwarz);
}

section.m31_foerderung .m31_rechnung_kopf {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 24px;
	background-color: var(--btw_schwarz);
}

section.m31_foerderung .m31_rechnung_kopf p {
	font-size: 0.75rem;
	line-height: 1.65;
	letter-spacing: 0.06em;
	color: var(--btw_weiss);
}

section.m31_foerderung .m31_rechnung_liste {
	padding: 24px;
}

section.m31_foerderung .m31_rechnung_zeile {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid var(--btw_linie);
}

section.m31_foerderung .m31_rechnung_bezeichnung,
section.m31_foerderung .m31_rechnung_wert {
	font-size: 1rem;
	line-height: 1.65;
}

section.m31_foerderung .m31_rechnung_bezeichnung {
	color: var(--btw_grau);
}

section.m31_foerderung .m31_rechnung_wert {
	flex: 0 0 auto;
	text-align: right;
	color: var(--btw_schwarz);
}

section.m31_foerderung .m31_rechnung_zeile--summe {
	padding: 20px 0 10px;
	border-bottom: 0;
}

section.m31_foerderung .m31_rechnung_zeile--summe .m31_rechnung_bezeichnung,
section.m31_foerderung .m31_rechnung_zeile--summe .m31_rechnung_wert {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--btw_schwarz);
}

/* Funding rates (2 columns) */
section.m31_foerderung .m31_saetze {
	display: flex;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--btw_linie);
}

section.m31_foerderung .m31_satz {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	padding: 16px 20px;
}

section.m31_foerderung .m31_satz::before {
	content: none;
}

section.m31_foerderung .m31_satz + .m31_satz {
	border-left: 1px solid var(--btw_linie);
}

section.m31_foerderung .m31_satz_wert {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.65;
	letter-spacing: -0.04em;
}

section.m31_foerderung .m31_satz_text_container {
	padding-top: 4px;
	font-size: 0.75rem;
	line-height: 1.45;
}

section.m31_foerderung .m31_satz_text_container,
section.m31_foerderung .m31_satz_text_container p {
	color: var(--btw_grau);
}

section.m31_foerderung .m31_satz_text_container > p + p {
	margin-top: 0;
}

/* Note */
section.m31_foerderung .m31_hinweis {
	margin-top: 24px;
	padding: 16px 20px;
	border: 1px dashed var(--btw_hellgrau);
}

section.m31_foerderung .m31_hinweis_titel {
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.65;
}

section.m31_foerderung .m31_hinweis_text_container {
	padding-top: 6px;
	font-size: 0.9375rem;
	line-height: 1.65;
}

@media all and (max-width: 991px) {
	section.m31_foerderung .m31_foerderung_main {
		flex-direction: column;
		gap: 32px;
	}

	section.m31_foerderung .m31_col_text,
	section.m31_foerderung .m31_col_rechnung {
		flex: 0 0 auto;
		width: 100%;
		max-width: 640px;
	}
}

@media all and (max-width: 575px) {
	section.m31_foerderung .m31_text_container {
		padding-top: 16px;
	}

	section.m31_foerderung .m31_rechnung_kopf {
		padding: 10px 16px;
	}

	section.m31_foerderung .m31_rechnung_kopf p {
		font-size: 0.6875rem;
	}

	section.m31_foerderung .m31_desktop {
		display: none;
	}

	section.m31_foerderung .m31_mobil {
		display: inline;
	}

	/* Figma mobile: right header text hidden */
	section.m31_foerderung .m31_rechnung_kopf_rechts {
		display: none;
	}

	section.m31_foerderung .m31_rechnung_liste {
		padding: 16px;
	}

	section.m31_foerderung .m31_rechnung_zeile {
		padding: 9px 0;
	}

	section.m31_foerderung .m31_rechnung_bezeichnung,
	section.m31_foerderung .m31_rechnung_wert {
		font-size: 0.8125rem;
	}

	section.m31_foerderung .m31_rechnung_zeile--summe {
		padding: 14px 0 9px;
	}

	section.m31_foerderung .m31_rechnung_zeile--summe .m31_rechnung_bezeichnung,
	section.m31_foerderung .m31_rechnung_zeile--summe .m31_rechnung_wert {
		font-size: 1.125rem;
	}

	/* Rates stacked and attached to the calculation box */
	section.m31_foerderung .m31_saetze {
		flex-direction: column;
		margin-top: 0;
		border-top: 0;
	}

	section.m31_foerderung .m31_satz {
		padding: 16px;
	}

	section.m31_foerderung .m31_satz + .m31_satz {
		border-left: 0;
		border-top: 1px solid var(--btw_linie);
	}

	section.m31_foerderung .m31_satz_wert {
		font-size: 1.75rem;
	}

	section.m31_foerderung .m31_hinweis {
		margin-top: 16px;
		padding: 16px;
	}

	section.m31_foerderung .m31_hinweis_titel,
	section.m31_foerderung .m31_hinweis_text_container {
		font-size: 0.875rem;
	}

	section.m31_foerderung .m31_hinweis_text_container {
		padding-top: 4px;
	}
}

@media all and (max-width: 375px) {
	section.m31_foerderung .m31_rechnung_zeile {
		flex-wrap: wrap;
		gap: 0 12px;
	}

	section.m31_foerderung .m31_rechnung_wert {
		margin-left: auto;
	}
}
