/* =========================================
   Content Block: rs/typo3-benefits
   ========================================= */


/* =========================================
   Intro
   ========================================= */

.typo3-benefits__intro {
	--spacing-heading: 1.5rem;

	max-width: 850px;
	margin: 0 auto 3.5rem;
	text-align: center;
}

.typo3-benefits__intro > :last-child {
	margin-bottom: 0;
}


/* =========================================
   Layout
   ========================================= */

.typo3-benefits__layout {
	display: grid;
	grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
	align-items: center;
	gap: 3rem;
	max-width: 1400px;
	margin-inline: auto;
}

.typo3-benefits__layout--no-image {
	grid-template-columns: minmax(0, 1fr);
}


/* =========================================
   CMS-Bild
   ========================================= */

.typo3-benefits__visual {
	min-width: 0;
	overflow: hidden;
	border-radius: 16px;
}

.typo3-benefits__visual img {
	display: block;
	width: 100%;
	height: auto;
}


/* =========================================
   Vorteile-Raster
   ========================================= */

.typo3-benefits__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2.75rem 1.5rem;
	min-width: 0;
}


/* =========================================
   Einzelner Vorteil
   ========================================= */

.typo3-benefits__item {
	min-width: 0;
}


/* =========================================
   Icon
   ========================================= */

.typo3-benefits__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 1rem;
	border-radius: 14px;
	background-color: var(--color-primary-light);
}

.typo3-benefits__icon img {
	display: block;
	width: 30px;
	height: 30px;
	object-fit: contain;
}


/* =========================================
   Benefit Content
   ========================================= */

.typo3-benefits__content {
	--spacing-heading: .65rem;
	--spacing-paragraph: 0;

	min-width: 0;
	color: var(--color-text-muted);
}

.typo3-benefits__content > :last-child {
	margin-bottom: 0;
}


/* =========================================
   Responsive – Desktop unter 1400px
   ========================================= */

@media (min-width: 992px) and (max-width: 1399.98px) {

	.typo3-benefits__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 3rem;
	}

	.typo3-benefits__visual {
		width: 100%;
		max-width: 560px;
		margin-inline: auto;
	}

	.typo3-benefits__grid {
		gap: 2.5rem 2rem;
	}

}


/* =========================================
   Responsive – Tablets
   ========================================= */

@media (max-width: 991.98px) {

	.typo3-benefits__intro {
		margin-bottom: 2.5rem;
	}

	.typo3-benefits__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 2.5rem;
	}

	.typo3-benefits__visual {
		max-width: 600px;
		margin-inline: auto;
	}

	.typo3-benefits__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2rem;
	}

}


/* =========================================
   Responsive – Smartphones
   ========================================= */

@media (max-width: 575.98px) {

	.typo3-benefits__intro {
		margin-bottom: 2rem;
	}

	.typo3-benefits__layout {
		gap: 2rem;
	}

	.typo3-benefits__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.75rem;
	}

	.typo3-benefits__icon {
		width: 48px;
		height: 48px;
	}

	.typo3-benefits__icon img {
		width: 26px;
		height: 26px;
	}

}