/* ==========================================================================
   Ergänzungen für Divi-Seiten (Startseite und Unterseiten), auf allen Seiten geladen.
   ========================================================================== */

/* Divi gibt dem letzten Absatz bzw. der Überschrift im Modul unten zusätzlichen
   Innenabstand. Die Abstände kommen nur aus den Modul-Einstellungen. */
.et_pb_text_inner > :last-child,
.et_pb_text p:last-of-type,
.et_pb_heading .et_pb_module_heading,
.et_pb_heading h1,
.et_pb_heading h2,
.et_pb_heading h3 { padding-bottom: 0; margin-bottom: 0; }

/* Eyebrow (kleine Überschrift über Titeln, Klasse sf-eyebrow): Abstand nach unten zentral hier */
.et_pb_module.sf-eyebrow { margin-bottom: 10px !important; }
.et_pb_module.sf-eyebrow p { padding-bottom: 0 !important; margin-bottom: 0 !important; }

/* Buttons (Klasse sf-button): feste Innenabstände, kein Divi-Icon – der Pfeil steht im Text.
   Divi setzt Button-Abstände mit hoher Spezifität und !important, daher die langen Selektoren. */
body #page-container .et_pb_section .sf-button.et_pb_button,
body #page-container .et_pb_section .sf-button.et_pb_button:hover,
body #page-container .et_pb_section .sf-button .et_pb_button,
body #page-container .et_pb_section .sf-button .et_pb_button:hover,
body .sf-button.et_pb_button,
body .sf-button.et_pb_button:hover,
body .sf-button .et_pb_button,
body .sf-button .et_pb_button:hover { padding: 17px 34px !important; }
body #page-container .et_pb_section .sf-button.et_pb_button::after,
body #page-container .et_pb_section .sf-button .et_pb_button::after,
body #page-container .et_pb_section .sf-button.et_pb_button::before,
body #page-container .et_pb_section .sf-button .et_pb_button::before,
body .sf-button.et_pb_button::after,
body .sf-button .et_pb_button::after,
body .sf-button.et_pb_button::before,
body .sf-button .et_pb_button::before { display: none !important; content: none !important; }

/* Kontaktdaten (Textmodul mit Klasse sf-kontaktdaten): <h6>Label</h6><p>Wert</p> */
.et_pb_text.sf-kontaktdaten h6 {
	margin: 26px 0 6px;
	padding: 0;
	color: #2D6A4F;
	font-family: 'Inter', -apple-system, sans-serif;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: 2px;
	text-transform: uppercase;
}
.et_pb_text.sf-kontaktdaten h6:first-child { margin-top: 0; }
.et_pb_text.sf-kontaktdaten p { margin: 0; padding: 0; color: #11432D; font-size: 18px; line-height: 1.6; overflow-wrap: anywhere; }
.et_pb_text.sf-kontaktdaten a { color: #11432D; }
.et_pb_text.sf-kontaktdaten a:hover { color: #52B788; }

/* Kontaktformular [sf_kontaktformular] – wie auf der bisherigen Seite */
.sf-formular { position: relative; display: flex; flex-direction: column; gap: 26px; }
.sf-formular__feld { display: flex; flex-direction: column; gap: 9px; }
.sf-formular__label { color: #11432D; font-family: 'Inter', -apple-system, sans-serif; font-size: 13px; letter-spacing: 1px; }
.sf-formular .sf-formular__eingabe {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid rgba(17, 67, 45, 0.24);
	border-radius: 0;
	background: #F0F7F2;
	color: #11432D;
	font-family: 'Inter', -apple-system, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-appearance: none;
	appearance: none;
}
.sf-formular textarea.sf-formular__eingabe { resize: vertical; }
.sf-formular .sf-formular__eingabe:focus { outline: none; border-color: #52B788; }
.sf-formular .sf-formular__eingabe[aria-invalid="true"] { border-color: #B23A3A; }
.sf-formular__einwilligung { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.sf-formular__einwilligung input { flex-shrink: 0; width: 16px; height: 16px; margin-top: 4px; accent-color: #11432D; }
.sf-formular__einwilligung span { color: #2B3B33; font-size: 14px; line-height: 1.6; }
.sf-formular__einwilligung a { color: #2D6A4F; text-decoration: underline; }
.sf-formular .sf-formular__senden {
	align-self: flex-start;
	padding: 17px 34px;
	border: 0;
	border-radius: 0;
	background: #11432D;
	color: #FFFFFF;
	font-family: 'Inter', -apple-system, sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color .25s ease;
}
.sf-formular .sf-formular__senden:hover,
.sf-formular .sf-formular__senden:focus-visible { background: #2D6A4F; }
.sf-formular__fehler { padding: 16px 20px; border: 1px solid rgba(178, 58, 58, 0.35); background: #FBF1F1; color: #7E2626; font-size: 15px; line-height: 1.6; }
.sf-formular__fehler ul { margin: 6px 0 0; padding-left: 18px; list-style: disc; }
.sf-formular__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.sf-formular-danke { padding: 56px 40px; border: 1px solid rgba(17, 67, 45, 0.18); text-align: center; }
.sf-formular-danke .sf-formular-danke__titel { margin: 0 0 14px; padding: 0; color: #11432D; font-family: 'Libre Baskerville', Georgia, serif; font-size: 26px; }
.sf-formular-danke .sf-formular-danke__text { max-width: 34ch; margin: 0 auto; padding: 0; color: #2B3B33; font-size: 16px; line-height: 1.75; }

/* Rechtliche Seiten (Impressum, Datenschutz): Textmodule mit Klasse sf-rechtstext */
.et_pb_text.sf-rechtstext h2 {
	margin: 0 0 12px;
	padding: 0;
	color: #11432D;
	font-family: 'Libre Baskerville', Georgia, serif;
	font-size: 22px;
	font-weight: 400;
	line-height: 1.4;
}
.et_pb_text.sf-rechtstext h3 {
	margin: 28px 0 8px;
	padding: 0;
	color: #11432D;
	font-family: 'Inter', -apple-system, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
}
.et_pb_text.sf-rechtstext h2 + h3 { margin-top: 16px; }
.et_pb_text.sf-rechtstext p { margin: 0; padding: 0; }
.et_pb_text.sf-rechtstext p + p,
.et_pb_text.sf-rechtstext ul + p,
.et_pb_text.sf-rechtstext p + ul { margin-top: 12px; }
.et_pb_text.sf-rechtstext ul { margin-bottom: 0; padding: 0 0 0 20px; list-style: disc; }
.et_pb_text.sf-rechtstext li { padding: 0; }
.et_pb_text.sf-rechtstext li + li { margin-top: 6px; }
.et_pb_text.sf-rechtstext strong { color: #11432D; font-weight: 600; }
.et_pb_text.sf-rechtstext a { color: #2D6A4F; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.et_pb_text.sf-rechtstext a:hover { color: #11432D; }
@media (max-width: 767px) {
	.et_pb_text.sf-rechtstext h2 { font-size: 20px; }
}

/* Header (globale Kopfzeile im Divi Theme Builder) */
.et_pb_text.sf-header-nav p {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px 38px;
	margin: 0;
	padding: 0;
}
.et_pb_text.sf-header-nav a { color: #11432D; text-decoration: none; transition: color .25s ease; }
.et_pb_text.sf-header-nav a:hover,
.et_pb_text.sf-header-nav a:focus-visible { color: #52B788; }
@media (max-width: 980px) {
	.et_pb_text.sf-header-nav p { justify-content: flex-start; gap: 8px 24px; }
}

/* Footer (globaler Footer im Divi Theme Builder) */
.et_pb_text.sf-footer-nav p {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px 28px;
	margin: 0;
	padding: 0;
}
.et_pb_text.sf-footer-nav a { color: #F0F7F2; text-decoration: none; transition: color .25s ease; }
.et_pb_text.sf-footer-nav a:hover,
.et_pb_text.sf-footer-nav a:focus-visible { color: #52B788; }
.et_pb_text.sf-footer-meta p {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 0;
	padding: 0;
}
.et_pb_text.sf-footer-meta a { color: inherit; text-decoration: none; }
.et_pb_text.sf-footer-meta a:hover { color: #52B788; }
@media (max-width: 980px) {
	.et_pb_text.sf-footer-nav p { justify-content: flex-start; }
}

/* Schritt-Nummer vor dem Titel, z. B. <h3><span class="sf-nr">01</span>Zuhören</h3> */
.sf-nr {
	display: inline-block;
	min-width: 2.4em;
	color: #52B788;
	font-size: 0.66em;
	vertical-align: 0.15em;
}
