/* Mammacita Produktbox – Varianten A (Mint Soft), C (Kompakt), D (Petrol).
   Farben laut Brand Book. Desktop/Mobil schaltet über die Breite der Box
   (Container Query), nicht über die Fensterbreite: so passt sie sich auch
   in schmalen Spalten an. */
.mc-pb-wrap {
	container-type: inline-size;
	margin: 28px 0;
}
.elementor-widget-shortcode .mc-pb-wrap {
	margin: 20px 0;
}
.mc-pb {
	position: relative;
	display: grid;
	gap: 18px 32px;
	padding: 32px;
	border-radius: 24px;
	box-sizing: border-box;
	font-size: 16px;
	line-height: 1.45;
	text-align: left;
	color: #1d2b2a;
}
.mc-pb *,
.mc-pb *::before,
.mc-pb *::after {
	box-sizing: border-box;
}

/* Bausteine */
.mc-pb .mc-pb__media {
	grid-area: media;
	align-self: start;
	margin: 0;
}
.mc-pb .mc-pb__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 16px;
	margin: 0;
}
.mc-pb .mc-pb__head {
	grid-area: head;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}
.mc-pb .mc-pb__header {
	margin: 0;
	padding: 0;
	font-size: 13px;
	line-height: 1.4;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #086d63;
}
.mc-pb .mc-pb__title {
	margin: 0;
	padding: 0;
	font-family: Raleway, sans-serif;
	font-size: 30px;
	line-height: 1.2;
	font-weight: 700;
	color: #1d2b2a;
	overflow-wrap: anywhere;
	-webkit-hyphens: auto;
	hyphens: auto;
}
.mc-pb .mc-pb__sentence {
	margin: 0;
	padding: 0;
	font-size: 15.5px;
	line-height: 1.5;
	color: #1d2b2a;
}
.mc-pb .mc-pb__desc {
	grid-area: desc;
	min-width: 0;
}
.mc-pb .mc-pb__desc > *:first-child {
	margin-top: 0;
}
.mc-pb .mc-pb__desc > *:last-child {
	margin-bottom: 0;
}
.mc-pb .mc-pb__desc ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.mc-pb .mc-pb__desc ul li {
	position: relative;
	list-style: none;
	margin: 0;
	padding: 0 0 0 36px;
	font-size: 16px;
	line-height: 1.45;
	color: inherit;
}
.mc-pb .mc-pb__desc ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23086d63' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
.mc-pb .mc-pb__foot {
	grid-area: foot;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px 20px;
	padding-top: 6px;
	min-width: 0;
}
.mc-pb .mc-pb__price {
	margin: 0;
	padding: 0;
	font-family: Raleway, sans-serif;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 700;
	color: #1d2b2a;
}
.mc-pb .mc-pb__btn {
	display: inline-block;
	padding: 15px 30px;
	border: 0;
	border-radius: 999px;
	font-size: 16px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
	box-shadow: none;
}
/* Die ganze Box ist klickbar: Der Button-Link wird über die Box gespannt. */
.mc-pb .mc-pb__btn::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 24px;
}
/* Fokusrahmen nur bei Tastaturbedienung (Tab-Taste), nicht beim Klicken oder Tippen. */
.mc-pb .mc-pb__btn:focus {
	outline: none;
}
.mc-pb .mc-pb__btn:focus-visible {
	outline: 3px solid #1d2b2a;
	outline-offset: 3px;
}
.mc-pb--d .mc-pb__btn:focus-visible {
	outline-color: #ffffff;
}

/* Variante A – Mint Soft */
.mc-pb--a {
	background: #d6eae7;
	grid-template-columns: 240px minmax(0, 1fr);
	grid-template-rows: auto auto 1fr;
	grid-template-areas: "media head" "media desc" "media foot";
}

/* Variante D – Petrol */
.mc-pb--d {
	background: #086d63;
	color: #ffffff;
	grid-template-columns: minmax(0, 1fr) 260px;
	grid-template-rows: auto auto 1fr;
	grid-template-areas: "head media" "desc media" "foot media";
}
.mc-pb--d .mc-pb__header {
	color: #d6eae7;
}
.mc-pb--d .mc-pb__title,
.mc-pb--d .mc-pb__price {
	color: #ffffff;
}
.mc-pb--d .mc-pb__desc ul li::before {
	background: #80cbb7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2b2a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
.mc-pb--d .mc-pb__foot {
	justify-content: flex-start;
	gap: 16px 24px;
}
.mc-pb--d .mc-pb__btn {
	order: -1;
}
.mc-pb--d .mc-pb__price {
	font-size: 26px;
}

/* Variante C – Kompakt */
.mc-pb--c {
	background: #ffffff;
	border: 2px solid #80cbb7;
	border-radius: 16px;
	padding: 20px 24px 20px 20px;
	gap: 12px 24px;
	align-items: center;
	grid-template-columns: 132px minmax(0, 1fr) auto;
	grid-template-areas: "media head foot";
}
.mc-pb--c .mc-pb__media {
	align-self: center;
}
.mc-pb--c .mc-pb__media img {
	border-radius: 12px;
}
.mc-pb--c .mc-pb__head {
	gap: 8px;
}
.mc-pb--c .mc-pb__title {
	font-size: 23px;
	line-height: 1.25;
}
.mc-pb--c .mc-pb__foot {
	flex-direction: column;
	align-items: flex-end;
	flex-wrap: nowrap;
	gap: 12px;
	padding-top: 0;
}
.mc-pb--c .mc-pb__price {
	font-size: 24px;
}
.mc-pb--c .mc-pb__btn {
	padding: 13px 22px;
	font-size: 15px;
}
.mc-pb--c .mc-pb__btn::after {
	border-radius: 16px;
}

/* Ohne Beitragsbild */
.mc-pb--a.mc-pb--noimg,
.mc-pb--d.mc-pb--noimg {
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto;
	grid-template-areas: "head" "desc" "foot";
}
.mc-pb--c.mc-pb--noimg {
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "head foot";
}

/* Mobil: Box schmaler als 620px */
@container (max-width: 620px) {
	.mc-pb {
		padding: 20px;
		border-radius: 20px;
		gap: 18px 16px;
	}
	.mc-pb--a,
	.mc-pb--d {
		grid-template-columns: 104px minmax(0, 1fr);
		grid-template-rows: auto;
		grid-template-areas: "media head" "desc desc" "foot foot";
	}
	.mc-pb--a .mc-pb__head,
	.mc-pb--d .mc-pb__head {
		align-self: center;
	}
	.mc-pb .mc-pb__header {
		font-size: 12px;
	}
	.mc-pb .mc-pb__title {
		font-size: 23px;
	}
	.mc-pb .mc-pb__media img {
		border-radius: 12px;
	}
	.mc-pb--a .mc-pb__foot,
	.mc-pb--d .mc-pb__foot {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding-top: 0;
	}
	.mc-pb .mc-pb__price {
		font-size: 26px;
	}
	.mc-pb--a .mc-pb__btn,
	.mc-pb--d .mc-pb__btn {
		display: block;
		order: 0;
		text-align: center;
		white-space: normal;
		padding: 16px 24px;
	}
	.mc-pb .mc-pb__btn::after {
		border-radius: 20px;
	}
	.mc-pb--c {
		padding: 16px;
		border-radius: 16px;
		gap: 14px;
		grid-template-columns: 88px minmax(0, 1fr);
		grid-template-areas: "media head" "foot foot";
	}
	.mc-pb--c .mc-pb__media {
		align-self: start;
	}
	.mc-pb--c .mc-pb__media img {
		border-radius: 10px;
	}
	.mc-pb--c .mc-pb__title {
		font-size: 20px;
	}
	.mc-pb--c .mc-pb__sentence {
		font-size: 15px;
		line-height: 1.45;
	}
	.mc-pb--c .mc-pb__foot {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		flex-wrap: wrap;
	}
	.mc-pb--c .mc-pb__price {
		font-size: 22px;
	}
	.mc-pb--c .mc-pb__btn {
		padding: 14px 20px;
		white-space: normal;
		text-align: center;
	}
	.mc-pb--c .mc-pb__btn::after {
		border-radius: 16px;
	}
	.mc-pb--a.mc-pb--noimg,
	.mc-pb--d.mc-pb--noimg {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "head" "desc" "foot";
	}
	.mc-pb--c.mc-pb--noimg {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "head" "foot";
	}
}

/* Rückfall für Browser ohne Container Queries: nach Fensterbreite */
@supports not (container-type: inline-size) {
@media (max-width: 680px) {
	.mc-pb {
		padding: 20px;
		border-radius: 20px;
		gap: 18px 16px;
	}
	.mc-pb--a,
	.mc-pb--d {
		grid-template-columns: 104px minmax(0, 1fr);
		grid-template-rows: auto;
		grid-template-areas: "media head" "desc desc" "foot foot";
	}
	.mc-pb--a .mc-pb__head,
	.mc-pb--d .mc-pb__head {
		align-self: center;
	}
	.mc-pb .mc-pb__header {
		font-size: 12px;
	}
	.mc-pb .mc-pb__title {
		font-size: 23px;
	}
	.mc-pb .mc-pb__media img {
		border-radius: 12px;
	}
	.mc-pb--a .mc-pb__foot,
	.mc-pb--d .mc-pb__foot {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding-top: 0;
	}
	.mc-pb .mc-pb__price {
		font-size: 26px;
	}
	.mc-pb--a .mc-pb__btn,
	.mc-pb--d .mc-pb__btn {
		display: block;
		order: 0;
		text-align: center;
		white-space: normal;
		padding: 16px 24px;
	}
	.mc-pb .mc-pb__btn::after {
		border-radius: 20px;
	}
	.mc-pb--c {
		padding: 16px;
		border-radius: 16px;
		gap: 14px;
		grid-template-columns: 88px minmax(0, 1fr);
		grid-template-areas: "media head" "foot foot";
	}
	.mc-pb--c .mc-pb__media {
		align-self: start;
	}
	.mc-pb--c .mc-pb__media img {
		border-radius: 10px;
	}
	.mc-pb--c .mc-pb__title {
		font-size: 20px;
	}
	.mc-pb--c .mc-pb__sentence {
		font-size: 15px;
		line-height: 1.45;
	}
	.mc-pb--c .mc-pb__foot {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		flex-wrap: wrap;
	}
	.mc-pb--c .mc-pb__price {
		font-size: 22px;
	}
	.mc-pb--c .mc-pb__btn {
		padding: 14px 20px;
		white-space: normal;
		text-align: center;
	}
	.mc-pb--c .mc-pb__btn::after {
		border-radius: 16px;
	}
	.mc-pb--a.mc-pb--noimg,
	.mc-pb--d.mc-pb--noimg {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "head" "desc" "foot";
	}
	.mc-pb--c.mc-pb--noimg {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "head" "foot";
	}
}
}
