/* Beweisanker – Design (Kadence-Child-Theme)
   Keine externen Schriften/CDNs (DSGVO). Farben als Tokens, Dark Mode via prefers-color-scheme. */

:root {
  --ink: #0f2a3d;
  --ink-soft: #3d5568;
  --muted: #55697a;
  --bg: #fbfaf7;
  --bg-alt: #f1efe9;
  --surface: #ffffff;
  --line: #e2ded4;
  --accent: #b8862f;
  --accent-ink: #8a6120;
  --navy: #0f2a3d;
  --navy-2: #163a54;
  --ok: #2f7a55;
  --btn-bg: var(--navy);
  --btn-bg-hover: var(--navy-2);
  --btn-fg: #ffffff;
  --logo-chip: #0f2a3d;
  --logo-anchor: #d9a74e;
  --logo-text: #0f2a3d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 42, 61, .06), 0 12px 32px -12px rgba(15, 42, 61, .18);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;

  /* Kadence-Variablen auf unsere Tokens abbilden */
  --global-palette1: var(--btn-bg);
  --global-palette2: var(--btn-bg-hover);
  --global-palette3: var(--ink);
  --global-palette4: var(--ink);
  --global-palette5: var(--ink-soft);
  --global-palette6: var(--muted);
  --global-palette7: var(--line);
  --global-palette8: var(--bg-alt);
  --global-palette9: var(--surface);
  --global-palette-highlight: var(--accent-ink);
  --global-palette-highlight-alt: var(--ink);
  --global-palette-btn-bg: var(--btn-bg);
  --global-palette-btn-bg-hover: var(--btn-bg-hover);
  --global-palette-btn: var(--btn-fg);
  --global-palette-btn-hover: var(--btn-fg);
  --global-body-font-family: var(--sans);
  --global-heading-font-family: var(--serif);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9eef2;
    --ink-soft: #b9c6d0;
    --muted: #8a9cab;
    --bg: #0c1a25;
    --bg-alt: #10222f;
    --surface: #142a3a;
    --line: #23394a;
    --accent: #d9a74e;
    --accent-ink: #e6bb6a;
    --btn-bg: #d9a74e;
    --btn-bg-hover: #e6bb6a;
    --btn-fg: #1a1205;
    --logo-chip: #d9a74e;
    --logo-anchor: #0c1a25;
    --logo-text: #e9eef2;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  }
}

/* ------------------------------------------------------------ Basis */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
#inner-wrap { background: var(--bg); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); }
h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 650; }
h1 em, h2 em { font-style: italic; color: var(--accent-ink); }
p { margin: 0 0 1em; }
a { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wp-block-group > :last-child { margin-bottom: 0; }

/* Klassische Themes: WordPress umhüllt Gruppen mit __inner-container – für Raster/Abstände neutralisieren */
.wp-block-group > .wp-block-group__inner-container { display: contents; }
/* Flow-Layout-Abstände von WordPress neutralisieren – wir steuern Abstände selbst */
.bw-site .is-layout-flow > * { margin-block-start: 0; }

/* ------------------------------------------------------------ Layout */
.bw-wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.bw-wrap.bw-narrow { width: min(760px, 100% - 32px); }
.bw-center { text-align: center; }
.bw-center .wp-block-buttons { justify-content: center; }
.wp-block-buttons.bw-center { justify-content: center; margin-top: 40px; }

.is-style-section { padding: clamp(64px, 9vw, 112px) 0; }
.is-style-section-alt { padding: clamp(64px, 9vw, 112px) 0; background: var(--bg-alt); }
.is-style-section-tight { padding: clamp(40px, 6vw, 64px) 0; }
.is-style-section-dark { padding: clamp(64px, 9vw, 112px) 0; background: var(--navy); color: #e9eef2; }
@media (prefers-color-scheme: dark) { .is-style-section-dark { background: #081520; border-block: 1px solid var(--line); } }
.is-style-section-dark h2, .is-style-section-dark h3 { color: #fff; }
.is-style-section-dark p { color: #b9c6d0; font-size: 1.1rem; }
.is-style-section-dark p.is-style-small { color: #8a9cab; font-size: .92rem; margin-top: 28px; }
.is-style-section-dark .wp-block-buttons { justify-content: center; }
.bw-cta-mark { width: 64px; height: 64px; color: #d9a74e; margin: 0 auto 20px; display: block; }

.is-style-hero {
  padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 112px);
  background: radial-gradient(900px 420px at 85% 10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%), var(--bg);
}
.is-style-page-hero {
  padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 7vw, 88px);
  background: radial-gradient(900px 380px at 90% 0%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 70%), var(--bg);
  border-bottom: 1px solid var(--line);
}
.bw-page-hero-copy { max-width: 820px; }
.bw-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .bw-hero-grid { grid-template-columns: 1fr; } }

.bw-section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); }
.bw-section-head.bw-left { text-align: left; margin: 0; }
.bw-section-head p:not(.is-style-eyebrow) { color: var(--ink-soft); font-size: 1.08rem; }

.bw-split-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.bw-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.bw-aside { position: sticky; top: 110px; }
.bw-stack { display: grid; gap: 20px; }
@media (max-width: 960px) {
  .bw-split, .bw-split-head { grid-template-columns: 1fr; }
  .bw-aside { position: static; }
}

.is-style-grid-2, .is-style-grid-3, .is-style-grid-4 { display: grid; gap: 24px; }
.is-style-grid-2 { grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 48px); }
.is-style-grid-3 { grid-template-columns: repeat(3, 1fr); }
.is-style-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .is-style-grid-3, .is-style-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .is-style-grid-2, .is-style-grid-3, .is-style-grid-4 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ Typografie-Stile */
p.is-style-eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: .9em;
}
p.is-style-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
p.is-style-small { font-size: .9rem; color: var(--muted); }
p.is-style-more { margin-top: 16px; font-weight: 600; }
p.is-style-more a { text-decoration: none; }
p.is-style-more a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ Buttons */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.bw-site .wp-block-button .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8em 1.4em; font: inherit; font-weight: 600; font-size: .98rem; line-height: 1.3;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid var(--btn-bg); border-radius: 999px; text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.bw-site .wp-block-button .wp-block-button__link:hover {
  background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); color: var(--btn-fg);
  transform: translateY(-1px); box-shadow: var(--shadow);
}
.bw-site .wp-block-button.is-style-outline .wp-block-button__link:not(.has-background) {
  background: transparent; color: var(--ink); border: 1.5px solid var(--line); padding: .8em 1.4em;
}
.bw-site .wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):hover { background: var(--surface); color: var(--ink); }
.bw-site .wp-block-button.is-style-light .wp-block-button__link { background: #fff; color: var(--navy); border-color: #fff; }
.bw-site .wp-block-button.is-style-light .wp-block-button__link:hover { background: #f4efe4; color: var(--navy); }
.bw-site .wp-block-button.is-style-outline-light .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.bw-site .wp-block-button.is-style-outline-light .wp-block-button__link:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* ------------------------------------------------------------ Listen */
.bw-site ul.wp-block-list, .bw-site ol.wp-block-list { margin: 0 0 1.2em 1.3em; }
.bw-site ul.wp-block-list li, .bw-site ol.wp-block-list li { margin-bottom: .35em; }
.bw-site ul.is-style-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-soft); font-size: .93rem; }
.bw-site ul.is-style-checks li { display: flex; align-items: center; gap: 8px; margin: 0; }
.bw-site ul.is-style-checks li::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: color-mix(in srgb, var(--ok) 15%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3 3 7-7' fill='none' stroke='%232f7a55' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.is-style-aside ul.is-style-checks, .is-style-panel ul.is-style-checks { flex-direction: column; gap: 10px; margin-top: 8px; }
.bw-site ul.is-style-boxed { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.bw-site ul.is-style-boxed li { padding: 14px 18px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-weight: 500; }

/* ------------------------------------------------------------ Karten & Kacheln */
.is-style-card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s, box-shadow .2s; }
.is-style-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.is-style-card p { color: var(--ink-soft); font-size: .97rem; }
.bw-icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 16px; display: block; }

.is-style-fact { padding-left: 20px; border-left: 3px solid var(--accent); }
.is-style-fact h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin-bottom: 6px; }
.is-style-fact p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

.is-style-feature { padding-top: 18px; border-top: 2px solid var(--accent); }
.is-style-feature p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

.is-style-panel { padding: 32px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); }
.is-style-panel h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.is-style-panel p { color: var(--ink-soft); }
.is-style-section-alt .is-style-panel { background: var(--surface); }

.is-style-aside { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.is-style-aside h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.is-style-aside p { color: var(--ink-soft); font-size: .97rem; }
.is-style-aside .wp-block-buttons { flex-direction: column; align-items: stretch; margin: 20px 0; }
.is-style-aside .wp-block-button, .is-style-aside .wp-block-button__link { width: 100%; }
.bw-big-link { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.bw-big-link:hover { color: var(--accent-ink); }

.is-style-note {
  padding: 16px 20px; margin: 1.5em 0; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-left: 3px solid var(--accent);
}
.is-style-note p { margin: 0; color: var(--ink); }

/* ------------------------------------------------------------ Ablauf (nummeriert) */
.bw-steps { max-width: 820px; margin: 0 auto; counter-reset: bw-step; }
.is-style-step { position: relative; display: block; padding: 0 0 36px 64px; counter-increment: bw-step; }
.is-style-step::before {
  content: counter(bw-step); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 40px; height: 40px;
  font-family: var(--serif); font-size: 1.2rem; font-weight: 600;
  color: var(--accent-ink); background: var(--bg); border: 1.5px solid var(--accent); border-radius: 50%;
}
.is-style-step:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 48px; bottom: 6px; width: 2px; background: var(--line); }
.is-style-step h3 { padding-top: 8px; }
.is-style-step p { margin: 0; color: var(--ink-soft); }
.is-style-section-alt .is-style-step::before { background: var(--bg-alt); }

/* ------------------------------------------------------------ FAQ */
.bw-faq { display: grid; gap: 12px; }
.bw-faq-group + .bw-faq-group { margin-top: 48px; }
.bw-faq-group > h2 { font-size: 1.5rem; margin-bottom: 16px; }
.bw-site details.wp-block-details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 12px; }
.bw-faq details.wp-block-details { margin: 0; }
.bw-site details.wp-block-details summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; font-weight: 600; cursor: pointer; list-style: none; color: var(--ink);
}
.bw-site details.wp-block-details summary::-webkit-details-marker { display: none; }
.bw-site details.wp-block-details summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; font-weight: 400; color: var(--accent-ink); transition: transform .2s; }
.bw-site details.wp-block-details[open] summary::after { transform: rotate(45deg); }
.bw-site details.wp-block-details > :not(summary) { padding: 0 24px; color: var(--ink-soft); }
.bw-site details.wp-block-details > :last-child { padding-bottom: 22px; margin-bottom: 0; }

/* ------------------------------------------------------------ Fließtext */
.bw-prose { font-size: 1.05rem; }
.bw-prose > * { max-width: 760px; }
.bw-prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 1.8em 0 .6em; }
.bw-prose h2:first-child { margin-top: 0; }
.bw-prose h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; }
.bw-prose p, .bw-prose li { color: var(--ink-soft); }
.bw-prose strong { color: var(--ink); }
.bw-prose details.wp-block-details { margin-top: 12px; }

/* ------------------------------------------------------------ Protokoll-Karte (Startseite) */
.bw-protocol { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); overflow: hidden; }
.bw-protocol-head { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.bw-protocol-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.bw-protocol-title { margin-left: 10px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.bw-tag { margin-left: auto; padding: 2px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.bw-protocol-body { padding: 20px; }
.bw-protocol-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 16px; }
.bw-protocol-meta dt { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bw-protocol-meta dd { margin: 2px 0 0; font-weight: 600; }
.bw-protocol-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.bw-protocol-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.bw-protocol-list li span { flex: 1; }
.bw-protocol-list small { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.bw-protocol-list li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; }
.bw-protocol-list li.done::before { background: color-mix(in srgb, var(--ok) 15%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3 3 7-7' fill='none' stroke='%232f7a55' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.bw-protocol-list li.run::before { border: 2px solid color-mix(in srgb, var(--accent) 30%, transparent); border-top-color: var(--accent); animation: bw-spin 1s linear infinite; }
@keyframes bw-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bw-protocol-list li.run::before { animation: none; } }
.bw-protocol-hash { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding: 10px 12px; border-radius: 8px; background: var(--bg-alt); border: 1px solid var(--line); font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.bw-protocol-hash code { font-family: var(--mono); font-size: .8rem; font-weight: 500; letter-spacing: 0; color: var(--ok); background: none; }
.bw-protocol-note { margin: 0; padding: 14px 20px; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--bg-alt); }

/* ------------------------------------------------------------ Kopfbereich */
.bw-skip { position: absolute; left: -9999px; }
.bw-topbar { background: var(--navy); color: #b9c6d0; font-size: .85rem; }
@media (prefers-color-scheme: dark) { .bw-topbar { background: #081520; } }
.bw-topbar a { color: #e9eef2; text-decoration: none; }
.bw-topbar a:hover { text-decoration: underline; color: #fff; }
.bw-topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; flex-wrap: wrap; }
.bw-topbar-contact { display: flex; gap: 20px; }
@media (max-width: 680px) { .bw-topbar-claim { display: none; } .bw-topbar-inner { justify-content: center; } }

.bw-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.admin-bar .bw-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bw-header { top: 0; } }
.bw-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.bw-brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; line-height: 0; }
.bw-logo { display: block; height: 48px; width: auto; }
@media (max-width: 480px) { .bw-logo { height: 40px; } }

.bw-nav { display: flex; align-items: center; gap: 28px; }
.bw-nav ul { list-style: none; margin: 0; padding: 0; }
.bw-menu { display: flex; align-items: center; gap: 4px; }
.bw-menu > li { position: relative; }
.bw-menu a { display: block; padding: 8px 12px; color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 500; border-radius: 8px; }
.bw-menu a:hover, .bw-menu .current-menu-item > a, .bw-menu .current-menu-ancestor > a, .bw-menu .current_page_parent > a { color: var(--ink); }
.bw-menu .current-menu-item > a, .bw-menu .current-menu-ancestor > a { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.bw-menu .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.bw-menu .sub-menu {
  position: absolute; top: 100%; left: -8px; min-width: 300px; padding: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.bw-menu li:hover > .sub-menu, .bw-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.bw-menu .sub-menu a { padding: 10px 12px; border-radius: 8px; box-shadow: none; }
.bw-menu .sub-menu a:hover { background: var(--bg-alt); }
.bw-nav .bw-btn { display: inline-flex; align-items: center; padding: .6em 1.15em; font-weight: 600; font-size: .92rem; color: var(--btn-fg); background: var(--btn-bg); border-radius: 999px; text-decoration: none; white-space: nowrap; transition: background .15s; }
.bw-nav .bw-btn:hover { background: var(--btn-bg-hover); color: var(--btn-fg); }

.bw-nav-toggle { display: none; }
@media (max-width: 1080px) {
  .bw-nav-toggle { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; box-shadow: none; }
  .bw-nav-toggle:hover, .bw-nav-toggle:focus { background: none; box-shadow: none; }
  .bw-nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .2s; }
  .bw-nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .bw-nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .bw-nav {
    position: absolute; top: 72px; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - 72px); overflow-y: auto;
    padding: 8px 16px 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .bw-nav.is-open { display: flex; }
  .bw-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .bw-menu a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .bw-menu .current-menu-item > a, .bw-menu .current-menu-ancestor > a { box-shadow: none; color: var(--accent-ink); }
  .bw-menu .menu-item-has-children > a::after { display: none; }
  .bw-menu .sub-menu { position: static; min-width: 0; padding: 0 0 0 16px; border: 0; box-shadow: none; background: none; opacity: 1; visibility: visible; transform: none; }
  .bw-menu .sub-menu a { font-size: .98rem; color: var(--ink-soft); }
  .bw-nav .bw-btn { justify-content: center; margin-top: 18px; padding: .85em 1.2em; font-size: 1rem; }
}

.bw-breadcrumbs { background: var(--bg); font-size: .85rem; color: var(--muted); padding-top: 18px; }
.bw-breadcrumbs a { color: var(--muted); text-decoration: none; }
.bw-breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.bw-breadcrumbs .breadcrumb_last { color: var(--ink-soft); }

/* ------------------------------------------------------------ Fußbereich */
.bw-footer { background: var(--bg-alt); border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .93rem; }
.bw-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: clamp(48px, 7vw, 72px) 0 40px; }
.bw-footer h2 { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 16px; }
.bw-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bw-footer a { color: var(--ink-soft); text-decoration: none; }
.bw-footer a:hover { color: var(--ink); text-decoration: underline; }
.bw-footer .bw-brand { margin-bottom: 18px; }
.bw-footer .bw-logo { height: 40px; }
.bw-footer-about p { max-width: 34em; }
.bw-footer-contact a { font-weight: 600; color: var(--ink); }
.bw-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 20px 0 28px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.bw-footer-bottom ul { display: flex; gap: 20px; }
.bw-footer-bottom p { margin: 0; }
@media (max-width: 820px) { .bw-footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ------------------------------------------------------------ Ratgeber */
.bw-post-meta { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.bw-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1000px) { .bw-post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .bw-post-grid { grid-template-columns: 1fr; } }
.bw-post-card { display: flex; flex-direction: column; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s, box-shadow .2s; }
.bw-post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bw-post-card h2, .bw-post-card h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.25; }
.bw-post-card h2 a, .bw-post-card h3 a { color: var(--ink); text-decoration: none; }
.bw-post-card h2 a::after, .bw-post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.bw-post-card { position: relative; }
.bw-post-card p { color: var(--ink-soft); font-size: .97rem; flex: 1; }
.bw-post-card .bw-more { font-weight: 600; color: var(--accent-ink); }

/* ------------------------------------------------------------ Formular */
.bw-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.bw-form .bw-field { display: grid; gap: 6px; }
.bw-form .bw-full { grid-column: 1 / -1; }
.bw-form label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.bw-form label .req { color: var(--accent-ink); }
.bw-form input[type=text], .bw-form input[type=email], .bw-form input[type=tel], .bw-form select, .bw-form textarea {
  width: 100%; padding: .8em .9em; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.bw-form select { padding-right: 36px; background-position: right 10px center; }
.bw-form textarea { min-height: 160px; resize: vertical; }
.bw-form input:focus, .bw-form select:focus, .bw-form textarea:focus { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.bw-form .bw-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--ink-soft); }
.bw-form .bw-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.bw-form .bw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bw-form button[type=submit] { justify-self: start; padding: .85em 1.6em; font: inherit; font-weight: 600; color: var(--btn-fg); background: var(--btn-bg); border: 0; border-radius: 999px; cursor: pointer; }
.bw-form button[type=submit]:hover { background: var(--btn-bg-hover); color: var(--btn-fg); }
.bw-alert { padding: 16px 20px; border-radius: 10px; margin-bottom: 24px; }
.bw-alert-ok { background: color-mix(in srgb, var(--ok) 12%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.bw-alert-err { background: #fdecea; border: 1px solid #f5c2bd; color: #7a1f16; }
@media (max-width: 640px) { .bw-form { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ Rechtliches & 404 */
.bw-legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.bw-legal h2 { font-size: 1.35rem; margin-top: 2em; }
.bw-legal p { color: var(--ink-soft); }

/* ------------------------------------------------------------ Einwilligungsverwaltung */
.bw-consent-open { padding: 0; background: none; border: 0; font: inherit; font-size: inherit; color: var(--ink-soft); cursor: pointer; text-decoration: none; box-shadow: none; }
.bw-consent-open:hover, .bw-consent-open:focus { background: none; color: var(--ink); text-decoration: underline; box-shadow: none; }
.bw-cc { position: fixed; inset: auto 0 0 0; z-index: 1000; display: flex; justify-content: center; padding: 16px; pointer-events: none; }
.bw-cc-box {
  pointer-events: auto; width: min(720px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 28px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 64px -16px rgba(15, 42, 61, .45); font-size: .95rem;
  opacity: 0; transform: translateY(16px); transition: opacity .2s, transform .2s;
}
.bw-cc.is-open .bw-cc-box { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .bw-cc-box { transition: none; } }
.bw-cc-box:focus { outline: none; }
.bw-cc-box h2 { font-size: 1.35rem; margin: 0 0 .6em; }
.bw-cc-box p { color: var(--ink-soft); }
.bw-cc-cats { display: grid; gap: 10px; margin: 18px 0; }
.bw-cc-cat { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.bw-cc-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; }
.bw-cc-row span { display: grid; gap: 2px; }
.bw-cc-row small { color: var(--muted); font-size: .85rem; line-height: 1.45; }
.bw-cc-row input { flex: none; width: 44px; height: 24px; appearance: none; -webkit-appearance: none; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; border: 0; padding: 0; }
.bw-cc-row input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.bw-cc-row input:checked { background: var(--ok); }
.bw-cc-row input:checked::after { transform: translateX(20px); }
.bw-cc-row input:disabled { opacity: .6; cursor: not-allowed; }
.bw-cc-cat ul { margin: 10px 0 0; padding-left: 18px; font-size: .85rem; color: var(--ink-soft); }
.bw-cc-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 18px; }
.bw-cc-actions [hidden] { display: none; }
.bw-cc-btn {
  display: inline-flex; justify-content: center; align-items: center; padding: .8em 1.2em; min-height: 44px;
  font: inherit; font-weight: 600; font-size: .95rem; color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid var(--btn-bg); border-radius: 999px; cursor: pointer; text-decoration: none;
}
.bw-cc-btn:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); color: var(--btn-fg); }
.bw-cc-links { margin: 14px 0 0; font-size: .85rem; }
.bw-cc-links a { color: var(--muted); }
.bw-embed-gate { display: grid; place-items: center; gap: 12px; min-height: 240px; padding: 24px; text-align: center; background: var(--bg-alt); border: 1px dashed var(--line); border-radius: var(--radius); }
.bw-embed-gate button { padding: .7em 1.2em; border-radius: 999px; border: 0; background: var(--btn-bg); color: var(--btn-fg); font: inherit; font-weight: 600; cursor: pointer; }
[data-bw-consent-embed] iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }

/* ------------------------------------------------------------ Responsive-Korrekturen (Audit) */
/* Abschnitte liegen bereits vollbreit – Kadences 100vw-Berechnung (inkl. Scrollleiste) aufheben */
.bw-site .wp-block-group.alignfull { width: auto; max-width: none; margin-left: 0; margin-right: 0; }
/* Mindestschriftgröße 12 px */
.bw-tag, .bw-protocol-meta dt { font-size: .75rem; }
/* Klickflächen ≥ 24 px (WCAG 2.2, 2.5.8) */
.bw-topbar a { display: inline-block; padding: 4px 0; }
.bw-footer ul a, .bw-footer-contact a, .bw-legal-nav a, .bw-legal-nav .bw-consent-open { display: inline-block; padding: 4px 0; }
.bw-footer ul { gap: 4px; }
.bw-breadcrumbs a { display: inline-block; padding: 3px 0; }
.bw-legal-nav ul { flex-wrap: wrap; gap: 4px 20px; }
@media (max-width: 680px) { .bw-footer-bottom { flex-direction: column; } }

/* ------------------------------------------------------------ Formular: Status, Fehler, Absenden */
.bw-form-status { scroll-margin-top: 16px; }
.admin-bar .bw-form-status { scroll-margin-top: 48px; }
.bw-alert a[href^="tel:"] { white-space: nowrap; }
.bw-form-status:focus { outline: none; }
.bw-alert a { font-weight: 600; }
.bw-alert-ok { color: var(--ink); }
.bw-ref { font-family: var(--mono); font-weight: 700; white-space: nowrap; }
.bw-field.is-invalid input, .bw-field.is-invalid textarea, .bw-field.is-invalid select { border-color: #b91c1c; }
.bw-fehler { color: #b91c1c; font-size: .82rem; font-weight: 600; }
@media (prefers-color-scheme: dark) { .bw-fehler { color: #f19a8f; } .bw-alert-err { background: #3a1814; border-color: #6b2a22; color: #f6d3ce; } }
.bw-submit-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.bw-schutz { font-size: .82rem; color: var(--muted); }
.bw-form button[type=submit][disabled] { opacity: .75; cursor: progress; }
/* Lange deutsche Komposita auf kleinen Bildschirmen sauber trennen */
h1, h2, h3, .bw-post-card, .is-style-card, .bw-faq summary { overflow-wrap: break-word; }
@media (max-width: 480px) { h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; } }
.bw-post-grid > *, [class*="is-style-grid-"] > * { min-width: 0; }
