/* Buildplate – Basis (alle Seiten). Leitidee: „Schicht für Schicht“ – Datenblatt, Haarlinien, Kennnummern. */

/* ---------- Schriften (lokal, SIL OFL) ---------- */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/barlow-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/barlow-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/barlow-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/barlow-600-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/barlow-condensed-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/barlow-condensed-600-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/ibm-plex-mono-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/ibm-plex-mono-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/ibm-plex-mono-500-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/ibm-plex-mono-500-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
	color-scheme: light;
	--bg: #f6f7f8;
	--surface: #ffffff;
	--surface-2: #eef1f3;
	--ink: #1b242a;
	--muted: #53616a;
	--line: #d5dce1;
	--brand: #446e80;
	--brand-strong: #365866;
	--brand-deep: #22394a;
	--brand-soft: #e2ecf0;
	--accent: #365866;
	--accent-text: #ffffff;
	--focus: #365866;
	--ok: #2c6e47;
	--warn: #7a5000;
	--err: #b3261e;
	--shadow: 0 1px 2px rgb(20 32 40 / .06), 0 10px 28px rgb(20 32 40 / .08);
	--kopf-bg: rgb(246 247 248 / .82);

	--f-text: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-display: "Barlow Condensed", "Barlow", "Arial Narrow", sans-serif;
	--f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
	--rand: clamp(16px, 4vw, 40px);
	--breite: 1200px;
	--lesebreite: 41rem;
	--radius: 16px;
	--abstand: clamp(56px, 8vw, 104px);
	--kopf-h: 64px;
	--kurve: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		color-scheme: dark;
		--bg: #12181c;
		--surface: #1a2227;
		--surface-2: #222c32;
		--ink: #e6ebee;
		--muted: #a2afb7;
		--line: #33414a;
		--brand: #8fbccd;
		--brand-strong: #a9cfdd;
		--brand-deep: #d6e8ef;
		--brand-soft: #1e333d;
		--accent: #8fbccd;
		--accent-text: #0d1418;
		--focus: #a9cfdd;
		--ok: #7fcf9f;
		--warn: #e8c068;
		--err: #ff9a8f;
		--shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 28px rgb(0 0 0 / .35);
		--kopf-bg: rgb(18 24 28 / .82);
	}
}
:root[data-theme="dark"] {
	color-scheme: dark;
	--bg: #12181c;
	--surface: #1a2227;
	--surface-2: #222c32;
	--ink: #e6ebee;
	--muted: #a2afb7;
	--line: #33414a;
	--brand: #8fbccd;
	--brand-strong: #a9cfdd;
	--brand-deep: #d6e8ef;
	--brand-soft: #1e333d;
	--accent: #8fbccd;
	--accent-text: #0d1418;
	--focus: #a9cfdd;
	--ok: #7fcf9f;
	--warn: #e8c068;
	--err: #ff9a8f;
	--shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 28px rgb(0 0 0 / .35);
	--kopf-bg: rgb(18 24 28 / .82);
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 1.0625rem/1.6 var(--f-text);
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
main { flex: 1 0 auto; }
main:focus { outline: none; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--brand-strong); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-display);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: .005em;
	text-wrap: balance;
	hyphens: none;
	overflow-wrap: normal;
	margin: 0 0 .5em;
}
p, ul, ol, dl, figure { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand-soft); color: var(--ink); }
abbr[title] { text-decoration: none; }
.bp-mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.bp-klein { font-size: .875rem; color: var(--muted); }
.bp-breite { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.bp-icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
[hidden] { display: none !important; }
.bp-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.bp-eyebrow {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: .35em 1em;
	margin: 0 0 .9rem;
	font: 500 .75rem/1.4 var(--f-mono);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}
.bp-eyebrow .bp-mono { color: var(--brand-strong); }
.bp-eyebrow a { color: inherit; }

/* Skip-Link */
.bp-skip {
	position: fixed; left: 12px; top: -200px; z-index: 100;
	padding: .7em 1.1em; border-radius: 10px;
	background: var(--accent); color: var(--accent-text); font-weight: 600; text-decoration: none;
	transform: translateY(-160%);
	transition: transform .2s var(--kurve);
}
.bp-skip:focus { top: 12px; transform: none; outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------- Knöpfe ---------- */
.bp-knopf {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 48px; padding: .65em 1.3em;
	border: 1.5px solid var(--line); border-radius: 12px;
	background: var(--surface); color: var(--ink);
	font: 600 1rem/1.2 var(--f-text); text-decoration: none; cursor: pointer;
	transition: border-color .2s var(--kurve), background-color .2s var(--kurve), transform .2s var(--kurve);
}
.bp-knopf:hover { border-color: var(--brand); text-decoration: none; }
.bp-knopf:active { transform: translateY(1px); }
.bp-knopf--primaer { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.bp-knopf--primaer:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
:root[data-theme="dark"] .bp-knopf--primaer:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--accent-text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bp-knopf--primaer:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--accent-text); } }
.bp-knopf--klein { min-height: 44px; padding: .5em 1em; font-size: .9375rem; }
.bp-knopfpaar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 30rem; }
.bp-marke { display: inline-block; padding: .1em .6em; border-radius: 99px; background: var(--brand-soft); color: var(--brand-strong); letter-spacing: .04em; }

/* ---------- Kopf ---------- */
.bp-kopf {
	position: sticky; top: 0; z-index: 50;
	background: var(--kopf-bg);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .3s var(--kurve);
}
.bp-kopf.is-kompakt { box-shadow: var(--shadow); }
.bp-kopf__innen {
	width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto;
	height: var(--kopf-h);
	display: flex; align-items: center; gap: 16px;
	transition: height .3s var(--kurve);
}
.bp-kopf.is-kompakt .bp-kopf__innen { height: 56px; }
.bp-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--brand-strong); text-decoration: none; min-height: 44px; margin-right: auto; }
.bp-logo__zeichen { width: 32px; height: 32px; }
.bp-logo__wort { font: 600 1.45rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.bp-kopf__menue { display: flex; align-items: center; gap: 8px; }
.bp-nav ul, .bp-sprachen { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.bp-nav a, .bp-sprachen a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85em; border-radius: 10px;
	color: var(--ink); text-decoration: none; font-weight: 600;
}
.bp-nav a:hover, .bp-sprachen a:hover { background: var(--surface-2); }
.bp-nav a[aria-current] { color: var(--brand-strong); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 10px 10px 0 0; }
.bp-sprachen { padding-left: 8px; margin-left: 4px; border-left: 1px solid var(--line); }
.bp-sprachen a { font: 500 .875rem/1 var(--f-mono); padding: 0 .7em; color: var(--muted); }
.bp-sprachen a[aria-current] { color: var(--brand-strong); background: var(--brand-soft); }
.bp-thema, .bp-kopf__menueknopf {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	min-width: 44px; min-height: 44px; padding: 0 .6em; border: 0; border-radius: 10px;
	background: transparent; color: var(--ink); font: 600 1rem var(--f-text); cursor: pointer;
}
.bp-thema:hover, .bp-kopf__menueknopf:hover { background: var(--surface-2); }
.bp-icon--sonne { display: none; }
:root[data-theme="dark"] .bp-icon--sonne { display: block; }
:root[data-theme="dark"] .bp-icon--mond { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .bp-icon--sonne { display: block; }
	:root:not([data-theme="light"]) .bp-icon--mond { display: none; }
}
.bp-kopf__menueknopf { display: none; }
.bp-icon--zu { display: none; }

@media (max-width: 719px) {
	.js .bp-kopf__menueknopf { display: inline-flex; }
	.js .bp-kopf__menue {
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 8px;
		padding: 12px var(--rand) 20px;
		background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
		visibility: hidden; opacity: 0; transform: translateY(-8px);
		transition: opacity .2s var(--kurve), transform .2s var(--kurve), visibility 0s linear .2s;
	}
	.js .bp-kopf.is-offen .bp-kopf__menue { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
	.js .bp-kopf.is-offen .bp-icon--auf { display: none; }
	.js .bp-kopf.is-offen .bp-icon--zu { display: block; }
	.js .bp-nav ul { flex-direction: column; }
	.js .bp-nav a { min-height: 48px; font-size: 1.125rem; }
	.js .bp-sprachen { border: 0; padding: 0; margin: 0; }
	.js .bp-thema { align-self: flex-start; }
	html:not(.js) .bp-kopf__innen { height: auto; flex-wrap: wrap; padding-block: 6px; }
	.bp-logo__wort { font-size: 1.25rem; }
}
@media (max-width: 359px) { .bp-kopf__menueknopf span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }

/* ---------- Datenblatt ---------- */
.bp-datenblatt {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
	margin: 0 0 1.5rem; border-top: 1px solid var(--line);
}
.bp-datenblatt > div { padding: .6rem .9rem .65rem 0; border-bottom: 1px solid var(--line); }
.bp-datenblatt dt { font: 500 .6875rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bp-datenblatt dd { margin: .15rem 0 0; font-size: .9375rem; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }

/* ---------- Beitrag ---------- */
.bp-artikel__kopf { padding-top: clamp(32px, 6vw, 72px); }
.bp-artikel__titel { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem); max-width: 20em; margin-bottom: 1.5rem; }
.bp-artikel__aktionen { display: flex; flex-wrap: wrap; gap: 10px; }
.bp-artikel__bild { margin-block: clamp(20px, 3vw, 32px) clamp(32px, 5vw, 56px); }
.bp-artikel__bild img { width: 100%; border-radius: var(--radius); background: var(--surface); }
.bp-artikel__raster { display: grid; gap: 32px; }
@media (min-width: 1080px) {
	.bp-artikel__raster { grid-template-columns: 15rem minmax(0, var(--lesebreite)); justify-content: space-between; gap: 56px; }
	.bp-toc { position: sticky; top: calc(var(--kopf-h) + 24px); align-self: start; max-height: calc(100vh - var(--kopf-h) - 48px); overflow: auto; }
	.bp-artikel__raster > .bp-inhalt:only-child { grid-column: 2; }
}
.bp-toc { font-size: .9375rem; border-top: 2px solid var(--brand); padding-top: .8rem; }
.bp-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.bp-toc li { border-bottom: 1px solid var(--line); }
.bp-toc a { display: block; padding: .5rem 0; min-height: 44px; color: var(--ink); text-decoration: none; line-height: 1.35; }
.bp-toc a:hover { color: var(--brand-strong); }
.bp-toc .bp-toc__e3 a { padding-left: 1rem; color: var(--muted); font-size: .875rem; }
.bp-toc a.is-aktiv { color: var(--brand-strong); box-shadow: inset 2px 0 0 var(--brand); padding-left: .6rem; }
.bp-toc .bp-toc__e3 a.is-aktiv { padding-left: 1.4rem; }
@media (max-width: 1079px) { .bp-toc { max-width: var(--lesebreite); } .bp-toc ol { columns: 2 14rem; column-gap: 24px; } .bp-toc li { break-inside: avoid; } }

/* Inhalt (Gutenberg-Blöcke) */
.bp-inhalt { min-width: 0; max-width: var(--lesebreite); }
.bp-inhalt > * { margin-block: 0 1.1em; }
.bp-inhalt h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin-top: 2.2em; padding-top: .7em; border-top: 1px solid var(--line); }
.bp-inhalt h3 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem); margin-top: 1.8em; }
.bp-inhalt h4, .bp-inhalt h5 { font-size: 1.15rem; margin-top: 1.5em; font-family: var(--f-text); }
.bp-inhalt > h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.bp-inhalt ul, .bp-inhalt ol { padding-left: 1.3em; }
.bp-inhalt li { margin-bottom: .35em; }
.bp-inhalt li::marker { color: var(--brand); }
.bp-inhalt img { border-radius: 10px; background: #fff; }
.bp-inhalt figure { margin-inline: 0; }
.bp-inhalt figcaption, .bp-unterschrift { font-size: .875rem; color: var(--muted); margin-top: .6em; line-height: 1.45; }
.bp-inhalt .wp-block-image a { display: block; cursor: zoom-in; }
.bp-inhalt .aligncenter { margin-inline: auto; }
.bp-inhalt .alignleft, .bp-inhalt .alignright { max-width: 50%; }
@media (min-width: 640px) {
	.bp-inhalt .alignleft { float: left; margin: .3em 1.5em 1em 0; }
	.bp-inhalt .alignright { float: right; margin: .3em 0 1em 1.5em; }
}
.bp-inhalt .is-resized img { width: auto; }
.bp-inhalt video { width: 100%; border-radius: 10px; background: #000; }
.bp-inhalt svg { max-width: 100%; height: auto; }
.bp-inhalt table { width: 100%; border-collapse: collapse; font-size: .9375rem; display: block; overflow-x: auto; }
.bp-inhalt th, .bp-inhalt td { padding: .5em .7em; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.bp-inhalt blockquote { margin-inline: 0; padding-left: 1.2em; border-left: 3px solid var(--brand); color: var(--muted); }
.bp-inhalt code { font-family: var(--f-mono); font-size: .875em; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
.bp-inhalt pre {
	font: 400 .8125rem/1.6 var(--f-mono); tab-size: 4;
	background: var(--surface-2); color: var(--ink);
	border-radius: 12px; padding: 1.1em 1.2em;
	overflow: auto; max-height: 34rem; white-space: pre;
}
.bp-inhalt pre code { background: none; padding: 0; font-size: inherit; }
.bp-inhalt .bp-hinweis {
	padding: .9em 1.1em; border-radius: 12px;
	background: var(--surface); border-left: 4px solid var(--warn);
	font-weight: 600; box-shadow: var(--shadow);
}
.bp-literatur { font-size: .9375rem; }
/* Altbestand: graue Inline-Schrift (#95a5a6, 2,6:1) auf gedämpfte Token-Farbe mit AA-Kontrast */
.bp-inhalt [style*="color: #95a5a6"], .bp-inhalt [style*="color:#95a5a6"] { color: var(--muted) !important; }

/* Galerie und Spalten */
.bp-inhalt .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bp-inhalt .wp-block-gallery > figure { margin: 0; }
.bp-inhalt .wp-block-gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bp-inhalt .wp-block-gallery.is-cropped img { aspect-ratio: 4 / 3; }
.bp-inhalt .wp-block-gallery figcaption.blocks-gallery-caption { grid-column: 1 / -1; }
.bp-inhalt .wp-block-gallery figure figcaption { font-size: .8125rem; }
.bp-inhalt .wp-block-columns { display: grid; gap: 20px; }
@media (min-width: 640px) { .bp-inhalt .wp-block-columns { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; } }
.bp-inhalt .wp-block-column { min-width: 0; }
.bp-inhalt .wp-block-column > * { margin-bottom: .8em; }
.bp-inhalt figure, .bp-inhalt .wp-block-video { max-width: 100%; min-width: 0; }
.bp-inhalt .wp-block-video[style] { padding: 0 !important; } /* Inline-Polster aus dem Altbestand */

/* Downloads */
.bp-download {
	display: inline-flex; align-items: center; gap: .6em; min-height: 48px;
	padding: .55em 1em; border-radius: 12px; border: 1.5px solid var(--line);
	background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none;
}
.bp-download:hover { border-color: var(--brand); }
.bp-download .bp-icon { color: var(--brand-strong); }
.bp-download__typ { font: 500 .6875rem var(--f-mono); letter-spacing: .08em; color: var(--muted); padding-left: .6em; border-left: 1px solid var(--line); }

/* Einbettung nach Klick */
.bp-einbettung__flaeche {
	display: grid; place-content: center; gap: 12px; justify-items: center; text-align: center;
	aspect-ratio: 16 / 9; padding: 20px; border-radius: 12px;
	background: var(--surface-2); border: 1px solid var(--line);
}
.bp-einbettung.is-hoch .bp-einbettung__flaeche { aspect-ratio: 9 / 16; max-width: 360px; }
.bp-einbettung__hinweis { margin: 0; font-size: .875rem; color: var(--muted); max-width: 28rem; overflow-wrap: anywhere; }
.bp-einbettung iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; }
.bp-einbettung.is-geladen .bp-einbettung__flaeche { padding: 0; display: block; }

/* Autor, weitere Projekte */
.bp-artikel__fuss { margin-top: var(--abstand); }
.bp-autor {
	display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
	max-width: 52rem; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius);
	background: var(--surface); box-shadow: var(--shadow);
}
.bp-autor__bild { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.bp-autor p:last-child { margin-bottom: 0; }
.bp-autor__wege { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.bp-autor__wege a { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; }
.bp-mehr { margin-block: var(--abstand); }
.bp-mehr__liste { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin: 0; padding: 0; list-style: none; }
.bp-mehr__liste a {
	display: grid; grid-template-rows: auto auto 1fr; height: 100%;
	border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow);
	color: var(--ink); text-decoration: none;
}
.bp-mehr__bild { display: block; aspect-ratio: 16 / 9; background: #fff; }
.bp-mehr__bild img { width: 100%; height: 100%; object-fit: contain; }
.bp-mehr__nr { padding: 16px 20px 0; color: var(--brand-strong); font-size: .8125rem; }
.bp-mehr__titel { padding: 4px 20px 20px; font: 600 1.25rem/1.2 var(--f-display); }
.bp-mehr__liste a:hover .bp-mehr__titel { color: var(--brand-strong); }

/* Kommentare */
.bp-kommentare { margin-top: var(--abstand); }
.bp-kommentare > * { max-width: 52rem; }
.bp-kommentare__titel { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.bp-kommentare__liste, .bp-kommentare__liste .children { list-style: none; margin: 0 0 2rem; padding: 0; }
.bp-kommentare__liste .children { margin: 0 0 0 clamp(12px, 3vw, 32px); padding-left: clamp(12px, 2vw, 20px); border-left: 2px solid var(--line); }
.bp-kommentare__liste .comment-body { padding: 1rem 0 1.1rem; border-bottom: 1px solid var(--line); }
.bp-kommentare__liste .comment-meta { display: flex; flex-wrap: wrap; gap: .2em 1em; align-items: baseline; margin-bottom: .4rem; font-size: .875rem; color: var(--muted); }
.bp-kommentare__liste .comment-author { font-weight: 600; color: var(--ink); font-size: 1rem; }
.bp-kommentare__liste .comment-author .says { display: none; }
.bp-kommentare__liste .comment-metadata a { color: var(--muted); font-family: var(--f-mono); font-size: .8125rem; }
.bp-kommentare__liste .comment-content p { margin-bottom: .6em; overflow-wrap: anywhere; }
.bp-kommentare__liste .reply a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: .9375rem; }
.bp-kommentare__liste .comment-awaiting-moderation { color: var(--warn); font-size: .875rem; }
.bp-kommentare__formtitel { font-size: 1.5rem; display: flex; flex-wrap: wrap; gap: .3em 1em; align-items: baseline; }
.bp-kommentare__formtitel small a { font: 600 .9375rem var(--f-text); }
.bp-meldung { padding: .9em 1.1em; border-radius: 12px; background: var(--surface); border-left: 4px solid var(--ok); box-shadow: var(--shadow); font-weight: 600; }
.bp-feld { display: grid; gap: .35rem; max-width: 36rem; }
.bp-feld label { font-weight: 600; }
.bp-feld input, .bp-feld textarea {
	width: 100%; min-height: 48px; padding: .7em .9em; border-radius: 10px;
	border: 1.5px solid var(--muted); background: var(--surface); color: var(--ink); font: inherit;
}
.bp-feld textarea { min-height: 9rem; resize: vertical; }
.bp-feld input:focus-visible, .bp-feld textarea:focus-visible { border-color: var(--focus); outline-offset: 1px; }
.bp-honig { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { margin-top: 1rem; }

/* Newsletter (Formular von Icegram Express, im Theme-Stil) */
.bp-newsletter {
	position: relative; display: grid; gap: 16px 32px; margin-top: clamp(24px, 4vw, 40px);
	padding: clamp(20px, 3vw, 28px); border-radius: var(--radius);
	background: var(--surface); box-shadow: var(--shadow);
}
.bp-newsletter::before { content: ""; position: absolute; left: clamp(20px, 3vw, 28px); top: 0; width: 28px; height: 3px; background: var(--brand); border-radius: 0 0 3px 3px; }
.bp-newsletter .bp-eyebrow { display: flex; align-items: center; gap: .5em; margin-bottom: .5em; }
.bp-newsletter__titel { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); margin: 0 0 .35em; }
.bp-newsletter__lead { margin: 0; color: var(--muted); max-width: 34em; }
.bp-newsletter .emaillist form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.bp-newsletter .es-field-wrap { flex: 1 1 15rem; margin: 0; }
.bp-newsletter .es-field-label { display: grid; gap: .35rem; margin: 0; font-weight: 600; font-size: .9375rem; }
.bp-newsletter input[type="email"] {
	width: 100%; min-height: 48px; padding: .7em .9em; border-radius: 10px;
	border: 1.5px solid var(--muted); background: var(--bg); color: var(--ink); font: inherit; font-weight: 400;
}
.bp-newsletter input[type="email"]:focus-visible { border-color: var(--focus); outline-offset: 1px; }
.bp-newsletter input[type="submit"] { min-height: 48px; cursor: pointer; font: inherit; font-weight: 600; }
.bp-newsletter .es_subscription_message:not(:empty) {
	display: block; margin-top: 12px; padding: .8em 1em; border-radius: 10px;
	background: var(--bg); border-left: 4px solid var(--ok); font-weight: 600;
}
.bp-newsletter .es_subscription_message.error { border-left-color: var(--err); }
.bp-newsletter__hinweis { margin: 10px 0 0; color: var(--muted); }
.bp-newsletter-rahmen .bp-newsletter { margin-top: var(--abstand); }
/* Drei Karten im Fuß: Person · Newsletter · Support */
.bp-fuss__karten { width: min(100% - 2 * var(--rand), var(--breite)); margin: 0 auto 28px; padding-top: clamp(12px, 2vw, 24px); }
.bp-fusskarten { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .bp-fusskarten { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }

.bp-kasten {
	position: relative; margin: 0;
	padding: 18px 20px; border-radius: 14px;
	background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.bp-kasten::before { content: ""; position: absolute; left: 20px; top: 0; width: 28px; height: 3px; background: var(--brand); border-radius: 0 0 3px 3px; }
.bp-kasten__titel { display: flex; align-items: center; gap: .45em; margin: 0 0 .3em; font-size: 1.2rem; line-height: 1.2; }
.bp-kasten__titel .bp-icon { color: var(--brand-strong); }
.bp-kasten__text { margin: 0; font-size: .9063rem; line-height: 1.5; color: var(--muted); }
.bp-kasten__aktion { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 12px 0 0; }
.bp-kasten__aktion .bp-klein { color: var(--muted); }

.bp-person { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; }
.bp-person__bild { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.bp-person__bio { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.bp-person__wege { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--line); font-size: .875rem; }
.bp-person__wege li { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.bp-person__wege li:last-child { border-bottom: 0; }
.bp-person__wege a { display: inline-flex; align-items: center; gap: .5em; min-height: 40px; overflow-wrap: anywhere; }
.bp-person__wege .bp-klein { color: var(--muted); }
.bp-kopierfeld .bp-knopf { margin-left: auto; }
.bp-knopf--mini { min-height: 32px; padding: .25em .7em; font-size: .8125rem; border-radius: 8px; }
.bp-kasten--person .bp-live:empty { display: none; }
.bp-kasten--person .bp-live { margin: 6px 0 0; font-size: .8125rem; color: var(--muted); }

.bp-newsletter--fuss { margin-top: 0; padding: 18px 20px; gap: 10px; border-radius: 14px; background: var(--surface); align-content: start; }
.bp-newsletter--fuss::before { left: 20px; }
.bp-newsletter--fuss .es-field-label { font-size: .8125rem; }
.bp-newsletter--fuss input[type="email"], .bp-newsletter--fuss input[type="submit"] { min-height: 44px; }
.bp-newsletter--fuss input[type="email"] { background: var(--bg); }
.bp-newsletter--fuss input[type="submit"] { padding-inline: 1.1em; }
.bp-newsletter--fuss .es-field-wrap { flex-basis: 11rem; }
.bp-newsletter--fuss .bp-newsletter__hinweis { margin-top: 8px; font-size: .75rem; line-height: 1.45; }
@media (min-width: 900px) {
	.bp-newsletter--beitrag { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
}

/* Seiten, Archiv, 404 */
.bp-seite__kopf { padding-top: clamp(32px, 6vw, 72px); margin-bottom: clamp(24px, 4vw, 40px); }
.bp-seite__titel { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
.bp-seite .bp-inhalt { margin-bottom: var(--abstand); }
.bp-seite .bp-inhalt h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); margin-top: 1.8em; }
.bp-seite .bp-inhalt h3 { font-size: 1.25rem; }
.bp-seite__stand { margin-top: -2rem; margin-bottom: var(--abstand); }
.bp-404, .bp-archiv { padding-bottom: var(--abstand); }
.bp-liste { list-style: none; margin: 0 0 2rem; padding: 0; border-top: 1px solid var(--line); max-width: 52rem; }
.bp-liste__zeile { display: grid; grid-template-columns: 3rem 1fr auto; gap: 12px; align-items: baseline; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.bp-liste__nr { color: var(--brand-strong); }
.bp-liste__titel { font: 600 1.2rem/1.25 var(--f-display); color: var(--ink); text-decoration: none; }
.bp-liste__titel:hover { color: var(--brand-strong); }
.bp-liste__datum { color: var(--muted); font-size: .8125rem; }
.bp-todo { background: #fff3a0; color: #1b242a; padding: 0 .25em; border-radius: 3px; }

/* ---------- Lightbox ---------- */
.bp-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(10 14 16 / .96); color: #fff; }
.bp-lightbox::backdrop { background: rgb(10 14 16 / .96); }
.bp-lightbox[open] { display: grid; place-items: center; }
.bp-lightbox__figur { margin: 0; display: grid; justify-items: center; gap: 10px; padding: 64px 72px; max-width: 100%; max-height: 100%; }
.bp-lightbox__figur img { max-width: min(100%, 1600px); max-height: calc(100vh - 170px); width: auto; height: auto; object-fit: contain; border-radius: 6px; background: #fff; }
.bp-lightbox__figur figcaption { font-size: .9375rem; color: #d7dee2; text-align: center; max-width: 48rem; }
.bp-lightbox__stand { position: absolute; top: 18px; left: 20px; margin: 0; color: #d7dee2; font-size: .875rem; }
.bp-lightbox__knopf { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; border: 1.5px solid rgb(255 255 255 / .35); background: rgb(255 255 255 / .08); color: #fff; cursor: pointer; }
.bp-lightbox__knopf:hover { background: rgb(255 255 255 / .18); }
.bp-lightbox__knopf:focus-visible { outline-color: #a9cfdd; }
.bp-lightbox__zu { top: 12px; right: 12px; }
.bp-lightbox__zurueck { left: 12px; top: 50%; transform: translateY(-50%); }
.bp-lightbox__weiter { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
	.bp-lightbox__figur { padding: 64px 12px 84px; }
	.bp-lightbox__zurueck, .bp-lightbox__weiter { top: auto; bottom: 16px; transform: none; }
	.bp-lightbox__zurueck { left: calc(50% - 56px); }
	.bp-lightbox__weiter { right: calc(50% - 56px); }
}

/* ---------- Fuß ---------- */
.bp-fuss { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 60%, var(--line)); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: .9375rem; }
.bp-fuss__innen { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; display: grid; gap: 10px 32px; grid-template-columns: 1fr; }
.bp-fuss__innen p { margin: 0; }
.bp-fuss__marke { font-weight: 600; }
.bp-fuss__links { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; list-style: none; }
.bp-fuss__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.bp-fuss__meta { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .75rem; color: var(--muted); }
.bp-fuss__meta a { color: var(--muted); }
@media (min-width: 900px) {
	.bp-fuss__innen { grid-template-columns: auto 1fr; align-items: center; }
	.bp-fuss__links { justify-content: flex-end; }
	.bp-fuss__meta { grid-column: 1 / -1; }
}

/* ---------- Einblenden beim Scrollen ---------- */
@media (prefers-reduced-motion: no-preference) {
	.js .bp-einblenden { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--kurve), transform .6s var(--kurve); }
	.js .bp-einblenden.is-sichtbar { opacity: 1; transform: none; }
}

/* ---------- Bewegung reduziert ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Zwangsfarben ---------- */
@media (forced-colors: active) {
	.bp-knopf, .bp-download, .bp-feld input, .bp-feld textarea, .bp-lightbox__knopf { border: 2px solid ButtonText; }
	.bp-knopf--primaer { forced-color-adjust: none; background: ButtonText; color: ButtonFace; }
	:focus-visible { outline-color: Highlight; }
	.bp-kopf { backdrop-filter: none; }
	.bp-icon { forced-color-adjust: auto; }
}

/* ---------- Druck ---------- */
@media print {
	:root { --bg: #fff; --surface: #fff; --surface-2: #f3f3f3; --ink: #000; --muted: #444; --line: #bbb; --brand-strong: #000; }
	.bp-kopf, .bp-skip, .bp-fuss__karten, .bp-fuss__links, .bp-artikel__aktionen, .bp-kommentare, .bp-mehr, .bp-toc, .bp-lightbox, .bp-autor__wege, .bp-einbettung__knopf { display: none !important; }
	body { font-size: 11pt; display: block; }
	.bp-breite { width: 100%; }
	.bp-artikel__raster { display: block; }
	.bp-inhalt { max-width: none; }
	.bp-inhalt a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #444; overflow-wrap: anywhere; }
	.bp-inhalt pre { max-height: none; white-space: pre-wrap; border: 1px solid #ccc; }
	img, figure, pre, .bp-hinweis { break-inside: avoid; }
	h2, h3 { break-after: avoid; }
	.bp-autor, .bp-hinweis { box-shadow: none; border: 1px solid #ccc; }
}
