/*
 * Bündnis Deutschland – building-block styles.
 *
 * Every section surface (block style "Fläche …" on a Group block) only sets a
 * handful of CSS custom properties. All components read these properties, so a
 * component automatically looks right on white, light and dark surfaces.
 */

/* ---------- Surface tokens ---------- */

:root {
	--bd-surface: #ffffff;
	--bd-gradient: none;
	--bd-text: var(--wp--preset--color--nachtblau);
	--bd-muted: var(--wp--preset--color--schiefer);
	--bd-eyebrow: var(--wp--preset--color--magenta);
	--bd-line: var(--wp--preset--color--linie);
	--bd-card: #f4f5f8;
	--bd-tag-bg: var(--wp--preset--color--hellblau);
	--bd-tag-text: var(--bd-blue-text);
	--bd-check-bg: var(--wp--preset--color--hellrosa);
	--bd-outline: var(--wp--preset--color--nachtblau);
	--bd-link-hover: var(--wp--preset--color--magenta);
	--bd-radius-l: 28px;
	--bd-radius-m: 20px;
	/* Opacity of the duotone background photos (9 %). */
	--bd-bg-opacity: 0.09;
	--bd-glow-magenta: radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--bd-accent-glow) 22%, transparent), transparent 45%);
	--bd-glow-blue: radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--wp--preset--color--logo-blau) 28%, transparent), transparent 50%);
}

/* ---------- Colour tokens ----------
 * Base colours come from the palette in theme.json (Nachtblau, Magenta = accent, Logo-Blau).
 * The shades below are derived from them. To change the colour scheme, override the palette
 * colours and these shades together under Stile → Zusätzliches CSS (see ANLEITUNG, "Farben ändern").
 */
:root {
	/* Accent (Magenta) */
	--bd-accent-dark: #a9184f;   /* button hover */
	--bd-accent-light: #ff8fb4;  /* accent on dark surfaces */
	--bd-accent-text: #a3164c;   /* error text on light accent tint */
	--bd-accent-glow: #e72d71;   /* soft glow in dark gradients */
	/* Blue */
	--bd-blue-light: #8fb4f5;    /* eyebrow on "Verlauf Tiefblau" */
	--bd-blue-text: #1f56b8;     /* tag text */
	--bd-blue-strong: #1f4f9e;   /* eyebrow on "Fläche Hellgrau" */
	/* Gradient stops of the dark surfaces */
	--bd-night-2: #1b2b52;
	--bd-night-3: #1a2448;
	--bd-berry-mid: #2a2650;
	--bd-berry-end: #3a2340;
	--bd-violet-start: #24467f;
	--bd-violet-mid: #33407f;
	--bd-violet-end: #4b2d66;
}

/* Light grey surface ("Fläche Hellgrau") */
.is-style-hellblau {
	--bd-surface: #f4f5f8;
	--bd-muted: #33405c;
	--bd-eyebrow: var(--bd-blue-strong);
	--bd-line: #dde1ea;
	--bd-card: #ffffff;
	--bd-tag-bg: #ffffff;
}

/* Dark gradient surfaces */
.is-style-tiefblau,
.is-style-beere,
.is-style-blau,
.is-style-nachtblau {
	--bd-text: #ffffff;
	--bd-line: rgba(255, 255, 255, 0.18);
	--bd-card: rgba(255, 255, 255, 0.08);
	--bd-tag-bg: rgba(255, 255, 255, 0.14);
	--bd-tag-text: #ffffff;
	--bd-check-bg: rgba(255, 255, 255, 0.14);
	--bd-outline: #ffffff;
	--bd-link-hover: var(--bd-accent-light);
	--bd-eyebrow: var(--bd-accent-light);
}

.is-style-tiefblau {
	--bd-surface: var(--wp--preset--color--nachtblau);
	--bd-gradient: var(--bd-glow-blue), linear-gradient(180deg, var(--wp--preset--color--nachtblau) 0%, var(--bd-night-2) 100%);
	--bd-muted: #d3dbea;
	--bd-eyebrow: var(--bd-blue-light);
}

.is-style-beere {
	--bd-surface: var(--bd-berry-mid);
	--bd-gradient: var(--bd-glow-magenta), linear-gradient(180deg, var(--bd-night-2) 0%, var(--bd-berry-mid) 55%, var(--bd-berry-end) 100%);
	--bd-muted: #e4d6e2;
}

.is-style-blau {
	--bd-surface: var(--bd-violet-mid);
	--bd-gradient: var(--bd-glow-magenta), linear-gradient(135deg, var(--bd-violet-start) 0%, var(--bd-violet-mid) 55%, var(--bd-violet-end) 100%);
	--bd-muted: #e6eafc;
	--bd-card: rgba(255, 255, 255, 0.1);
}

.is-style-nachtblau {
	--bd-surface: var(--wp--preset--color--nachtblau);
	--bd-gradient: var(--bd-glow-blue), linear-gradient(180deg, var(--bd-night-3) 0%, var(--wp--preset--color--nachtblau) 100%);
	--bd-muted: #d3dbea;
}

.is-style-tiefblau,
.is-style-beere,
.is-style-blau,
.is-style-nachtblau,
.is-style-hellblau {
	background-color: var(--bd-surface);
	background-image: var(--bd-gradient);
	color: var(--bd-text);
}

.is-style-tiefblau :where(p, li),
.is-style-beere :where(p, li),
.is-style-blau :where(p, li),
.is-style-nachtblau :where(p, li) {
	color: var(--bd-muted);
}

.is-style-tiefblau :where(h1, h2, h3, h4, strong, a),
.is-style-beere :where(h1, h2, h3, h4, strong, a),
.is-style-blau :where(h1, h2, h3, h4, strong, a),
.is-style-nachtblau :where(h1, h2, h3, h4, strong, a) {
	color: #ffffff;
}

/* ---------- Page rhythm: sections sit flush, no white gaps ---------- */

.wp-site-blocks > *,
.bd-main > *,
.bd-main > .entry-content > * {
	margin-block-start: 0 !important;
}

.bd-section {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
}

.bd-section.bd-compact {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

/* ---------- Typography helpers ---------- */

.bd-eyebrow {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bd-eyebrow) !important;
}

.bd-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.6;
	color: var(--bd-muted);
	max-width: 680px;
}

.bd-textlink a,
.bd-link a {
	font-weight: 600;
	text-decoration: none;
}

.bd-textlink a::after {
	content: "→";
	display: inline-block;
	margin-left: 0.35em;
	transition: transform 0.25s ease;
}

.bd-textlink a:hover::after {
	transform: translateX(5px);
}

.bd-section-head > * {
	max-width: 780px;
}

/* ---------- Buttons ---------- */

.wp-block-button.is-style-hell .wp-block-button__link {
	background: #ffffff;
	color: var(--wp--preset--color--nachtblau) !important;
}

.wp-block-button.is-style-hell .wp-block-button__link:hover {
	background: #e9edf5;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--bd-outline) !important;
	border: 2px solid var(--bd-outline);
	padding: 16px 32px;
}

/* ---------- Images & media ---------- */

.bd-img img {
	width: 100%;
	height: clamp(260px, 36vw, 480px);
	object-fit: cover;
	border-radius: var(--bd-radius-l);
	display: block;
}

.bd-img.bd-img-s img {
	height: clamp(200px, 22vw, 260px);
	border-radius: var(--bd-radius-m);
}

.bd-video video {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--bd-radius-l);
	background: var(--wp--preset--color--nachtblau);
	display: block;
}

.bd-video figcaption {
	text-align: left;
	color: var(--bd-muted);
	font-size: 15px;
	margin-top: 12px;
}

/* ---------- Header & logo (site title + logo stripes) ---------- */

/* The header template part renders as display:contents, so .bd-header can stick to the viewport. */
header.wp-block-template-part {
	display: contents;
}

.bd-header {
	position: sticky;
	top: 0;
	z-index: 900;
	padding-top: 10px;
	padding-bottom: 10px;
	background: #ffffff;
	border-bottom: 1px solid transparent;
	transition: background-color 0.45s, border-color 0.45s;
}

/* Frosted glass once the page is scrolled (class set by assets/js/effects.js). */
html.bd-scrolled .bd-header {
	background: rgba(255, 255, 255, 0.74);
	-webkit-backdrop-filter: blur(20px) saturate(1.6);
	backdrop-filter: blur(20px) saturate(1.6);
	border-bottom-color: var(--wp--preset--color--linie);
}

/* The open mobile menu lives inside the header; a backdrop-filter would trap the fixed overlay. */
html.has-modal-open .bd-header {
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	/* Above the top bar (z-index 910), so the open menu covers it. */
	z-index: 1000;
}

.bd-logo-bild {
	margin: 0;
}

.bd-logo-bild a {
	display: inline-block;
	line-height: 0;
}

.bd-logo-bild img {
	display: block;
	width: auto;
	height: 36px;
}

@media (max-width: 600px) {
	.bd-logo-bild img {
		height: 30px;
	}
}

.bd-logo .wp-block-site-title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	line-height: 0.92;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	width: min-content;
	/* Core columns use word-break: break-word; keep whole words so the logo stays two lines. */
	word-break: normal;
	overflow-wrap: normal;
	white-space: normal;
}

.bd-logo .wp-block-site-title a {
	text-decoration: none;
	color: var(--wp--preset--color--nachtblau);
	display: inline-block;
}

.bd-logo .wp-block-site-title a::after {
	content: "";
	display: block;
	height: 4px;
	margin-top: 6px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--wp--preset--color--logo-magenta) 0 calc(50% - 1.5px), transparent calc(50% - 1.5px) calc(50% + 1.5px), var(--wp--preset--color--logo-blau) calc(50% + 1.5px) 100%);
}

.bd-nav-cta .wp-block-navigation-item__content {
	background: var(--wp--preset--color--magenta);
	color: #ffffff !important;
	padding: 12px 24px !important;
	border-radius: 999px;
	font-weight: 600;
}

.bd-nav-cta .wp-block-navigation-item__content:hover {
	background: var(--bd-accent-dark);
}

/* ---------- Section: hero (panorama) ---------- */

.bd-hero {
	position: relative;
	overflow: hidden;
	min-height: 720px;
	display: flex;
	align-items: center;
	background: #ffffff;
	color: var(--wp--preset--color--nachtblau);
}

.bd-hero.bd-hero-s {
	min-height: 480px;
}

.bd-hero > .bd-hero__bg {
	position: absolute;
	/* 10 % taller than the hero, so the scroll parallax (assets/js/effects.js) never uncovers the top edge. */
	top: -10%;
	left: 0;
	margin: 0;
	z-index: 0;
	max-width: none !important;
	width: 100%;
	height: 110%;
}

.bd-hero > .bd-hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 62% 55%;
}

.bd-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(0deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 35%),
		linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.84) 38%, rgba(255, 255, 255, 0.3) 72%, rgba(255, 255, 255, 0.05) 100%);
	pointer-events: none;
}

.bd-hero > .bd-hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	padding-top: 96px;
	padding-bottom: 96px;
	--bd-eyebrow: var(--wp--preset--color--magenta);
	--bd-muted: var(--wp--preset--color--schiefer);
}

.bd-hero__content > * {
	max-width: 640px;
}

.bd-hero__content > h1 {
	max-width: 860px;
	color: var(--wp--preset--color--nachtblau);
}

.bd-hero__content p {
	color: var(--bd-muted);
}

.bd-hero__content .bd-textlink a {
	color: var(--wp--preset--color--nachtblau);
}

@media (max-width: 781px) {
	.bd-hero {
		min-height: 640px;
		align-items: flex-end;
	}

	.bd-hero.bd-hero-s {
		min-height: 520px;
	}

	.bd-hero::before {
		background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.5) 35%, rgba(255, 255, 255, 0.92) 62%, rgba(255, 255, 255, 0.97) 100%);
	}

	.bd-hero > .bd-hero__bg img {
		object-position: 50% 40%;
	}

	.bd-hero > .bd-hero__content {
		padding-top: 0;
		padding-bottom: 44px;
	}
}

/* ---------- Two-column splits ---------- */

.bd-split {
	align-items: center !important;
	gap: clamp(32px, 6vw, 72px) !important;
}

.bd-split.bd-top {
	align-items: flex-start !important;
}

.bd-split + .bd-split {
	margin-top: clamp(48px, 7vw, 96px) !important;
}

/* On phones the image column always comes first, also in reversed rows */
@media (max-width: 781px) {
	.bd-split.bd-reverse {
		flex-direction: column-reverse;
	}
}

/* ---------- Component: demand row ---------- */

.bd-demand-meta {
	gap: 16px !important;
	margin-bottom: 4px;
}

.bd-demand-meta > * {
	margin: 0 !important;
}

.bd-number {
	font-size: clamp(40px, 4vw, 56px);
	line-height: 1;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--magenta) !important;
}

.bd-tag {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bd-tag-text) !important;
	background: var(--bd-tag-bg);
	padding: 5px 12px;
	border-radius: 999px;
}

/* ---------- Component: checklist ---------- */

.bd-checklist {
	list-style: none;
	padding-left: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bd-checklist li {
	position: relative;
	padding-left: 42px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--bd-text);
}

.bd-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background-color: var(--bd-check-bg);
}

/* Tick drawn as a mask so it takes the accent colour. */
.bd-checklist li::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 6px;
	width: 16px;
	height: 16px;
	background-color: var(--wp--preset--color--magenta);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}

/* ---------- Component: big list ---------- */

.bd-biglist {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.bd-biglist li {
	font-size: clamp(24px, 2.6vw, 32px);
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.02em;
	padding: 12px 0;
	border-bottom: 1px solid var(--bd-line);
	color: var(--bd-text) !important;
}

/* ---------- Component: cards ---------- */

.bd-card {
	border-radius: 24px;
	padding: clamp(24px, 3vw, 40px);
	background: var(--bd-card);
	height: 100%;
}

.bd-card > * + * {
	margin-top: 12px;
}

.bd-card h3 {
	font-size: clamp(21px, 2.2vw, 26px);
	line-height: 1.25;
}

/* ---------- Component: faces ---------- */

.bd-faces {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	max-width: 340px;
}

.bd-faces .wp-block-image,
.bd-faces-row .wp-block-image {
	margin: 0;
}

.bd-faces img,
.bd-faces-row img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}

.bd-faces-row {
	display: flex !important;
	gap: 0 !important;
}

.bd-faces-row .wp-block-image {
	width: 56px;
	flex: 0 0 56px;
}

.bd-faces-row .wp-block-image + .wp-block-image {
	margin-left: -14px !important;
}

.bd-faces-row img {
	border: 3px solid var(--bd-surface);
}

@media (max-width: 781px) {
	.bd-faces {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		gap: 8px;
		max-width: none;
	}
}

/* ---------- Component: quote ---------- */

.bd-quote {
	border-radius: var(--bd-radius-l);
	padding: clamp(28px, 4vw, 44px);
	background: var(--bd-card);
	margin: 0;
}

.bd-quote > p:first-child {
	font-size: clamp(20px, 2vw, 26px);
	line-height: 1.45;
	font-weight: 500;
	color: var(--bd-text) !important;
}

.bd-person {
	gap: 16px !important;
	align-items: center;
	margin-top: 24px;
}

.bd-person .wp-block-image {
	margin: 0;
	flex: 0 0 64px;
}

.bd-person img {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.bd-person p {
	margin: 0;
	line-height: 1.35;
}

.bd-person p strong {
	color: var(--bd-text);
}

/* ---------- Component: contact card ---------- */

.bd-contact .wp-block-image img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--bd-radius-m);
	display: block;
}

.bd-contact h3 {
	font-size: 22px;
	letter-spacing: -0.01em;
	margin-top: 16px;
}

.bd-contact p {
	margin-top: 4px;
	font-size: 16px;
}

/* ---------- Component: dated list (news, events) ---------- */

.bd-news .wp-block-post-template {
	list-style: none;
	padding: 0;
	margin: 0;
}

.bd-row,
.bd-news-item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 48px;
	padding: 24px 0;
	border-top: 1px solid var(--bd-line);
	margin: 0 !important;
}

.bd-row > *,
.bd-news-item > * {
	margin: 0 !important;
}

.bd-row > :first-child,
.bd-news-item .wp-block-post-date {
	flex: 0 0 210px;
	font-size: 15px;
	font-weight: 600;
	color: var(--wp--preset--color--magenta);
}

.bd-row > :nth-child(2),
.bd-news-item .wp-block-post-title {
	flex: 1 1 420px;
	font-size: clamp(18px, 1.8vw, 23px);
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.4;
	color: var(--bd-text);
}

.bd-row > :nth-child(3) {
	flex: 0 0 auto;
	color: var(--bd-muted);
	font-size: 16px;
}

.bd-news-item .wp-block-post-title a {
	text-decoration: none;
}

/* ---------- Footer ---------- */

.bd-footer {
	position: relative;
	padding-top: 28px;
	padding-bottom: 24px;
	background: #f4f5f8;
	color: var(--wp--preset--color--grau);
	font-size: 15px;
}

.bd-footer .wp-block-navigation {
	font-size: 15px;
	font-weight: 400;
}

.bd-footer .bd-logo .wp-block-site-title {
	font-size: 17px;
}

/* ---------- Text pages ---------- */

.bd-page-header {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--40);
}

/* =====================================================================
 * Version 3 additions
 * ===================================================================== */

/* ---------- Duotone background photos in coloured sections ---------- */

.bd-section {
	position: relative;
}

.bd-section:has(> .bd-bgimg) {
	overflow: hidden;
}

.bd-section > .bd-bgimg {
	position: absolute !important;
	inset: 0;
	margin: 0 !important;
	max-width: none !important;
	width: 100%;
	height: 100%;
	pointer-events: none;
	opacity: var(--bd-bg-opacity);
	mix-blend-mode: luminosity;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 35%, #000 85%);
	mask-image: linear-gradient(90deg, transparent 0%, transparent 35%, #000 85%);
}

.bd-section > .bd-bgimg.bd-bgimg-links {
	-webkit-mask-image: linear-gradient(270deg, transparent 0%, transparent 35%, #000 85%);
	mask-image: linear-gradient(270deg, transparent 0%, transparent 35%, #000 85%);
}

.bd-section > .bd-bgimg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.15);
	border-radius: 0;
}

.bd-section > *:not(.bd-bgimg) {
	position: relative;
	z-index: 1;
}

/* ---------- Hover effects (pronounced) ---------- */

.wp-block-button__link,
.wp-element-button,
.bd-arrow,
.wp-social-link {
	transition: background-color 0.2s ease, color 0.2s ease;
}

.bd-tiles .wp-block-post-featured-image img {
	transition: transform 0.25s ease;
}

/* Cards lift via the individual "translate" property, so it never fights the reveal transform. */
.bd-card {
	transition: translate 0.25s ease, box-shadow 0.25s ease, background-color 0.2s ease;
}

/* Flat buttons: slightly darker on hover, no lift, no gloss, no shadow. */
.wp-block-button:not(.is-style-outline):not(.is-style-hell) > .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline):not(.is-style-hell) > .wp-element-button:hover {
	background-color: var(--bd-accent-dark);
	color: #ffffff !important;
}

/* Low specificity on purpose, so the exceptions below can override it. */
:where(a:not(.wp-element-button):not(.wp-block-button__link)):hover {
	color: var(--bd-link-hover) !important;
}

/* Links that sit on a coloured background keep white text on hover. */
.bd-nav-cta .wp-block-navigation-item__content:hover,
.bd-tile__cat a:hover,
.bd-social-round .wp-social-link a:hover {
	color: #ffffff !important;
}

.bd-tile__cat a:hover {
	filter: brightness(0.9);
}

.bd-card:hover {
	translate: 0 -4px;
}

.bd-tiles .wp-block-post-template > li:hover .wp-block-post-featured-image img {
	transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-button__link,
	.wp-element-button,
	.bd-card,
	.bd-tiles .wp-block-post-featured-image img {
		transition: none !important;
		transform: none !important;
		translate: none !important;
	}
}

/* ---------- Top bar ---------- */

.bd-topbar {
	background: var(--wp--preset--color--nachtblau);
	color: #c9d0e0;
	font-size: 14px;
	padding-top: 6px;
	padding-bottom: 6px;
	--bd-link-hover: var(--bd-accent-light);
}

.bd-topbar .wp-block-navigation {
	font-size: 14px;
	font-weight: 400;
}

.bd-topbar a {
	color: #c9d0e0;
	text-decoration: none;
}

.bd-topbar .wp-block-social-links .wp-social-link {
	color: #ffffff;
	border-radius: 50%;
}

.bd-topbar .wp-block-social-links .wp-social-link a {
	display: flex;
	padding: 4px;
}

.bd-topbar .wp-block-social-links .wp-social-link:hover {
	background: #ffffff;
	color: var(--wp--preset--color--nachtblau);
	transform: none;
}

/* ---------- Footer columns and round social icons ---------- */

.bd-footer__kopf {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 28px;
}

.bd-footer__kopf .bd-logo-bild img {
	height: 32px;
}

.bd-footer__cols {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(150px, 1fr));
	gap: 24px 32px !important;
}

.bd-footer__cols > .wp-block-column {
	flex-basis: auto !important;
	min-width: 0;
	word-break: normal;
	overflow-wrap: normal;
	hyphens: manual;
}

@media (max-width: 1100px) {
	.bd-footer__cols {
		grid-template-columns: repeat(2, minmax(140px, 1fr));
	}
}

@media (max-width: 600px) {
	.bd-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.bd-footer__title {
	font-weight: 700;
	color: var(--wp--preset--color--nachtblau);
	margin-bottom: 4px;
}

.bd-footer .wp-block-navigation a {
	color: var(--wp--preset--color--grau);
}

.bd-footer__bottom {
	border-top: 1px solid #dde1ea;
	padding-top: 16px;
	margin-top: 24px !important;
	font-size: 14px;
}

.bd-social-round {
	gap: 8px !important;
}

.bd-social-round .wp-block-social-link.wp-social-link {
	background: #ffffff !important;
	color: #000000 !important;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	margin: 0 !important;
}

.bd-social-round .wp-block-social-link.wp-social-link a {
	width: 100%;
	height: 100%;
	padding: 0 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	color: inherit !important;
}

.bd-social-round .wp-social-link svg {
	width: 20px;
	height: 20px;
}

.bd-social-round .wp-social-link:hover {
	background: #000000 !important;
	color: #ffffff !important;
	transform: none;
}

/* ---------- Aktuelles: image-tile carousel ---------- */

.bd-tiles__head {
	align-items: flex-end !important;
}

.bd-carousel-nav {
	display: flex;
	gap: 12px;
}

.bd-arrow {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 2px solid var(--wp--preset--color--nachtblau);
	background: #ffffff;
	color: var(--wp--preset--color--nachtblau);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}

.bd-arrow--filled {
	background: var(--wp--preset--color--nachtblau);
	color: #ffffff;
}

.bd-arrow:hover {
	filter: brightness(0.9);
}

.bd-arrow[aria-disabled="true"] {
	opacity: 0.35;
	cursor: default;
}

.bd-tiles .wp-block-post-template {
	display: flex !important;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	list-style: none;
	padding: 0;
	margin: 40px 0 0;
}

.bd-tiles .wp-block-post-template::-webkit-scrollbar {
	display: none;
}

.bd-tiles .wp-block-post-template > li {
	position: relative;
	flex: 0 0 calc(40% - 12px);
	height: 460px;
	margin: 0 !important;
	border-radius: 24px;
	overflow: hidden;
	scroll-snap-align: start;
	background: linear-gradient(135deg, var(--bd-night-2) 0%, var(--bd-berry-end) 100%);
}

.bd-tiles .wp-block-post-template > li::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, color-mix(in srgb, var(--wp--preset--color--nachtblau) 0%, transparent) 35%, color-mix(in srgb, var(--wp--preset--color--nachtblau) 92%, transparent) 100%);
	pointer-events: none;
	z-index: 1;
}

.bd-tiles .wp-block-post-featured-image {
	position: absolute;
	inset: 0;
	margin: 0;
	height: 100%;
}

.bd-tiles .wp-block-post-featured-image a,
.bd-tiles .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bd-tile__body {
	position: absolute;
	left: 28px;
	right: 28px;
	bottom: 28px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	margin: 0 !important;
}

.bd-tile__body > * {
	margin: 0 !important;
}

.bd-tile__cat a {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #ffffff !important;
	background: var(--wp--preset--color--magenta);
	padding: 5px 12px;
	border-radius: 999px;
	text-decoration: none;
}

.bd-tile__cat .wp-block-post-terms__separator {
	display: none;
}

.bd-tile__cat a + a {
	display: none;
}

.bd-tile__body .wp-block-post-title {
	font-size: 26px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.015em;
}

.bd-tile__body .wp-block-post-title a {
	color: #ffffff;
	text-decoration: none;
}

.bd-tile__body .wp-block-post-date {
	font-size: 14px;
	font-weight: 400;
	color: #d3dbea;
}

@media (max-width: 781px) {
	.bd-tiles .wp-block-post-template > li {
		flex-basis: 85%;
		height: 400px;
	}
}

/* ---------- Contact form ---------- */

.bd-form-card {
	background: #f4f5f8;
	border-radius: var(--bd-radius-l);
	padding: clamp(24px, 3vw, 40px);
}

.bd-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.bd-form label {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
}

.bd-form__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 18px;
}

.bd-form input[type="text"],
.bd-form input[type="email"],
.bd-form select,
.bd-form textarea {
	font: inherit;
	font-size: 17px;
	font-weight: 400;
	color: var(--wp--preset--color--nachtblau);
	background: #ffffff;
	border: 1px solid #c9d0e0;
	border-radius: 12px;
	padding: 14px 16px;
}

.bd-form input:focus,
.bd-form select:focus,
.bd-form textarea:focus {
	outline: 2px solid var(--wp--preset--color--logo-blau);
	outline-offset: 1px;
}

.bd-form .bd-form__consent {
	flex-direction: row;
	align-items: flex-start;
	gap: 12px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--bd-muted);
}

.bd-form__consent input {
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	flex: 0 0 20px;
	accent-color: var(--wp--preset--color--magenta);
}

.bd-form button {
	align-self: flex-start;
	border: 0;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
}

.bd-form__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.bd-form__error {
	background: var(--wp--preset--color--hellrosa);
	color: var(--bd-accent-text);
	border-radius: 12px;
	padding: 12px 16px;
	margin-bottom: 16px;
}

.bd-form__thanks {
	text-align: center;
	padding: 32px 0;
}

.bd-form__thanks-title {
	font-size: 24px;
	font-weight: 800;
	color: var(--wp--preset--color--nachtblau);
}

/* =====================================================================
 * Version 3.1 additions (design V13)
 * ===================================================================== */

:root {
	/* Glass cards: share of white in the card background (0 = transparent, 1 = opaque). */
	--bd-glas: 0.15;
	/* Height of the slanted section edges. */
	--bd-schraege: 20px;
	/* Black-red-gold, only used at the footer edge, the copyright line and the statement band. */
	--bd-srg-schwarz: #000000;
	--bd-srg-rot: #dd0000;
	--bd-srg-gold: #ffce00;
	--bd-srg-gestapelt: linear-gradient(180deg, var(--bd-srg-schwarz) 0 33.34%, var(--bd-srg-rot) 33.34% 66.67%, var(--bd-srg-gold) 66.67% 100%);
	--bd-srg-spalten: linear-gradient(90deg, var(--bd-srg-schwarz) 0 33.34%, var(--bd-srg-rot) 33.34% 66.67%, var(--bd-srg-gold) 66.67% 100%);
}

html,
body {
	overflow-x: clip;
}

/* ---------- Glass cards on dark surfaces ---------- */

.bd-section .bd-card-weiss,
.is-style-blau .bd-card {
	background: rgba(255, 255, 255, var(--bd-glas));
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 14px 36px color-mix(in srgb, var(--wp--preset--color--nachtblau) 18%, transparent);
}

/* More room below a row of cards before the section ends. */
.bd-section:has(.bd-card) {
	padding-bottom: calc(var(--wp--preset--spacing--70) + clamp(24px, 3vw, 40px));
}

/* ---------- Statement band ("Deutschland wird sich verändern …") ---------- */

.bd-band {
	padding-top: clamp(56px, 7vw, 96px);
	padding-bottom: clamp(56px, 7vw, 96px);
	background: #f4f5f8;
	color: var(--wp--preset--color--nachtblau);
}

.bd-band__text {
	position: relative;
	margin: 0 auto;
	max-width: var(--wp--style--global--content-size) !important;
	padding-left: clamp(24px, 3vw, 40px);
	font-size: clamp(26px, 4.2vw, 60px);
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: inherit;
}

.bd-band__text::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.08em;
	bottom: 0.08em;
	width: 8px;
	border-radius: 1px;
	background: var(--bd-srg-gestapelt);
}

.bd-nowrap {
	white-space: nowrap;
}

@media (max-width: 600px) {
	.bd-nowrap {
		white-space: normal;
	}
}

/* ---------- Images keep their rounding while zooming in ---------- */

.bd-img {
	overflow: hidden;
	border-radius: var(--bd-radius-l);
}

.bd-img.bd-img-s {
	border-radius: var(--bd-radius-m);
}

/* ---------- Outline button ---------- */

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: var(--bd-outline);
	color: #ffffff !important;
}

/* ---------- Footer: black-red-gold edge and small flag before the copyright ---------- */

.bd-footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	max-width: none !important;
	margin: 0 !important;
	background: var(--bd-srg-spalten);
	pointer-events: none;
}

.bd-footer__bottom > p:first-child::before {
	content: "";
	display: inline-block;
	width: 18px;
	height: 12px;
	margin-right: 10px;
	vertical-align: -1px;
	border-radius: 1px;
	background: var(--bd-srg-gestapelt);
}

/* ---------- Scroll progress bar (created by assets/js/effects.js) ---------- */

.bd-progress {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
	width: 100%;
	height: 3px;
	transform-origin: 0 50%;
	transform: scaleX(0);
	background: var(--wp--preset--color--magenta);
	pointer-events: none;
}

/* ---------- Floating social button (created by assets/js/effects.js) ---------- */

.bd-social-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 950;
	display: flex;
	align-items: center;
	gap: 10px;
	opacity: 0;
	transform: translateY(12px);
	pointer-events: none;
	transition: opacity 0.3s, transform 0.3s;
}

.bd-social-float.is-visible {
	opacity: 1;
	transform: none;
}

/* Only the button (and the icons while open) take clicks; the empty rest of the box must not cover links below it. */
.bd-social-float.is-visible .bd-social-float__toggle {
	pointer-events: auto;
}

.bd-social-float__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	background: var(--wp--preset--color--nachtblau);
	color: #ffffff;
	box-shadow: 0 10px 24px color-mix(in srgb, var(--wp--preset--color--nachtblau) 25%, transparent);
	transition: background-color 0.2s, color 0.2s;
}

.bd-social-float__toggle:hover,
.bd-social-float__toggle[aria-expanded="true"] {
	background: #ffffff;
	color: #000000;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.bd-social-float__toggle svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

/* No own surface and no overflow:hidden: every icon floats on its own and the hover zoom is never clipped. */
.bd-social-float__list {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	pointer-events: none;
}

.bd-social-float__list li {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	margin: 0;
	border-radius: 50%;
	background: #ffffff;
	color: var(--wp--preset--color--nachtblau);
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--wp--preset--color--nachtblau) 10%, transparent), 0 10px 26px color-mix(in srgb, var(--wp--preset--color--nachtblau) 30%, transparent);
	opacity: 0;
	transform: translateX(18px) scale(0.6);
	transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), background-color 0.2s, color 0.2s;
}

.bd-social-float.is-open .bd-social-float__list {
	pointer-events: auto;
}

.bd-social-float.is-open .bd-social-float__list li {
	opacity: 1;
	transform: none;
	/* Icons fly out from the button outwards: --bd-i is the distance to the button (set by the script). */
	transition-delay: calc(var(--bd-i, 0) * 0.04s);
}

.bd-social-float.is-open .bd-social-float__list li:hover {
	transform: scale(1.14);
	background: #000000;
	color: #ffffff;
	transition-delay: 0s;
}

.bd-social-float__list li a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0;
	color: inherit !important;
}

.bd-social-float__list svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

@media (max-width: 700px) {
	.bd-social-float {
		right: 12px;
		bottom: 76px;
	}
}

html.has-modal-open .bd-social-float,
html.has-modal-open .bd-progress {
	visibility: hidden;
}

/* ---------- Slanted section edges ----------
 * Coloured surfaces reach --bd-schraege into their neighbours and lie on top; clip-path cuts the slant.
 * Every full-width section gets a transparent border of the same height, so no content sits in the slant zone.
 * Gradients use background-origin: border-box and the duotone photo is extended, so both fill the slant.
 * Only top-level sections of the page content are affected (not the block editor). */

.bd-main .entry-content > .alignfull:not(.bd-hero) {
	border-top: var(--bd-schraege) solid transparent;
	border-bottom: var(--bd-schraege) solid transparent;
}

.bd-main .entry-content > :is(.is-style-tiefblau, .is-style-beere, .is-style-blau, .is-style-nachtblau, .is-style-hellblau, .bd-band) {
	/* 2px less at the top left: the surface overlaps its upper neighbour there instead of touching it edge to edge,
	   which left a flickering light seam in the bottom left corner of the upper band while scrolling. */
	--bd-kante-ol: calc(var(--bd-schraege) - 2px);
	--bd-kante-or: 0px;
	--bd-kante-ur: calc(100% - var(--bd-schraege));
	--bd-kante-ul: 100%;
	position: relative;
	z-index: 2;
	margin-top: calc(-1 * var(--bd-schraege)) !important;
	margin-bottom: calc(-1 * var(--bd-schraege)) !important;
	background-origin: border-box;
	overflow: visible !important;
	clip-path: polygon(0 var(--bd-kante-ol), 100% var(--bd-kante-or), 100% var(--bd-kante-ur), 0 var(--bd-kante-ul));
}

.bd-main .entry-content > .bd-section > .bd-bgimg {
	top: calc(-1 * var(--bd-schraege));
	bottom: calc(-1 * var(--bd-schraege));
	height: auto;
}

/* Two surfaces in a row: the upper one stays straight at the bottom, the lower one cuts over it (no white gap). */
.bd-main .entry-content > :is(.is-style-tiefblau, .is-style-beere, .is-style-blau, .is-style-nachtblau, .is-style-hellblau, .bd-band):has(+ :is(.is-style-tiefblau, .is-style-beere, .is-style-blau, .is-style-nachtblau, .is-style-hellblau, .bd-band)) {
	--bd-kante-ur: 100%;
	--bd-kante-ul: 100%;
}

/* First or last block of the page, or a neighbour that is not a full-width section: straight edge, no overlap. */
.bd-main .entry-content > :is(.is-style-tiefblau, .is-style-beere, .is-style-blau, .is-style-nachtblau, .is-style-hellblau, .bd-band):first-child,
.bd-main .entry-content > :not(.alignfull) + :is(.is-style-tiefblau, .is-style-beere, .is-style-blau, .is-style-nachtblau, .is-style-hellblau, .bd-band) {
	--bd-kante-ol: 0px;
	margin-top: 0 !important;
	border-top-width: 0;
}

.bd-main .entry-content > :is(.is-style-tiefblau, .is-style-beere, .is-style-blau, .is-style-nachtblau, .is-style-hellblau, .bd-band):last-child,
.bd-main .entry-content > :is(.is-style-tiefblau, .is-style-beere, .is-style-blau, .is-style-nachtblau, .is-style-hellblau, .bd-band):has(+ :not(.alignfull)) {
	--bd-kante-ur: 100%;
	--bd-kante-ul: 100%;
	margin-bottom: 0 !important;
	border-bottom-width: 0;
}

/* The hero has no transparent border (its photo should reach into the slant), so its content gets the extra room. */
.bd-main .entry-content > .bd-hero > .bd-hero__content {
	padding-bottom: calc(96px + var(--bd-schraege));
}

@media (max-width: 781px) {
	.bd-main .entry-content > .bd-hero > .bd-hero__content {
		padding-bottom: calc(44px + var(--bd-schraege));
	}
}

/* ---------- Motion (assets/js/effects.js) ----------
 * The script adds html.bd-motion only if the visitor has not asked for reduced motion.
 * Without JavaScript or with reduced motion everything is visible and static. */

html.bd-motion [data-bd-reveal] {
	opacity: var(--bd-reveal-opacity, 0);
	transform: translate(var(--bd-reveal-x, 0), var(--bd-reveal-y, 0)) scale(var(--bd-reveal-scale, 1));
	transition:
		opacity var(--bd-reveal-duration, 0.9s) var(--bd-reveal-ease, cubic-bezier(0.22, 1, 0.36, 1)) var(--bd-reveal-delay, 0s),
		transform var(--bd-reveal-duration, 0.9s) var(--bd-reveal-ease, cubic-bezier(0.22, 1, 0.36, 1)) var(--bd-reveal-delay, 0s);
}

html.bd-motion [data-bd-reveal].is-revealed {
	opacity: 1;
	transform: none;
}

/* Hero: on load the photo settles from a slight zoom, the text follows line by line. */
@keyframes bd-hero-photo {
	from { transform: scale(1.06); }
	to { transform: none; }
}

@keyframes bd-hero-text {
	from { opacity: 0; transform: translateY(22px); }
	to { opacity: 1; transform: none; }
}

html.bd-motion .bd-hero > .bd-hero__bg img {
	animation: bd-hero-photo 1.8s cubic-bezier(0.33, 1, 0.68, 1) both;
}

html.bd-motion .bd-hero__content > * {
	animation: bd-hero-text 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.bd-motion .bd-hero__content > :nth-child(1) { animation-delay: 0.15s; }
html.bd-motion .bd-hero__content > :nth-child(2) { animation-delay: 0.27s; }
html.bd-motion .bd-hero__content > :nth-child(3) { animation-delay: 0.39s; }
html.bd-motion .bd-hero__content > :nth-child(n + 4) { animation-delay: 0.51s; }

/* =====================================================================
 * Version 3.2 additions: positions overview and topic pages
 * ===================================================================== */

:root {
	/* Height of the sticky header, measured by assets/js/subnav.js. */
	--bd-kopf: 64px;
	--bd-sprungabstand: calc(var(--bd-kopf) + 28px);
}

/* ---------- Subpage header (photo) ---------- */

.bd-breadcrumb {
	font-size: 14px;
	color: var(--wp--preset--color--schiefer) !important;
}

.bd-breadcrumb a {
	color: var(--wp--preset--color--nachtblau);
	text-decoration: none;
}

.bd-hero.bd-hero-s .bd-hero__content > h1 {
	font-size: clamp(42px, 6vw, 76px);
}

/* ---------- Focus topics: glass cards with image ---------- */

.bd-focus {
	padding: 0 !important;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.bd-focus > * {
	margin-left: clamp(22px, 2.6vw, 32px) !important;
	margin-right: clamp(22px, 2.6vw, 32px) !important;
}

.bd-focus > .bd-focus__bild {
	margin: 0 0 20px !important;
}

.bd-focus__bild img {
	display: block;
	width: 100%;
	height: clamp(160px, 15vw, 210px);
	object-fit: cover;
}

.bd-focus .bd-number {
	font-size: 32px;
	color: var(--bd-accent-light) !important;
}

.bd-focus > .bd-textlink {
	margin-top: auto !important;
	padding-top: 12px;
	margin-bottom: 28px !important;
}

/* ---------- Positions overview: side navigation + chapters ---------- */

/* The side navigation is built by assets/js/subnav.js; without it the content keeps its single column. */
.bd-themen__layout:has(> .bd-themen-nav) {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: clamp(40px, 5vw, 80px);
	align-items: start;
}

.bd-themen-nav {
	position: sticky;
	top: var(--bd-sprungabstand);
	max-height: calc(100vh - var(--bd-sprungabstand) - 24px);
	overflow-y: auto;
	padding-right: 4px;
	font-size: 15px;
	scrollbar-width: thin;
}

.bd-themen-nav__kopf {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--schiefer);
}

.bd-themen-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bd-themen-nav__feld + .bd-themen-nav__feld {
	margin-top: 18px;
}

.bd-themen-nav a {
	display: block;
	text-decoration: none;
	color: var(--wp--preset--color--grau) !important;
	border-left: 2px solid var(--wp--preset--color--linie);
	padding: 5px 0 5px 14px;
	line-height: 1.35;
	transition: color 0.2s, border-color 0.2s;
}

.bd-themen-nav a.bd-themen-nav__feldlink {
	font-weight: 700;
	color: var(--wp--preset--color--nachtblau) !important;
	border-left-color: transparent;
	padding-left: 0;
	margin-bottom: 4px;
}

.bd-themen-nav a:hover {
	color: var(--wp--preset--color--nachtblau) !important;
}

.bd-themen-nav a[aria-current="true"]:not(.bd-themen-nav__feldlink) {
	color: var(--wp--preset--color--nachtblau) !important;
	font-weight: 600;
	border-left-color: var(--wp--preset--color--magenta);
}

/* ---------- Topic bar on phones (built by subnav.js) ---------- */

/* Higher specificity than ".bd-section > *" above, which would otherwise make it position: relative. */
.bd-section > .bd-chips {
	display: none;
	position: sticky;
	top: var(--bd-kopf);
	z-index: 50;
	margin: 0 calc(-1 * var(--wp--style--root--padding-left)) 24px !important;
	max-width: none !important;
	padding: 10px var(--wp--style--root--padding-left);
	background: rgba(255, 255, 255, 0.9);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--wp--preset--color--linie);
}

.bd-chips__spur {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
}

.bd-chips__spur::-webkit-scrollbar {
	display: none;
}

.bd-chip {
	flex: none;
	padding: 8px 14px;
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
	color: var(--wp--preset--color--nachtblau) !important;
	background: #ffffff;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.bd-chip[aria-current="true"] {
	background: var(--wp--preset--color--nachtblau);
	border-color: var(--wp--preset--color--nachtblau);
	color: #ffffff !important;
}

@media (max-width: 960px) {
	.bd-themen-nav {
		display: none;
	}

	/* Without the side navigation the chapters use the full width. */
	.bd-themen__layout:has(> .bd-themen-nav) {
		display: block;
	}

	.bd-section > .bd-chips {
		display: block;
	}

	:root {
		--bd-sprungabstand: calc(var(--bd-kopf) + 84px);
	}
}

/* ---------- Topic fields and chapters ---------- */

.bd-feld,
.bd-thema {
	scroll-margin-top: var(--bd-sprungabstand);
}

.bd-feld + .bd-feld {
	margin-top: clamp(56px, 7vw, 96px);
}

.bd-feld__nr {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--magenta);
}

.bd-feld__titel {
	margin: 0 0 8px;
	font-size: clamp(30px, 3.4vw, 46px);
}

.bd-thema {
	padding: clamp(28px, 3vw, 40px) 0;
	border-top: 1px solid var(--wp--preset--color--linie);
}

.bd-feld__titel + .bd-thema {
	margin-top: 20px;
}

.bd-thema > * + * {
	margin-top: 14px;
}

.bd-thema h3 {
	margin: 0;
	font-size: clamp(24px, 2.4vw, 32px);
}

.bd-thema__haltung {
	max-width: 720px;
	font-size: clamp(17px, 1.3vw, 19px);
	line-height: 1.6;
	color: var(--wp--preset--color--schiefer);
}

.bd-thema .bd-checklist {
	margin-top: 20px;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}
/* ---------- Topic page: background text and key figures ---------- */

.bd-fliesstext > p {
	max-width: 640px;
	font-size: clamp(17px, 1.3vw, 19px);
	line-height: 1.65;
	color: var(--wp--preset--color--schiefer);
}

.bd-fakten {
	padding: clamp(24px, 3vw, 36px);
	border-radius: 24px;
	background: #f4f5f8;
}

.bd-fakten__titel {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--schiefer);
}

.bd-fakt {
	padding: 18px 0;
	border-top: 1px solid var(--wp--preset--color--linie);
}

.bd-fakt > p {
	margin: 0;
}

.bd-fakt__zahl {
	font-size: clamp(30px, 3vw, 40px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--nachtblau);
}

.bd-fakt__text {
	margin-top: 4px !important;
	font-size: 15px;
	font-weight: 500;
	color: var(--wp--preset--color--nachtblau);
}

.bd-fakt__quelle {
	font-size: 13px;
	color: var(--wp--preset--color--schiefer);
}

/* ---------- Topic page: short question form next to the FAQ ---------- */

.bd-frageform > * + * {
	margin-top: 12px !important;
}

.bd-frageform h3 {
	margin: 0;
	font-size: clamp(22px, 2vw, 28px);
}

.bd-frageform > p {
	color: var(--wp--preset--color--schiefer);
}

.bd-form--kompakt {
	gap: 14px;
	margin-top: 20px !important;
}

.bd-form--kompakt .bd-form__consent {
	font-size: 14px;
}

.bd-frageform .bd-form__thanks {
	text-align: left;
	padding: 16px 0 0;
}

/* ---------- Topic page: numbered demands as glass cards ---------- */

.bd-forderungen {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	/* Only the top margin: the constrained layout centres the list with auto side margins. */
	margin-top: 40px !important;
	padding: 0;
	list-style: none;
	counter-reset: bd-forderung;
}

.bd-forderungen > li {
	position: relative;
	margin: 0 !important;
	padding: clamp(20px, 2.4vw, 28px);
	padding-left: calc(clamp(20px, 2.4vw, 28px) + 3.4ch + 20px);
	border-radius: 20px;
	background: rgba(255, 255, 255, var(--bd-glas));
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
	counter-increment: bd-forderung;
	color: var(--bd-muted);
}

/* With an odd number of demands the last card spans the full width. */
.bd-forderungen > li:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

.bd-forderungen > li::before {
	content: counter(bd-forderung, decimal-leading-zero);
	position: absolute;
	left: clamp(20px, 2.4vw, 28px);
	top: clamp(18px, 2.2vw, 26px);
	font-size: 28px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--bd-accent-light);
}

.bd-forderungen > li > strong {
	display: block;
	margin-bottom: 6px;
	font-size: clamp(19px, 1.6vw, 22px);
	line-height: 1.25;
	color: #ffffff;
}

/* Editors write "title, line break, text"; the title is a block already. */
.bd-forderungen > li > strong + br {
	display: none;
}

@media (max-width: 781px) {
	.bd-forderungen {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Topic page: FAQ (core Details block) ---------- */

.bd-fragen {
	margin-top: 24px !important;
	border-top: 1px solid var(--wp--preset--color--linie);
}

.bd-fragen > .wp-block-details {
	margin: 0 !important;
	border-bottom: 1px solid var(--wp--preset--color--linie);
}

.bd-fragen summary {
	position: relative;
	padding: 22px 56px 22px 0;
	font-size: clamp(17px, 1.4vw, 20px);
	font-weight: 700;
	line-height: 1.35;
	color: var(--wp--preset--color--nachtblau);
	cursor: pointer;
	list-style: none;
}

.bd-fragen summary::-webkit-details-marker {
	display: none;
}

/* Plus in a circle that turns into a minus when open. */
.bd-fragen summary::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	width: 36px;
	height: 36px;
	margin-top: -18px;
	border-radius: 50%;
	background:
		linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
		linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat,
		#f4f5f8;
}

.bd-fragen .wp-block-details[open] summary::after {
	background:
		linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
		#f4f5f8;
}

.bd-fragen summary:focus-visible {
	outline: 2px solid var(--wp--preset--color--logo-blau);
	outline-offset: 4px;
	border-radius: 4px;
}

.bd-fragen .wp-block-details > :not(summary) {
	max-width: 680px;
	margin: 0 !important;
	padding: 0 56px 24px 0;
	line-height: 1.65;
	color: var(--wp--preset--color--schiefer);
}

/* ---------- Link cards: downloads and related topics ----------
 * One paragraph per card: link, line break, short text. The link covers the whole card. */

.bd-download-liste,
.bd-verwandt-liste {
	display: grid;
	gap: 16px;
}

.bd-download-liste {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bd-verwandt-liste {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 28px !important;
}

@media (max-width: 781px) {
	.bd-download-liste,
	.bd-verwandt-liste {
		grid-template-columns: minmax(0, 1fr);
	}
}

.bd-download,
.bd-verwandt {
	position: relative;
	margin: 0 !important;
	border-radius: 16px;
	font-size: 15px;
	line-height: 1.45;
	color: var(--wp--preset--color--schiefer);
	transition: translate 0.25s ease, box-shadow 0.25s ease, background-color 0.2s ease;
}

.bd-download a,
.bd-verwandt a {
	font-size: 17px;
	font-weight: 700;
	text-decoration: none;
	color: var(--wp--preset--color--nachtblau) !important;
}

.bd-download a::before,
.bd-verwandt a::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.bd-download a:focus-visible::before,
.bd-verwandt a:focus-visible::before {
	outline: 2px solid var(--wp--preset--color--logo-blau);
	outline-offset: 2px;
}

.bd-download {
	padding: 20px 24px 20px 86px;
	background: #f4f5f8;
}

/* Magenta circle with a download arrow. */
.bd-download::before {
	content: "";
	position: absolute;
	left: 24px;
	top: 50%;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	border-radius: 50%;
	background: var(--wp--preset--color--magenta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m0 0-5-5m5 5 5-5M5 21h14'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.bd-download:hover {
	background-color: #eceff4;
	translate: 0 -2px;
}

.bd-verwandt {
	padding: 22px 48px 22px 24px;
	background: #ffffff;
}

.bd-verwandt a {
	font-size: 19px;
}

.bd-verwandt::after {
	content: "→";
	position: absolute;
	right: 24px;
	top: 22px;
	font-size: 19px;
	font-weight: 700;
	color: var(--wp--preset--color--magenta);
}

.bd-verwandt:hover {
	translate: 0 -3px;
	box-shadow: 0 12px 28px color-mix(in srgb, var(--wp--preset--color--nachtblau) 10%, transparent);
}

.bd-verwandt-kopf {
	justify-content: space-between;
	align-items: flex-end;
}

.bd-verwandt-kopf h2 {
	margin: 0;
	font-size: clamp(28px, 3vw, 40px);
}

.bd-verwandt-kopf .bd-textlink {
	margin: 0;
}

@media (prefers-reduced-motion: reduce) {
	.bd-download,
	.bd-verwandt {
		transition: none;
		translate: none !important;
	}
}

/* =====================================================================
 * Version 3.3 additions: Mitmachen and Mitglied werden
 * ===================================================================== */

/* ---------- Card rows: label, title, text, link at the bottom ---------- */

.bd-karten-reihe .bd-card {
	display: flex;
	flex-direction: column;
}

.bd-karten-reihe .bd-card > * {
	margin: 0 !important;
}

.bd-karten-reihe .bd-card > * + * {
	margin-top: 12px !important;
}

.bd-karten-reihe .bd-card > .bd-eyebrow {
	font-size: 13px;
}

.bd-karten-reihe .bd-card > .bd-textlink {
	margin-top: auto !important;
	padding-top: 16px;
}

.bd-card.bd-card-hell {
	background: #ffffff;
}

/* ---------- Numbered steps (core list, ordered) ---------- */

.bd-schritte {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin-top: 48px !important;
	padding: 0;
	list-style: none;
	counter-reset: bd-schritt;
}

.bd-schritte > li {
	position: relative;
	margin: 0 !important;
	padding-top: 72px;
	counter-increment: bd-schritt;
	color: var(--bd-muted);
}

/* Number in a circle, connected to the next step by a thin line. */
.bd-schritte > li::before {
	content: counter(bd-schritt);
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--wp--preset--color--magenta);
	font-size: 22px;
	font-weight: 800;
	color: #ffffff;
}

.bd-schritte > li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 26px;
	left: 64px;
	right: -12px;
	height: 2px;
	background: rgba(255, 255, 255, 0.22);
}

.bd-schritte > li > strong {
	display: block;
	margin-bottom: 8px;
	font-size: clamp(19px, 1.6vw, 22px);
	line-height: 1.25;
	color: #ffffff;
}

.bd-schritte > li > strong + br {
	display: none;
}

@media (max-width: 900px) {
	.bd-schritte {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.bd-schritte > li {
		padding: 0 0 0 76px;
		min-height: 52px;
	}

	/* On phones the line runs vertically from one circle to the next. */
	.bd-schritte > li:not(:last-child)::after {
		top: 60px;
		bottom: -24px;
		left: 25px;
		right: auto;
		width: 2px;
		height: auto;
	}
}

/* ---------- Price cards ---------- */

.bd-preis {
	display: flex;
	flex-direction: column;
	border: 2px solid transparent;
}

.bd-preis > * {
	margin: 0 !important;
}

.bd-preis > * + * {
	margin-top: 10px !important;
}

.bd-preis--hervor {
	border-color: var(--wp--preset--color--magenta);
	background: #ffffff;
	box-shadow: 0 16px 40px color-mix(in srgb, var(--wp--preset--color--nachtblau) 10%, transparent);
}

.bd-preis__name {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--magenta);
}

.bd-preis__betrag {
	font-size: clamp(40px, 4vw, 52px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--nachtblau);
}

.bd-preis__betrag span {
	font-size: 17px;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--wp--preset--color--schiefer);
}

.bd-preis p:not([class]) {
	color: var(--wp--preset--color--schiefer);
	overflow-wrap: anywhere;
}

/* ---------- Note box ---------- */

.bd-hinweis {
	margin-top: 32px !important;
	padding: 18px 22px;
	border-left: 4px solid var(--wp--preset--color--magenta);
	border-radius: 0 12px 12px 0;
	background: #f4f5f8;
	font-size: 15px;
	line-height: 1.6;
	color: var(--wp--preset--color--schiefer);
}

/* ---------- Option cards with a button (e.g. online or PDF application) ---------- */

.bd-option {
	display: flex;
	flex-direction: column;
}

.bd-option > * {
	margin: 0 !important;
}

.bd-option > * + * {
	margin-top: 12px !important;
}

.bd-option > .wp-block-buttons {
	margin-top: auto !important;
	padding-top: 20px;
}

/* ---------- Bank details card ---------- */

.bd-bankdaten > * {
	margin: 0 !important;
}

.bd-bankdaten > * + * {
	margin-top: 14px !important;
}

.bd-bankdaten strong {
	display: inline-block;
	margin-bottom: 2px;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bd-accent-light);
}

.bd-bankdaten p {
	font-size: 18px;
	font-weight: 600;
	color: #ffffff;
}

.bd-bankdaten p.has-small-font-size {
	font-weight: 400;
	color: var(--bd-muted);
}

/* ---------- Focal point of header photos (image class "bd-fokus-…") ---------- */

.bd-hero > .bd-hero__bg.bd-fokus-oben img {
	object-position: 50% 15%;
}

.bd-hero > .bd-hero__bg.bd-fokus-mitte img {
	object-position: 50% 50%;
}

.bd-hero > .bd-hero__bg.bd-fokus-unten img {
	object-position: 50% 85%;
}

/* Narrow card columns: never break words at arbitrary letters (core columns do), and hyphenate
 * long German words in headings and links only, so running text stays calm. */
.bd-karten-reihe > .wp-block-column {
	word-break: normal;
	overflow-wrap: break-word;
}

.bd-karten-reihe h3,
.bd-karten-reihe .bd-textlink {
	hyphens: auto;
}

/* ---------- Header: "Spenden" as outline button next to "Mitmachen" ---------- */

.bd-nav-spenden .wp-block-navigation-item__content {
	padding: 10px 22px !important;
	border: 2px solid var(--wp--preset--color--magenta);
	border-radius: 999px;
	font-weight: 600;
	color: var(--wp--preset--color--magenta) !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.bd-nav-spenden .wp-block-navigation-item__content:hover {
	background-color: var(--wp--preset--color--magenta);
	color: #ffffff !important;
}

/* The two buttons belong together: less space between them than between the text links. */
.bd-header .bd-nav-spenden + .bd-nav-cta {
	margin-left: -20px;
}

/* In the opened mobile menu both buttons sit below the links with some air. */
.wp-block-navigation__responsive-container.is-menu-open :is(.bd-nav-spenden, .bd-nav-cta) {
	margin-top: 8px;
	margin-left: 0 !important;
}

/* =====================================================================
 * Version 3.4 additions: news (Aktuelles, category archives, single posts)
 * ===================================================================== */

/* ---------- Footer: newsletter link next to the social icons ---------- */

.bd-footer__aktionen {
	gap: 20px !important;
	align-items: center;
}

.bd-footer__newsletter {
	margin: 0;
}

.bd-footer__newsletter a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 2px solid var(--wp--preset--color--nachtblau);
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	color: var(--wp--preset--color--nachtblau) !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* Envelope icon */
.bd-footer__newsletter a::before {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Zm1 2.4V17h16V7.4l-8 5.3-8-5.3ZM5.4 7l6.6 4.4L18.6 7H5.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Zm1 2.4V17h16V7.4l-8 5.3-8-5.3ZM5.4 7l6.6 4.4L18.6 7H5.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.bd-footer__newsletter a:hover {
	background: var(--wp--preset--color--nachtblau);
	color: #ffffff !important;
}

/* ---------- News overview: header and category filter ---------- */

.bd-liste-kopf {
	padding-top: clamp(40px, 5vw, 72px);
	padding-bottom: 8px;
}

.bd-liste-kopf > .bd-lead {
	max-width: var(--wp--style--global--content-size) !important;
}

.bd-liste-kopf h1 {
	margin-top: 8px !important;
	font-size: clamp(42px, 6vw, 76px);
}

.bd-filter {
	gap: 8px !important;
	margin-top: 28px !important;
}

.bd-filter p,
.bd-filter ul {
	margin: 0;
}

.bd-filter__liste {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	list-style: none;
}

.bd-filter a {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	color: var(--wp--preset--color--nachtblau) !important;
	background: #ffffff;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bd-filter a:hover {
	border-color: var(--wp--preset--color--nachtblau);
}

/* Current filter: "Alle" on the posts page, the category on its archive. */
body.blog .bd-filter__alle a,
.bd-filter__liste .current-cat > a {
	background: var(--wp--preset--color--nachtblau);
	border-color: var(--wp--preset--color--nachtblau);
	color: #ffffff !important;
}

.bd-liste-inhalt {
	padding-top: clamp(32px, 4vw, 48px);
	padding-bottom: clamp(56px, 7vw, 96px);
}

/* ---------- News cards (core query loop) ---------- */

.bd-meldungen .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bd-meldungen .wp-block-post-template > li {
	display: flex;
	flex-direction: column;
	margin: 0 !important;
	min-width: 0;
}

.bd-meldung__bild {
	margin: 0 0 18px !important;
	overflow: hidden;
	border-radius: var(--bd-radius-m, 16px);
}

.bd-meldung__bild img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.bd-meldungen li:hover .bd-meldung__bild img {
	transform: scale(1.04);
}

/* Posts without a featured image get a calm surface instead of a gap. */
.bd-meldungen li:not(:has(.bd-meldung__bild img))::before {
	content: "";
	display: block;
	aspect-ratio: 3 / 2;
	margin-bottom: 18px;
	border-radius: var(--bd-radius-m, 16px);
	background:
		radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--bd-accent-glow) 28%, transparent), transparent 50%),
		linear-gradient(135deg, var(--bd-night-2) 0%, var(--wp--preset--color--nachtblau) 100%);
}

.bd-meldung__text > * {
	margin: 0 !important;
}

.bd-meldung__text > * + * {
	margin-top: 10px !important;
}

.bd-meldung__meta {
	gap: 6px 14px !important;
	align-items: center;
	font-size: 14px;
}

.bd-meldung__meta .wp-block-post-date {
	font-size: 14px;
	font-weight: 500;
	color: var(--wp--preset--color--schiefer);
}

.bd-meldung__kategorie {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bd-meldung__kategorie a {
	color: var(--wp--preset--color--magenta) !important;
	text-decoration: none;
}

/* Several categories: a thin dot instead of the default comma. */
.bd-meldung__kategorie .wp-block-post-terms__separator {
	color: var(--wp--preset--color--schiefer);
}

.bd-meldungen .wp-block-post-title {
	font-size: clamp(20px, 1.7vw, 24px);
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.bd-meldungen .wp-block-post-title a {
	text-decoration: none;
	color: var(--wp--preset--color--nachtblau);
}

.bd-meldungen .wp-block-post-excerpt__excerpt {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
	color: var(--wp--preset--color--schiefer);
}

/* First page of the overview: the newest post is large, image left, text right. */
body:not(.paged) .bd-meldungen:not(.bd-meldungen--klein) .wp-block-post-template > li:first-child {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--wp--preset--color--linie);
}

body:not(.paged) .bd-meldungen:not(.bd-meldungen--klein) .wp-block-post-template > li:first-child::before {
	margin-bottom: 0;
}

body:not(.paged) .bd-meldungen:not(.bd-meldungen--klein) .wp-block-post-template > li:first-child .bd-meldung__bild {
	margin: 0 !important;
	border-radius: var(--bd-radius-l, 24px);
}

body:not(.paged) .bd-meldungen:not(.bd-meldungen--klein) .wp-block-post-template > li:first-child .wp-block-post-title {
	font-size: clamp(28px, 3vw, 42px);
	line-height: 1.12;
}

body:not(.paged) .bd-meldungen:not(.bd-meldungen--klein) .wp-block-post-template > li:first-child .wp-block-post-excerpt__excerpt {
	font-size: 18px;
}

@media (max-width: 960px) {
	.bd-meldungen .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.bd-meldungen .wp-block-post-template,
	body:not(.paged) .bd-meldungen:not(.bd-meldungen--klein) .wp-block-post-template > li:first-child {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Page numbers */
.bd-seiten {
	gap: 8px !important;
	margin-top: 56px !important;
	font-weight: 600;
}

.bd-seiten a,
.bd-seiten .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: 999px;
	text-decoration: none;
	color: var(--wp--preset--color--nachtblau) !important;
}

.bd-seiten .page-numbers.current {
	background: var(--wp--preset--color--nachtblau);
	color: #ffffff !important;
}

.bd-seiten a:hover {
	background: #f4f5f8;
}

/* ---------- Newsletter note (under Aktuelles and every post) ---------- */

.bd-newsletter-hinweis {
	padding-bottom: clamp(56px, 7vw, 96px);
}

.bd-newsletter-hinweis__innen {
	gap: 20px 40px !important;
	padding: clamp(24px, 3vw, 36px) clamp(24px, 4vw, 48px);
	border-radius: var(--bd-radius-l, 24px);
	background: #f4f5f8;
}

.bd-newsletter-hinweis__innen > .wp-block-group > * {
	margin: 0 !important;
}

.bd-newsletter-hinweis__titel {
	margin-bottom: 4px !important;
	font-size: clamp(22px, 2vw, 28px);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--nachtblau);
}

.bd-newsletter-hinweis__innen p:not([class]) {
	color: var(--wp--preset--color--schiefer);
}

/* ---------- Single post ---------- */

.bd-artikel-kopf {
	padding-top: clamp(40px, 5vw, 72px);
}

.bd-artikel-kopf > * + * {
	margin-top: 16px !important;
}

.bd-artikel-kopf .wp-block-post-title {
	font-size: clamp(32px, 4.4vw, 56px);
	line-height: 1.08;
	letter-spacing: -0.03em;
}

.bd-artikel-kopf .wp-block-post-date {
	font-size: 15px;
	font-weight: 500;
	color: var(--wp--preset--color--schiefer);
}

.bd-artikel-bildrahmen {
	/* Padding, not margin: template-level blocks in <main> get margin 0 !important (page rhythm). */
	padding-top: clamp(28px, 4vw, 48px);
}

.bd-artikel-bild {
	margin-block: 0 !important;
	overflow: hidden;
	border-radius: var(--bd-radius-l, 24px);
}

.bd-artikel-bild img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bd-artikel-text {
	padding-top: clamp(32px, 4vw, 56px);
	font-size: clamp(18px, 1.3vw, 20px);
	line-height: 1.7;
	color: #1f2a44;
}

.bd-main > .bd-artikel-text > * + * {
	margin-top: 1.1em !important;
}

/* Text rhythm inside a post. ".bd-main >" outranks the page rule ".bd-main > .entry-content > *",
 * which the post content block matches as well. The first paragraph is the lead: slightly larger. */
.bd-artikel-text > p:first-child {
	font-size: 1.12em;
	line-height: 1.6;
	color: var(--wp--preset--color--nachtblau);
}

.bd-main > .bd-artikel-text > h2 {
	margin-top: 1.8em !important;
	font-size: clamp(26px, 2.4vw, 32px);
	line-height: 1.2;
}

.bd-main > .bd-artikel-text > h3 {
	margin-top: 1.6em !important;
	font-size: clamp(21px, 1.8vw, 24px);
}

.bd-artikel-text a {
	color: var(--wp--preset--color--magenta);
	text-underline-offset: 3px;
}

.bd-main > .bd-artikel-text > blockquote,
.bd-main > .bd-artikel-text > .wp-block-quote {
	margin-block: 1.6em !important;
	box-sizing: border-box;
	padding: 4px 0 4px 28px;
	border-left: 4px solid var(--wp--preset--color--magenta);
	font-size: 1.15em;
	font-weight: 600;
	line-height: 1.5;
	color: var(--wp--preset--color--nachtblau);
}

.bd-artikel-text .wp-block-quote cite {
	display: block;
	margin-top: 10px;
	font-size: 15px;
	font-style: normal;
	font-weight: 500;
	color: var(--wp--preset--color--schiefer);
}

.bd-main > .bd-artikel-text > figure {
	margin-block: 1.6em !important;
}

.bd-artikel-text figure img {
	border-radius: var(--bd-radius-m, 16px);
}

.bd-artikel-text figcaption {
	font-size: 14px;
	color: var(--wp--preset--color--schiefer);
}

/* Press contact (added by inc/news.php to posts in the press release category). */
.bd-main > .bd-artikel-text > .bd-pressekontakt {
	margin-top: 2.4em !important;
}

.bd-pressekontakt {
	box-sizing: border-box;
	padding: 22px 26px;
	border-radius: 16px;
	background: #f4f5f8;
	font-size: 16px;
	line-height: 1.6;
}

.bd-pressekontakt p {
	margin: 0;
}

.bd-pressekontakt__titel {
	margin-bottom: 6px !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--magenta);
}

/* Share links (shortcode [bd_teilen]). */
.bd-artikel-fuss {
	padding-top: 40px;
	padding-bottom: clamp(40px, 5vw, 64px);
}

.bd-teilen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
	padding-top: 24px;
	border-top: 1px solid var(--wp--preset--color--linie);
}

.bd-teilen__titel {
	margin: 0;
	font-weight: 700;
	color: var(--wp--preset--color--nachtblau);
}

.bd-teilen__liste {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bd-teilen__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #f4f5f8;
	color: var(--wp--preset--color--nachtblau) !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.bd-teilen__link svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.bd-teilen__link:hover {
	background: #000000;
	color: #ffffff !important;
}

/* "Weitere Meldungen" below a post. */
.bd-weitere {
	padding-top: clamp(48px, 6vw, 80px);
	padding-bottom: clamp(48px, 6vw, 80px);
	background: #f4f5f8;
}

.bd-weitere .bd-meldungen {
	margin-top: 32px !important;
}

/* Newsletter note directly after the grey "Weitere Meldungen": white card on white. */
.bd-weitere + .bd-newsletter-hinweis {
	padding-top: clamp(48px, 6vw, 80px);
}

/* ==========================================================================
   3.5: Partei, Bundesvorstand, Landesverbände, Satzung, Spenden
   ========================================================================== */

/* ---------- Grid helper (bd_grid_block) ---------- */

.bd-raster {
	display: grid;
	gap: 20px;
}

.bd-raster-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bd-raster-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bd-raster-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.bd-raster > * {
	margin: 0 !important;
	min-width: 0;
}

@media (max-width: 1080px) {
	.bd-raster-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.bd-raster-3,
	.bd-raster-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.bd-raster-2,
	.bd-raster-3 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Plain page header ---------- */

.bd-seitenkopf-schlicht {
	padding-top: clamp(48px, 7vw, 96px);
	padding-bottom: clamp(48px, 6vw, 80px);
}

.bd-seitenkopf-schlicht .bd-section-head > * + * {
	margin-top: 16px;
}

.bd-seitenkopf-schlicht h1 {
	font-size: clamp(42px, 6vw, 76px);
	line-height: 1.04;
	letter-spacing: -0.03em;
}

/* ---------- Link cards in two columns (Partei) ---------- */

.bd-verwandt-liste.bd-verwandt-liste-zwei {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 40px !important;
}

.bd-verwandt-liste-zwei .bd-verwandt {
	padding: 28px 32px;
}

.bd-verwandt-liste-zwei .bd-verwandt a {
	font-size: clamp(20px, 1.8vw, 24px);
}

@media (max-width: 781px) {
	.bd-verwandt-liste.bd-verwandt-liste-zwei {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Party structure diagram ---------- */

.bd-aufbau {
	margin-top: 48px !important;
	display: grid;
	gap: 16px;
}

.bd-aufbau__ebene {
	position: relative;
	display: grid;
	gap: 16px;
}

.bd-aufbau__ebene-oben {
	justify-items: center;
}

.bd-aufbau__ebene-mitte {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bd-aufbau__ebene-unten {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bd-organ {
	margin: 0 !important;
	padding: 22px 24px;
	border-radius: 20px;
	background: rgba(255, 255, 255, var(--bd-glas));
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.bd-organ h3 {
	margin: 0;
	font-size: 20px;
	line-height: 1.25;
	color: #ffffff;
}

.bd-organ p {
	margin: 8px 0 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--bd-muted);
}

.bd-organ.is-oberstes {
	max-width: 560px;
	padding: 26px 30px;
	background: #ffffff;
	text-align: center;
}

.bd-organ.is-oberstes h3 {
	font-size: 24px;
	color: var(--wp--preset--color--nachtblau);
}

.bd-organ.is-oberstes p {
	color: var(--wp--preset--color--schiefer);
}

.bd-organ.is-breit {
	grid-column: span 2;
}

@media (max-width: 900px) {
	.bd-aufbau__ebene-mitte,
	.bd-aufbau__ebene-unten {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.bd-aufbau__ebene-mitte,
	.bd-aufbau__ebene-unten {
		grid-template-columns: minmax(0, 1fr);
	}

	.bd-organ.is-breit {
		grid-column: auto;
	}
}

/* ---------- Feature cards with statute reference ---------- */

.bd-merkmal .bd-eyebrow {
	font-size: 13px;
}

.bd-merkmal h3 {
	font-size: clamp(20px, 1.8vw, 24px);
}

.bd-merkmal h3,
.bd-merkmal p {
	hyphens: auto;
	overflow-wrap: break-word;
}

.bd-merkmal p:not(.bd-eyebrow) {
	color: var(--bd-muted);
}

/* On light grey, the cards turn white. */
.is-style-hellblau .bd-merkmal {
	background: #ffffff;
}

/* ---------- Quote from the statutes ---------- */

.bd-satzungszitat {
	margin: 0;
	padding: 0;
	border: 0;
}

.bd-satzungszitat::before {
	content: "\201C";
	display: block;
	height: 52px;
	font-size: 96px;
	font-weight: 800;
	line-height: 1;
	color: var(--wp--preset--color--magenta);
}

.bd-satzungszitat p {
	margin: 0;
	font-size: clamp(26px, 2.8vw, 38px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--nachtblau);
	text-wrap: balance;
}

.bd-satzungszitat cite {
	display: block;
	margin-top: 18px;
	font-size: 14px;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--schiefer);
}

/* ---------- Board members ---------- */

.bd-gremium + .bd-gremium {
	margin-top: clamp(48px, 6vw, 80px) !important;
	padding-top: clamp(40px, 5vw, 64px);
	border-top: 1px solid var(--wp--preset--color--linie);
}

.bd-gremium__kopf {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 24px;
	margin-bottom: 28px;
}

.bd-gremium__kopf h2 {
	margin: 0;
	font-size: clamp(28px, 3vw, 40px);
}

.bd-gremium__kopf p {
	margin: 0;
	color: var(--wp--preset--color--schiefer);
}

.bd-mitglied > * {
	margin: 0;
}

.bd-mitglied .wp-block-image {
	margin: 0;
}

.bd-mitglied .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--bd-radius-m);
	background: #e9ecf3;
}

.bd-mitglied__rolle {
	margin-top: 16px !important;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--magenta);
}

.bd-mitglied h3 {
	margin-top: 4px;
	font-size: 22px;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.bd-mitglied__notiz {
	margin-top: 4px !important;
	font-size: 15px;
	color: var(--wp--preset--color--schiefer);
}

/* ---------- State associations ---------- */

.bd-land {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px 24px;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--linie);
}

.bd-land > * {
	margin: 0;
}

.bd-land h3 {
	font-size: 20px;
	line-height: 1.25;
}

.bd-land p {
	font-size: 15px;
	color: var(--wp--preset--color--schiefer);
}

.bd-land .bd-textlink {
	margin-top: auto !important;
	padding-top: 8px;
}

.bd-land__mail a {
	overflow-wrap: anywhere;
	color: var(--wp--preset--color--nachtblau);
}

/* Form cards keep dark text, also on dark surfaces. */
.bd-form-card {
	--bd-text: var(--wp--preset--color--nachtblau);
	--bd-muted: var(--wp--preset--color--schiefer);
	--bd-link-hover: var(--wp--preset--color--magenta);
	color: var(--wp--preset--color--nachtblau);
}

.bd-form-card h3 {
	font-size: clamp(22px, 2vw, 28px);
	line-height: 1.2;
	color: var(--wp--preset--color--nachtblau);
}

.bd-form-card a {
	color: var(--wp--preset--color--nachtblau) !important;
}

/* Check marks on dark surfaces use the light accent. */
.is-style-tiefblau .bd-checklist li::after,
.is-style-beere .bd-checklist li::after,
.is-style-blau .bd-checklist li::after,
.is-style-nachtblau .bd-checklist li::after {
	background-color: var(--bd-accent-light);
}

.bd-form-card h3 + .bd-form,
.bd-form-card h3 + * {
	margin-top: 16px;
}

/* ---------- Donations ---------- */

.bd-iban {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.01em;
}

.bd-spendenwege .bd-card .wp-block-buttons {
	margin-top: 20px;
}

.bd-steuerrechner > h3 {
	margin: 0 0 16px;
	font-size: clamp(22px, 2vw, 28px);
}

.bd-rechner {
	display: grid;
	gap: 16px;
}

.bd-rechner__label {
	font-weight: 600;
	color: var(--wp--preset--color--nachtblau);
}

.bd-rechner__feld {
	position: relative;
	margin-top: -8px;
}

.bd-rechner__feld input {
	box-sizing: border-box;
	width: 100%;
	padding: 14px 52px 14px 18px;
	border: 1px solid #c9d0e0;
	border-radius: 14px;
	background: #ffffff;
	font: inherit;
	font-size: 28px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--nachtblau);
}

.bd-rechner__feld input:focus {
	outline: 2px solid var(--wp--preset--color--logo-blau);
	outline-offset: 1px;
}

.bd-rechner__einheit {
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 24px;
	font-weight: 700;
	color: var(--wp--preset--color--schiefer);
}

.bd-rechner__vorschlaege {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bd-rechner__vorschlag {
	padding: 7px 14px;
	border: 1px solid #c9d0e0;
	border-radius: 999px;
	background: #ffffff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--nachtblau);
	cursor: pointer;
}

.bd-rechner__vorschlag:hover {
	border-color: var(--wp--preset--color--nachtblau);
}

.bd-rechner__veranlagung {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 15px;
	color: var(--wp--preset--color--schiefer);
}

.bd-rechner__veranlagung legend {
	width: 100%;
	margin-bottom: 6px;
	padding: 0;
	font-weight: 600;
	color: var(--wp--preset--color--nachtblau);
}

.bd-rechner__veranlagung input {
	accent-color: var(--wp--preset--color--magenta);
}

.bd-rechner__ergebnis {
	padding-top: 16px;
	border-top: 1px solid #dde1ea;
}

.bd-rechner__ergebnis p {
	margin: 0;
}

.bd-rechner__zurueck {
	font-size: 18px;
	color: var(--wp--preset--color--nachtblau);
}

.bd-rechner__zurueck strong {
	display: block;
	font-size: clamp(40px, 4vw, 52px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--magenta);
}

.bd-rechner__kosten {
	margin-top: 6px !important;
	font-weight: 600;
	color: var(--wp--preset--color--nachtblau);
}

.bd-rechner__hinweis {
	margin-top: 8px !important;
	font-size: 14px;
	color: var(--wp--preset--color--schiefer);
}

/* ---------- Visible keyboard focus on every surface ---------- */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--logo-blau);
	outline-offset: 3px;
}

.bd-topbar :where(a, button):focus-visible,
.is-style-tiefblau :where(a, button, summary):focus-visible,
.is-style-beere :where(a, button, summary):focus-visible,
.is-style-blau :where(a, button, summary):focus-visible,
.is-style-nachtblau :where(a, button, summary):focus-visible,
.bd-footer :where(a, button):focus-visible {
	outline-color: #ffffff;
}

/* Breadcrumb links are underlined, so they are recognisable without colour. */
.bd-breadcrumb a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
}

/* Text pages (template "Textseite mit Titel") share the reading layout of posts. */
/* Same width as the text column (720px), instead of the shorter lead width used in sections. */
.bd-artikel-text > .bd-lead {
	max-width: 720px;
}

.bd-main > .bd-artikel-text > .bd-checklist,
.bd-main > .bd-artikel-text > .bd-form {
	margin-top: 1.4em !important;
}

/* ===== 3.6: legal pages ===== */

/* Long German words in page titles (e.g. "Datenschutzerklärung") break with a hyphen on small screens. */
@media (max-width: 600px) {
	.wp-block-post-title {
		hyphens: auto;
		overflow-wrap: break-word;
	}
}

/* Table of contents of long text pages (privacy policy). */
.bd-artikel-text .bd-inhalt {
	padding: 16px 20px;
	border: 1px solid #e3e6ee;
	border-radius: 14px;
	background: #f7f8fb;
}

.bd-artikel-text .bd-inhalt summary {
	font-weight: 700;
	cursor: pointer;
}

.bd-artikel-text .bd-inhalt ul {
	margin: 12px 0 0;
	padding-left: 1.2em;
	columns: 2 260px;
	column-gap: 32px;
}

.bd-artikel-text .bd-inhalt li {
	break-inside: avoid;
	margin: 0 0 6px;
}

/* Section anchors land below the sticky header. */
.bd-artikel-text h2[id] {
	scroll-margin-top: 110px;
}

/* ===== 3.7: mobile top bar ===== */

/* One row on phones: the social links are reachable through the floating button. */
@media (max-width: 600px) {
	.bd-topbar .wp-block-social-links {
		display: none !important;
	}
}

/* Floating "Folgen" button: icon with a short label instead of the share symbol. */
.bd-social-float__toggle {
	width: auto;
	gap: 8px;
	padding: 0 20px 0 16px;
	border-radius: 999px;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
}

.bd-social-float__text {
	line-height: 1;
}

/* ===== 3.7: page transitions ===== */

/*
 * Soft cross-fade between pages of the site (View Transitions, Chrome/Edge/Safari 18.2+; other browsers
 * simply load the page). Header and top bar stay in place. No loading screen: the page appears as soon as it is there.
 */
@view-transition {
	navigation: auto;
}

.bd-header {
	view-transition-name: bd-kopf;
}

.bd-topbar {
	view-transition-name: bd-leiste;
}

::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: 0.22s;
}

@media (prefers-reduced-motion: reduce) {
	@view-transition {
		navigation: none;
	}
}

/* ===== 3.7: online membership form ===== */

.bd-antrag-rahmen {
	overflow: hidden;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 0 0 1px var(--wp--preset--color--linie), 0 20px 50px color-mix(in srgb, var(--wp--preset--color--nachtblau) 10%, transparent);
}

/* Generous height until the form reports its own (then set by assets/js/antrag.js). */
.bd-antrag-frame {
	display: block;
	width: 100%;
	height: 3600px;
	border: 0;
}

.bd-antrag-ersatz {
	margin-top: 12px !important;
}

/* ===== 3.7: donation amounts ===== */

.bd-betraege {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px !important;
	margin: 20px 0 12px !important;
}

.bd-betraege .bd-betrag {
	width: auto;
	margin: 0 !important;
}

.bd-betraege .bd-betrag .wp-block-button__link {
	display: block;
	width: 100%;
	padding: 12px 8px;
	text-align: center;
	white-space: nowrap;
}

/* ===== 3.7: two-click videos ===== */

.bd-video-zustimmung {
	margin: 1.5em 0;
}

.bd-video-zustimmung__knopf,
.bd-video-zustimmung__player {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 16px;
}

.bd-video-zustimmung__knopf {
	position: relative;
	cursor: pointer;
	background: linear-gradient(135deg, var(--wp--preset--color--nachtblau), var(--bd-violet-end, #4b2d66));
	color: #ffffff;
	font: inherit;
	font-weight: 700;
}

.bd-video-zustimmung__play {
	display: block;
	width: 72px;
	height: 72px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: var(--wp--preset--color--magenta);
	-webkit-mask: none;
	position: relative;
}

.bd-video-zustimmung__play::after {
	content: "";
	position: absolute;
	left: 29px;
	top: 22px;
	border-style: solid;
	border-width: 14px 0 14px 22px;
	border-color: transparent transparent transparent #ffffff;
}

.bd-video-zustimmung__knopf:hover .bd-video-zustimmung__play,
.bd-video-zustimmung__knopf:focus-visible .bd-video-zustimmung__play {
	transform: scale(1.08);
}

.bd-video-zustimmung__hinweis {
	margin-top: 8px;
	font-size: 14px;
	color: var(--wp--preset--color--grau);
}

/* Phones: the icons open upwards above the "Folgen" button, so they never run off the left edge. */
@media (max-width: 600px) {
	.bd-social-float {
		flex-direction: column;
		align-items: flex-end;
	}

	.bd-social-float__list {
		flex-direction: column;
		align-items: flex-end;
	}

	.bd-social-float__list li {
		transform: translateY(18px) scale(0.6);
	}
}

/* ===== 3.9: design variants (data attributes on <html>, see inc/variants.php) ===== */

/* --- Landesverbände in the main menu --- */
html[data-bd-nav-lv="aus"] .bd-nav-lv {
	display: none !important;
}

/* --- Band "In Ihrem Bundesland" on the home page --- */
html[data-bd-laender-band="aus"] .bd-laender-band {
	display: none !important;
}

.bd-laender-band.bd-section {
	padding-top: clamp(40px, 5vw, 64px);
	padding-bottom: clamp(40px, 5vw, 64px);
}

.bd-laender-band__inhalt {
	gap: clamp(24px, 4vw, 64px) !important;
}

.bd-laender-band h2 {
	margin-top: 0;
	font-size: clamp(28px, 3vw, 38px);
}

.bd-laender-band p:not(.bd-eyebrow) {
	margin-top: 10px;
	color: var(--bd-muted);
}

.bd-laender-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bd-laender-chips li {
	margin: 0;
}

.bd-laender-chips a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: #ffffff;
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--linie);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	color: var(--wp--preset--color--nachtblau) !important;
	transition: box-shadow 0.2s, transform 0.2s;
}

.bd-laender-chips a:hover {
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--nachtblau);
	transform: translateY(-1px);
}

/* --- Footer row --- */
html[data-bd-fuss-laender="aus"] .bd-fuss-laender {
	display: none !important;
}

.bd-fuss-laender {
	gap: 6px 16px !important;
	margin-top: 28px !important;
	padding-top: 20px;
	border-top: 1px solid var(--wp--preset--color--linie);
	font-size: 14px;
}

.bd-fuss-laender > * {
	margin: 0 !important;
}

.bd-fuss-laender__titel {
	font-weight: 700;
}

.bd-fuss-laender__titel a {
	color: var(--wp--preset--color--nachtblau);
	text-decoration: none;
}

.bd-fuss-laender__liste {
	display: flex;
	flex: 1 1 520px;
	flex-wrap: wrap;
	gap: 6px 18px;
	padding: 0;
	list-style: none;
}

.bd-fuss-laender__liste li {
	margin: 0;
}

.bd-fuss-laender__liste a {
	color: var(--wp--preset--color--grau);
	text-decoration: none;
}

.bd-fuss-laender__liste a:hover {
	color: var(--wp--preset--color--nachtblau);
	text-decoration: underline;
}

/* --- State colours: plain state flags without coats of arms (generated from one colour table) --- */
.bd-land--bw {
	--bd-flagge-h: linear-gradient(90deg, #000000 0.00% 50.00%, #ffd400 50.00% 100.00%);
	--bd-flagge-v: linear-gradient(180deg, #000000 0.00% 50.00%, #ffd400 50.00% 100.00%);
}

.bd-land--by {
	--bd-flagge-h: repeating-linear-gradient(90deg, #0098d4 0 10px, #e3e7ef 10px 20px);
	--bd-flagge-v: repeating-conic-gradient(#0098d4 0 25%, #ffffff 0 50%) 0 0 / 14px 14px;
}

.bd-land--be {
	--bd-flagge-h: linear-gradient(90deg, #e4000f 0.00% 20.00%, #e3e7ef 20.00% 80.00%, #e4000f 80.00% 100.00%);
	--bd-flagge-v: linear-gradient(180deg, #e4000f 0.00% 20.00%, #ffffff 20.00% 80.00%, #e4000f 80.00% 100.00%);
}

.bd-land--bb {
	--bd-flagge-h: linear-gradient(90deg, #e2001a 0.00% 50.00%, #e3e7ef 50.00% 100.00%);
	--bd-flagge-v: linear-gradient(180deg, #e2001a 0.00% 50.00%, #ffffff 50.00% 100.00%);
}

.bd-land--hb {
	--bd-flagge-h: repeating-linear-gradient(90deg, #e2001a 0 10px, #e3e7ef 10px 20px);
	--bd-flagge-v: repeating-linear-gradient(180deg, #e2001a 0 12.5%, #ffffff 12.5% 25%);
}

.bd-land--hh {
	--bd-flagge-h: linear-gradient(#e2001a, #e2001a);
	--bd-flagge-v: linear-gradient(#e2001a, #e2001a);
}

.bd-land--he {
	--bd-flagge-h: linear-gradient(90deg, #e2001a 0.00% 50.00%, #e3e7ef 50.00% 100.00%);
	--bd-flagge-v: linear-gradient(180deg, #e2001a 0.00% 50.00%, #ffffff 50.00% 100.00%);
}

.bd-land--mv {
	--bd-flagge-h: linear-gradient(90deg, #0061aa 0.00% 33.33%, #e3e7ef 33.33% 41.67%, #ffd500 41.67% 58.33%, #e3e7ef 58.33% 66.67%, #d80d15 66.67% 100.00%);
	--bd-flagge-v: linear-gradient(180deg, #0061aa 0.00% 33.33%, #ffffff 33.33% 41.67%, #ffd500 41.67% 58.33%, #ffffff 58.33% 66.67%, #d80d15 66.67% 100.00%);
}

.bd-land--ni {
	--bd-flagge-h: linear-gradient(90deg, #000000 0.00% 33.33%, #dd0000 33.33% 66.67%, #ffcc00 66.67% 100.00%);
	--bd-flagge-v: linear-gradient(180deg, #000000 0.00% 33.33%, #dd0000 33.33% 66.67%, #ffcc00 66.67% 100.00%);
}

.bd-land--nw {
	--bd-flagge-h: linear-gradient(90deg, #008a3e 0.00% 33.33%, #e3e7ef 33.33% 66.67%, #e3000f 66.67% 100.00%);
	--bd-flagge-v: linear-gradient(180deg, #008a3e 0.00% 33.33%, #ffffff 33.33% 66.67%, #e3000f 66.67% 100.00%);
}

.bd-land--rp {
	--bd-flagge-h: linear-gradient(90deg, #000000 0.00% 33.33%, #dd0000 33.33% 66.67%, #ffcc00 66.67% 100.00%);
	--bd-flagge-v: linear-gradient(180deg, #000000 0.00% 33.33%, #dd0000 33.33% 66.67%, #ffcc00 66.67% 100.00%);
}

.bd-land--sn {
	--bd-flagge-h: linear-gradient(90deg, #e3e7ef 0.00% 50.00%, #00873c 50.00% 100.00%);
	--bd-flagge-v: linear-gradient(180deg, #ffffff 0.00% 50.00%, #00873c 50.00% 100.00%);
}

.bd-land--st {
	--bd-flagge-h: linear-gradient(90deg, #000000 0.00% 50.00%, #ffd500 50.00% 100.00%);
	--bd-flagge-v: linear-gradient(180deg, #000000 0.00% 50.00%, #ffd500 50.00% 100.00%);
}

.bd-land--sh {
	--bd-flagge-h: linear-gradient(90deg, #005daa 0.00% 33.33%, #e3e7ef 33.33% 66.67%, #d52b1e 66.67% 100.00%);
	--bd-flagge-v: linear-gradient(180deg, #005daa 0.00% 33.33%, #ffffff 33.33% 66.67%, #d52b1e 66.67% 100.00%);
}

.bd-land--th {
	--bd-flagge-h: linear-gradient(90deg, #e3e7ef 0.00% 50.00%, #e2001a 50.00% 100.00%);
	--bd-flagge-v: linear-gradient(180deg, #ffffff 0.00% 50.00%, #e2001a 50.00% 100.00%);
}


.bd-land {
	position: relative;
	overflow: hidden;
	scroll-margin-top: var(--bd-sprungabstand, 120px);
}

.bd-land > * {
	position: relative;
	z-index: 1;
}

/* Variant "Streifen": the flag colours as a band along the top edge. */
html[data-bd-flaggen="streifen"] .bd-land {
	padding-top: 30px;
}

html[data-bd-flaggen="streifen"] .bd-land::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 7px;
	background: var(--bd-flagge-h);
	box-shadow: inset 0 -1px 0 rgba(15, 30, 61, 0.1);
}

/* Variant "Ecke": the flag fades out from the top right corner. */
html[data-bd-flaggen="ecke"] .bd-land::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 46%;
	height: 120px;
	background: var(--bd-flagge-v);
	opacity: 0.22;
	-webkit-mask-image: linear-gradient(225deg, #000 0%, #000 22%, transparent 68%);
	mask-image: linear-gradient(225deg, #000 0%, #000 22%, transparent 68%);
	transition: opacity 0.3s;
}

html[data-bd-flaggen="ecke"] .bd-land:hover::before {
	opacity: 0.4;
}

/* A target reached from the band or the footer (#lv-…) is briefly outlined. */
.bd-land:target {
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--nachtblau);
}

/* Small flag before the state names in the band and the footer (with either flag variant). */
html:not([data-bd-flaggen="aus"]) .bd-land-link > a::before {
	content: "";
	flex: 0 0 auto;
	display: inline-block;
	width: 18px;
	height: 12px;
	margin-right: 6px;
	border-radius: 2px;
	background: var(--bd-flagge-v);
	box-shadow: 0 0 0 1px rgba(15, 30, 61, 0.15);
	vertical-align: -1px;
}

.bd-laender-chips .bd-land-link > a::before {
	margin-right: 0;
}

/* --- Second accent colour: the first accent stays for actions (buttons), the second marks orientation --- */
html[data-bd-akzent2="logoblau"] {
	--bd-a2: #1997d5;
	--bd-a2-text: #0f6aa1;
	--bd-a2-hell: #7cc8f0;
}

html[data-bd-akzent2="tuerkis"] {
	--bd-a2: #14b7cc;
	--bd-a2-text: #0a7380;
	--bd-a2-hell: #6fdbe8;
}

html[data-bd-akzent2="himmelblau"] {
	--bd-a2: #9ad3f2;
	--bd-a2-text: #1f6f9c;
	--bd-a2-hell: #9ad3f2;
}

html[data-bd-akzent2="lila"] {
	--bd-a2: #9349d8;
	--bd-a2-text: #7d3cc0;
	--bd-a2-hell: #c9a6f0;
}

html[data-bd-akzent2="pink"] {
	--bd-a2: #ff4791;
	--bd-a2-text: #c2187a;
	--bd-a2-hell: #ff8fbf;
}

html[data-bd-akzent2]:not([data-bd-akzent2="aus"]) {
	--bd-eyebrow: var(--bd-a2-text);
	--bd-link-hover: var(--bd-a2-text);
	--bd-check-bg: color-mix(in srgb, var(--bd-a2) 16%, #ffffff);
	--bd-tag-text: var(--bd-a2-text);
}

html[data-bd-akzent2]:not([data-bd-akzent2="aus"]) :is(.is-style-hellblau, .bd-hero__content) {
	--bd-eyebrow: var(--bd-a2-text);
}

html[data-bd-akzent2]:not([data-bd-akzent2="aus"]) :is(.is-style-tiefblau, .is-style-beere, .is-style-blau, .is-style-nachtblau) {
	--bd-eyebrow: var(--bd-a2-hell);
	--bd-link-hover: var(--bd-a2-hell);
	--bd-check-bg: rgba(255, 255, 255, 0.14);
}

html[data-bd-akzent2]:not([data-bd-akzent2="aus"]) .bd-checklist li::after {
	background-color: var(--bd-a2-text);
}

html[data-bd-akzent2]:not([data-bd-akzent2="aus"]) :is(.is-style-tiefblau, .is-style-beere, .is-style-blau, .is-style-nachtblau) .bd-checklist li::after {
	background-color: var(--bd-a2-hell);
}

html[data-bd-akzent2]:not([data-bd-akzent2="aus"]) .bd-number {
	color: var(--bd-a2-text) !important;
}

html[data-bd-akzent2]:not([data-bd-akzent2="aus"]) :is(.is-style-tiefblau, .is-style-beere, .is-style-blau, .is-style-nachtblau) .bd-number {
	color: var(--bd-a2-hell) !important;
}

html[data-bd-akzent2]:not([data-bd-akzent2="aus"]) .bd-meldung__kategorie a {
	color: var(--bd-a2-text) !important;
}

html[data-bd-akzent2]:not([data-bd-akzent2="aus"]) .bd-progress {
	background: var(--bd-a2);
}

html[data-bd-akzent2]:not([data-bd-akzent2="aus"]) :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline-color: var(--bd-a2-text);
}

html[data-bd-akzent2]:not([data-bd-akzent2="aus"]) .bd-laender-chips a:hover {
	box-shadow: inset 0 0 0 1.5px var(--bd-a2-text);
}

/* --- Header: with up to seven menu entries the burger menu takes over below 1100px (WordPress switches only at 600px) --- */
@media (max-width: 1099px) {
	.bd-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.bd-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* Numbered steps and demands are orientation, too. */
html[data-bd-akzent2]:not([data-bd-akzent2="aus"]) .bd-schritte > li::before {
	background: var(--bd-a2-hell);
	color: var(--wp--preset--color--nachtblau);
}

html[data-bd-akzent2]:not([data-bd-akzent2="aus"]) .bd-forderungen > li::before {
	color: var(--bd-a2-hell);
}

/* --- Button colours of a colour concept: dark text on light accents (--bd-knopf-text) or a gradient (--bd-knopf-verlauf) --- */
:where(.wp-block-button:not(.is-style-outline):not(.is-style-hell)) > .wp-block-button__link,
.wp-element-button:not(.wp-block-button.is-style-outline > *):not(.wp-block-button.is-style-hell > *),
.bd-nav-cta .wp-block-navigation-item__content {
	background-image: var(--bd-knopf-verlauf, none);
	color: var(--bd-knopf-text, #ffffff) !important;
}

.wp-block-button:not(.is-style-outline):not(.is-style-hell) > .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline):not(.is-style-hell) > .wp-element-button:hover,
.bd-nav-cta .wp-block-navigation-item__content:hover {
	color: var(--bd-knopf-text, #ffffff) !important;
	filter: brightness(var(--bd-knopf-hover, 1));
}

html[style*="--bd-knopf-verlauf"] {
	--bd-knopf-hover: 0.9;
}

/* Outlined "Spenden" button: readable text on white also with light accents (--bd-knopf-umriss). */
.bd-nav-spenden .wp-block-navigation-item__content {
	color: var(--bd-knopf-umriss, var(--wp--preset--color--magenta)) !important;
}

.bd-nav-spenden .wp-block-navigation-item__content:hover {
	color: var(--bd-knopf-text, #ffffff) !important;
}

/* Light grey surfaces can carry a soft gradient of a colour concept (--bd-hell-verlauf). */
.is-style-hellblau {
	--bd-gradient: var(--bd-hell-verlauf, none);
}

/* ===== 3.11: variant "Gesichterkacheln" (inc/variants.php) ===== */

/* Face tiles hidden until there are enough photos of members; the text column then takes the full width. */
html[data-bd-gesichter="aus"] .wp-block-column:has(> .bd-faces),
html[data-bd-gesichter="aus"] .bd-faces-row {
	display: none;
}

/* ===== 3.11: button text "large" in the sense of WCAG (from 18.66 px bold), for which 3 : 1 is enough;
 * white on the light pink of "Schwarz & Pink" reaches 3.2 : 1. ===== */
.wp-block-button__link,
.wp-element-button,
.bd-nav-cta .wp-block-navigation-item__content,
.bd-nav-spenden .wp-block-navigation-item__content {
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 0.005em;
}
