/* =========================================================
   HIGHLIGHT CARDS
   ========================================================= */

.highlight-cards {
	position: relative;
	isolation: isolate;

	width: 100%;

	box-sizing: border-box;
}


/* =========================================================
   INNER
   ========================================================= */

.highlight-cards__inner {
	position: relative;
	z-index: 2;

	width: 100%;
}


/* =========================================================
   ÜBERSCHRIFTEN
   ========================================================= */

.highlight-cards__headline {
	margin: 0 0 0.35rem;
}


.highlight-cards__subheadline {
	margin: 0 0 2rem;

	font-size: 1.15rem;
	line-height: 1.4;
}


/* =========================================================
   GRID
   ========================================================= */

.highlight-cards__grid {
	display: grid;

	gap: 1rem;

	width: 100%;
}


/* 2 Kacheln */

.highlight-cards__grid[data-card-count="2"] {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}


/* 3 Kacheln */

.highlight-cards__grid[data-card-count="3"] {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* 4 Kacheln */

.highlight-cards__grid[data-card-count="4"] {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* =========================================================
   EINZELNE KACHEL
   ========================================================= */

.highlight-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	min-width: 0;
	min-height: 260px;

	padding: 2rem 1.5rem;

	box-sizing: border-box;

	text-align: center;

	border-radius: var(--border-radius);

	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   KACHEL ÜBERSCHRIFT
   ========================================================= */

.highlight-card__headline {
	margin: 0 0 1.5rem;

	color: inherit;

	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.25;

	text-align: center;
}


/* =========================================================
   KACHEL TEXT
   ========================================================= */

.highlight-card__text {
	width: 100%;

	color: inherit;

	text-align: center;
	line-height: 1.6;
}


.highlight-card__text > :first-child {
	margin-top: 0;
}


.highlight-card__text > :last-child {
	margin-bottom: 0;
}


.highlight-card__text p,
.highlight-card__text li,
.highlight-card__text a,
.highlight-card__text strong,
.highlight-card__text em,
.highlight-card__text span {
	color: inherit;
}


/* =========================================================
   KACHELFARBEN
   ========================================================= */

.highlight-card--logo-color-1 {
	background-color: var(--logo-color-1);
	color: #ffffff;
}


.highlight-card--logo-color-1-light {
	background-color: var(--logo-color-1-light);
	color: #ffffff;
}


.highlight-card--logo-color-1-dark {
	background-color: var(--logo-color-1-dark);
	color: #ffffff;
}


.highlight-card--logo-color-2 {
	background-color: var(--logo-color-2);
	color: #ffffff;
}


.highlight-card--neutral-color-light {
	background-color: var(--neutral-color-light);
	color: var(--font-color-dark, #000000);
}


.highlight-card--neutral-color-dark {
	background-color: var(--neutral-color-dark);
	color: #ffffff;
}


.highlight-card--white {
	background-color: #ffffff;
	color: var(--font-color-dark, #000000);
}


/* =========================================================
   HINTERGRUNDBILD
   ========================================================= */

/*
 * Die eigentliche Fullwidth-Darstellung,
 * Abdunklung und der Blur kommen aus
 * der globalen .content-background-image-Regel.
 */

.highlight-cards > .content-background-image {
	z-index: -1;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

	.highlight-cards__grid[data-card-count="3"],
	.highlight-cards__grid[data-card-count="4"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}


@media (max-width: 650px) {

	.highlight-cards__grid,
	.highlight-cards__grid[data-card-count="2"],
	.highlight-cards__grid[data-card-count="3"],
	.highlight-cards__grid[data-card-count="4"] {
		grid-template-columns: 1fr;
	}


	.highlight-card {
		min-height: 0;

		padding: 1.5rem 1.25rem;
	}


	.highlight-card__headline {
		font-size: 1.2rem;
	}
}