/* =========================================
   Content Block: rs/text-checklist
   ========================================= */


/* =========================================
   Einleitung
   ========================================= */

.text-checklist__intro {
	max-width: 900px;
	margin: 0 auto 3.5rem;
	text-align: center;
}

.text-checklist__intro > :last-child {
	margin-bottom: 0;
}


/* =========================================
   Fließtext
   ========================================= */

.text-checklist__body {
	--spacing-paragraph: 1.25rem;
}

.text-checklist__body > :last-child {
	margin-bottom: 0;
}


/* =========================================
   Checklisten-Panel
   ========================================= */

.text-checklist__panel {
	--panel-bg: var(--color-background-soft);
	--panel-text: var(--color-text);
	--panel-icon: var(--color-primary);
	--panel-border: transparent;
	--panel-divider: rgb(78 97 156 / 12%);

	--color-heading: var(--color-text);
	--spacing-heading: 1.5rem;

	min-width: 0;
	padding: clamp(1.75rem, 3vw, 3rem);
	background-color: var(--panel-bg);
	border: 1px solid var(--panel-border);
	border-radius: 16px;
}


/* =========================================
   Panel-Hintergrundvarianten
   ========================================= */

.text-checklist__panel--white {
	--panel-bg: #fff;
	--panel-border: #e1e6f0;
}

.text-checklist__panel--light {
	--panel-bg: var(--color-background-soft);
}

.text-checklist__panel--primary {
	--panel-bg: var(--color-primary);
	--panel-text: #fff;
	--panel-icon: #fff;
	--panel-divider: rgb(255 255 255 / 20%);

	--color-heading: #fff;
}


/* =========================================
   Überschrift der Checkliste
   ========================================= */

.text-checklist__title {
	overflow-wrap: break-word;
}


/* =========================================
   Checkliste
   ========================================= */

.text-checklist__list {
	display: flex;
	flex-direction: column;
	padding: 0;
	margin: 0;
	list-style: none;
}

.text-checklist__item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.15rem 0;
	color: var(--panel-text);
	font-size: var(--font-size-base);
	line-height: var(--line-height-base);
}

.text-checklist__item + .text-checklist__item {
	border-top: 1px solid var(--panel-divider);
}

.text-checklist__item:first-child {
	padding-top: 0;
}

.text-checklist__item:last-child {
	padding-bottom: 0;
}


/* =========================================
   Icons
   ========================================= */

.text-checklist__icon {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	margin-top: 2px;
	color: var(--panel-icon);
}


/* =========================================
   Text
   ========================================= */

.text-checklist__text {
	flex: 1;
	min-width: 0;
	overflow-wrap: break-word;
}


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

@media (max-width: 991.98px) {

	.text-checklist__intro {
		margin-bottom: 2.5rem;
	}

	.text-checklist__panel {
		margin-top: .5rem;
	}

}


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

@media (max-width: 575.98px) {

	.text-checklist__intro {
		margin-bottom: 2rem;
	}

	.text-checklist__panel {
		padding: 1.5rem;
		border-radius: 12px;
	}

	.text-checklist__item {
		gap: .75rem;
		padding-block: 1rem;
	}

	.text-checklist__item:first-child {
		padding-top: 0;
	}

	.text-checklist__item:last-child {
		padding-bottom: 0;
	}

	.text-checklist__icon {
		flex-basis: 22px;
		width: 22px;
		height: 22px;
	}

}