/* SBG Basis – Ergänzungen zu theme.json
   Farben und Schriften nur über die Presets aus theme.json. */

:root {
	--sbg-schmal: 72%;          /* Breite der Schlagzeilenschrift (Archivo wdth) */
	--sbg-radius: 10px;
	--sbg-radius-klein: 6px;
	--sbg-schatten: 0 18px 40px -18px rgba(29, 20, 32, .35);
	--sbg-schatten-hover: 0 12px 24px -16px rgba(176, 0, 94, .45);
	--c-magenta: var(--wp--preset--color--magenta);
	--c-magenta-dunkel: var(--wp--preset--color--magenta-dunkel);
	--c-magenta-hell: var(--wp--preset--color--magenta-hell);
	--c-tinte: var(--wp--preset--color--tinte);
	--c-tinte-2: var(--wp--preset--color--tinte-2);
	--c-grau: var(--wp--preset--color--grau);
	--c-linie: var(--wp--preset--color--linie);
	--c-papier: var(--wp--preset--color--papier);
	--c-weiss: var(--wp--preset--color--weiss);
	--f-kopf: var(--wp--preset--font-family--schlagzeile);
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

:where(a, button, input, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--c-magenta);
	outline-offset: 3px;
	border-radius: 2px;
}

h1, h2, h3, h4,
.wp-block-post-title,
.wp-block-site-title { font-stretch: var(--sbg-schmal); text-wrap: balance; }

/* ---------- Kopf ---------- */
.sbg-topbar { font-family: var(--f-kopf); font-size: 14px; font-weight: 500; }
.sbg-topbar > .alignwide { min-height: 40px; align-items: center; }
.sbg-topbar p { margin: 0; }
.sbg-topbar a { color: inherit; text-decoration: none; opacity: .85; }
.sbg-topbar a:hover { opacity: 1; text-decoration: underline; }
.sbg-topbar__links { display: flex; gap: 20px; }

header.sbg-kopfbereich { position: sticky; top: 0; z-index: 30; }
/* Kein grauer Streifen zwischen Kopf und erstem Inhalt. */
.wp-site-blocks > header.sbg-kopfbereich + * { margin-block-start: 0; }
.admin-bar header.sbg-kopfbereich { top: var(--wp-admin--admin-bar--height, 32px); }
.sbg-kopf { border-bottom: 1px solid var(--c-linie); }
.sbg-kopf__zeile { min-height: 84px; align-items: center; gap: 32px; }
.sbg-marke { margin-right: auto; align-items: center; }
.sbg-marke .wp-block-site-logo img { width: 54px; height: 54px; object-fit: contain; }
.sbg-marke .wp-block-site-title { white-space: nowrap; letter-spacing: .01em; }
.sbg-marke__claim { margin: 0; }

/* Hauptmenü */
.sbg-hauptmenue .wp-block-navigation-item__content { white-space: nowrap; }
/* Desktop: Menüpunkte als Flächen mit Innenabstand. WordPress verschachtelt die Liste im
   responsive-container, deshalb ohne direkte Kind-Selektoren ab dem nav. */
.sbg-hauptmenue .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container { gap: 6px; }
.sbg-hauptmenue .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item {
	display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
	border-radius: var(--sbg-radius-klein); transition: background-color .15s, color .15s;
}
.sbg-hauptmenue .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	padding: 0; text-decoration: none; color: inherit;
}
.sbg-hauptmenue .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item:hover,
.sbg-hauptmenue .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item:focus-within {
	background: var(--c-magenta-hell); color: var(--c-magenta-dunkel);
}
.sbg-hauptmenue .wp-block-navigation__submenu-icon { margin-left: 0; width: 12px; height: 12px; }
.sbg-hauptmenue .wp-block-navigation__submenu-icon svg { width: 12px; height: 12px; stroke-width: 2px; }
.sbg-hauptmenue .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container { top: calc(100% + 4px) !important; left: 0 !important; }
.sbg-hauptmenue .wp-block-navigation__responsive-container:not(.is-menu-open) .has-child::after {
	content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 6px; /* Brücke, damit das Untermenü beim Hinüberfahren offen bleibt */
}
.sbg-hauptmenue .wp-block-navigation__submenu-container {
	min-width: 250px !important;
	border: 1px solid var(--c-linie) !important;
	border-top: 3px solid var(--c-magenta) !important;
	box-shadow: var(--sbg-schatten);
	padding: 8px !important;
	background: var(--c-weiss);
}
.sbg-hauptmenue .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 10px 12px !important; border-radius: 4px; font-weight: 500; font-size: 15px; text-decoration: none;
}
.sbg-hauptmenue .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--c-papier); color: var(--c-magenta-dunkel);
}
.sbg-hauptmenue .wp-block-navigation__responsive-container:not(.is-menu-open) .sbg-nur-mobil { display: none !important; }

/* Burger-Knopf und Overlay */
.sbg-hauptmenue .wp-block-navigation__responsive-container-open {
	min-width: 46px; min-height: 46px; justify-content: center;
	border: 2px solid var(--c-tinte); border-radius: var(--sbg-radius-klein);
}
.sbg-hauptmenue .wp-block-navigation__responsive-container.is-menu-open {
	padding: 24px;
}
.sbg-hauptmenue .is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: stretch !important; gap: 4px;
}
.sbg-hauptmenue .is-menu-open .wp-block-navigation-item { width: 100%; align-items: flex-start !important; }
/* Geöffnetes Menü linksbündig, auch wenn die Leiste rechts ausgerichtet ist. */
.sbg-hauptmenue .is-menu-open .wp-block-navigation__responsive-container-content,
.sbg-hauptmenue .is-menu-open .wp-block-navigation__container,
.sbg-hauptmenue .is-menu-open .wp-block-navigation__submenu-container {
	align-items: flex-start !important; justify-content: flex-start !important; text-align: left;
}
.sbg-hauptmenue .is-menu-open .wp-block-navigation__responsive-container-content { max-width: 640px; margin: 0 auto; width: 100%; }
.sbg-hauptmenue .is-menu-open .wp-block-navigation-item__content { font-size: 20px; font-weight: 700; padding: 8px 0 !important; }
.sbg-hauptmenue .is-menu-open .wp-block-navigation__submenu-container {
	border: 0 !important; box-shadow: none; padding: 0 0 8px 14px !important; min-width: 0 !important;
}
.sbg-hauptmenue .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 17px; font-weight: 500; }
.sbg-hauptmenue .is-menu-open .sbg-nur-mobil { display: block; margin-top: 16px; align-self: stretch; }
.sbg-hauptmenue .is-menu-open .sbg-nur-mobil .wp-block-navigation-item__content { width: 100%; }
.sbg-hauptmenue .is-menu-open .sbg-nur-mobil .wp-block-navigation-item__content {
	display: block; text-align: center; background: var(--c-magenta); color: var(--c-weiss) !important;
	border-radius: var(--sbg-radius-klein); padding: 14px !important; font-size: 17px;
}

/* Untermenüs der rechten Punkte rechtsbündig, sonst ragen sie über den Rand. */
.sbg-hauptmenue .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .has-child:nth-last-child(-n+3) > .wp-block-navigation__submenu-container {
	left: auto !important; right: 0 !important;
}

/* Unter 1180 px passt das Menü nicht in eine Zeile: Burger statt Umbruch.
   WordPress selbst schaltet erst unter 600 px um. */
@media (max-width: 1180px) {
	.sbg-kopf__cta { display: none !important; }
	.sbg-hauptmenue .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.sbg-hauptmenue .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
}
@media (max-width: 640px) {
	.sbg-inhalt, .sbg-karte__auszug, .sbg-aufmacher__teaser, .sbg-band p { hyphens: auto; -webkit-hyphens: auto; }
	.sbg-band .wp-block-buttons { align-items: stretch !important; }
	.sbg-band .wp-block-button, .sbg-band .wp-block-button__link { width: 100%; text-align: center; }
	.sbg-topbar__links a:not(:first-child) { display: none; }
	.sbg-kopf__zeile { min-height: 68px; gap: 12px; }
	.sbg-marke .wp-block-site-logo img { width: 44px; height: 44px; }
	.sbg-marke .wp-block-site-title { white-space: normal; font-size: 17px !important; line-height: 1.05; }
	.sbg-marke__claim { display: none; }
}

/* ---------- Knöpfe ---------- */
.wp-element-button, .wp-block-button__link { white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid currentColor; background: transparent; color: inherit; padding: 11px 20px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--c-tinte); color: var(--c-weiss); border-color: var(--c-tinte); }
.wp-block-button.is-style-sbg-hell > .wp-block-button__link { background: var(--c-weiss); color: var(--c-magenta-dunkel); }
.wp-block-button.is-style-sbg-hell > .wp-block-button__link:hover { background: var(--c-tinte); color: var(--c-weiss); }

/* „Weiterlesen“ als Knopf */
.wp-block-read-more.sbg-knopf {
	display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: var(--sbg-radius-klein);
	background: var(--c-magenta); color: var(--c-weiss); text-decoration: none;
	font-family: var(--f-kopf); font-weight: 700; font-size: 16px;
}
.wp-block-read-more.sbg-knopf:hover { background: var(--c-magenta-dunkel); color: var(--c-weiss); }

/* ---------- Aufmacher ---------- */
.sbg-aufmacher { border-bottom: 1px solid var(--c-linie); }
.sbg-aufmacher__titel { margin: 14px 0 22px; line-height: .98 !important; letter-spacing: -.01em; }
.sbg-aufmacher__titel a:hover { color: var(--c-magenta-dunkel); }
.sbg-aufmacher__teaser { color: var(--c-tinte-2); max-width: 38em; }
.sbg-aufmacher__teaser .wp-block-post-excerpt__more-text { display: none; }
.sbg-aufmacher__teaser .wp-block-post-excerpt__excerpt { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sbg-aufmacher__aktion { align-items: center; margin-top: 28px; }
/* Der Aufmacher zeigt immer genau einen Beitrag, auch wenn die Abfrage mehr liefert. */
.sbg-aufmacher .wp-block-post-template > li:nth-child(n+2) { display: none; }

/* Haltung */
.is-style-sbg-kasten-dunkel {
	position: relative; overflow: hidden; height: 100%;
	background: var(--c-tinte); color: #F4EEF4; border-radius: var(--sbg-radius);
	padding: 36px;
}
.is-style-sbg-kasten-dunkel::before {
	content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
	border-radius: 50%; border: 28px solid var(--c-magenta); opacity: .9; pointer-events: none;
}
.is-style-sbg-kasten-dunkel > * { position: relative; }
.sbg-haltung { min-height: 100%; }
.sbg-haltung__satz {
	font-family: var(--f-kopf); font-weight: 800; font-stretch: 75%; font-size: 30px; line-height: 1.08; max-width: 12em; margin: 0;
}
.sbg-haltung__satz::before { content: "„"; display: block; font-size: 72px; line-height: 1; margin-bottom: -4px; color: var(--c-magenta); }

/* ---------- Service-Kacheln ---------- */
.sbg-service { border-bottom: 1px solid var(--c-linie); }
.sbg-kachel {
	position: relative; display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; align-content: start;
	padding: 20px; background: var(--c-weiss); border: 1px solid var(--c-linie); border-radius: var(--sbg-radius);
	transition: border-color .15s, transform .15s, box-shadow .15s;
}
.sbg-kachel::before {
	content: ""; grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 8px;
	background: var(--c-magenta-hell);
}
.sbg-kachel::after {
	content: ""; position: absolute; left: 28px; top: 28px; width: 24px; height: 24px;
	background: var(--c-magenta-dunkel);
	-webkit-mask: var(--sbg-symbol) center / contain no-repeat; mask: var(--sbg-symbol) center / contain no-repeat;
}
.sbg-kachel:hover, .sbg-kachel:focus-within {
	border-color: var(--c-magenta); transform: translateY(-2px); box-shadow: var(--sbg-schatten-hover);
}
.sbg-kachel > * { grid-column: 2; margin: 0 !important; }
.sbg-kachel__titel { font-size: 17px !important; font-weight: 700; font-stretch: 100%; line-height: 1.2; }
.sbg-kachel__titel a { color: var(--c-tinte); text-decoration: none; }
.sbg-kachel__titel a::after { content: ""; position: absolute; inset: 0; border-radius: var(--sbg-radius); }
.sbg-kachel__text { font-family: var(--f-kopf); font-size: 15px; line-height: 1.4; color: var(--c-grau); margin-top: 4px !important; }
.sbg-symbol--rechner  { --sbg-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M8 7h8M8 11h2M14 11h2M8 15h2M14 15h2'/%3E%3C/svg%3E"); }
.sbg-symbol--dokument { --sbg-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M9 14h6M9 18h4'/%3E%3C/svg%3E"); }
.sbg-symbol--kalender { --sbg-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.sbg-symbol--person   { --sbg-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 21c0-4 3-6 7-6s7 2 7 6M19 8v6M16 11h6'/%3E%3C/svg%3E"); }

@media (min-width: 782px) and (max-width: 1100px) {
	.sbg-service__raster { flex-wrap: wrap !important; }
	.sbg-service__raster > .sbg-kachel { flex-basis: calc(50% - 8px) !important; }
}

/* ---------- Rubrikkopf ---------- */
.sbg-rubrikkopf { border-bottom: 3px solid var(--c-tinte); padding-bottom: 12px; margin-bottom: 28px; align-items: baseline; }
.is-style-sbg-rubrik {
	font-size: 34px !important; font-weight: 850; font-stretch: var(--sbg-schmal); text-transform: uppercase; letter-spacing: .01em; margin: 0;
}
.wp-block-group:not(.sbg-rubrikkopf) > .is-style-sbg-rubrik {
	border-bottom: 3px solid var(--c-tinte); padding-bottom: 12px; margin-bottom: 28px;
}
.sbg-rubrikkopf__link { margin: 0; font-family: var(--f-kopf); font-weight: 600; font-size: 15px; }
.sbg-rubrikkopf__link a { text-decoration: none; }

/* ---------- Beitragskarten ---------- */
.sbg-karte > * { margin: 0 !important; }
.sbg-karte .wp-block-post-featured-image { overflow: hidden; border-radius: 8px; }
.sbg-karte .wp-block-post-featured-image img { transition: transform .4s ease; }
.sbg-karte:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.sbg-karte__titel { font-size: 25px !important; font-weight: 800; font-stretch: 78%; line-height: 1.08; margin-top: 4px !important; }
.sbg-karte__titel a {
	text-decoration: none;
	background: linear-gradient(var(--c-magenta), var(--c-magenta)) 0 100% / 0 2px no-repeat;
	transition: background-size .25s;
}
.sbg-karte__titel a:hover { background-size: 100% 2px; }
.sbg-karte__auszug { font-size: 16.5px; color: var(--c-tinte-2); }
.sbg-karte__auszug p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.sbg-karte__auszug .wp-block-post-excerpt__more-text { display: none; }

/* Ersatzfläche ohne Beitragsbild */
.sbg-ersatzbild { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 0; border-radius: 8px; overflow: hidden; }
.sbg-ersatzbild a { position: absolute; inset: 0; }
.sbg-ersatzbild__wort {
	position: absolute; inset: 0; display: grid; place-items: center; padding: 0 16px; text-align: center;
	font-family: var(--f-kopf); font-weight: 850; font-stretch: 65%; font-size: clamp(36px, 5vw, 60px); line-height: 1;
	text-transform: uppercase; letter-spacing: -.02em; color: rgba(255, 255, 255, .14); overflow-wrap: anywhere;
}
.sbg-ersatzbild--1 { background: linear-gradient(135deg, #2A1C2E, #4B2440); }
.sbg-ersatzbild--2 { background: var(--c-magenta); }
.sbg-ersatzbild--3 { background: linear-gradient(135deg, #3A2E3D, var(--c-tinte)); }
.sbg-ersatzbild--4 { background: #5C1A40; }

/* ---------- Kästen und Seitenleiste ---------- */
.is-style-sbg-kasten {
	background: var(--c-weiss); border: 1px solid var(--c-linie); border-radius: var(--sbg-radius); padding: 24px;
}
.sbg-kasten__kopf {
	font-size: 20px !important; font-stretch: 80%; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 16px !important;
}
.sbg-seitenleiste { position: sticky; top: 120px; }
.sbg-seitenleiste > * { width: 100%; }

.sbg-kurzliste .wp-block-post-template { margin: 0; padding: 0; }
.sbg-kurzliste .wp-block-post-template > li { border-top: 1px solid var(--c-linie); padding: 12px 0; margin: 0; }
.sbg-kurzliste .wp-block-post-template > li:first-child { border-top: 0; padding-top: 0; }
.sbg-kurzliste__titel { font-size: 16px !important; font-weight: 600; font-stretch: 100%; line-height: 1.3; margin: 0 !important; }
.sbg-kurzliste__titel a:hover { color: var(--c-magenta-dunkel); }
.sbg-kurzliste__kategorie { margin-top: 3px !important; font-size: 12px !important; }
.sbg-kurzliste__kategorie a { color: var(--c-grau) !important; }

.sbg-schlagworte { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sbg-schlagworte li { margin: 0; }
.sbg-schlagworte ul.children { display: contents; }
.sbg-schlagworte a {
	display: inline-flex; align-items: center; min-height: 36px; padding: 8px 14px; border: 1px solid var(--c-linie);
	border-radius: 999px; background: var(--c-papier); color: var(--c-tinte); text-decoration: none;
	font-family: var(--f-kopf); font-weight: 600; font-size: 14px; line-height: 1.2;
}
.sbg-schlagworte a:hover { border-color: var(--c-magenta); color: var(--c-magenta-dunkel); }

/* Suche */
.sbg-suche .wp-block-search__inside-wrapper { border: 2px solid var(--c-tinte); border-radius: var(--sbg-radius-klein); padding: 0; overflow: hidden; }
.sbg-suche .wp-block-search__input { border: 0; min-height: 46px; padding: 10px 14px; font-family: var(--f-kopf); font-size: 16px; background: transparent; }
.sbg-suche .wp-block-search__button {
	margin: 0; border: 0; border-radius: 0; background: var(--c-tinte); color: var(--c-weiss); padding: 10px 18px;
}
.sbg-suche .wp-block-search__button:hover { background: var(--c-magenta-dunkel); }

/* ---------- Band ---------- */
.sbg-band { position: relative; overflow: hidden; }
.sbg-band::after {
	content: ""; position: absolute; left: -80px; bottom: -140px; width: 360px; height: 360px;
	border-radius: 50%; border: 40px solid rgba(255, 255, 255, .14); pointer-events: none;
}
.sbg-band > * { position: relative; z-index: 1; }
.sbg-band__titel { font-size: clamp(34px, 4.4vw, 54px) !important; font-weight: 850; font-stretch: 70%; line-height: 1; text-transform: uppercase; margin-bottom: 18px; }
.sbg-band .wp-block-button.is-style-outline > .wp-block-button__link { color: var(--c-weiss); }
.sbg-band .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--c-weiss); color: var(--c-magenta-dunkel); border-color: var(--c-weiss); }

/* ---------- Fuß ---------- */
.sbg-fuss { font-family: var(--f-kopf); font-size: 15px; line-height: 1.6; margin-top: 0; }
.sbg-start + .sbg-fuss, footer:has(> .sbg-fuss) { margin-top: 0; }
.sbg-fuss a { color: inherit; text-decoration: none; }
.sbg-fuss a:hover { color: var(--c-weiss); text-decoration: underline; }
.sbg-fuss__titel { font-size: 22px !important; color: var(--c-weiss); margin-bottom: 10px; }
.sbg-fuss__titel a { color: var(--c-weiss) !important; }
.sbg-fuss__kopf { font-size: 14px !important; font-weight: 700; font-stretch: 100%; text-transform: uppercase; letter-spacing: .08em; color: var(--c-weiss); margin: 0 0 16px; }
.sbg-fuss__liste { list-style: none; padding: 0; margin: 0; }
.sbg-fuss__liste li { margin: 6px 0; }
.sbg-fuss__unten { border-top: 1px solid #3A2F3D; margin-top: 40px; padding: 20px 0; font-size: 14px; color: #A99CAB; }
.sbg-fuss__unten p { margin: 0; }
footer.wp-block-template-part { margin-block-start: 0; }
main + footer.wp-block-template-part,
.wp-site-blocks > footer { margin-top: var(--wp--preset--spacing--60); }
.wp-site-blocks > .sbg-start + footer,
.wp-site-blocks > main.sbg-start + footer { margin-top: 0; }

/* ---------- Seitenkopf, Brotkrumen ---------- */
.sbg-seitenkopf { border-bottom: 1px solid var(--c-linie); }
.sbg-seitenkopf > * { margin-block-start: 0; }
.sbg-seitenkopf__titel { margin-top: 14px !important; margin-bottom: 20px !important; line-height: 1 !important; }
.sbg-seitenkopf__text { color: var(--c-tinte-2); font-size: 20px; }
.sbg-brotkrumen { font-family: var(--f-kopf); font-size: 14px; font-weight: 500; color: var(--c-grau); margin-bottom: 18px; }
.sbg-brotkrumen a { color: inherit; text-decoration: none; }
.sbg-brotkrumen a:hover { color: var(--c-magenta-dunkel); text-decoration: underline; }
.sbg-brotkrumen__trenner { margin: 0 8px; }
.sbg-zeile { font-family: var(--f-kopf); font-size: 15px; color: var(--c-grau); row-gap: 4px !important; }
.sbg-zeile > * { margin: 0 !important; }
.sbg-zeile p { margin: 0; }
.sbg-lesezeit { font-family: var(--f-kopf); font-size: 15px; font-weight: 500; color: var(--c-grau); }

/* ---------- Lesetext ---------- */
.sbg-inhalt { font-size: 19px; line-height: 1.7; }
.sbg-inhalt > p:first-child { font-size: 22px; line-height: 1.55; color: var(--c-tinte-2); }
.sbg-inhalt h2 { margin-top: 1.6em; }
.sbg-inhalt h3 { margin-top: 1.4em; }
.sbg-inhalt a { text-underline-offset: 3px; hyphens: manual; -webkit-hyphens: manual; }
.sbg-inhalt .wp-block-quote { margin-block: 1.6em; }
.sbg-inhalt .wp-block-quote p { margin: 0; }
.sbg-inhalt .wp-block-quote cite { display: block; margin-top: 8px; font-size: 15px; font-weight: 500; color: var(--c-grau); font-style: normal; }
.sbg-inhalt .wp-block-table { overflow-x: auto; }
.sbg-inhalt .wp-block-table table { border-collapse: collapse; width: 100%; }
.sbg-inhalt .wp-block-table th { text-align: left; background: var(--c-tinte); color: var(--c-weiss); }
.sbg-inhalt .wp-block-table th, .sbg-inhalt .wp-block-table td { padding: 10px 12px; border: 1px solid var(--c-linie); }
.sbg-inhalt .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 20px; background: var(--c-weiss); border: 1px solid var(--c-linie); border-radius: var(--sbg-radius); font-family: var(--f-kopf); }
.sbg-inhalt .wp-block-file__button { background: var(--c-magenta); color: var(--c-weiss); border-radius: var(--sbg-radius-klein); padding: 10px 18px; text-decoration: none; }
/* Download-Blöcke: einheitliche Zeilen, aufeinanderfolgende als Liste */
.sbg-inhalt .wp-block-file { flex-wrap: nowrap; justify-content: space-between; gap: 16px; padding: 12px 16px 12px 20px; }
.sbg-inhalt .wp-block-file > a:first-child { flex: 1 1 auto; min-width: 0; font-weight: 600; }
.sbg-inhalt .wp-block-file + .wp-block-file { margin-block-start: 8px; }
.sbg-inhalt .wp-block-file .wp-block-file__button { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0 16px; white-space: nowrap; background: transparent; color: var(--c-magenta-dunkel); border: 2px solid currentColor; font-weight: 600; }
.sbg-inhalt .wp-block-file .wp-block-file__button:hover, .sbg-inhalt .wp-block-file .wp-block-file__button:focus-visible { background: var(--c-magenta); border-color: var(--c-magenta); color: var(--c-weiss); }
.sbg-inhalt .wp-block-file .wp-block-file__button::after { content: none; }

/* Alte Inhalte aus dem klassischen Editor */
.sbg-inhalt p:empty { display: none; }
.sbg-inhalt span[style*="color"] { color: var(--c-magenta-dunkel) !important; font-weight: 700; }
.sbg-inhalt font[color] { color: var(--c-magenta-dunkel); font-weight: 700; }
.sbg-inhalt .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.sbg-inhalt .alignright { float: right; margin: .3em 0 1em 1.5em; }
.sbg-inhalt .aligncenter { display: block; margin-inline: auto; }
.sbg-inhalt img { height: auto; border-radius: 8px; }
.sbg-inhalt .wp-caption { max-width: 100%; }
.sbg-inhalt .wp-caption-text { font-family: var(--f-kopf); font-size: 14px; color: var(--c-grau); margin-top: 8px; }
.sbg-inhalt > table, .sbg-inhalt table:not(.wp-block-table table) { width: 100%; border-collapse: collapse; font-family: var(--f-kopf); font-size: 16px; display: block; overflow-x: auto; }
.sbg-inhalt table:not(.wp-block-table table) td, .sbg-inhalt table:not(.wp-block-table table) th { padding: 10px 12px; border: 1px solid var(--c-linie); vertical-align: top; }
.sbg-inhalt a[href$=".pdf"]::after { content: " (PDF)"; font-family: var(--f-kopf); font-size: .8em; color: var(--c-grau); }
.sbg-inhalt .wp-block-button__link[href$=".pdf"]::after { color: inherit; opacity: .85; }
.sbg-inhalt .sbg-beitraege td:last-child, .sbg-inhalt .sbg-beitraege th:last-child { white-space: nowrap; }
.sbg-inhalt::after { content: ""; display: block; clear: both; }
@media (max-width: 640px) {
	.sbg-inhalt .alignleft, .sbg-inhalt .alignright { float: none; margin: 1em 0; }
}

/* Unterseiten als Kacheln (leere Elternseiten) */
.sbg-unterseiten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 16px; padding-block: 32px 56px !important; }
.sbg-unterseiten__eintrag a {
	display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; background: var(--c-weiss);
	border: 1px solid var(--c-linie); border-radius: var(--sbg-radius); text-decoration: none; color: var(--c-tinte);
	transition: border-color .15s, box-shadow .15s;
}
.sbg-unterseiten__eintrag a:hover { border-color: var(--c-magenta); box-shadow: var(--sbg-schatten-hover); }
.sbg-unterseiten__eintrag strong { font-family: var(--f-kopf); font-size: 19px; font-weight: 700; line-height: 1.2; }
.sbg-unterseiten__eintrag span { font-family: var(--f-kopf); font-size: 15px; line-height: 1.45; color: var(--c-grau); }

/* Forderungen */
.sbg-forderungskasten { border-top: 4px solid var(--c-tinte); margin-block: 1.6em; }
.is-style-sbg-forderungen { margin: 0; padding-left: 1.4em; font-size: 18px; }
.is-style-sbg-forderungen li { margin: .45em 0; padding-left: .2em; }
.is-style-sbg-forderungen li::marker { font-family: var(--f-kopf); font-weight: 800; color: var(--c-magenta-dunkel); }

/* Teilen, Nachbarbeiträge */
.sbg-teilen { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border-top: 1px solid var(--c-linie); padding-top: 24px; margin-top: 16px; font-family: var(--f-kopf); font-weight: 600; font-size: 15px; }
.sbg-teilen__knopf {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--c-tinte);
	border-radius: var(--sbg-radius-klein); background: transparent; color: var(--c-tinte); text-decoration: none;
	font: inherit; cursor: pointer; transition: background-color .15s, color .15s;
}
.sbg-teilen__knopf:hover { background: var(--c-tinte); color: var(--c-weiss); }
.sbg-teilen__status { color: var(--c-magenta-dunkel); }
.sbg-nachbar { font-family: var(--f-kopf); font-size: 15px; margin-top: 20px; }
.sbg-nachbar .post-navigation-link__label { display: block; color: var(--c-grau); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.sbg-nachbar a { font-weight: 700; font-size: 18px; text-decoration: none; color: var(--c-tinte); }
.sbg-nachbar a:hover { color: var(--c-magenta-dunkel); }

/* Blättern */
.sbg-blaettern { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--c-linie); }
.sbg-blaettern a, .sbg-blaettern .page-numbers { text-decoration: none; padding: 8px 12px; border-radius: var(--sbg-radius-klein); }
.sbg-blaettern .page-numbers.current { background: var(--c-tinte); color: var(--c-weiss); }

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 781px) {
	.sbg-seitenleiste { position: static; }
	.is-style-sbg-kasten-dunkel { padding: 28px; }
	.sbg-inhalt { font-size: 18px; }
	.sbg-inhalt > p:first-child { font-size: 20px; }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Druck ---------- */
@media print {
	.sbg-topbar, header.sbg-kopfbereich, footer.wp-block-template-part, .sbg-seitenleiste,
	.sbg-teilen, .sbg-nachbar, .sbg-band, .wp-block-query { display: none !important; }
	body { background: #fff; color: #000; font-size: 11pt; }
	.sbg-seitenkopf { border: 0; padding: 0 !important; }
	.sbg-inhalt a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* Rechtstexte (Satzung): Absätze, Unterpunkte, Sprungmarken */
.sbg-inhalt .sbg-absatz > strong:first-child { font-family: var(--f-kopf); color: var(--c-magenta-dunkel); }
.sbg-inhalt .sbg-unterpunkt { padding-left: 1.75em; margin-block-start: .4em; }
.sbg-inhalt .sbg-unterpunkt-2 { padding-left: 3.25em; margin-block-start: .25em; }
.sbg-inhalt h2[id], .sbg-inhalt h3[id] { scroll-margin-top: 140px; }

/* Linklisten (Links-Seite, Inhaltsverzeichnis) */
.sbg-inhalt ul.sbg-linkliste { list-style: none; padding-left: 0; }
.sbg-inhalt ul.sbg-linkliste > li { border-bottom: 1px solid var(--c-linie); margin: 0; }
.sbg-inhalt ul.sbg-linkliste > li > a { display: block; min-height: 44px; padding: 10px 0; font-family: var(--f-kopf); font-weight: 600; text-decoration: none; }
.sbg-inhalt ul.sbg-linkliste > li > a:hover, .sbg-inhalt ul.sbg-linkliste > li > a:focus-visible { text-decoration: underline; }
.sbg-inhalt ul.sbg-linkliste > li > a[href^="http"]::after { content: "↗"; margin-left: .4em; font-weight: 400; color: var(--c-grau); }
@media (min-width: 720px) { .sbg-inhaltsverzeichnis ul.sbg-linkliste { columns: 2; column-gap: 32px; } .sbg-inhaltsverzeichnis ul.sbg-linkliste > li { break-inside: avoid; } }
