/* =========================================================
   M36 - CTA (oranger Card, Bild links mit Top-Overhang, Text + 2 Buttons rechts)
   Tokens: orange #f48520 | dunkelbraun #4a2e15 | hell #f4f5f2
   Font-Sizes in rem, Spacing in px.
   ========================================================= */

section.m36_cta .m36_card {
	position: relative;
	display: flex;
	align-items: stretch;
	width: calc(100% - 140px);   /* 70px Gutter -> identisch zum m30-Header-Content (kein max-width-Cap) */
	margin: 0 auto;
	background-color: #f48520;
}

/* ---------- Bild links (ragt oben ueber die Card-Kante) ---------- */
section.m36_cta .m36_media {
	flex: 0 0 50%;
	align-self: stretch;
	position: relative;
}
section.m36_cta .m36_media img {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: calc(100% + 45px);   /* Box ragt oben raus -> Koepfe koennen ueberstehen */
	object-fit: contain;          /* NIE beschneiden -> skaliert lieber kleiner */
	object-position: center bottom;   /* Fuesse am unteren Card-Rand verankert */
	display: block;
}

/* ---------- Inhalt rechts ---------- */
section.m36_cta .m36_content {
	flex: 1 1 auto;
	min-width: 0;
	padding: 110px 80px 110px 40px;   /* linker Abstand reduziert -> Text rueckt naeher ans Bild */
}
/* Textspalte begrenzen -> klarer Abstand zum rechten Box-Rand (Figma) */
section.m36_cta .m36_content > * {
	max-width: 660px;
}
section.m36_cta .m36_topline {
	display: block;
	margin-bottom: 2px;
	font-size: 1.0625rem;   /* 17px */
	font-weight: 800;
	text-transform: uppercase;
	color: #4a2e15;
}
section.m36_cta .m36_titel,
section.m36_cta .m36_titel * {
	margin: 0;
	font-weight: 800;
	text-transform: uppercase;
	color: #4a2e15;
}
section.m36_cta .m36_text {
	margin: 30px 0 52px;
	font-size: 1.0625rem;   /* 17px */
	line-height: 25px;
	color: #4a2e15;
}

/* ---------- Buttons auf Orange (Override der globalen .mM_links-Optik) ----------
   Primaer: dunkelbrauner Button + oranges Icon-Kaestchen (Invertierung des Standards).
   Sekundaer: transparent mit dunkelbraunem Rand. */
section.m36_cta .m36_links_wrap .mM_links a.primary,
section.m36_cta .m36_links_wrap .mM_links a.primary:hover {
	background-color: #4a2e15;
	color: #f4f5f2;
}
section.m36_cta .m36_links_wrap .mM_links a .mM_button_icon {
	background-color: #f48520;
}
section.m36_cta .m36_links_wrap .mM_links a.secondary {
	color: #4a2e15;
	border-color: rgba(74, 46, 21, 0.3);
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
/* Hover sekundaerer Button: fuellt sich dunkelbraun */
section.m36_cta .m36_links_wrap .mM_links a.secondary:hover {
	background-color: #4a2e15;
	color: #f4f5f2;
	border-color: #4a2e15;
}

/* =========================================================
   Responsive
   ========================================================= */
/* Gutter folgt dem m30-Header-Content: 70px -> 40px (<=1200) -> 24px (<=991) */
@media screen and (max-width: 1200px) {
	section.m36_cta .m36_card {
		width: calc(100% - 80px);   /* 40px Gutter */
	}
}

@media screen and (max-width: 1199px) {
	/* Gestapelt: Text oben, Personen unten am Card-Rand (column-reverse, da Bild im Markup zuerst) */
	section.m36_cta .m36_card {
		flex-direction: column-reverse;
		align-items: stretch;
		width: calc(100% - 48px);   /* 24px Gutter */
	}
	section.m36_cta .m36_media {
		flex: 0 0 auto;
		width: min(450px, 100%);   /* nicht riesig werden */
		aspect-ratio: 1 / 1;
		margin: 0 0 0 auto;
		margin-top: -300px;           /* zentriert unten */
	}
	section.m36_cta .m36_media img {
		position: absolute;
		inset: 0;
		height: 100%;
		object-fit: contain;
		object-position: center bottom;   /* Personen unten verankert */
	}
	section.m36_cta .m36_content {
		padding: 48px 40px 32px;
		max-width: calc(100% - 450px);
	}
}

@media screen and (max-width: 991px) {
	section.m36_cta .m36_content {
		max-width: 100%;
	}
	
	section.m36_cta .m36_media {
		margin: 0 auto;
		margin-top: 0;
	}
}

@media screen and (max-width: 600px) {
	/* Gutter bleibt 24px wie m30 (calc(100% - 48px) aus dem 991er-Block) */
	section.m36_cta .m36_media {
		aspect-ratio: 4 / 3;
	}
	section.m36_cta .m36_content {
		padding: 28px 24px;
	}
	section.m36_cta .m36_titel,
	section.m36_cta .m36_titel * {
		font-size: 2rem;   /* 32px */
		line-height: 1.15;
	}
	section.m36_cta .m36_links_wrap .mM_links a.mM_button,
	section.m36_cta .m36_links_wrap .mM_links a.mM_button.secondary {
		width: 100%;
		justify-content: center;
	}
}
