/*
 * Gestaltung der Inhaltsblöcke & Vorlagen.
 * Wird auf der Website UND im Block-Editor geladen, damit Redakteure
 * genau sehen, wie der Inhalt später aussieht.
 */

/* ---------- Überschriften im Fließtext ---------- */

h2.wp-block-heading {
	margin-top: 1.8em;
}

/* kurzer orangefarbener Strich unter Zwischenüberschriften */
h2.wp-block-heading::after {
	content: "";
	display: block;
	width: 40px;
	height: 3px;
	margin-top: 0.45em;
	border-radius: 2px;
	background: #f05a22;
}

h2.wp-block-heading.has-text-align-center::after {
	margin-inline: auto;
}

h2.wp-block-heading.has-text-align-right::after {
	margin-left: auto;
}

/* ---------- Angebot / Kurs ---------- */

.sfb-angebot {
	margin-block: 2.2em;
	padding: 26px 28px 28px;
	border: 1px solid #e2e5e2;
	border-top: 5px solid #047948;
	border-radius: 10px;
	background: #fff;
}

.sfb-angebot > :first-child {
	margin-top: 0;
}

.sfb-angebot > :last-child {
	margin-bottom: 0;
}

.sfb-angebot .sfb-angebot__zielgruppe {
	display: inline-block;
	margin: 0 0 10px;
	padding: 4px 12px;
	border-radius: 999px;
	background: #fdeee6;
	color: #b9410f;
	font-family: Quicksand, system-ui, sans-serif;
	font-weight: 700;
	font-size: 0.9rem;
}

.sfb-angebot h3 {
	margin: 0 0 0.6em;
	font-size: 1.35rem;
}

.sfb-angebot h3::after {
	display: none;
}

.sfb-angebot .sfb-angebot__details {
	list-style: none;
	margin: 1.4em 0;
	padding: 16px 18px;
	border-radius: 8px;
	background: #f4f5f3;
}

.sfb-angebot .sfb-angebot__details li {
	display: grid;
	grid-template-columns: 9.5em 1fr;
	gap: 12px;
	padding: 6px 0;
	border-bottom: 1px solid #e2e5e2;
}

.sfb-angebot .sfb-angebot__details li:last-child {
	border-bottom: 0;
}

.sfb-angebot .sfb-angebot__details strong {
	color: #035b36;
}

@media (max-width: 520px) {
	.sfb-angebot {
		padding: 20px 18px 22px;
	}

	.sfb-angebot .sfb-angebot__details li {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

/* ---------- Hinweis- / Aufruf-Box ---------- */

.sfb-hinweis {
	margin-block: 2.2em;
	padding: 28px 30px;
	border-radius: 10px;
	background: #e7f2ec;
	border-left: 5px solid #047948;
}

.sfb-hinweis--orange {
	background: #fdeee6;
	border-left-color: #f05a22;
}

.sfb-hinweis > :first-child {
	margin-top: 0;
}

.sfb-hinweis > :last-child {
	margin-bottom: 0;
}

.sfb-hinweis h2::after,
.sfb-hinweis h3::after {
	display: none;
}

/* ---------- Tabellen (z. B. Mitgliedsbeiträge) ---------- */

.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.wp-block-table th,
.wp-block-table td {
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid #e2e5e2;
	text-align: left;
	vertical-align: top;
}

.wp-block-table thead {
	border-bottom: 0;
}

.wp-block-table thead th {
	background: #047948;
	color: #fff;
	font-family: Quicksand, system-ui, sans-serif;
	font-weight: 700;
}

.wp-block-table thead th:first-child {
	border-top-left-radius: 8px;
}

.wp-block-table thead th:last-child {
	border-top-right-radius: 8px;
}

.wp-block-table tbody tr:nth-child(even) {
	background: #f4f5f3;
}

.wp-block-table figcaption {
	margin-top: 10px;
	font-size: 0.9rem;
	color: #5c615e;
}

/* ---------- Dateien / Downloads ---------- */

.wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	padding: 14px 18px;
	border: 1px solid #e2e5e2;
	border-radius: 8px;
	background: #fff;
}

.wp-block-file + .wp-block-file {
	margin-top: -1px;
}

.wp-block-file > a:first-child {
	font-weight: 600;
	color: #1b1d1c;
	text-decoration: none;
}

.wp-block-file > a:first-child::before {
	content: "PDF";
	display: inline-block;
	margin-right: 10px;
	padding: 3px 6px;
	border-radius: 4px;
	background: #fdeee6;
	color: #b9410f;
	font-size: 0.72rem;
	font-weight: 700;
	vertical-align: 2px;
}

.wp-block-file > a:first-child:not([href$=".pdf"])::before {
	content: "Datei";
}

.wp-block-file .wp-block-file__button {
	margin: 0;
	padding: 0.55em 1.1em;
	border-radius: 6px;
	background: #047948;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
}

.wp-block-file .wp-block-file__button:hover {
	background: #035b36;
}

.wp-block-file .wp-block-file__embed {
	flex-basis: 100%;
}

/* ---------- Zitate, Listen, Bilder ---------- */

.wp-block-quote {
	margin-block: 2em;
	padding: 4px 0 4px 22px;
	border-left: 4px solid #f05a22;
	font-size: 1.12rem;
}

.wp-block-quote cite {
	display: block;
	margin-top: 8px;
	font-size: 0.9rem;
	font-style: normal;
	color: #5c615e;
}

.wp-block-image figcaption,
.wp-block-gallery figcaption {
	font-size: 0.9rem;
	color: #5c615e;
}

.wp-block-separator {
	border: 0;
	border-top: 1px solid #e2e5e2;
	margin-block: 2.5em;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid currentColor;
	background: transparent;
	color: #047948;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: #e7f2ec;
	color: #035b36;
}

/* ---------- Ansprechpartner / Team ---------- */

.sfb-team {
	gap: 24px;
}

.sfb-person {
	padding: 22px;
	border: 1px solid #e2e5e2;
	border-radius: 10px;
	text-align: center;
}

.sfb-person .wp-block-image img {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 50%;
}

.sfb-person h3 {
	margin: 12px 0 2px;
	font-size: 1.15rem;
}

.sfb-person p {
	margin: 0;
	font-size: 0.95rem;
	color: #5c615e;
}

.sfb-person .sfb-person__rolle {
	margin-bottom: 10px;
	color: #b9410f;
	font-weight: 700;
	font-family: Quicksand, system-ui, sans-serif;
}
