/* ======================================================================
   KanzleiSichtbar – Gestaltung
   Ruhig, vertrauenswürdig, modern. Barrierearm nach WCAG 2.2 AA.
   ====================================================================== */

/* ---------- Schriften (lokal, keine Google-Verbindung) ---------- */
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 900; font-style: normal; font-display: swap;
  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: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 900; font-style: normal; font-display: swap;
  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: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght-italic.woff2") format("woff2-variations");
  font-weight: 200 900; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 900; font-style: normal; font-display: swap;
  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: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+A720-A7FF;
}

/* ---------- Farben und Maße ---------- */
:root {
  --paper: #f8f6f1;
  --surface: #ffffff;
  --surface-2: #f1ede4;
  --ink: #1b2230;
  --muted: #4c5566;
  --line: #ddd6c7;
  --navy: #13233f;
  --navy-2: #22396a;
  --on-navy: #f4f1ea;
  --accent: #8f6a1f;          /* Messing, für Text auf hellem Grund (≥ 4.5:1) */
  --accent-bright: #c9a24d;   /* Messing, für Flächen/Linien */
  --accent-soft: #f2e8d2;
  --free-fg: #1a6340;  --free-bg: #e0f0e6;
  --budget-fg: #7f430a; --budget-bg: #fbecd8;
  --tip: #2d6a4f; --warn: #a23b2a; --info: #3c5a87;
  --focus: #1b5fd6;

  --font-text: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1180px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --radius: 14px;
  --radius-s: 8px;
  --shadow: 0 1px 2px rgb(19 35 63 / 0.06), 0 6px 24px rgb(19 35 63 / 0.06);
  --bleed: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1522;
    --surface: #152035;
    --surface-2: #1a2740;
    --ink: #ece8de;
    --muted: #b7bcc8;
    --line: #2c3a55;
    --navy: #0a1220;
    --navy-2: #1d2f52;
    --on-navy: #f1ede4;
    --accent: #e3c27a;
    --accent-bright: #d6b061;
    --accent-soft: #2d2616;
    --free-fg: #9fe0bb;  --free-bg: #173829;
    --budget-fg: #f5c891; --budget-bg: #3b2913;
    --tip: #8fd3b0; --warn: #f4a493; --info: #a9c2ea;
    --focus: #7fb0ff;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 28px rgb(0 0 0 / 0.25);
  }
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
main:focus { outline: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 620;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
  margin: 2.2em 0 0.6em;
}
h1 { font-size: clamp(2.05rem, 1.35rem + 2.8vw, 3.35rem); margin-top: 0; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2.15rem); }
h3 { font-size: clamp(1.2rem, 1.08rem + 0.5vw, 1.45rem); }
h4 { font-size: 1.1rem; font-family: var(--font-text); font-weight: 700; }
p, ul, ol, table, blockquote, pre { margin: 0 0 1.15em; }
p { text-wrap: pretty; }
strong { font-weight: 680; }

a { color: var(--navy-2); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
@media (prefers-color-scheme: dark) { a { color: #b9cdf3; } }
a:hover { text-decoration-thickness: 2px; }
a.ext::after { content: "\2197" / ""; font-size: 0.8em; margin-left: 0.15em; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
code { font-size: 0.9em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 5px; }
pre { background: var(--surface-2); padding: 1rem 1.2rem; border-radius: var(--radius-s); overflow-x: auto; }
pre code { background: none; padding: 0; }
blockquote { margin-left: 0; padding: 0.4rem 0 0.4rem 1.2rem; border-left: 3px solid var(--accent-bright); color: var(--muted); font-style: italic; }

.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: var(--on-navy); padding: 0.7rem 1.1rem; border-radius: var(--radius-s);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Schaltflächen und Kennzeichen ---------- */
.btn, .block-cta a {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  min-height: 48px; padding: 0.7rem 1.35rem;
  background: var(--navy); color: var(--on-navy);
  border: 2px solid var(--navy); border-radius: 999px;
  font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover, .block-cta a:hover { background: var(--navy-2); border-color: var(--navy-2); color: var(--on-navy); transform: translateY(-1px); }
@media (prefers-color-scheme: dark) {
  .btn, .block-cta a { background: var(--accent-bright); border-color: var(--accent-bright); color: #14100a; }
  .btn:hover, .block-cta a:hover { background: #e7c67f; border-color: #e7c67f; color: #14100a; }
}
.btn-ghost, .block-cta a + a, .block-cta p + p a {
  background: transparent; color: var(--ink); border-color: currentColor;
}
.btn-ghost:hover, .block-cta a + a:hover, .block-cta p + p a:hover { background: var(--surface-2); color: var(--ink); border-color: var(--ink); }
.btn-small { min-height: 40px; padding: 0.45rem 1rem; font-size: 0.95rem; }
.block-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.6rem 0; }
.block-cta p { display: contents; }

.badge {
  display: inline-block; padding: 0.12em 0.65em; border-radius: 999px;
  font-size: 0.8em; font-weight: 700; letter-spacing: 0.02em; line-height: 1.6; vertical-align: 0.08em;
  border: 1px solid currentColor;
}
.badge-free { color: var(--free-fg); background: var(--free-bg); }
.badge-budget { color: var(--budget-fg); background: var(--budget-bg); }

/* ---------- Kopfbereich ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo-bg { fill: var(--navy); }
.logo-line { stroke: var(--accent-bright); stroke-width: 2.6; stroke-linecap: round; fill: none; }
.logo-mark { stroke: var(--on-navy); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
@media (prefers-color-scheme: dark) { .logo-bg { fill: var(--navy-2); } }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 680; font-size: 1.22rem; letter-spacing: -0.01em; }
.brand-claim { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.03em; }

.main-nav { display: flex; align-items: center; gap: 1.25rem; }
.main-nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.main-nav ul a {
  display: block; padding: 0.55rem 0.8rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 560; font-size: 1rem;
}
.main-nav ul a:hover { background: var(--surface-2); }
.main-nav ul a[aria-current] { background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent-bright); }

.nav-toggle {
  display: none; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0.4rem 0.9rem;
  background: transparent; color: var(--ink); border: 2px solid var(--line); border-radius: 999px;
  font: inherit; font-weight: 650; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: "";
  transition: transform .2s ease;
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; }
  .js .nav-toggle { display: inline-flex; }
  .main-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0.75rem; padding-bottom: 1rem; }
  .main-nav ul { flex-direction: column; }
  .main-nav ul a { padding: 0.8rem 1rem; border-radius: var(--radius-s); font-size: 1.1rem; }
  .main-nav .btn { width: 100%; min-height: 48px; }
  .js .main-nav:not(.is-open) { display: none; }
}

/* ---------- Seitenkopf, Brotkrumen ---------- */
.crumbs { padding-top: 1.25rem; font-size: 0.92rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin: 0 0.5rem; color: var(--line); }
.crumbs a { color: var(--muted); }

.page-head { padding: clamp(1.5rem, 3vw, 3rem) 0 1.5rem; max-width: 52rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.eyebrow {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.8rem;
}
.lead { font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.35rem); color: var(--muted); line-height: 1.55; }
.page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.1rem; font-size: 0.92rem; color: var(--muted); margin: 1rem 0 0; }

/* ---------- Inhalt ---------- */
.page-body { padding-bottom: 4rem; }
.prose { max-width: 46rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--accent); }
.prose h2 { padding-top: 0.2rem; }
.prose h2::before {
  content: ""; display: block; width: 2.5rem; height: 3px; background: var(--accent-bright); margin-bottom: 0.9rem; border-radius: 2px;
}

@media (min-width: 1060px) {
  .page-body.has-toc { display: grid; grid-template-columns: minmax(0, 46rem) 16rem; justify-content: space-between; gap: 3.5rem; }
  .page-body.has-toc .toc { order: 2; position: sticky; top: 6rem; align-self: start; max-height: calc(100vh - 7rem); overflow: auto; }
}
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 2rem; font-size: 0.95rem; }
.toc-title { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: 0.35rem; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Tabellen */
.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.96rem; margin: 0; }
th, td { padding: 0.7rem 0.9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--surface-2); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
.ta-right { text-align: right; } .ta-center { text-align: center; }

/* Hinweisboxen */
.callout {
  margin: 2rem 0; padding: 1.2rem 1.4rem 0.4rem;
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--info);
  border-radius: var(--radius-s);
}
.callout-title { font-weight: 750; margin-bottom: 0.5rem; font-size: 1.02rem; }
.callout-kosten { border-left-color: var(--accent-bright); background: var(--accent-soft); }
.callout-summary { border-left-color: var(--navy-2); }
.callout-tipp { border-left-color: var(--tip); }
.callout-achtung { border-left-color: var(--warn); }

/* Partner-Box */
.partner-box {
  margin: 2.5rem 0; padding: 1.6rem 1.6rem 1rem;
  background: var(--navy); color: var(--on-navy); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.partner-box .callout-title { font-family: var(--font-head); font-size: 1.35rem; font-weight: 640; }
.partner-box a { color: var(--on-navy); }
.partner-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.partner-box .btn { background: var(--on-navy); color: var(--navy); border-color: var(--on-navy); }
.partner-box .btn:hover { background: #fff; color: var(--navy); }
.partner-box .btn-ghost { background: transparent; color: var(--on-navy); border-color: var(--on-navy); }
.partner-box .btn-ghost:hover { background: rgb(255 255 255 / 0.1); color: var(--on-navy); }
.partner-box .more { margin-left: 0.25rem; }

/* FAQ */
.faq { margin: 2.5rem 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); margin-bottom: 0.6rem; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.2rem; position: relative;
  font-weight: 650; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; line-height: 1; color: var(--accent);
}
.faq details[open] summary::after { content: "\2013"; }
.faq-a { padding: 0 1.2rem 0.4rem; }

/* Karten */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.1rem; margin: 1.5rem 0 2rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem 1.35rem 0.6rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card h3 { margin: 0 0 0.6rem; font-size: 1.22rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }   /* ganze Karte klickbar */
.card:has(h3 a) { position: relative; transition: transform .15s ease, border-color .15s ease; }
.card:has(h3 a):hover { transform: translateY(-2px); border-color: var(--accent-bright); }
.card:has(h3 a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.card h3 a:focus-visible { outline: none; }
.card p { font-size: 0.98rem; color: var(--muted); }

/* Schritte */
.block-steps ol { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.block-steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.block-steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-bottom: 0.6rem;
  border-radius: 50%; background: var(--navy); color: var(--on-navy); font-weight: 750;
}
@media (prefers-color-scheme: dark) { .block-steps li::before { background: var(--accent-bright); color: #14100a; } }

.block-lead p { font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.35rem); color: var(--muted); }

/* ---------- Startseite: volle Breite ---------- */
.home > * { width: min(calc(var(--wrap) - 2 * var(--gutter)), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.home > h2 { margin-top: 4rem; }
.home > .hero, .home > .block-band {
  width: 100%; padding-inline: var(--bleed);
}
.hero {
  padding-block: clamp(3rem, 6vw, 6rem) clamp(2.5rem, 5vw, 4.5rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, color-mix(in srgb, var(--accent-bright) 18%, transparent), transparent 70%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero h1 { max-width: 17ch; font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); }
.hero > p { max-width: 40rem; font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); color: var(--muted); }
.block-band {
  padding-block: clamp(2.5rem, 5vw, 4.5rem); margin-block: 3rem;
  background: var(--surface-2); border-block: 1px solid var(--line);
}
.block-band > :first-child { margin-top: 0; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--navy); color: var(--on-navy); margin-top: 4rem; font-size: 0.96rem; }
.site-footer a { color: var(--on-navy); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); padding-block: 3rem 2rem; }
.footer-title { font-family: var(--font-head); font-weight: 650; font-size: 1.1rem; margin-bottom: 0.7rem; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.disclaimer { border-left: 3px solid var(--accent-bright); padding-left: 0.8rem; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 0.15); padding-block: 1.2rem; font-size: 0.88rem; opacity: 0.9; }
.footer-bottom p { margin: 0; }

/* ---------- Statistik ---------- */
.layout-stats .stats { padding-block: 2rem 4rem; }
.stats-tabs a[aria-current] { font-weight: 750; }
.stats-kpis { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.stats-kpis p { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0; }
.stats-kpis strong { display: block; font-size: 2rem; font-family: var(--font-head); }
.stats-bars { display: flex; align-items: flex-end; gap: 2px; height: 160px; list-style: none; padding: 0; margin: 0 0 2rem; border-bottom: 1px solid var(--line); }
.stats-bars li { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.stats-bars .bar { display: block; width: 100%; min-height: 1px; background: var(--navy-2); border-radius: 3px 3px 0 0; }
@media (prefers-color-scheme: dark) { .stats-bars .bar { background: var(--accent-bright); } }
.stats-login { display: grid; gap: 0.6rem; max-width: 22rem; }
.stats-login input { font: inherit; padding: 0.7rem; border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--surface); color: var(--ink); }
.stats-note { margin-top: 3rem; color: var(--muted); font-size: 0.9rem; }

/* ---------- Bewegung reduzieren, Druck ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (prefers-contrast: more) {
  :root { --line: #6b6355; --muted: #2b3240; }
}
@media print {
  .site-header, .site-footer, .toc, .nav-toggle, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a.ext::after { content: " (" attr(href) ")"; font-size: 0.8em; }
  .partner-box { background: #fff; color: #000; border: 1px solid #000; box-shadow: none; }
}

/* Dunkelmodus: Partner-Box und Fußzeile vom Hintergrund abheben */
@media (prefers-color-scheme: dark) {
  .partner-box { background: var(--navy-2); border: 1px solid #2f4673; }
  .site-footer { background: #121c30; border-top: 1px solid var(--line); }
}

/* Autorenbox, Hinweise */
.author-box {
  margin: 3rem 0 1rem; padding: 1.3rem 1.4rem;
  border-top: 3px solid var(--accent-bright); background: var(--surface); border-radius: 0 0 var(--radius) var(--radius);
  border-inline: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.author-box p { margin: 0 0 0.35rem; }
.author-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.author-name { font-family: var(--font-head); font-size: 1.3rem; font-weight: 650; }
.author-role { color: var(--muted); font-size: 0.95rem; }
.author-bio { font-size: 0.98rem; margin-top: 0.6rem !important; }
.author-review { font-size: 0.92rem; color: var(--muted); margin-top: 0.7rem !important; }
.sources-note { font-size: 0.9rem; color: var(--muted); }
.card-badges { margin-top: auto; padding-top: 0.4rem; }
.pending-link { font-weight: inherit; }
.prose .table-wrap td:first-child { font-weight: 600; }

/* Themen-Chips (z. B. Rechtsgebiete) */
.block-chips ul { display: flex; flex-wrap: wrap; gap: 0.55rem; list-style: none; padding: 0; margin: 1.2rem 0 2rem; }
.block-chips li { margin: 0; }
.block-chips a, .block-chips .pending-link {
  display: inline-block; padding: 0.5rem 1rem; border-radius: 999px; min-height: 44px; line-height: 1.6;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 560;
}
.block-chips a:hover { border-color: var(--accent-bright); background: var(--accent-soft); }
.block-chips .pending-link { color: var(--muted); }
.block-cta .pending-link { display: none; }
.card-kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.4rem; }
.author-name a { color: inherit; }
.block-check ol { counter-reset: chk; list-style: none; padding: 0; }
.block-check li { counter-increment: chk; position: relative; padding: 0.7rem 0.9rem 0.7rem 3rem; margin-bottom: 0.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); }
.block-check li::before { content: counter(chk); position: absolute; left: 0.8rem; top: 0.7rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--ink); font-weight: 750; font-size: 0.85rem; }

/* Passend zum Thema (automatische interne Verlinkung) */
.related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.related h2 { margin-top: 0; }
.related .cards { margin-bottom: 0; }

/* Knopf „Zum Seitenanfang“ */
.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; width: 2.9rem; height: 2.9rem; display: grid; place-items: center; border-radius: 50%; background: var(--navy, #14213d); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.18); border: 2px solid rgba(255,255,255,.75); text-decoration: none; }
.js .to-top { opacity: 0; visibility: hidden; transition: opacity .2s; }
.js .to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { filter: brightness(1.15); }
.to-top:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (prefers-color-scheme: dark) { .to-top { background: var(--accent-bright, #e0b866); color: #14100a; } }
@media (prefers-reduced-motion: reduce) { .js .to-top { transition: none; } }
@media print { .to-top { display: none; } }

/* ---------- Suche ---------- */
.search-band {
  background: linear-gradient(180deg, var(--surface-2), var(--paper));
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}
.search-band-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.25rem; }
.site-search {
  position: relative; flex: 1 1 26rem; max-width: 46rem;
  display: flex; align-items: center;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.site-search:focus-within {
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-bright) 22%, transparent), var(--shadow);
}
.search-icon { position: absolute; left: 1rem; color: var(--muted); pointer-events: none; }
.search-input {
  flex: 1; min-width: 0; min-height: 50px;
  padding: 0.6rem 0.5rem 0.6rem 2.9rem;
  border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 1.05rem;
}
.search-input::placeholder { color: var(--muted); opacity: 0.85; }
.search-input:focus { outline: none; }
.search-input::-webkit-search-cancel-button { cursor: pointer; }
.search-kbd {
  margin-right: 0.5rem; padding: 0.05rem 0.45rem; border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; font: 600 0.8rem/1.4 var(--font-text); color: var(--muted); background: var(--surface-2);
}
.site-search:focus-within .search-kbd { display: none; }
.search-submit {
  margin: 4px; min-height: 42px; padding: 0 1.3rem;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--navy); color: var(--on-navy);
  font: inherit; font-weight: 680; letter-spacing: 0.01em;
  transition: background .15s ease, transform .15s ease;
}
.search-submit:hover { background: var(--navy-2); transform: translateY(-1px); }
.search-submit:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (prefers-color-scheme: dark) {
  .search-submit { background: var(--accent-bright); color: #14100a; }
  .search-submit:hover { background: #e7c67f; }
}
.search-popular { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--muted); }
.search-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.search-chips a {
  display: inline-block; padding: 0.25rem 0.75rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); text-decoration: none; font-size: 0.9rem; white-space: nowrap;
}
.search-chips a:hover { border-color: var(--accent-bright); background: var(--accent-soft); }
@media (max-width: 1100px) { .search-band .search-popular { display: none; } }
@media (max-width: 640px) {
  .search-band { padding: 0.6rem 0; }
  .search-kbd { display: none; }
  .search-input { min-height: 46px; font-size: 1rem; }
  .search-submit { padding: 0 0.95rem; min-height: 38px; }
}
@media (hover: none) { .search-kbd { display: none; } }

/* Ergebnisseite */
.layout-search .prose { max-width: 50rem; }
.search-head { margin-bottom: 1.25rem; }
.search-summary { font-size: 1.1rem; margin: 0 0 0.6rem; }
.search-terms { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; font-size: 0.92rem; color: var(--muted); }
.search-terms ul { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.prose .search-terms li { margin: 0; }
.term {
  padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--accent-soft); color: var(--ink);
  font-weight: 600; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-bright) 45%, transparent);
}
.term-phrase { background: var(--surface-2); }
.term-not { background: transparent; text-decoration: line-through; text-decoration-color: var(--warn); box-shadow: inset 0 0 0 1px var(--line); }
.search-ignored { flex-basis: 100%; font-size: 0.85rem; }
.search-fix { margin: 0.6rem 0 0; font-size: 1.02rem; }
.search-fix a { font-weight: 700; }

.search-facets ul { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0 0 1.5rem; padding: 0 0 1rem; border-bottom: 1px solid var(--line); }
.prose .search-facets li { margin: 0; }
.search-facets a {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 38px; padding: 0.3rem 0.9rem;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  background: var(--surface);
}
.search-facets a:hover { border-color: var(--accent-bright); }
.search-facets a[aria-current] { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.search-facets .n { font-weight: 500; font-size: 0.82rem; opacity: 0.75; }

.prose .search-list { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.prose .search-hit {
  position: relative; margin: 0 0 1rem; padding: 1.1rem 1.25rem 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.prose .search-hit:hover { border-color: color-mix(in srgb, var(--accent-bright) 70%, var(--line)); box-shadow: var(--shadow); transform: translateY(-1px); }
.hit-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; margin: 0 0 0.35rem; font-size: 0.83rem; color: var(--muted); }
.hit-section {
  padding: 0.05rem 0.55rem; border-radius: 999px; background: var(--navy); color: var(--on-navy);
  font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; font-size: 0.72rem;
}
.hit-kicker { font-weight: 650; color: var(--accent); }
.hit-path { overflow-wrap: anywhere; }
.prose .hit-title { margin: 0 0 0.4rem; padding: 0; font-size: 1.28rem; line-height: 1.3; }
.prose .hit-title::before { display: none; }
.hit-title a { color: var(--ink); text-decoration: none; }
.hit-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }   /* ganze Karte klickbar */
.hit-title a:hover { text-decoration: underline; text-decoration-color: var(--accent-bright); text-underline-offset: 3px; }
.hit-title a:focus-visible { outline: none; }
.search-hit:has(.hit-title a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.hit-snippet { margin: 0 0 0.6rem; color: var(--muted); font-size: 0.99rem; line-height: 1.55; }
.search-results mark {
  background: color-mix(in srgb, var(--accent-bright) 32%, transparent); color: var(--ink);
  padding: 0 0.12em; border-radius: 3px; font-weight: 600;
}
.hit-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; margin: 0; font-size: 0.88rem; }
.hit-jump { position: relative; z-index: 1; font-weight: 600; }
.hit-jump::before { content: "↳ "; color: var(--accent); }
.hit-foot .badge { position: relative; z-index: 1; }
.hit-partial { color: var(--muted); font-style: italic; }

.search-empty { padding: 1.25rem; border: 1px dashed var(--line); border-radius: var(--radius); margin-bottom: 1.5rem; }
.prose .search-chips li { margin: 0; }
.search-tips code { font-size: 0.9em; }

.pager ul { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 1.75rem 0 0; }
.prose .pager li { margin: 0; }
.pager a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 0.8rem;
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; background: var(--surface);
}
.pager a:hover { border-color: var(--accent-bright); }
.pager a[aria-current] { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
@media (prefers-color-scheme: dark) {
  .search-facets a[aria-current], .pager a[aria-current], .hit-section { background: var(--accent-bright); border-color: var(--accent-bright); color: #14100a; }
}
@media print { .search-band { display: none; } }
.layout-search .page-head { padding-top: 1.5rem; padding-bottom: 0.5rem; margin-bottom: 1.25rem; }
.layout-search .page-head h1 { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.3rem); margin-bottom: 0; }
@media (max-width: 640px) {
  .search-facets ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .search-facets ul::-webkit-scrollbar { display: none; }
  .search-facets a { white-space: nowrap; }
  .prose .search-hit { padding: 1rem; }
}

/* LinkedIn im Footer */
.footer-social { margin-top: 1rem; }
.social-link { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px; padding: 0.35rem 1rem 0.35rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--on-navy) 35%, transparent); border-radius: 999px;
  color: var(--on-navy); text-decoration: none; font-weight: 600; }
.social-link:hover { background: rgb(255 255 255 / 0.08); border-color: var(--accent-bright); color: var(--on-navy); }
.social-link svg { color: var(--accent-bright); flex: none; }
.footer-contact { margin: 1rem 0 0; }

/* ---------------------------------------------------------------------- */
/*  Kontaktformular                                                         */
/* ---------------------------------------------------------------------- */
.contact-form { max-width: 40rem; margin-top: 1rem; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; font: inherit; padding: 0.7rem 0.8rem; border: 2px solid var(--line);
  border-radius: var(--radius-s); background: var(--surface); color: var(--ink);
}
.contact-form textarea { resize: vertical; min-height: 10rem; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid var(--accent-bright); outline-offset: 1px; border-color: var(--navy-2); }
.contact-note { font-size: 0.92rem; color: var(--muted); }
.contact-form .hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.hold-btn { position: relative; overflow: hidden; isolation: isolate; user-select: none; -webkit-user-select: none; touch-action: none; min-width: 18rem; }
.hold-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.hold-fill { position: absolute; inset: 0; z-index: -1; background: var(--accent-bright); transform-origin: left center; transform: scaleX(var(--hold, 0)); }
.hold-btn.is-holding { transform: none; }
@media (prefers-reduced-motion: reduce) { .hold-fill { transition: none; } }
.hold-btn.is-holding { color: #14100a; }
.hold-btn { font: inherit; font-weight: 700; cursor: pointer; }
.contact-choice { border: 0; padding: 0; margin: 0 0 1.2rem; }
.contact-choice legend { font-weight: 600; padding: 0; margin-bottom: 0.35rem; }
.seg { display: flex; width: 100%; padding: 4px; gap: 4px; background: var(--surface-2); border: 2px solid var(--line); border-radius: 999px; }
.seg-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.contact-form .seg-option { flex: 1 1 0; margin: 0; background: transparent; text-align: center; padding: 0.6rem 0.8rem; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--muted); transition: background-color .15s ease, color .15s ease; }
.contact-form .seg-option:hover { color: var(--ink); }
.seg-input:checked + .seg-option { background: var(--navy); color: var(--on-navy); }
.seg-input:focus-visible + .seg-option { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
.choice-text { color: var(--muted); font-size: 0.92rem; margin-top: 0.5rem; }
@media (prefers-color-scheme: dark) { .seg-input:checked + .seg-option { background: var(--accent-bright); color: #14100a; } }