/**
 * Leselinie, seitliche Rhythmik, sticky-Ankeroffset, Kontrast und Fokus (Tastatur).
 */

:root {
	--site-read-max: 42rem;
}

/* Leicht höherer Fließtext-Kontrast (WCAG-Näherung auf hellem Hintergrund) */
body.colors-light {
	color: #252525;
}

html {
	scroll-padding-top: clamp(3.75rem, 10vh, 5.75rem);
}

/* Einheitliche Textspaltenbreite in Artikeln (Startseiten-Panel inklusive) */
#primary .site-main article .content-main {
	max-width: var(--site-read-max);
	margin-left: auto;
	margin-right: auto;
}

.site-main article {
	padding-bottom: clamp(2rem, 4vw, 3rem);
}

/* Hauptinhalt-Anker unter fixierter Navigation nicht verdecken */
#content.site-content {
	scroll-margin-top: clamp(3.25rem, 9vh, 5rem);
}

/* Fokussichtbarkeit für Fließtext-Links */
.content-main a:focus-visible:not(.btn-site-primary):not(.btn-site-soft):not(.content-block-button__link):not(.content-block-file__button) {
	outline: 2px solid var(--site-nav-accent, #ea7619);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Navigation */
.main-navigation a:focus-visible {
	outline: 2px solid var(--site-nav-accent, #ea7619);
	outline-offset: 2px;
	border-radius: 6px;
}

.skip-link.screen-reader-text:focus {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 100001;
	outline: 3px solid var(--site-nav-accent, #ea7619);
	outline-offset: 2px;
}

/* Datenschutzerklärung und Ablauf: Abschnitte und Listen leichter überfliegen */
body.privacy-policy .content-main h2,
body.page-ablauf .content-main h2,
body.page-was-ist .content-main h2,
body.page-kosten .content-main h2,
body.page-impressum .content-main h2 {
	margin-top: 0.35em;
	padding-top: 1.15em;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	color: #222;
	font-size: 1.2rem;
	font-weight: 600;
}

body.privacy-policy .content-main h2:first-of-type,
body.page-ablauf .content-main h2:first-of-type,
body.page-was-ist .content-main h2:first-of-type,
body.page-kosten .content-main h2:first-of-type,
body.page-impressum .content-main h2:first-of-type {
	border-top: 0;
	padding-top: 0.35em;
}

body.privacy-policy .content-main ul.content-block-list,
body.page-ablauf .content-main ul.content-block-list,
body.page-was-ist .content-main ul.content-block-list,
body.page-kosten .content-main ul.content-block-list,
body.page-impressum .content-main ul.content-block-list {
	margin: 0.15em 0 1.35em;
	padding-left: 1.35em;
}

body.page-was-ist .content-main .content-block-image {
	margin: 0.25rem 0 1.15rem;
}

body.page-was-ist .content-main .content-block-image img {
	border-radius: 12px;
}

body.page-impressum .content-main h3 {
	margin: 1.2em 0 0.35em;
	color: #222;
	font-size: 1.05rem;
	font-weight: 600;
}

body.page-impressum .impressum-facts {
	margin: 0.2rem 0 0.35rem;
	padding: 1.05rem 1.2rem 1rem;
	background: linear-gradient(180deg, #fffdfb 0%, #fff6ee 100%);
	border: 1px solid rgba(236, 151, 72, 0.38);
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(90, 45, 15, 0.06);
}

body.page-impressum .impressum-facts dt {
	margin: 0.9rem 0 0.15rem;
	color: #222;
	font-weight: 600;
}

body.page-impressum .impressum-facts dt:first-child {
	margin-top: 0;
}

body.page-impressum .impressum-facts dd {
	margin: 0;
	line-height: 1.5;
}

body.page-was-ist .content-main .was-ist-lead-quote {
	margin-top: 0;
	margin-bottom: 0.35rem;
	border-radius: 0 10px 10px 0;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
