/*
Theme Name: Barkhovenallee
Theme URI: https://barkhovenallee.com/
Author: Bürgerinitiative Barkhovenallee e. V.
Author URI: https://barkhovenallee.com/
Description: Block-Theme für die Bürgerinitiative Barkhovenallee e. V. – klare Startseite mit Einstieg, Zahlen, Themen, Standpunkten, aktuellen Beiträgen und Mitmach-Bereich. Farben und Schriften lassen sich unter Design › Editor › Stile anpassen.
Version: 1.5.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: barkhovenallee
*/

/* ---------- Grundgerüst ---------- */
.wp-site-blocks > footer,
.wp-site-blocks > main { margin-block-start: 0; }

:where(a, button, input):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* ---------- Kopfzeile ---------- */
.bh-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.bh-header .wp-block-site-title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: 1.1875rem;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0;
}
.bh-header .wp-block-site-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.bh-header .wp-block-site-tagline { margin: 0; line-height: 1.2; }
.bh-header .wp-block-navigation a { text-decoration: none; }
.bh-header .wp-block-navigation a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.bh-header .wp-block-button__link { font-size: 0.9375rem; padding: 0.75rem 1.25rem; }

/* ---------- Kleine Überschrift über Abschnitten ---------- */
.bh-eyebrow {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 0;
}
.bh-eyebrow + * { margin-block-start: 0.75rem; }

/* ---------- Dunkle Abschnitte ---------- */
.bh-on-dark a:not(.wp-element-button) { color: inherit; }
.bh-on-dark .is-style-outline > .wp-block-button__link { border-color: #6f9a80; }
.bh-on-dark .is-style-outline > .wp-block-button__link:hover { border-color: var(--wp--preset--color--white); background: transparent; }

/* ---------- Einstieg ---------- */
.bh-hero-image { margin: 0; }
.bh-hero-image img {
	display: block;
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	border-radius: 10px;
}

/* ---------- Zahlenleiste ---------- */
.bh-stat-number {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: clamp(2rem, 3.2vw, 2.5rem);
	line-height: 1;
	margin: 0;
}
.bh-stat > * + * { margin-block-start: 0.5rem; }

/* ---------- Karten ---------- */
.bh-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	overflow: hidden;
	height: 100%;
	box-sizing: border-box;
}
.bh-card > .wp-block-image { margin: 0; }
.bh-card > .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 0;
}
.bh-card .bh-card__body { padding: 1.5rem; margin-block-start: 0; }
.bh-card .bh-card__body > * + * { margin-block-start: 0.5rem; }
.bh-card h3 { margin: 0; }

.bh-card--news { padding: 1.5rem; transition: border-color .15s ease; }
.bh-card--news:hover { border-color: var(--wp--preset--color--forest); }
.bh-card--news > * + * { margin-block-start: 0.75rem; }
.bh-card--news .wp-block-post-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.bh-card--news .wp-block-post-title a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.bh-card--news .wp-block-post-excerpt__excerpt { margin: 0; }

/* ---------- Standpunkte ---------- */
.bh-bordered {
	border-top: 1px solid var(--wp--preset--color--line);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.bh-point {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 0.875rem 0;
}
.bh-point__num {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	color: var(--wp--preset--color--forest);
	min-width: 1.75rem;
	margin: 0;
}
.bh-point .wp-block-group > * { margin: 0; }
.bh-point .wp-block-group > * + * { margin-block-start: 0.15rem; }

/* ---------- Fußzeile ---------- */
.bh-footer-title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: 1.125rem;
}
.bh-footer a { text-decoration: none; }
.bh-footer a:hover { text-decoration: underline; }
.bh-footer-bottom { border-top: 1px solid #2b4436; padding-top: 1.25rem; }

/* =========================================================
   Animationen (ab Version 1.1.0)
   Werden bei „Bewegung reduzieren“ im Betriebssystem abgeschaltet.
   ========================================================= */

/* ---------- Kopfzeile bleibt oben ---------- */
.wp-site-blocks > header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
	transition: box-shadow .3s ease;
}
.wp-site-blocks > header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(16, 38, 26, .35); }
@media (max-width: 600px) {
	.wp-site-blocks > header { top: 0; }
}

/* Animierte Unterstreichung im Menü */
.bh-header .wp-block-navigation-item__content { position: relative; }
.bh-header .wp-block-navigation a:hover { text-decoration: none; }
.bh-header .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -0.3em;
	height: 2px;
	background: var(--wp--preset--color--forest);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.bh-header .wp-block-navigation-item__content:hover::after,
.bh-header .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.wp-element-button {
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.wp-element-button:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .45); }
.wp-element-button:active { transform: translateY(0); box-shadow: none; }

/* ---------- Karten ---------- */
.bh-card { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .2s ease; }
.bh-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 22px 40px -24px rgba(16, 38, 26, .45);
	border-color: var(--wp--preset--color--forest);
}
.bh-card > .wp-block-image { overflow: hidden; }
.bh-card > .wp-block-image img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.bh-card:hover > .wp-block-image img { transform: scale(1.06); }

/* ---------- Standpunkte ---------- */
.bh-point { transition: background-color .25s ease, padding-left .25s ease; }
.bh-point:hover { background: rgba(31, 77, 52, .05); padding-left: .75rem; }
.bh-point__num { transition: transform .25s ease; }
.bh-point:hover .bh-point__num { transform: scale(1.15); }

/* ---------- Einstieg ---------- */
main > section:first-child { position: relative; overflow: hidden; isolation: isolate; }
main > section:first-child::before {
	content: "";
	position: absolute;
	inset: -30%;
	z-index: -1;
	background:
		radial-gradient(40% 35% at 25% 30%, rgba(122, 176, 138, .22), transparent 70%),
		radial-gradient(35% 30% at 80% 75%, rgba(230, 180, 60, .10), transparent 70%);
	animation: bh-glow 18s ease-in-out infinite alternate;
	pointer-events: none;
}
@keyframes bh-glow {
	from { transform: translate3d(-4%, -2%, 0) rotate(0deg); }
	to   { transform: translate3d(4%, 3%, 0) rotate(8deg); }
}
.bh-hero-image img { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }

/* ---------- Einblenden beim Scrollen ---------- */
.bh-anim .bh-reveal {
	opacity: 0;
	transform: translate3d(0, 28px, 0);
	transition:
		opacity .8s cubic-bezier(.2, .7, .2, 1) var(--bh-delay, 0ms),
		transform .8s cubic-bezier(.2, .7, .2, 1) var(--bh-delay, 0ms);
}
.bh-anim .bh-reveal--zoom { transform: translate3d(0, 20px, 0) scale(.96); }
.bh-anim .bh-reveal.is-visible { opacity: 1; transform: none; }
/* Nach dem Einblenden gelten wieder die Hover-Übergänge der Karten. */
.bh-anim .bh-card.bh-reveal.is-visible {
	transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .2s ease, opacity .8s ease var(--bh-delay, 0ms);
}
.bh-anim .bh-card.bh-reveal.is-visible:hover { transform: translateY(-6px); }
.bh-stat-number { display: inline-block; font-variant-numeric: tabular-nums; }

/* ---------- Bild-Slider im Einstieg (Galerie mit Klasse „bh-hero-slider“) ---------- */
/* Nur aktiv, wenn das Skript den Slider aufgebaut hat – im Editor bleibt es eine normale Galerie. */
.wp-block-gallery.bh-hero-slider.is-slider {
	display: grid;
	position: relative;
	margin: 0;
	gap: 0;
	aspect-ratio: 5 / 4;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
	background: var(--wp--preset--color--forest);
}
.wp-block-gallery.bh-hero-slider.is-slider > .wp-block-image {
	grid-area: 1 / 1;
	width: 100% !important;
	height: 100%;
	margin: 0 !important;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.1s ease, visibility 0s linear 1.1s;
}
.wp-block-gallery.bh-hero-slider.is-slider > .wp-block-image.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 1.1s ease, visibility 0s;
}
.wp-block-gallery.bh-hero-slider.is-slider > .wp-block-image img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	border-radius: 0;
}
.wp-block-gallery.bh-hero-slider.is-slider > .wp-block-image.is-active img {
	animation: bh-kenburns 9s ease-out both;
}
@keyframes bh-kenburns {
	from { transform: scale(1.08); }
	to   { transform: scale(1); }
}
/* Bildunterschrift als Band unten */
.wp-block-gallery.bh-hero-slider.is-slider > .wp-block-image figcaption {
	position: absolute;
	inset: auto 0 0 0;
	margin: 0;
	padding: 2.5rem 1.25rem 3.5rem;
	background: linear-gradient(transparent, rgba(0, 0, 0, .55));
	color: #fff;
	font-size: .9375rem;
	text-align: left;
}

.bh-slider-controls {
	position: absolute;
	left: 0; right: 0; bottom: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .75rem;
	z-index: 2;
}
.bh-slider-dots { display: flex; gap: .5rem; }
.bh-slider-dot {
	width: 9px; height: 9px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .55);
	cursor: pointer;
	transition: width .35s cubic-bezier(.2, .7, .2, 1), background-color .35s ease;
}
.bh-slider-dot[aria-current="true"] { width: 26px; background: var(--wp--preset--color--accent); }
.bh-slider-arrow {
	display: grid;
	place-items: center;
	width: 36px; height: 36px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .88);
	color: var(--wp--preset--color--forest-deep);
	cursor: pointer;
	opacity: 0;
	transform: scale(.85);
	transition: opacity .25s ease, transform .25s ease, background-color .2s ease;
}
.bh-slider-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.bh-hero-slider:hover .bh-slider-arrow,
.bh-slider-arrow:focus-visible { opacity: 1; transform: none; }
.bh-slider-arrow:hover { background: #fff; }
@media (hover: none) {
	.bh-slider-arrow { display: none; }
}

/* =========================================================
   Bausteine ab Version 1.3.0
   ========================================================= */

.bh-placeholder { color: var(--wp--preset--color--muted); }

/* ---------- Status-Leiste „Aktueller Stand“ ---------- */
.bh-status {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
	font-size: 0.9375rem;
	line-height: 1.45;
}
.wp-site-blocks > .bh-status { margin-block-start: 0; }
.bh-status__inner {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin: 0 auto;
	padding: 0.7rem var(--wp--style--root--padding-right, 1.5rem) 0.7rem var(--wp--style--root--padding-left, 1.5rem);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 1rem;
}
.bh-status__label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 800;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.bh-status__dot {
	width: 9px; height: 9px;
	border-radius: 50%;
	background: var(--wp--preset--color--forest-deep);
	box-shadow: 0 0 0 0 rgba(20, 54, 36, .5);
	animation: bh-pulse 2.2s ease-out infinite;
}
@keyframes bh-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(20, 54, 36, .5); }
	70%  { box-shadow: 0 0 0 9px rgba(20, 54, 36, 0); }
	100% { box-shadow: 0 0 0 0 rgba(20, 54, 36, 0); }
}
.bh-status__text { flex: 1 1 20rem; }
.bh-status__count {
	background: var(--wp--preset--color--forest-deep);
	color: var(--wp--preset--color--white);
	border-radius: 999px;
	padding: 0.2rem 0.75rem;
	font-size: 0.8125rem;
	white-space: nowrap;
}
.bh-status__link { color: inherit; font-weight: 700; white-space: nowrap; }
.bh-status__link:hover { color: var(--wp--preset--color--forest-deep); }
.bh-links .bh-status { border-radius: 10px; }
.bh-links .bh-status__inner { padding: 0.9rem 1rem; }

/* ---------- Verfahrens-Zeitleiste ---------- */
.bh-timeline { position: relative; padding-left: 2.25rem; }
.bh-timeline::before {
	content: "";
	position: absolute;
	left: 0.6rem; top: 0.5rem; bottom: 0.5rem;
	width: 2px;
	background: var(--wp--preset--color--line);
}
.bh-timeline > .bh-step { position: relative; margin-block-start: 0; padding-bottom: 1.75rem; }
.bh-timeline > .bh-step:last-child { padding-bottom: 0; }
.bh-step::before {
	content: "";
	position: absolute;
	left: -2.25rem; top: 0.15rem;
	width: 1.25rem; height: 1.25rem;
	box-sizing: border-box;
	border-radius: 50%;
	background: var(--wp--preset--color--ground);
	border: 2px solid var(--wp--preset--color--line);
}
.bh-step > * { margin-block: 0; }
.bh-step > * + * { margin-block-start: 0.35rem; }
.bh-step h3 { font-size: 1.1875rem; }
.bh-step__date {
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.bh-step:not(.is-style-bh-step-done):not(.is-style-bh-step-current) h3 { color: var(--wp--preset--color--muted); }
.is-style-bh-step-done::before {
	background: var(--wp--preset--color--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
	border-color: var(--wp--preset--color--forest);
}
.is-style-bh-step-done .bh-step__date { color: var(--wp--preset--color--forest); }
.is-style-bh-step-current::before {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 5px rgba(233, 180, 76, .3);
}
.is-style-bh-step-current {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-left: 4px solid var(--wp--preset--color--accent);
	border-radius: 8px;
	padding: 1rem 1.25rem !important;
	margin-bottom: 1.75rem;
}
.bh-timeline > .is-style-bh-step-current::before { left: calc(-2.25rem - 1px); top: 1.15rem; }
.is-style-bh-step-current .bh-step__date { color: #9a6a0c; }

/* ---------- Mitmachen-Karten ---------- */
.bh-actions { gap: 1.25rem; }
.bh-action { padding: 1.5rem; display: flex; flex-direction: column; }
.bh-action > * { margin-block: 0; }
.bh-action > * + * { margin-block-start: 0.6rem; }
.bh-action > .wp-block-buttons,
.bh-action > .wp-block-social-links { margin-top: auto; padding-top: 0.9rem; }
.bh-action__num {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: 0.875rem;
	color: var(--wp--preset--color--forest);
	letter-spacing: 0.06em;
}
.bh-action--primary {
	background: var(--wp--preset--color--forest-deep);
	border-color: var(--wp--preset--color--forest-deep);
	color: var(--wp--preset--color--mist);
}
.bh-action--primary h3 { color: var(--wp--preset--color--white); }
.bh-action--primary .bh-action__num { color: var(--wp--preset--color--accent); }

/* ---------- Hinweis-Box ---------- */
.bh-note {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-left: 4px solid var(--wp--preset--color--forest);
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
}
.bh-note > * { margin-block: 0; }
.bh-note > * + * { margin-block-start: 0.75rem; }

/* ---------- Spendenkonto ---------- */
.bh-bank {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	align-items: center;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	padding: 1.5rem;
}
.bh-bank__list { flex: 1 1 18rem; margin: 0; display: grid; gap: 0.6rem; }
.bh-bank__list > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.75rem; align-items: baseline; }
.bh-bank__list dt { font-size: 0.8125rem; font-weight: 700; color: var(--wp--preset--color--muted); }
.bh-bank__list dd { margin: 0; font-weight: 600; }
.bh-bank__iban { font-variant-numeric: tabular-nums; letter-spacing: 0.03em; }
.bh-copy {
	margin-left: 0.5rem;
	padding: 0.2rem 0.6rem;
	font: inherit;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--wp--preset--color--forest);
	background: transparent;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	cursor: pointer;
}
.bh-copy:hover { border-color: var(--wp--preset--color--forest); }
.bh-girocode { margin: 0; width: 170px; text-align: center; }
.bh-girocode__code svg { display: block; width: 100%; height: auto; }
.bh-girocode figcaption { font-size: 0.75rem; color: var(--wp--preset--color--muted); margin-top: 0.4rem; }
@media (max-width: 480px) {
	.bh-bank__list > div { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Häufige Fragen ---------- */
.bh-faq-list { border-top: 1px solid var(--wp--preset--color--line); }
.bh-faq { border-bottom: 1px solid var(--wp--preset--color--line); margin: 0; }
.bh-faq summary {
	list-style: none;
	cursor: pointer;
	position: relative;
	padding: 1.1rem 2.5rem 1.1rem 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 1.125rem;
	line-height: 1.35;
}
.bh-faq summary::-webkit-details-marker { display: none; }
.bh-faq summary::after {
	content: "";
	position: absolute;
	right: 0.35rem; top: 50%;
	width: 0.65rem; height: 0.65rem;
	border-right: 2.5px solid var(--wp--preset--color--forest);
	border-bottom: 2.5px solid var(--wp--preset--color--forest);
	transform: translateY(-70%) rotate(45deg);
	transition: transform .25s ease;
}
.bh-faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.bh-faq summary:hover { color: var(--wp--preset--color--forest); }
.bh-faq > :not(summary) { margin: 0 0 1.25rem; max-width: 46rem; }

/* ---------- Termin-Box in Beiträgen ---------- */
.bh-event {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-top: 4px solid var(--wp--preset--color--accent);
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
}
.bh-event > * { margin-block: 0; }
.bh-event > * + * { margin-block-start: 0.4rem; }
.bh-event__row strong {
	display: inline-block;
	min-width: 3.5rem;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--forest);
}

/* ---------- Fußzeile: Social Icons ---------- */
.bh-footer-social { margin-top: 1rem; }
.bh-footer-social .wp-social-link { transition: transform .2s ease, background-color .2s ease; }
.bh-footer-social .wp-social-link:hover { transform: translateY(-2px); background-color: var(--wp--preset--color--accent) !important; }
.bh-footer-bottom > * { margin: 0; }

/* ---------- Link-Seite für Instagram ---------- */
.bh-links-page { min-height: 100vh; box-sizing: border-box; }
.bh-links { text-align: center; }
.bh-links > * + * { margin-block-start: 1.1rem; }
.bh-links .wp-block-site-logo { display: flex; justify-content: center; }
.bh-links__title { font-size: 1.5rem; line-height: 1.2; }
.bh-links .bh-status { text-align: left; }
.bh-links__buttons { gap: 0.7rem; }
.bh-links__buttons .wp-block-button__link { padding: 1rem 1.25rem; border-radius: 10px; }

/* =========================================================
   Stellungnahme-Assistent (ab Version 1.4.0)
   ========================================================= */

.bh-args { gap: 1rem; }
.bh-arg {
	padding: 1.25rem 1.25rem 1rem;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	position: relative;
}
.bh-arg > * { margin-block: 0; }
.bh-arg > * + * { margin-block-start: 0.5rem; }
.bh-arg h3 { font-size: 1.0625rem; padding-right: 2rem; }
.bh-arg p { font-size: 0.9375rem; color: var(--wp--preset--color--muted); }
.bh-arg::after {
	content: "";
	position: absolute;
	top: 1.15rem; right: 1.15rem;
	width: 1.35rem; height: 1.35rem;
	box-sizing: border-box;
	border: 2px solid var(--wp--preset--color--line);
	border-radius: 6px;
	background: var(--wp--preset--color--white) center / 75% no-repeat;
	transition: background-color .2s ease, border-color .2s ease;
}
.bh-arg.is-selected { border-color: var(--wp--preset--color--forest); box-shadow: inset 0 0 0 1px var(--wp--preset--color--forest); }
.bh-arg.is-selected::after {
	background-color: var(--wp--preset--color--forest);
	border-color: var(--wp--preset--color--forest);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.bh-arg__toggle {
	margin-top: auto !important;
	padding-top: 0.75rem;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--wp--preset--color--forest);
	cursor: pointer;
}
.bh-arg__check { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bh-arg:has(.bh-arg__check:focus-visible) { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; }

body.bh-sn-inactive .bh-args,
body.bh-sn-inactive .bh-sn-howto,
body.bh-sn-inactive h2:has(+ .bh-args),
body.bh-sn-inactive h2:has(+ .bh-sn-closed) { display: none; }

.bh-sn__admin {
	background: #fff4d6;
	border: 1px dashed #c99a2e;
	border-radius: 8px;
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
}
.bh-sn__form fieldset {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	background: var(--wp--preset--color--white);
	padding: 1.25rem 1.5rem 1.5rem;
	margin: 0 0 1.25rem;
}
.bh-sn__form legend {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 1.0625rem;
	padding: 0 0.4rem;
}
.bh-sn__hint { font-size: 0.875rem; color: var(--wp--preset--color--muted); margin: 0 0 1rem; }
.bh-sn__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.bh-sn__form label { display: grid; gap: 0.35rem; font-size: 0.875rem; font-weight: 600; }
.bh-sn__form input,
.bh-sn__form textarea {
	font: inherit;
	font-weight: 400;
	font-size: 1rem;
	padding: 0.65rem 0.75rem;
	border: 1px solid #b9c3bb;
	border-radius: 6px;
	background: #fff;
	width: 100%;
	box-sizing: border-box;
}
.bh-sn__form input:focus,
.bh-sn__form textarea:focus { border-color: var(--wp--preset--color--forest); outline: 2px solid rgba(30, 77, 51, .2); }
.bh-sn__count { font-size: 0.9375rem; font-weight: 600; color: var(--wp--preset--color--forest); }
.bh-sn__error { color: #a3261b; font-weight: 600; }
.bh-sn__result { margin-top: 2.5rem; }
.bh-sn__steps { padding-left: 1.25rem; }
.bh-sn__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 1.5rem; }
.bh-sn .wp-element-button { border: 0; cursor: pointer; }
.bh-sn .wp-element-button.is-secondary {
	background: transparent;
	color: var(--wp--preset--color--forest);
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--forest);
}

/* Briefvorschau – sieht aus wie ein Blatt Papier */
.bh-letter {
	background: #fff;
	color: #111;
	max-width: 42rem;
	padding: 3rem 3.25rem;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 20px 40px -24px rgba(0, 0, 0, .35);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11pt;
	line-height: 1.5;
}
.bh-letter p { margin: 0 0 1em; }
.bh-letter__sender { font-size: 9pt; color: #444; }
.bh-letter__recipient { margin: 2em 0 2.5em !important; }
.bh-letter__date { text-align: right; }
.bh-letter__subject { font-weight: 700; margin-bottom: 2em !important; }
.bh-letter__regards { margin-top: 2em !important; margin-bottom: 3.5em !important; }

@media (max-width: 600px) {
	.bh-letter { padding: 1.5rem 1.25rem; }
}

/* Drucken: nur den Brief */
@media print {
	html.bh-printing body * { visibility: hidden !important; }
	html.bh-printing .bh-letter,
	html.bh-printing .bh-letter * { visibility: visible !important; }
	html.bh-printing .bh-letter {
		position: absolute;
		left: 0; top: 0;
		width: 100%;
		max-width: none;
		box-shadow: none;
		padding: 0;
	}
	html.bh-printing #wpadminbar { display: none !important; }
	@page { size: A4; margin: 25mm 20mm 20mm 25mm; }
}
/* =========================================================
   Einheitliche Inhaltsseiten (ab Version 1.5.0)
   ========================================================= */

/* Einleitung direkt unter dem Seitentitel */
.bh-lead { color: var(--wp--preset--color--muted); line-height: 1.55; }
.wp-block-post-title + .wp-block-post-content > .bh-lead:first-child { margin-block-start: 1rem; }

/* Hauptüberschrift im Einstieg der Startseite */
main > section:first-child h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); line-height: 1.05; }

/* Abstände und Größen der Abschnitte */
.wp-block-post-content > h2 { margin-block-start: var(--wp--preset--spacing--60); font-size: clamp(1.625rem, 3vw, 2.125rem); line-height: 1.15; }
.wp-block-post-content > .bh-eyebrow + h2 { margin-block-start: 0.75rem; }
.wp-block-post-content > .bh-eyebrow { margin-block-start: var(--wp--preset--spacing--70); }
.wp-block-post-content > .alignwide { margin-block-start: var(--wp--preset--spacing--50); margin-block-end: var(--wp--preset--spacing--50); }

/* Bilder und Galerien */
.wp-block-post-content .wp-block-image img,
.bh-gallery .wp-block-image img { border-radius: 10px; }
.bh-card > .wp-block-image img { border-radius: 0; }
.wp-block-post-content .wp-element-caption { font-size: 0.875rem; color: var(--wp--preset--color--muted); text-align: left; }
.bh-gallery.is-cropped .wp-block-image img { aspect-ratio: 4 / 3; height: auto; }

/* Große Aussage */
.bh-statement { font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.1; color: var(--wp--preset--color--forest-deep); }
.bh-quote {
	border-left: 4px solid var(--wp--preset--color--accent);
	padding: 0.25rem 0 0.25rem 1.25rem;
	margin-inline: 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 1.375rem;
	line-height: 1.3;
}
.bh-quote p { margin: 0; }

/* Karten auf Inhaltsseiten: ohne Nummer beginnt der Titel oben */
.bh-action > h3 { font-size: 1.1875rem; line-height: 1.25; }
.bh-action .wp-block-list { padding-left: 1.1rem; margin: 0; }
.bh-action .wp-block-list li + li { margin-top: 0.2rem; }
.bh-action--primary a:not(.wp-element-button) { color: var(--wp--preset--color--white); }
.bh-action .bh-social,
.bh-action > .bh-social { margin-top: auto; padding-top: 0.9rem; }

/* Weiterlesen-Link in Karten */
.bh-more { font-weight: 700; font-size: 0.9375rem; margin-top: 0.75rem !important; }
.bh-more a { text-decoration: none; color: var(--wp--preset--color--forest); }
.bh-more a::after { content: " →"; }
.bh-more a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* Elf Standpunkte als nummerierte Liste */
.bh-points { border-top: 1px solid var(--wp--preset--color--line); }
.bh-points > .bh-point { display: grid; grid-template-columns: 2.75rem 1fr; gap: 0.75rem; padding: 1.25rem 0; margin: 0; }
.bh-points .bh-point__num { font-size: 1.25rem; line-height: 1.4; }
.bh-point__body > * { margin: 0; }
.bh-point__body > * + * { margin-block-start: 0.4rem; }
.bh-point__body h3 { font-size: 1.1875rem; }

/* Dokumentenliste (PDFs, Presseartikel) */
.bh-docs { list-style: none; padding: 0; margin-block: 1rem 0; border-top: 1px solid var(--wp--preset--color--line); }
.bh-docs li { padding: 0.8rem 0 0.8rem 2rem; border-bottom: 1px solid var(--wp--preset--color--line); position: relative; margin: 0 !important; }
.bh-docs li::before {
	content: "";
	position: absolute;
	left: 0.2rem; top: 0.95rem;
	width: 1.05rem; height: 1.3rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E4D33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bh-docs a { font-weight: 600; color: var(--wp--preset--color--ink); text-decoration-color: var(--wp--preset--color--line); text-underline-offset: 0.2em; }
.bh-docs a:hover { color: var(--wp--preset--color--forest); text-decoration-color: currentColor; }
.bh-docs__meta { display: block; font-size: 0.8125rem; color: var(--wp--preset--color--muted); margin-top: 0.15rem; }
.bh-action .bh-docs { border-top: 0; }
.bh-action .bh-docs li { padding-top: 0.55rem; padding-bottom: 0.55rem; }
.bh-action .bh-docs li::before { top: 0.7rem; }

/* Bezeichnung – Wert (Impressum) */
.bh-facts { border-top: 1px solid var(--wp--preset--color--line); }
.bh-facts__row { display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr; gap: 0.5rem 1.5rem; padding: 0.9rem 0; border-bottom: 1px solid var(--wp--preset--color--line); margin: 0 !important; }
.bh-facts__row > p { margin: 0; }
.bh-facts__label { font-weight: 700; color: var(--wp--preset--color--muted); font-size: 0.9375rem; }
@media (max-width: 600px) {
	.bh-facts__row { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* Abschluss-Box „Wie geht es weiter?“ */
.bh-cta {
	border-radius: 12px;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	margin-block-start: var(--wp--preset--spacing--70) !important;
}
.bh-cta > * { margin-block: 0; }
.bh-cta > * + * { margin-block-start: 0.75rem; }
.bh-cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--wp--preset--color--white); }
.bh-cta p { color: var(--wp--preset--color--mist); }
.bh-cta .wp-block-buttons { margin-block-start: 1.25rem; }

/* Zurück-Link auf Unterseiten */
.bh-back { margin-block-start: var(--wp--preset--spacing--60) !important; font-weight: 700; }
.bh-back a { text-decoration: none; color: var(--wp--preset--color--forest); }

/* Social Icons auf hellem Grund */
.bh-social { margin-top: 0.75rem; }


@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation: none !important;
		transition: none !important;
	}
	.bh-card:hover, .wp-element-button:hover { transform: none; }
}
