/* ==========================================================================
   Pflegekratie – Stylesheet
   Keine externen Schriften oder Ressourcen (datenschutzfreundlich).
   Farben angelehnt an das Buch: Navy #1F3864 / Gold #B08D57.
   ========================================================================== */

:root {
  --navy: #1f3864;
  --navy-dark: #15284a;
  --navy-soft: #e8ecf4;
  --gold: #b08d57;
  --gold-text: #6e5226;       /* Gold in textfähigem Kontrast */
  --gold-soft: #f3ead9;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c2430;
  --text-muted: #4a5565;
  --border: #d6dbe3;
  --field-border: #737d8c;    /* Formularränder: mind. 3:1 zu Weiß, Hintergrund und Navy-Soft (WCAG 1.4.11) */
  --focus: #c2410c;
  --warn-bg: #fff4d6;
  --warn-border: #b7791f;
  --radius: 0.75rem;
  --shadow: 0 1px 2px rgba(20, 30, 50, .06), 0 6px 20px rgba(20, 30, 50, .06);
  --maxw: 72rem;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  color-scheme: light;
}

html[data-theme="dark"] {
    --navy: #a9bde6;
    --navy-dark: #c9d6f2;
    --navy-soft: #1c2840;
    --gold: #c9a56c;
    --gold-text: #e2c590;
    --gold-soft: #2c2618;
    --bg: #11161f;
    --surface: #182030;
    --text: #e9edf3;
    --text-muted: #b5bfcd;
    --border: #334055;
    --field-border: #7a879c;
    --focus: #fdba74;
    --warn-bg: #2e2612;
    --warn-border: #d4a646;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.3);
  }

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.125rem;          /* 18 px – gut lesbar auch für ältere Menschen */
  line-height: 1.65;
  overflow-wrap: break-word;
}
@media (max-width: 40rem) { p, li, dd, td { hyphens: auto; -webkit-hyphens: auto; } }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.55rem, 1.25rem + 1.3vw, 2.1rem); margin-top: 1.6em; }
h3 { font-size: 1.3rem; margin-top: 1.4em; }
p, ul, ol, dl, table { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: .35em; }
a { color: var(--navy); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .15em; }
strong { font-weight: 700; }
abbr[title] { text-decoration: underline dotted; cursor: help; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--navy); color: #fff;
  padding: .75rem 1.1rem; border-radius: .5rem;
  z-index: 100; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }
html[data-theme="dark"] .skip-link, html[data-theme="dark"] .skip-link:focus { color: #11161f; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40rem) { .container { padding: 0 1.5rem; } }
.prose { max-width: 46rem; }

/* ---------- Header & Navigation ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--navy);
}
.brand svg { width: 2.6rem; height: 2.6rem; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 700; }
.brand-sub { font-size: .82rem; color: var(--text-muted); }

.nav-toggle {
  display: none;
  align-items: center; gap: .5rem;
  font: inherit; font-weight: 700; font-size: 1rem;
  color: var(--navy); background: var(--navy-soft);
  border: 2px solid var(--navy); border-radius: .6rem;
  padding: .55rem .9rem; min-height: 2.9rem; cursor: pointer;
}
.nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after {
  display: block; width: 1.2rem; height: 2px; background: currentColor; position: relative;
}
.nav-toggle-icon::before, .nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { top: 0; transform: rotate(-45deg); }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a { white-space: nowrap; hyphens: none; }
.brand-sub { white-space: nowrap; }
.main-nav > ul { display: flex; align-items: center; gap: .15rem; }
.main-nav li { margin: 0; position: relative; }
.main-nav a {
  display: block; padding: .6rem .75rem; border-radius: .5rem;
  text-decoration: none; color: var(--text); font-weight: 600; font-size: 1.02rem;
}
.main-nav a:hover { background: var(--navy-soft); color: var(--navy); }
.main-nav a[aria-current="page"], .main-nav .is-section > a {
  color: var(--navy); box-shadow: inset 0 -3px 0 var(--gold);
  border-radius: .5rem .5rem 0 0;
}
.main-nav .nav-cta {
  background: var(--navy); color: #fff; margin-left: .4rem; padding: .6rem 1rem;
}
.main-nav .nav-cta:hover { background: var(--navy-dark); color: #fff; }
.main-nav .nav-cta[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); }
html[data-theme="dark"] .main-nav .nav-cta, html[data-theme="dark"] .main-nav .nav-cta:hover { color: #11161f; }

.has-sub { display: flex; align-items: center; }
.sub-toggle {
  font: inherit; background: none; border: 0; color: var(--navy);
  padding: .5rem .4rem; min-width: 2.2rem; min-height: 2.6rem;
  cursor: pointer; border-radius: .4rem; display: none;
}
.js .sub-toggle { display: inline-flex; align-items: center; justify-content: center; }
.sub-toggle:hover { background: var(--navy-soft); }
.sub-toggle svg { display: block; width: 1.1rem; height: 1.1rem; transform-origin: 50% 50%; transition: transform .15s; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.sub {
  display: none;
  position: absolute; top: 100%; left: 0;
  min-width: 19rem; padding: .5rem !important;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.sub a { font-weight: 500; }
.sub a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); border-radius: .3rem; background: var(--navy-soft); }
html:not(.js) .has-sub:hover > .sub,
html:not(.js) .has-sub:focus-within > .sub,
.sub.is-open { display: block; }

@media (max-width: 62rem) {
  .js .nav-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; }
  .main-nav { width: 100%; }
  .js .main-nav { display: none; }
  .js .main-nav.is-open { display: block; padding-bottom: 1rem; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .main-nav a { padding: .8rem .75rem; font-size: 1.08rem; }
  .main-nav a[aria-current="page"], .main-nav .is-section > a { box-shadow: inset 4px 0 0 var(--gold); border-radius: .3rem; }
  .has-sub { flex-wrap: wrap; }
  .has-sub > a { flex: 1; }
  .sub { position: static; width: 100%; min-width: 0; box-shadow: none; border: 0; border-left: 2px solid var(--border); border-radius: 0; margin-left: .75rem; padding: 0 0 0 .5rem !important; }
  html:not(.js) .sub { display: block; }
  .main-nav .nav-cta { margin: .5rem 0 0; text-align: center; }
  .brand-sub { display: none; }
}
@media (max-width: 62rem) and (min-width: 0) {
  html:not(.js) .main-nav > ul { padding-bottom: .75rem; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .95rem; color: var(--text-muted); padding-top: 1.25rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "›"; margin: 0 .4rem 0 .15rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* ---------- Seitenkopf / Hero ---------- */
.page-head { padding: 1.5rem 0 2rem; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--surface), var(--bg)); }
.page-head .lead { font-size: 1.22rem; color: var(--text-muted); max-width: 44rem; margin: 0; }
.kicker {
  display: inline-block; font-size: .9rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--gold-text); margin-bottom: .6rem;
}

.hero { padding: 3rem 0 3.5rem; background: linear-gradient(160deg, var(--navy-soft) 0%, var(--bg) 70%); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: 1.5fr 1fr; gap: 3rem; } }
.hero h1 { margin-bottom: .5em; }
.hero .lead { font-size: 1.25rem; color: var(--text); max-width: 40rem; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .7rem 1.35rem; border-radius: .65rem;
  font: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  border: 2px solid var(--navy);
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--navy); }
.btn-secondary:hover { background: var(--navy-soft); }
html[data-theme="dark"] .btn-primary, html[data-theme="dark"] .btn-primary:hover { color: #11161f; }

/* ---------- Sektionen & Karten ---------- */
.section { padding: 3.25rem 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section > .container > h2:first-child, .section h2.section-title { margin-top: 0; }
.section-intro { max-width: 44rem; color: var(--text-muted); font-size: 1.15rem; }

.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 40rem) { .grid-2, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card h3 { overflow-wrap: break-word; hyphens: auto; }
@media (min-width: 62rem) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.section-alt .card { background: var(--bg); }
.card h3 { margin-top: 0; font-size: 1.22rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-icon { width: 2.6rem; height: 2.6rem; color: var(--gold-text); margin-bottom: .75rem; }
.card-link { position: relative; }
.card-link h3 a { text-decoration: none; }
.card-link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-link:hover { border-color: var(--navy); }
.card-link:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.card-link h3 a:focus-visible { outline: none; }
.card .more { margin-top: auto; padding-top: .5rem; font-weight: 700; color: var(--navy); }

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1rem; }
@media (min-width: 56rem) { .steps.steps-4 { grid-template-columns: repeat(4, 1fr); } }
.steps > li {
  counter-increment: step; position: relative; margin: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.1rem 4.2rem;
}
.section-alt .steps > li { background: var(--bg); }
.steps > li::before {
  content: counter(step); position: absolute; left: 1.1rem; top: 1.1rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700;
  display: grid; place-items: center; font-family: var(--font-serif);
}
html[data-theme="dark"] .steps > li::before { color: #11161f; }
.steps h3 { margin: 0 0 .35rem; font-size: 1.15rem; }
.steps p { margin: 0; }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: ""; position: absolute; left: .25rem; top: .5em;
  width: .9rem; height: .5rem; border-left: 3px solid var(--gold-text); border-bottom: 3px solid var(--gold-text);
  transform: rotate(-45deg);
}

/* ---------- Hinweise ---------- */
.note, .tip, .warn, .template-banner {
  border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 1.5rem 0;
  border: 1px solid var(--border); border-left-width: 6px;
}
.note { background: var(--navy-soft); border-left-color: var(--navy); }
.tip { background: var(--gold-soft); border-left-color: var(--gold); }
.warn { background: var(--warn-bg); border-left-color: var(--warn-border); }
.note > :last-child, .tip > :last-child, .warn > :last-child, .template-banner > :last-child { margin-bottom: 0; }
.note-title { display: block; font-weight: 700; margin-bottom: .25rem; color: var(--navy); }
.tip .note-title { color: var(--gold-text); }

.template-banner { background: var(--warn-bg); border: 2px dashed var(--warn-border); border-left-width: 8px; }
.template-banner strong { font-size: 1.1rem; }
mark.ph {
  background: var(--warn-bg); color: inherit; padding: 0 .25em;
  border: 1px dashed var(--warn-border); border-radius: .25rem; font-family: ui-monospace, Consolas, monospace; font-size: .95em;
}

.legal-status { font-size: .95rem; color: var(--text-muted); }

/* ---------- Layout mit Seitennavigation (Leistungsseiten) ---------- */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-top: 2.5rem; padding-bottom: 3.5rem; }
@media (min-width: 62rem) { .with-aside { grid-template-columns: minmax(0, 1fr) 18rem; } }
.with-aside > article h2:first-child { margin-top: 0; }
.aside-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; margin-bottom: 1.25rem;
}
@media (min-width: 62rem) { .aside-sticky { position: sticky; top: 6rem; } }
.aside-box h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
.aside-box ul { list-style: none; padding: 0; margin: 0; }
.aside-box li { margin: 0; }
.aside-box li a { display: block; padding: .45rem .5rem; border-radius: .4rem; text-decoration: none; }
.aside-box li a:hover { background: var(--navy-soft); }
.aside-box li a[aria-current="page"] { background: var(--navy-soft); font-weight: 700; box-shadow: inset 3px 0 0 var(--gold); }
.aside-box p { font-size: 1rem; }

/* ---------- Tabellen ---------- */
.table-wrap { position: relative; overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); }
.table-wrap:focus-visible { outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; background: var(--surface); margin: 0; font-size: 1.02rem; }
caption { text-align: left; font-weight: 700; padding: .75rem 1rem; color: var(--navy); caption-side: top; }
th, td { padding: .7rem 1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--border); }
thead th { background: var(--navy-soft); color: var(--navy); border-top: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.num small { display: block; white-space: normal; max-width: 12rem; margin-left: auto; }
td.num[colspan] { white-space: normal; text-align: center; }
table { min-width: 34rem; }
.table-wrap td, .table-wrap th { hyphens: manual; -webkit-hyphens: manual; }

/* ---------- FAQ ---------- */
.faq-group { margin-bottom: 2.25rem; }
details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: .75rem;
}
summary {
  cursor: pointer; padding: 1rem 3rem 1rem 1.25rem; font-weight: 700; color: var(--navy);
  list-style: none; position: relative; font-size: 1.08rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: .75rem;
  font-size: 1.5rem; line-height: 1.2; color: var(--gold-text); font-weight: 400;
}
details[open] summary::after { content: "–"; }
details[open] summary { border-bottom: 1px solid var(--border); }
.details-body { padding: 1rem 1.25rem .25rem; }

.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 2rem; }
.toc h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
.toc ul { margin: 0; columns: 2 14rem; }

dl.glossary dt { font-weight: 700; color: var(--navy); margin-top: .9rem; }
dl.glossary dd { margin: .15rem 0 0 0; }

/* ---------- Formular ---------- */
.form { display: grid; gap: 1.1rem; max-width: 40rem; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: .35rem; }
.field .hint { display: block; font-weight: 400; font-size: .95rem; color: var(--text-muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 2px solid var(--field-border); border-radius: .55rem; padding: .7rem .8rem; min-height: 3rem;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--navy); }
textarea { min-height: 9rem; resize: vertical; }
.checkbox { display: flex; gap: .75rem; align-items: flex-start; }
.checkbox input { width: 1.4rem; height: 1.4rem; margin-top: .2rem; flex: none; accent-color: var(--navy); }
.checkbox label { font-weight: 400; }
.required { color: var(--warn-border); }
.form-status { font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--focus); }
fieldset { border: 0; padding: 0; margin: 0; }

.contact-cards .card { gap: .25rem; }
.contact-big { font-size: 1.3rem; font-weight: 700; word-break: break-word; }

/* ---------- Über mich ---------- */
.portrait {
  width: 100%; max-width: 18rem; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-dark) 100%);
  display: grid; place-items: center; color: var(--gold); font-family: var(--font-serif);
  font-size: 4.5rem; font-weight: 700; letter-spacing: .05em;
}
html[data-theme="dark"] .portrait { background: linear-gradient(150deg, #2a3d63, #1c2840); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (min-width: 56rem) { .about-grid { grid-template-columns: 18rem 1fr; gap: 3rem; } }

.book-band { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .book-band { grid-template-columns: 14rem 1fr; } }
.book-cover {
  width: 12rem; aspect-ratio: 2 / 3; border-radius: .35rem .75rem .75rem .35rem;
  background: var(--navy); color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.2rem 1rem; box-shadow: 6px 8px 0 var(--gold-soft), var(--shadow); border-left: 8px solid var(--gold);
}
html[data-theme="dark"] .book-cover { background: #22355c; }
.book-cover .bc-title { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 700; color: #fff; }
.book-cover .bc-sub { font-size: .8rem; color: #e6d6b8; line-height: 1.35; }
.book-cover svg { width: 3rem; height: 3rem; color: var(--gold); }

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--navy); color: #fff; padding: 3rem 0; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { max-width: 42rem; font-size: 1.15rem; }
.cta-band .btn-primary { background: #fff; color: var(--navy); border-color: #fff; }
.cta-band .btn-primary:hover { background: var(--gold-soft); }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.cta-band .btn-secondary:hover { background: rgba(255,255,255,.12); }
.cta-band a:focus-visible { outline-color: #fdba74; }
html[data-theme="dark"] .cta-band { background: #1c2840; border-top: 1px solid var(--border); }
html[data-theme="dark"] .cta-band .btn-primary { color: #11161f; background: var(--navy-dark); border-color: var(--navy-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 2.75rem 0 1.5rem; font-size: 1rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.1rem; margin: 0 0 .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.footer-bottom { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .95rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.disclaimer { color: var(--text-muted); font-size: .95rem; }

/* ---------- Druck ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .btn-row, .skip-link, .aside-box nav { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
  details { border: 0; } details > * { display: block; }
  /* v33: breite Tabellen im Druck nicht abschneiden */
  .table-wrap { overflow: visible !important; }
  .table-wrap table { width: 100% !important; min-width: 0 !important; }
  th, td { overflow-wrap: anywhere; }
}

/* ==========================================================================
   Bürokratie-Motiv: Papier, Stempel, Formulare, Labyrinth
   ========================================================================== */
:root { --stamp: #9b2c1c; --paper: #ffffff; --paper-line: rgba(31, 56, 100, .07); }
html[data-theme="dark"] { --stamp: #f19a85; --paper: #1d2638; --paper-line: rgba(169, 189, 230, .07); }

/* Liniertes Formularpapier als Hintergrund */
.hero-paper, .page-head {
  background-image:
    linear-gradient(90deg, transparent 0 2.5rem, rgba(176, 141, 87, .22) 2.5rem calc(2.5rem + 1px), transparent calc(2.5rem + 1px)),
    repeating-linear-gradient(180deg, transparent 0 31px, var(--paper-line) 31px 32px),
    linear-gradient(160deg, var(--navy-soft) 0%, var(--bg) 70%);
}
.page-head .kicker::before, .hero .kicker::before { content: "§ "; color: var(--gold-text); }

/* Formularstapel */
.paper-stack { position: relative; width: 100%; max-width: 27rem; min-height: 23rem; margin: 0 auto; }
.paper {
  position: absolute; width: 78%; height: 15.5rem; padding: 1rem 1.1rem;
  background: var(--paper); border: 1px solid var(--border); border-radius: .3rem;
  box-shadow: 0 2px 4px rgba(20, 30, 50, .08), 0 10px 24px rgba(20, 30, 50, .10);
  display: flex; flex-direction: column; gap: .55rem; overflow: hidden;
}
.paper-title { font-family: var(--font-serif); font-weight: 700; color: var(--navy); font-size: .98rem; line-height: 1.25; border-bottom: 2px solid var(--navy); padding-bottom: .4rem; }
.paper .ln { display: block; height: .5rem; border-radius: 2px; background: var(--border); }
.paper .ln.s { width: 60%; }
.paper .box { display: flex; align-items: center; gap: .5rem; }
.paper .box::before { content: ""; width: .9rem; height: .9rem; border: 2px solid var(--text-muted); border-radius: 2px; flex: none; }
.paper .box::after { content: ""; height: .45rem; flex: 1; background: var(--border); border-radius: 2px; }
.paper-small { font-size: .74rem; line-height: 1.35; color: var(--text-muted); border-top: 1px dashed var(--border); padding-top: .4rem; }
.p1 { top: 0; left: 0; transform: rotate(-7deg); }
.p2 { top: 1.2rem; left: 20%; transform: rotate(5deg); }
.p3 { top: 3rem; left: 4%; transform: rotate(-2deg); }
.p4 { top: 5.5rem; left: 16%; transform: rotate(3deg); }
.stamp {
  position: absolute; right: 0; bottom: 1.2rem; transform: rotate(-14deg);
  font-family: var(--font-serif); font-weight: 700; font-size: 1.9rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--stamp); border: 4px double var(--stamp); border-radius: .5rem; padding: .15rem .9rem;
  background: rgba(255, 255, 255, .6);
}
html[data-theme="dark"] .stamp { background: rgba(17, 22, 31, .7); }
@media (max-width: 40rem) {
  .paper-stack { min-height: 19rem; }
  .paper { height: 12.5rem; }
  .stamp { font-size: 1.5rem; }
}

/* Akut-Band */
.akut-band { background: var(--warn-bg); border-bottom: 1px solid var(--border); padding: 1.75rem 0; }
.akut-band h2 { font-size: 1.3rem; margin: 0 0 1rem; }
.akut-list { list-style: none; padding: 0; margin: 0; }
.akut-list li { margin: 0; padding-left: 1rem; border-left: 4px solid var(--warn-border); }

/* Gleichung Pflege + Bürokratie = Pflegekratie */
.equation { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .8rem; margin: 0 0 1.75rem; font-family: var(--font-serif); font-size: clamp(1.15rem, 1rem + 1vw, 1.6rem); font-weight: 700; }
.eq-term { padding: .45rem 1rem; border: 2px dashed var(--navy); border-radius: .5rem; color: var(--navy); background: var(--surface); }
.eq-op { color: var(--gold-text); font-size: 1.3em; }
.eq-result { padding: .45rem 1.1rem; border-radius: .5rem; background: var(--navy); color: #fff; box-shadow: 4px 4px 0 var(--gold); }
html[data-theme="dark"] .eq-result { color: #11161f; }
.equation-sm { font-size: 1.1rem; }
.eq-sub { margin: -0.75rem 0 1.75rem; max-width: 46rem; font-family: var(--font-serif); font-size: 1.2rem; font-style: italic; color: var(--navy); }

/* Labyrinth */
.maze-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (min-width: 62rem) { .maze-wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.maze-figure { margin: 0; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.maze-figure figcaption { font-size: .95rem; color: var(--text-muted); margin-top: .5rem; }
.maze { display: block; width: 100%; height: auto; }
.maze-img { display: block; width: 100%; height: auto; border-radius: calc(var(--radius) - .25rem); }
.mz-line { fill: none; stroke: var(--gold); stroke-width: 2.2; opacity: .85; }
.mz-cross { fill: none; stroke: var(--navy); stroke-width: 1.2; stroke-dasharray: 4 5; opacity: .45; }
.mz-node { fill: var(--surface); stroke: var(--navy); stroke-width: 1.5; }
.mz-text { fill: var(--text); font-family: var(--font-sans); font-size: 15px; font-weight: 600; }
.mz-center { fill: var(--navy); }
.mz-center-text { fill: var(--bg); font-family: var(--font-serif); font-size: 17px; font-weight: 700; }
.stellen { display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem 1.5rem; margin: 0 0 1.25rem; }
@media (min-width: 40rem) { .stellen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stellen > div { padding: .55rem 0; border-bottom: 1px solid var(--border); }
.stellen dt { font-weight: 700; color: var(--navy); }
.stellen dd { margin: 0; font-size: 1rem; color: var(--text-muted); }
.stellen dt { display: flex; align-items: center; gap: .75rem; margin-bottom: .25rem; }
.stelle-ic { flex: none; width: 3rem; height: 3rem; border-radius: 50%; }
.stellen dt > span { min-width: 0; hyphens: auto; overflow-wrap: break-word; }

/* Zahlen */
.stats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; }
.stats li { margin: 0; background: var(--surface); border: 1px solid var(--border); border-top: 5px solid var(--gold); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; }
.stat-num { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-label { font-size: 1rem; color: var(--text-muted); }

/* Amtsdeutsch → Klartext */
.klartext table { min-width: 0; }
.klartext th[scope="row"] { width: 38%; }
.amts { font-family: ui-monospace, Consolas, "Courier New", monospace; font-weight: 600; font-size: .95rem; color: var(--text); background: var(--navy-soft); padding: .1rem .35rem; border-radius: .25rem; }
.klartext td::before { content: "→ "; color: var(--gold-text); font-weight: 700; }

/* Papierkram-Check auf den Leistungsseiten */
.file-check {
  position: relative; margin: 0 0 2.5rem; padding: 2.2rem 1.4rem 1.2rem;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, var(--paper-line) 31px 32px);
  border: 1px solid var(--border); border-left: 6px solid var(--gold); border-radius: .3rem var(--radius) var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.file-tab {
  position: absolute; top: -1px; left: -6px; transform: translateY(-100%);
  background: var(--gold); color: #1c2430; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .8rem; border-radius: .4rem .4rem 0 0;
}
.file-check h2 { font-size: 1.3rem; margin: 0 0 1rem; }
.file-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 1.5rem; }
@media (min-width: 48rem) { .file-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.file-cols h3 { font-family: var(--font-sans); font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gold-text); margin: 0 0 .4rem; }
.file-cols ul { margin: 0; padding-left: 1.1em; font-size: 1rem; }
.file-foot { margin: 1rem 0 0; font-weight: 700; color: var(--navy); }
.with-aside { padding-top: 3.5rem; }

/* Ortsliste (Ortenau-Seite) */
.orte { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
.orte li { margin: 0; padding: .3rem .8rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-size: 1rem; }
.orte li:last-child { border-style: dashed; color: var(--text-muted); }

/* Preisliste */
.price-card { gap: .2rem; }
.price-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .2rem 1rem; border-bottom: 2px solid var(--navy); padding-bottom: .5rem; margin-bottom: .4rem; }
.price-head h3 { margin: 0; }
.price { margin: 0; font-family: var(--font-serif); font-size: 1.55rem; font-weight: 700; color: var(--navy); white-space: nowrap; }
.price-meta { margin: 0 0 .3rem; font-size: .95rem; font-weight: 700; color: var(--gold-text); text-transform: uppercase; letter-spacing: .04em; }
.price-card .checklist { font-size: 1rem; margin-bottom: 0; }
.price-table table { min-width: 0; }
.price-table td.num { white-space: nowrap; min-width: 0; width: 1%; font-weight: 700; color: var(--navy); vertical-align: top; }
.price-table tbody th { font-weight: 400; vertical-align: top; }
.price-head .price { white-space: nowrap; margin: 0; }
.price-choose { margin-bottom: 0; }

/* Mittlere Breiten: Navigation kompakter */
@media (max-width: 80rem) and (min-width: 62.01rem) {
  .brand-sub { display: none; }
  .main-nav a { padding: .6rem .55rem; font-size: .98rem; }
  .main-nav .nav-cta { margin-left: .2rem; padding: .6rem .8rem; }
}
.ust-note { background: var(--gold-soft); border-left: 6px solid var(--gold); border-radius: var(--radius); padding: .9rem 1.2rem; font-weight: 700; margin: 0 0 2rem; }

/* Änderungen ab 2027 */
.changes-2027 { margin-bottom: 3rem; padding-bottom: 1rem; border-bottom: 2px solid var(--border); }
.lead-small { font-size: 1.12rem; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; line-height: 1.3; letter-spacing: .02em; padding: .15rem .55rem; border-radius: 999px; border: 1.5px solid; vertical-align: .1em; white-space: normal; }
.b-law { background: #e3f1e6; color: #1d5a2c; border-color: #2f7a43; }
.b-bt { background: #fff4d6; color: #6b4a00; border-color: #b7791f; }
.b-draft { background: #f1e8f7; color: #5b2a7a; border-color: #7a4a9a; border-style: dashed; }
html[data-theme="dark"] .b-law { background: #17301e; color: #a7dcb3; border-color: #5aa56d; }
html[data-theme="dark"] .b-bt { background: #2e2612; color: #f0cf7e; border-color: #d4a646; }
html[data-theme="dark"] .b-draft { background: #2a1d33; color: #d9b8ee; border-color: #a77fc4; }
.status-legend { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0; }
.status-legend ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.status-legend li { margin: 0; }
.change-group { margin-top: 2.25rem; }
.change-group h3 { font-size: 1.35rem; border-bottom: 2px solid var(--gold); padding-bottom: .35rem; }
.change-list { list-style: none; padding: 0; display: grid; gap: .75rem; }
.change-list li { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: .6rem; padding: .8rem 1rem; }
.change-list li > .badge { margin-bottom: .35rem; }
.change-list li > span:not(.badge) { display: block; }
details.sources summary { font-size: 1rem; }
.badge { border-radius: .45rem; max-width: 100%; }
td .badge { display: block; width: fit-content; margin-bottom: .3rem; }
[id] { scroll-margin-top: 6rem; }

/* Hinweis „Seitlich wischen“ bei Tabellen (nur auf schmalen Bildschirmen) */
.swipe-hint { display: none; margin: 0 0 .4rem; font-size: .92rem; font-weight: 700; color: var(--gold-text); }
@media (max-width: 48rem) { .swipe-hint { display: block; } }
.form-buttons { margin-top: 0; }
h1 { overflow-wrap: break-word; }
.portrait-photo { display: block; width: 100%; max-width: 18rem; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }

/* Kontaktformular: Spam-Falle unsichtbar */
.form .hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status.is-ok { color: var(--navy); }
button[disabled] { opacity: .6; cursor: progress; }
/* Gesetze im Überblick: Spaltenbreiten */
.tbl-gesetze { table-layout: fixed; min-width: 40rem; }
.tbl-gesetze .c-gesetz { width: 22%; }
.tbl-gesetze .c-inhalt { width: 48%; }
.tbl-gesetze .c-stand { width: 30%; }
.tbl-gesetze th[scope="row"] { hyphens: auto; overflow-wrap: anywhere; }
html[data-theme="dark"] { color-scheme: dark; }
/* Umschalter Hell/Dunkel */
.theme-toggle {
  display: none; align-items: center; gap: .45rem;
  font: inherit; font-weight: 700; font-size: .95rem;
  color: var(--navy); background: transparent;
  border: 2px solid var(--border); border-radius: .6rem;
  padding: .45rem .75rem; min-height: 2.9rem; cursor: pointer; order: 3;
}
.js .theme-toggle { display: inline-flex; }
.theme-toggle:hover { border-color: var(--navy); }
.theme-toggle svg { width: 1.2rem; height: 1.2rem; flex: none; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.main-nav { order: 2; }
@media (max-width: 62rem) {
  .header-inner { gap: .5rem; }
  .theme-toggle { order: 1; margin-left: auto; padding: .45rem .6rem; }
  .brand svg { width: 2.3rem; height: 2.3rem; }
  .nav-toggle { order: 2; }
  .main-nav { order: 4; }
  .theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 23rem) {
  .brand-name { font-size: 1.2rem; }
  .brand { gap: .45rem; }
  .nav-toggle { padding: .5rem .65rem; }
  .nav-toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.cta-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin-top: 2rem; padding: 1.25rem 1.5rem; background: var(--navy-soft); border: 1px solid var(--border); border-left: 6px solid var(--gold); border-radius: var(--radius); }
.cta-inline p { margin: 0; font-size: 1.1rem; }

/* =====================================================================
   Gestaltungsebene „Konstellation“ (November 2026)
   Bildsprache der Zuständigkeits-Grafik: Nachtblau, Kreisbahnen, Stationen
   mit leuchtendem Ring. Schriften: Source Serif 4 / Source Sans 3 (lokal,
   wie Flyer und Preisliste).
   ===================================================================== */
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); font-weight: 700 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-700-normal.woff2") format("woff2"); font-weight: 700 900; font-style: normal; font-display: swap; }
/* v30: metrik-angepasste Ersatzschriften – verhindern Layout-Verschiebung beim Laden der Webschriften
   (berechnet mit font_fallback_v30.py; Breiten gewichtet nach dem Seitentext) */
@font-face { font-family: "Source Sans 3 Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"), local("Arimo"), local("Helvetica"); font-weight: 400; font-style: normal; unicode-range: U+20-7E, U+A0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+300-301, U+303-304, U+308-309, U+323, U+329, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF; size-adjust: 91.65%; ascent-override: 111.73%; descent-override: 43.64%; line-gap-override: 0.00%; }
@font-face { font-family: "Source Sans 3 Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Arimo Bold"), local("Arimo-Bold"), local("Helvetica Bold"), local("Helvetica-Bold"); font-weight: 500 600; font-style: normal; unicode-range: U+20-7E, U+A0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+300-301, U+303-304, U+308-309, U+323, U+329, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF; size-adjust: 88.50%; ascent-override: 115.71%; descent-override: 45.20%; line-gap-override: 0.00%; }
@font-face { font-family: "Source Sans 3 Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Arimo Bold"), local("Arimo-Bold"), local("Helvetica Bold"), local("Helvetica-Bold"); font-weight: 700 900; font-style: normal; unicode-range: U+20-7E, U+A0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+300-301, U+303-304, U+308-309, U+323, U+329, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF; size-adjust: 90.91%; ascent-override: 112.64%; descent-override: 44.00%; line-gap-override: 0.00%; }
@font-face { font-family: "Source Sans 3 Fallback Roboto"; src: local("Roboto"), local("Roboto-Regular"); font-weight: 400; font-style: normal; unicode-range: U+20-7E, U+A0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+300-301, U+303-304, U+308-309, U+323, U+329, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF; size-adjust: 92.84%; ascent-override: 110.30%; descent-override: 43.09%; line-gap-override: 0.00%; }
@font-face { font-family: "Source Sans 3 Fallback Roboto"; src: local("Roboto Bold"), local("Roboto-Bold"); font-weight: 500 600; font-style: normal; unicode-range: U+20-7E, U+A0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+300-301, U+303-304, U+308-309, U+323, U+329, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF; size-adjust: 93.91%; ascent-override: 109.04%; descent-override: 42.59%; line-gap-override: 0.00%; }
@font-face { font-family: "Source Sans 3 Fallback Roboto"; src: local("Roboto Bold"), local("Roboto-Bold"); font-weight: 700 900; font-style: normal; unicode-range: U+20-7E, U+A0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+300-301, U+303-304, U+308-309, U+323, U+329, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF; size-adjust: 96.47%; ascent-override: 106.15%; descent-override: 41.47%; line-gap-override: 0.00%; }
@font-face { font-family: "Source Serif 4 Fallback"; src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Liberation Serif Bold"), local("LiberationSerif-Bold"), local("Tinos Bold"), local("Tinos-Bold"), local("Times Bold"), local("Times-Bold"); font-weight: 400 600; font-style: normal; unicode-range: U+20-7E, U+A0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+300-301, U+303-304, U+308-309, U+323, U+329, U+2002, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; size-adjust: 110.98%; ascent-override: 93.35%; descent-override: 30.19%; line-gap-override: 0.00%; }
@font-face { font-family: "Source Serif 4 Fallback"; src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Liberation Serif Bold"), local("LiberationSerif-Bold"), local("Tinos Bold"), local("Tinos-Bold"), local("Times Bold"), local("Times-Bold"); font-weight: 700 900; font-style: normal; unicode-range: U+20-7E, U+A0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+300-301, U+303-304, U+308-309, U+323, U+329, U+2002, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; size-adjust: 112.61%; ascent-override: 92.00%; descent-override: 29.75%; line-gap-override: 0.00%; }

:root {
  --font-sans: "Source Sans 3", "Source Sans 3 Fallback", "Source Sans 3 Fallback Roboto", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Source Serif 4", "Source Serif 4 Fallback", Georgia, "Times New Roman", serif;
  --night: #1b2740;
  --night-2: #26395f;
  --on-night: #dbe3f2;
  --on-night-muted: #b4c1d9;
  --ring-gold: #d9b26f;
  --ring-teal: #5cc3cc;
  --ring-blue: #8fa9e0;
  --orbits:
    radial-gradient(circle at 86% 55%, rgba(255,255,255,.10) 0, transparent 20rem),
    radial-gradient(circle at 86% 55%, transparent 0 9.9rem, rgba(217,178,111,.42) 10rem, transparent 10.2rem),
    radial-gradient(circle at 86% 55%, transparent 0 15.9rem, rgba(92,195,204,.32) 16rem, transparent 16.2rem),
    radial-gradient(circle at 86% 55%, transparent 0 22.9rem, rgba(143,169,224,.22) 23rem, transparent 23.2rem),
    radial-gradient(circle at 86% 55%, transparent 0 30.9rem, rgba(217,178,111,.14) 31rem, transparent 31.2rem),
    linear-gradient(155deg, var(--night-2) 0%, var(--night) 62%);
}
body { font-family: var(--font-sans); }
h1, h2, h3 { letter-spacing: -.005em; }

/* Kicker: ruhig, ohne Versalien */
.kicker { text-transform: none; letter-spacing: 0; font-size: 1.02rem; font-weight: 600; }

/* --- Nachtbänder: Seitenkopf der Unterseiten, Aufruf, Fußzeile --- */
.page-head, .cta-band, .site-footer {
  background-color: var(--night);
  background-image: var(--orbits);
  color: var(--on-night);
  border: 0;
}
.page-head { padding: 2.75rem 0 3rem; }
.page-head h1 { color: #fff; }
.page-head .lead { color: var(--on-night); }
.page-head .kicker, .page-head .kicker::before { color: var(--ring-gold); }
.page-head a { color: #fff; }
.page-head a:focus-visible, .site-footer a:focus-visible { outline-color: #fdba74; }

.cta-band { padding: 3.5rem 0; }
.cta-band h2 { color: #fff; }

.site-footer { padding: 3rem 0 1.75rem; background-image:
    radial-gradient(circle at 6% 10%, transparent 0 11.9rem, rgba(217,178,111,.25) 12rem, transparent 12.2rem),
    radial-gradient(circle at 6% 10%, transparent 0 18.9rem, rgba(92,195,204,.18) 19rem, transparent 19.2rem),
    linear-gradient(180deg, var(--night) 0%, #16203a 100%); }
.site-footer h2 { color: #fff; }
.site-footer p, .site-footer li, .site-footer span, .site-footer small { color: var(--on-night); }
.site-footer .disclaimer { color: var(--on-night-muted); }
.site-footer a { color: #fff; text-decoration-color: rgba(217,178,111,.7); }
.site-footer a:hover { color: var(--ring-gold); }
.site-footer hr, .site-footer .footer-bottom { border-color: rgba(219,227,242,.18); }
.cta-band + .site-footer { box-shadow: inset 0 1px 0 rgba(219,227,242,.14); }

/* --- Stationen: Symbole, Zahlen und Schritte als leuchtende Kreise --- */
.card-icon {
  width: 3.6rem; height: 3.6rem; padding: .8rem; border-radius: 50%;
  color: #f3dcae;
  background: radial-gradient(circle at 35% 30%, #34507f 0%, var(--night) 72%);
  border: 2px solid var(--ring-gold);
  box-shadow: 0 0 0 4px rgba(217,178,111,.14), 0 0 18px rgba(217,178,111,.35);
  margin-bottom: 1rem;
}
.grid > .card:nth-child(3n+2) .card-icon { color: #c8f1f4; border-color: var(--ring-teal); box-shadow: 0 0 0 4px rgba(92,195,204,.14), 0 0 18px rgba(92,195,204,.35); }
.grid > .card:nth-child(3n) .card-icon { color: #dfe7fb; border-color: var(--ring-blue); box-shadow: 0 0 0 4px rgba(143,169,224,.14), 0 0 18px rgba(143,169,224,.35); }

.card { box-shadow: none; border-radius: 1rem; }
.card .more { color: var(--navy); }

.stats li { border-top: 1px solid var(--border); border-radius: 1rem; align-items: flex-start; gap: .75rem; }
.stat-num {
  display: grid; place-items: center; width: 4.4rem; height: 4.4rem; border-radius: 50%;
  font-size: 1.75rem; color: #fff;
  background: radial-gradient(circle at 35% 30%, #34507f 0%, var(--night) 72%);
  border: 2px solid var(--ring-gold);
  box-shadow: 0 0 0 4px rgba(217,178,111,.14), 0 0 18px rgba(217,178,111,.3);
}
.stats li:nth-child(3n+2) .stat-num { border-color: var(--ring-teal); box-shadow: 0 0 0 4px rgba(92,195,204,.14), 0 0 18px rgba(92,195,204,.3); }
.stats li:nth-child(3n) .stat-num { border-color: var(--ring-blue); box-shadow: 0 0 0 4px rgba(143,169,224,.14), 0 0 18px rgba(143,169,224,.3); }

.steps > li { border-radius: 1rem; padding-left: 4.8rem; }
.steps > li::before, html[data-theme="dark"] .steps > li::before {
  width: 2.7rem; height: 2.7rem; left: 1.1rem; top: 1.05rem; color: #fff;
  background: radial-gradient(circle at 35% 30%, #34507f 0%, var(--night) 72%);
  border: 2px solid var(--ring-gold);
  box-shadow: 0 0 0 3px rgba(217,178,111,.14), 0 0 12px rgba(217,178,111,.3);
}

/* Dunkelmodus: Nachtbänder etwas heller absetzen */
html[data-theme="dark"] .page-head, html[data-theme="dark"] .cta-band { --night: #1d2a45; --night-2: #2a3f68; }
html[data-theme="dark"] .card-icon, html[data-theme="dark"] .stat-num { background: radial-gradient(circle at 35% 30%, #3a5788 0%, #16203a 72%); }

@media (forced-colors: active) {
  .page-head, .cta-band, .site-footer { background-image: none; }
  .card-icon, .stat-num, .steps > li::before { box-shadow: none; }
}
@media print {
  .page-head, .cta-band, .site-footer { background: none; color: #000; }
  .page-head h1, .site-footer h2, .site-footer a, .site-footer p, .site-footer li { color: #000; }
}
/* Schritte: Kreis oben, Verbindungslinie zwischen den Stationen */
.steps > li { padding: 4.4rem 1.3rem 1.25rem; }
.steps > li::before, html[data-theme="dark"] .steps > li::before { left: 1.3rem; top: 1.15rem; }
@media (min-width: 56rem) {
  .steps.steps-4 > li:not(:last-child)::after {
    content: ""; position: absolute; top: 2.5rem; left: 4.6rem; right: -1.05rem;
    border-top: 2px dashed rgba(176, 141, 87, .55);
  }
}
section[aria-labelledby="situationen-titel"] .container > p { max-width: 48rem; }
/* Etiketten ohne Versalien (Ausnahme: der Stempel „Klartext“) */
.file-cols h3, .price-meta { text-transform: none; letter-spacing: 0; font-size: 1rem; }
.file-tab { text-transform: none; letter-spacing: .01em; font-size: .9rem; }

/* --- Hero mit Netzwerk-Schaubild --- */
.hero-network { position: relative; margin: 0; }
.hero-network img { display: block; width: 100%; height: auto; border-radius: 1.1rem;
  box-shadow: 0 18px 40px -18px rgba(27, 39, 64, .55), 0 0 0 1px rgba(27, 39, 64, .08); }
.hero-network .stamp { right: -.6rem; bottom: 2.6rem; background: rgba(255, 255, 255, .88); font-size: 1.55rem; }
html[data-theme="dark"] .hero-network .stamp { background: rgba(17, 22, 31, .85); }
.hero-network figcaption { margin-top: .7rem; font-size: .98rem; }
.hero-network figcaption a { color: var(--navy); }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: 1.1fr 1fr; } }

/* --- Vertrauensleiste im Hero --- */
.trust { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem .6rem; }
.trust li { margin: 0; display: inline-flex; align-items: center; gap: .5rem; font-size: .98rem; font-weight: 600; color: var(--navy);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .35rem .85rem .35rem .55rem; }
.trust li::before { content: ""; flex: none; width: .8rem; height: .8rem; border-radius: 50%;
  background: var(--night); border: 2px solid var(--ring-gold); box-shadow: 0 0 6px rgba(217, 178, 111, .5); }
.trust li:nth-child(2)::before { border-color: var(--ring-teal); box-shadow: 0 0 6px rgba(92, 195, 204, .5); }
.trust li:nth-child(3)::before { border-color: var(--ring-blue); box-shadow: 0 0 6px rgba(143, 169, 224, .5); }

/* --- Akut-Kasten mit Stations-Symbolen --- */
.akut-list li { display: flex; gap: .9rem; align-items: flex-start; padding-left: 0; border-left: 0; }
.akut-ic { flex: none; width: 3.2rem; height: 3.2rem; border-radius: 50%; }

/* --- Amtsdeutsch → Klartext als Vorher-Nachher-Paare --- */
.klartext-pairs { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
@media (min-width: 62rem) { .klartext-pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.klartext-pairs li { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; background: var(--surface); }
@media (min-width: 40rem) { .klartext-pairs li { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }
.klartext-pairs p { margin: 0; padding: 1rem 1.2rem; }
.klartext-pairs .amt { background: var(--navy-soft); border-left: 5px solid #8a96ab; }
.klartext-pairs .amt strong { display: block; font-family: var(--font-serif); font-size: 1.12rem; color: var(--navy); hyphens: auto; overflow-wrap: break-word; }
.klartext-pairs .klar { border-left: 5px solid var(--gold); }
.pair-label { display: block; font-size: .88rem; font-weight: 600; color: var(--text-muted); margin-bottom: .25rem; }
.klartext-pairs .klar .pair-label { color: var(--gold-text); }

/* --- Zuständigkeiten: Liste über die volle Breite --- */
@media (min-width: 62rem) { .stellen.stellen-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hero-network .stamp { right: auto; left: -.7rem; bottom: -.9rem; }
.hero-network figcaption { margin-top: 1.9rem; text-align: right; }
@media (max-width: 40rem) {
  .hero-network .stamp { font-size: 1.1rem; left: -.3rem; bottom: -.8rem; border-width: 3px; }
  .hero-network figcaption { margin-top: 1.6rem; }
}
.hero-network .stamp { left: -.9rem; top: -1.1rem; bottom: auto; }
.hero-network figcaption { margin-top: .8rem; }
@media (max-width: 40rem) { .hero-network .stamp { left: -.2rem; top: -.9rem; } .hero-network figcaption { margin-top: .7rem; } }

/* --- Themen-Symbole --- */
.card-theme { display: block; width: 4.25rem; height: 4.25rem; border-radius: 50%; margin-bottom: .9rem; }
[data-ic] { display: flex; align-items: center; gap: .75rem; }
[data-ic] > span { min-width: 0; }
.h-ic { flex: none; width: 3rem; height: 3rem; border-radius: 50%; }
h3[data-ic] .h-ic { width: 2.5rem; height: 2.5rem; }
.page-head .container { position: relative; }
.head-ic { display: block; width: 3.5rem; height: 3.5rem; border-radius: 50%; margin-bottom: .9rem; }
@media (min-width: 56rem) {
  .page-head .head-ic { position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%); width: 8rem; height: 8rem; margin: 0;
    filter: drop-shadow(0 0 22px rgba(92, 195, 204, .25)); }
  .page-head:has(.head-ic) h1, .page-head:has(.head-ic) .lead { max-width: calc(100% - 11rem); }
}
@media print { .head-ic, .h-ic, .card-theme { display: none; } }

/* --- Emblem und Illustrationen --- */
.name-intro, .klartext-intro { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 56rem) {
  .name-intro { grid-template-columns: minmax(0, 1fr) 18rem; gap: 3rem; }
  .klartext-intro { grid-template-columns: minmax(0, 1fr) 24rem; gap: 3rem; }
}
.emblem { display: block; width: 100%; max-width: 18rem; height: auto; margin: 0 auto; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(217, 178, 111, .25), 0 18px 40px -16px rgba(27, 39, 64, .6); }
.klartext-illu { display: block; width: 100%; height: auto; border-radius: 1.1rem;
  box-shadow: 0 18px 40px -18px rgba(27, 39, 64, .55); }
.emblem-sm { float: right; width: 7rem; height: 7rem; border-radius: 50%; margin: 0 0 1rem 1.25rem; }
@media (max-width: 40rem) { .emblem { max-width: 12rem; } .emblem-sm { width: 5rem; height: 5rem; } }
@media print { .emblem, .emblem-sm, .klartext-illu { display: none; } }

/* ---------- Lesbarkeit langer Seiten (Nov. 2026) ---------- */
.card h2.card-h, .card > h2 { margin-top: 0; font-size: 1.22rem; }
.card-link h2 a { text-decoration: none; }
.card-link h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.rat-teaser { margin-bottom: 2rem; }

.glance { background: var(--navy-soft); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 1rem 1.25rem .4rem; margin: 0 0 1.25rem; }
.glance .glance-title { font-size: 1.15rem; margin: 0 0 .5rem; }
.glance ul { margin: 0 0 .6rem; padding-left: 1.2rem; }
.glance li { margin-bottom: .35rem; }

.toc-page { padding: .85rem 1.25rem; margin-bottom: 1.75rem; }
.toc-page .toc-title { font-weight: 700; color: var(--navy); margin: 0 0 .35rem; font-size: 1rem; }
.toc-page ul { padding-left: 1.1rem; }
.toc-page li { margin-bottom: .25rem; break-inside: avoid; }

details.change-details { margin-top: 1rem; }
details.change-details > summary { font-family: var(--font-serif); font-size: 1.22rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; }
details.change-details .cg-count { font-family: var(--font-sans, inherit); font-size: .9rem; font-weight: 400; color: var(--text-muted); }
details.change-details .details-body > p:first-child { color: var(--text-muted); }

.klartext-intro-sm { margin-bottom: 1rem; }
@media (min-width: 56rem) { .klartext-intro.klartext-intro-sm { grid-template-columns: minmax(0, 1fr) 14rem; } }
@media (max-width: 40rem) { .klartext-intro-sm .klartext-illu { max-width: 12rem; margin: 0 auto; display: block; } }

.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; width: 2.9rem; height: 2.9rem; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--navy); color: #fff; text-decoration: none; font-size: 1.35rem; font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,.18); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover, .to-top:focus-visible { background: var(--gold); color: #11161f; }
html:not(.js) .to-top { display: none; }
html[data-theme="dark"] .to-top { background: var(--gold); color: #11161f; }
@media print { .to-top, .toc-page { display: none; } }

@media (max-width: 40rem) {
  .section { padding: 2.25rem 0; }
  .page-head { padding-top: 1.75rem; padding-bottom: 1.75rem; }
  .card { padding: 1.1rem 1.15rem; }
  .file-check { padding: 1rem; }
  .toc-page ul { columns: 1; }
}
details.warn-details { background: var(--warn-bg); border: 1px solid var(--border); border-left: 6px solid var(--warn-border); margin: 1.25rem 0; }
details.warn-details > summary { color: inherit; }
details.warn-details .cg-count { font-weight: 400; font-size: .92rem; color: var(--text-muted); }
details.mini-details { margin: .75rem 0 1rem; }
details.mini-details > summary { font-size: 1.02rem; padding-top: .75rem; padding-bottom: .75rem; }
details.mini-details > summary::after { top: .45rem; }
.card details.mini-details { background: var(--bg); }
.glance + .file-check, .toc-page + .file-check { margin-top: 2.25rem; }
dl.code-list { display: grid; gap: .4rem; margin: .5rem 0 1.25rem; }
dl.code-list > div { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); gap: .75rem; align-items: baseline; }
dl.code-list dt { font-family: ui-monospace, Consolas, monospace; font-weight: 700; color: var(--navy); background: var(--navy-soft); border-radius: .35rem; padding: .1rem .5rem; text-align: center; }
dl.code-list dd { margin: 0; }
dl.code-list-wide > div { grid-template-columns: 6.5rem minmax(0, 1fr); }
dl.code-list-wide dt { font-family: inherit; white-space: nowrap; }
p.example, div.example { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: .75rem 1rem; }
dl.form-steps { display: grid; gap: .75rem; margin: .5rem 0 1.5rem; counter-reset: fstep; }
dl.form-steps > div { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: .8rem 1rem; }
dl.form-steps dt { font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
dl.form-steps dt::before { counter-increment: fstep; content: "Stufe " counter(fstep) ": "; color: var(--gold-text); }
dl.form-steps dd { margin: 0; }
/* Code-Listen: Beträge und Codes nie umbrechen */
dl.code-list dt { white-space: nowrap; }
dl.code-list.code-list-wide > div { grid-template-columns: max-content minmax(0, 1fr); }
dl.code-list.code-list-wide dt { font-family: inherit; min-width: 6.5rem; }
.theme-label { white-space: nowrap; }
@media (min-width: 62.01rem) and (max-width: 82rem) {
  .theme-toggle .theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.glance p.glance-title { font-family: var(--font-serif); font-weight: 700; color: var(--navy); font-size: 1.15rem; margin: 0 0 .5rem; }
th[scope="row"] small { display: block; font-weight: 400; color: var(--text-muted); }
.change-details h3.sub-h { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.hosting-badge { display: block; width: 7.5rem; height: auto; background: #fff; border-radius: .4rem; padding: .25rem .4rem; }
.footer-bottom { align-items: center; }

/* Breite Karte quer unter einer Kartenreihe (z. B. Pflegegrad-Rechner im Ratgeber) */
.card-wide { grid-column: 1 / -1; }
@media (min-width: 40rem) {
  .card-wide { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.5rem; align-items: start; }
  .card-wide .card-theme { grid-row: 1 / span 3; margin-bottom: 0; }
  .card-wide > :not(.card-theme) { grid-column: 2; }
}

/* --- Sicherheitscode im Kontaktformular --- */
.sc-box { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin: .5rem 0 .75rem; }
.sc-bild { display: block; max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; background: #fbf8ef; }
.sc-field input#sc-eingabe { max-width: 12rem; font-size: 1.35rem; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.sc-field .hint a { white-space: nowrap; }
.sc-noscript { margin-top: .5rem; font-weight: 600; }

/* --- Umsetzungsplan 12.11.2026: Stand-Badge, Passt dazu, Zeitleiste, Änderungen, Aktualitäts-Box --- */
.stand-badge { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin: .9rem 0 0; padding: .3rem .75rem; border: 1.5px solid var(--gold); border-radius: 999px; background: var(--surface); color: var(--text); font-size: .92rem; line-height: 1.4; }
.stand-badge .stand-label { font-weight: 700; color: var(--gold-text); text-transform: uppercase; letter-spacing: .04em; font-size: .8rem; }
.stand-badge time { font-weight: 700; }
.stand-badge .stand-note { color: var(--text-muted); }
.related { padding: 2rem 0; border-top: 1px solid var(--border); }
.related h2 { margin: 0 0 1rem; font-size: 1.35rem; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.related li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; }
.related li a { font-weight: 700; display: block; margin-bottom: .2rem; }
.related li span { color: var(--text-muted); font-size: .95rem; }
.timeline { list-style: none; margin: 1rem 0 1.5rem; padding: 0 0 0 1.4rem; border-left: 3px solid var(--border); }
.timeline li { position: relative; margin: 0 0 1rem; padding-left: .4rem; }
.timeline li::before { content: ""; position: absolute; left: -1.95rem; top: .35rem; width: .95rem; height: .95rem; border-radius: 50%; background: var(--surface); border: 3px solid var(--navy); }
.timeline li.is-done::before { background: var(--navy); }
.timeline .tl-date { display: block; font-weight: 700; }
.timeline .badge { margin-left: .3rem; }
.changelog { border: 1.5px solid var(--gold); background: var(--gold-soft); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.25rem 0; }
.changelog h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
.changelog ul { margin: 0; padding-left: 1.2rem; }
.changelog time { font-weight: 700; margin-right: .35rem; }
.update-box { border: 1.5px solid var(--gold); background: var(--gold-soft); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.update-box h2 { font-size: 1.25rem; margin: 0 0 .4rem; }
.update-box p { margin: 0; }
.b-rec { background: #e6f0fa; color: #1d4a78; border-color: #3d6fa3; }
html[data-theme="dark"] .b-rec { background: #172638; color: #b7d3f2; border-color: #6c9bd0; }
@media print { .related, .stand-badge { break-inside: avoid; } }
.az-list { list-style: none; margin: .5rem 0 2rem; padding: 0; display: grid; gap: .4rem 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(13rem, 100%), 1fr)); }
.az-list a { font-weight: 600; }
.req-text { font-weight: 400; font-size: .9em; color: var(--text-muted); }
.sc-frage { font-size: 1.3rem; font-weight: 700; margin: .4rem 0 .6rem; }
.form [aria-invalid="true"] { border-color: var(--focus); box-shadow: 0 0 0 2px var(--focus); }
.sc-bild[hidden], .sc-frage[hidden] { display: none; }
.update-wrap { margin-top: 1.5rem; margin-bottom: 1.5rem; }

/* Startseite: Vertrauenszeile unter den Hero-Buttons */
.hero-trust { margin: .9rem 0 0; font-size: .95rem; color: var(--text-muted); }

/* Über mich: Porträt mit dezentem Rahmen und Fallback, falls das Bild fehlt */
.portrait-frame { margin: 0; width: 100%; max-width: 18rem; aspect-ratio: 4 / 5; border-radius: var(--radius); border: 1px solid var(--border); background: var(--navy-soft) center / 40% no-repeat url("../img/favicon.svg"); overflow: hidden; box-shadow: var(--shadow); }
.portrait-frame .portrait-photo { width: 100%; height: 100%; max-width: none; object-fit: cover; border: 0; border-radius: 0; box-shadow: none; }
@media (max-width: 40rem) { .portrait-frame { max-width: 14rem; margin: 0 auto; } }
/* Preisseite: Varianten in Paketen */
.price-variants { margin: .5rem 0 0; border-top: 1px solid var(--border); }
.price-variants > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.price-variants dt { font-weight: 400; }
.price-variants dd { margin: 0; font-weight: 700; white-space: nowrap; text-align: right; }
.price-more { margin-top: 1.5rem; }
.price-variants dt small { display: block; font-size: .92rem; color: var(--text-muted); margin-top: .15rem; line-height: 1.4; }
.price-scope { margin: .8rem 0 0; font-size: 1rem; color: var(--text-muted); }
.price-table td.num small { font-weight: 400; }

/* ===== Wohnformen: Entscheidungshilfe und Kostenrechner (14.11.2026) ===== */
.wf-tool { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 1rem 0 2rem; }
.wf-tool fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.wf-tool legend { font-weight: 700; margin-bottom: .4rem; padding: 0; }
.wf-frage { margin-top: 1.1rem !important; }
.wf-option { display: flex; align-items: flex-start; gap: .6rem; margin: .35rem 0; }
.wf-option input { width: 1.4rem; height: 1.4rem; margin-top: .15rem; flex: none; accent-color: var(--navy); }
.wf-option label { cursor: pointer; }
.wf-grid { display: grid; gap: .2rem 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .wf-grid { grid-template-columns: 1fr 1fr; } }
.wf-field { margin: 0 0 .7rem; }
.wf-field label { display: block; font-weight: 600; margin-bottom: .25rem; }
.wf-field input, .wf-field select { width: 100%; min-height: 2.9rem; font-size: 1.1rem; }
.wf-field input[aria-invalid="true"] { border-color: var(--warn-border); outline: 2px solid var(--warn-border); }
.wf-error { color: var(--warn-text, #8a2b1a); font-weight: 700; }
.wf-result { border-top: 2px solid var(--navy); margin-top: 1rem; padding-top: .8rem; }
.wf-result h3:focus { outline: none; }
#wf-druck { display: none; }
@media print {
  html.wf-print-kosten body > :not(#wf-druck) { display: none !important; }
  html.wf-print-kosten #wf-druck { display: block; }
  html.wf-print-kosten #wf-druck .btn-row { display: none; }
}
.wf-result .wf-gruppe th { background: var(--navy-soft); color: var(--navy); text-align: left; }
.wf-result .wf-zwischensumme th, .wf-result .wf-zwischensumme td { border-bottom: 2px solid var(--border); }
/* Breite Tabellen auf den Wohnformen-Seiten: am Desktop vollständig sichtbar, am Handy als Karten */
.tbl-stack { table-layout: fixed; min-width: 0; }
.tbl-stack th, .tbl-stack td { padding: .6rem .7rem; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 48rem) {
  .tbl-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tbl-stack, .tbl-stack caption, .tbl-stack tbody, .tbl-stack tr, .tbl-stack th, .tbl-stack td { display: block; width: 100%; }
  .tbl-stack tr { border-top: 2px solid var(--border); }
  .tbl-stack tbody tr:first-child { border-top: 0; }
  .tbl-stack tbody th[scope="row"] { background: var(--navy-soft); color: var(--navy); border-top: 0; }
  .tbl-stack td { border-top: 0; padding-top: .35rem; padding-bottom: .35rem; }
  .tbl-stack td::before { content: attr(data-label); display: block; font-weight: 700; font-size: .9rem; color: var(--text-muted); }
}
.tbl-fit { min-width: 0; }
.tbl-fit th, .tbl-fit td { overflow-wrap: break-word; }
@media (max-width: 48rem) { .tbl-fit th, .tbl-fit td { padding: .6rem .7rem; } }
.tbl-num { min-width: 0; }
@media (max-width: 48rem) {
  .tbl-num { font-size: .9rem; }
  .tbl-num th, .tbl-num td { padding: .5rem .35rem; }
  .tbl-num tbody th[scope="row"] { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
}

.wf-vorschlaege > li { margin-bottom: 1.25rem; }
.wf-vorschlaege > li > p, .wf-vorschlaege > li > ul { margin-top: .4rem; }

/* Links, die in einem neuen Tab öffnen */
a[target="_blank"]::after { content: "\2197" / ""; display: inline-block; margin-left: .15em; font-size: .8em; text-decoration: none; }
.btn[target="_blank"]::after, .file-check a[target="_blank"]::after { content: none; }

/* ---------- Druck: Farben (v7) ----------
   Auf Papier immer dunkle Schrift auf Weiß – auch wenn am Bildschirm der dunkle Hintergrund gewählt ist
   oder ein Bereich (z. B. die Kopfzeile .page-head) am Bildschirm helle Schrift auf dunklem Grund hat. */
@media print {
  html, html[data-theme="dark"] { color-scheme: light; }
  *, *::before, *::after { color: #000 !important; text-shadow: none !important; }
  html, body, main, .section, .page-head, .note, .tip, .warn, .glance, .file-check, .card, .breadcrumb,
  table, th, td, details, fieldset, legend, input, textarea, select { background-color: #fff !important; background-image: none !important; }
  .note, .tip, .warn, .glance, .file-check, fieldset { border-color: #555 !important; }
}

/* v22: Checklisten zum Abhaken (z. B. Krankenhausentlassung) */
.kh-check { list-style: none; padding-left: 0; margin: .25rem 0 1.25rem; }
.kh-check li { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; line-height: 1.5; }
.kh-check input[type="checkbox"] { width: 1.4rem; height: 1.4rem; flex: 0 0 1.4rem; margin-top: .15rem; accent-color: var(--navy); }
.kh-check label { cursor: pointer; }
.tbl-was-gilt th[scope="row"] { min-width: 9rem; }
.tbl-was-gilt td { min-width: 11rem; }
@media print {
  .no-print, .toc-page, .swipe-hint { display: none !important; }
  .kh-check li { break-inside: avoid; padding: .25rem 0; }
  .kh-check input[type="checkbox"] { -webkit-appearance: none; appearance: none; border: 1.5px solid #000; border-radius: 2px; }
  .kh-check input[type="checkbox"]:checked::after { content: "✓"; display: block; text-align: center; line-height: 1.2rem; }
  .table-wrap { overflow: visible !important; }
  table { font-size: 9.5pt; }
}

/* v31: Reformseiten – Drei-Stände-Übersicht, Tabellen als Karten am Handy, gut lesbare Kennzeichnungen */
.badge { font-size: .86rem; }
.reform-3 { margin: 0 0 1.75rem; }
.reform-3 > h2 { margin-top: 0; }
.reform-3 .grid { gap: 1rem; }
.reform-3 .card { padding: 1.1rem 1.15rem 1rem; box-shadow: none; }
.reform-3 .card h3 { font-size: 1.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; }
.reform-3 .card ul { padding-left: 1.15rem; margin: 0 0 .6rem; }
.reform-3 .card li { margin-bottom: .45rem; line-height: 1.5; }
.reform-3 .r3-src { margin-top: auto; font-size: .95rem; color: var(--text-muted); }
.reform-3 .r3-law { border-top: 6px solid #2f7a43; }
.reform-3 .r3-draft { border-top: 6px dashed #7a4a9a; }
.reform-3 .r3-br { border-top: 6px double #3d6fa3; }
.r3-wichtig { margin: 1.1rem 0 0; padding: .9rem 1.1rem; border: 2px solid var(--warn-border); border-left-width: 8px; border-radius: var(--radius); background: var(--warn-bg); font-size: 1.15rem; line-height: 1.5; }
.r3-wichtig strong { display: block; font-size: 1.22rem; }
.br-thema { margin-top: 2rem; }
.br-thema > h3 { border-bottom: 2px solid var(--gold); padding-bottom: .3rem; }
.beispiel { background: var(--gold-soft); border: 1px solid var(--border); border-left: 6px solid var(--gold); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.25rem 0; }
.beispiel > :last-child { margin-bottom: 0; }
.beispiel .note-title { color: var(--gold-text); }
.offen-liste li { margin-bottom: .4rem; }
@media (max-width: 48rem) {
  .tbl-cards { min-width: 0; }
  .tbl-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tbl-cards, .tbl-cards caption, .tbl-cards tbody, .tbl-cards tr, .tbl-cards th, .tbl-cards td { display: block; width: 100%; min-width: 0 !important; }
  .tbl-cards tr { border-top: 3px solid var(--border); padding: .2rem 0 .4rem; }
  .tbl-cards tbody tr:first-child { border-top: 0; }
  .tbl-cards tbody th[scope="row"] { background: var(--navy-soft); color: var(--navy); border-top: 0; font-size: 1.08rem; }
  .tbl-cards td { border-top: 0; padding-top: .35rem; padding-bottom: .35rem; text-align: left !important; white-space: normal !important; }
  .tbl-cards td::before { content: attr(data-label); display: block; font-weight: 700; font-size: .95rem; color: var(--text-muted); }
  .table-wrap:has(> .tbl-cards) { overflow-x: visible; }
  .swipe-hint:has(+ .table-wrap > .tbl-cards) { display: none !important; }
}
/* v31: E-Mail als Schaltfläche statt sichtbarer Adresse (außer Impressum und Datenschutz) */
.btn-mail { min-height: 2.75rem; padding: .45rem 1rem; font-size: 1rem; }
.btn-mail svg { flex: none; }
.site-footer a.btn-mail, .site-footer a.btn-mail:hover { color: var(--navy); text-decoration: none; }
.site-footer a.btn-mail:hover { background: var(--navy-soft); }
@media print { .site-footer a.btn-mail { color: #000; } }
/* v31: Menüknopf „Kontakt“ auf der Kontaktseite sichtbar (vorher Schrift = Hintergrundfarbe) */
.main-nav a.nav-cta[aria-current="page"] { color: #fff; }
html[data-theme="dark"] .main-nav a.nav-cta[aria-current="page"] { color: #11161f; }
/* v32: weitere Rechtsstatus-Kennzeichen (Gegenäußerung, Anhörung, Änderungsantrag) */
.b-gov { background: #fdecea; color: #7a1f17; border-color: #b3261e; }
.b-gov-ok { background: #e3f1e6; color: #1d5a2c; border-color: #2f7a43; border-style: double; border-width: 3px; }
.b-gov-check { background: #fff4d6; color: #6b4a00; border-color: #b7791f; border-style: dotted; border-width: 2px; }
.b-hear { background: #eef0f3; color: #33404f; border-color: #5c6b7c; }
.b-amend { background: #e9f3f5; color: #174a55; border-color: #2f7f8f; }
.b-future { background: #f2f7ec; color: #2f4f12; border-color: #4f7a2a; border-style: dashed; }
.b-open { background: #f4f4f4; color: #3a3a3a; border-color: #6b6b6b; border-style: dotted; border-width: 2px; }
html[data-theme="dark"] .b-gov { background: #3a1714; color: #f3b9b3; border-color: #e0776d; }
html[data-theme="dark"] .b-gov-ok { background: #17301e; color: #a7dcb3; border-color: #5aa56d; }
html[data-theme="dark"] .b-gov-check { background: #2e2612; color: #f0cf7e; border-color: #d4a646; }
html[data-theme="dark"] .b-hear { background: #232a33; color: #c9d3de; border-color: #8695a6; }
html[data-theme="dark"] .b-amend { background: #14313a; color: #a9dbe5; border-color: #5fb0c0; }
html[data-theme="dark"] .b-future { background: #1e2a14; color: #c5e0a5; border-color: #87b25e; }
html[data-theme="dark"] .b-open { background: #262626; color: #dcdcdc; border-color: #a0a0a0; }
.reform-3 .r3-gov { border-top: 6px solid #b3261e; }
.anhoerung-tabelle td:first-child { min-width: 0; }

/* ==========================================================================
   v34 – Lesehilfe, Navigation-Suche, Lebenslagen, „Einfach erklärt“, Pflegegrad-Karten, Suche, Lexikon
   ========================================================================== */
/* Schriftgröße der Lesehilfe (rem-basiert, daher skaliert die ganze Seite mit) */
html[data-schrift="1"] { font-size: 112.5%; }
html[data-schrift="2"] { font-size: 125%; }
html[data-schrift="3"] { font-size: 137.5%; }
html[data-schrift="4"] { font-size: 150%; }
html[data-schrift] .header-inner { flex-wrap: wrap; }
html[data-schrift] .main-nav > ul { flex-wrap: wrap; }
html[data-schrift="3"] .brand-sub, html[data-schrift="4"] .brand-sub { display: none; }

/* Starker Kontrast */
html[data-kontrast="hoch"] {
  --text: #000; --text-muted: #000; --border: #000; --field-border: #000;
  --navy: #0a1a3a; --navy-dark: #000; --bg: #fff; --surface: #fff; --gold-text: #4a3510;
}
html[data-kontrast="hoch"][data-theme="dark"] {
  --text: #fff; --text-muted: #fff; --border: #fff; --field-border: #fff;
  --navy: #dfe8ff; --navy-dark: #fff; --navy-soft: #111; --bg: #000; --surface: #000; --gold-text: #ffd98a;
}
html[data-kontrast="hoch"] main a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
html[data-kontrast="hoch"] .card, html[data-kontrast="hoch"] .note, html[data-kontrast="hoch"] table { border-width: 2px; border-color: var(--border); }
html[data-kontrast="hoch"] .badge { border-width: 2px; }

/* Kopf: Lesehilfe-Schaltfläche (nur mit JavaScript sichtbar) */
.lesehilfe-toggle {
  display: none; align-items: center; gap: .45rem; font: inherit; font-weight: 700; font-size: 1rem;
  color: var(--navy); background: var(--surface); border: 2px solid var(--border); border-radius: .6rem;
  padding: .5rem .8rem; min-height: 3rem; cursor: pointer;
}
.js .lesehilfe-toggle { display: inline-flex; }
.lesehilfe-toggle:hover, .lesehilfe-toggle[aria-expanded="true"] { border-color: var(--navy); background: var(--navy-soft); }
.lesehilfe-toggle svg { width: 1.4rem; height: 1.4rem; flex: none; }
.lesehilfe { border-top: 1px solid var(--border); background: var(--surface); }
.lesehilfe-inner { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; padding-top: .8rem; padding-bottom: .8rem; }
.lh-gruppe { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.lh-titel { font-weight: 700; min-width: 5.5rem; }
.lh-btn {
  font: inherit; font-weight: 700; min-width: 3rem; min-height: 3rem; padding: .4rem .85rem;
  color: var(--navy); background: var(--navy-soft); border: 2px solid var(--navy); border-radius: .55rem; cursor: pointer;
}
.lh-btn:hover:not(:disabled) { background: var(--navy); color: var(--surface); }
.lh-btn[aria-pressed="true"] { background: var(--navy); color: var(--surface); }
.lh-btn:disabled { opacity: .55; cursor: not-allowed; }
.lh-tempo { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.lh-tempo select { font: inherit; min-height: 3rem; padding: .3rem .5rem; border: 2px solid var(--field-border); border-radius: .5rem; background: var(--surface); color: var(--text); }
.lh-status { color: var(--text-muted); font-size: .95rem; }
.lh-hinweis { flex-basis: 100%; margin: 0; font-size: .95rem; color: var(--text-muted); }
.lh-aktiv { outline: 3px solid var(--gold); outline-offset: 4px; background: var(--gold-soft); border-radius: .3rem; }
@media print { .lesehilfe, .lesehilfe-toggle { display: none !important; } }

/* Navigation: Suche mit Symbol */
.main-nav .nav-suche { display: inline-flex; align-items: center; gap: .35rem; }
.main-nav .nav-suche svg { width: 1.15rem; height: 1.15rem; }

/* „Einfach erklärt“ (Ebene 1) */
.einfach { background: var(--gold-soft); border: 2px solid var(--gold); border-radius: var(--radius); padding: 1.25rem 1.4rem; margin: 1.5rem 0 2rem; }
.einfach > h2 { margin-top: 0; }
.einfach-kennung { display: inline-block; font-size: .9rem; font-weight: 700; letter-spacing: .02em; color: var(--gold-text); margin-bottom: .3rem; }
.einfach dl { margin: 0; }
.einfach dt { font-weight: 700; margin-top: .9rem; color: var(--navy); }
.einfach dd { margin: .2rem 0 0; }
.einfach .naechster-schritt { margin-top: 1rem; padding: .8rem 1rem; background: var(--surface); border-left: 5px solid var(--navy); border-radius: .4rem; }
.ebene2-hinweis { font-size: 1rem; color: var(--text-muted); border-top: 2px dashed var(--border); padding-top: .8rem; margin-top: 2rem; }

/* Startseite: Lebenslagen */
.lebenslagen { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .9rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 36rem) { .lebenslagen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .lebenslagen { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lebenslagen a {
  display: flex; align-items: center; gap: .8rem; min-height: 4.6rem; height: 100%; padding: .9rem 1rem;
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius);
  font-weight: 700; font-size: 1.1rem; color: var(--navy); text-decoration: none; line-height: 1.3;
}
.lebenslagen a:hover { border-color: var(--navy); background: var(--navy-soft); }
.lebenslagen a::after { content: "→"; margin-left: auto; padding-left: .5rem; font-size: 1.3rem; }
.lebenslagen-mehr { margin-top: 1rem; }
.lebenslagen-mehr > summary { font-weight: 700; cursor: pointer; min-height: 3rem; display: flex; align-items: center; color: var(--navy); }
.kontakt-kasten { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .kontakt-kasten { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kontakt-kasten .card { margin: 0; }
.tel-gross { font-size: 1.5rem; font-weight: 700; }

/* Leistungen nach Pflegegrad */
.pg-wahl { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0; }
.pg-wahl a { display: inline-flex; align-items: center; justify-content: center; min-width: 3.2rem; min-height: 3.2rem; padding: .4rem 1rem; border: 2px solid var(--navy); border-radius: .6rem; font-weight: 700; text-decoration: none; color: var(--navy); background: var(--navy-soft); }
.pg-wahl a:hover { background: var(--navy); color: var(--surface); }
.pg-karte { border: 2px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1rem 0; background: var(--surface); scroll-margin-top: 6rem; }
.pg-karte > h3 { margin-top: 0; }
.pg-karte ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.pg-karte li { margin: .35rem 0; }
.art { display: inline-block; font-size: .85rem; font-weight: 700; padding: .05rem .45rem; border-radius: .35rem; border: 1.5px solid var(--border); color: var(--text-muted); white-space: nowrap; }

/* Suche */
.suche-form { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.suche-form label { flex-basis: 100%; font-weight: 700; }
.suche-form input { flex: 1 1 16rem; font: inherit; font-size: 1.15rem; min-height: 3.2rem; padding: .5rem .8rem; border: 2px solid var(--field-border); border-radius: .6rem; background: var(--surface); color: var(--text); }
.suche-form button { font: inherit; font-weight: 700; min-height: 3.2rem; padding: .5rem 1.2rem; border-radius: .6rem; border: 2px solid var(--navy); background: var(--navy); color: #fff; cursor: pointer; }
html[data-theme="dark"] .suche-form button { color: #11161f; }
.suche-treffer { list-style: none; padding: 0; }
.suche-treffer li { border: 2px solid var(--border); border-radius: var(--radius); padding: .9rem 1.1rem; margin: .8rem 0; background: var(--surface); }
.suche-treffer a { font-weight: 700; font-size: 1.15rem; }
.suche-treffer p { margin: .3rem 0 0; }
.suche-beispiele { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.suche-beispiele button { font: inherit; min-height: 3rem; padding: .3rem .9rem; border-radius: 2rem; border: 2px solid var(--border); background: var(--surface); color: var(--navy); cursor: pointer; }
.suche-beispiele button:hover { border-color: var(--navy); }

/* Lexikon */
.abc { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 1rem 0; }
.abc a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.9rem; min-height: 2.9rem; border: 2px solid var(--border); border-radius: .5rem; font-weight: 700; text-decoration: none; }
.lexikon dt { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-top: 1.6rem; scroll-margin-top: 6rem; }
.lexikon dd { margin: .3rem 0 0; }
.lexikon dd p { margin: .3rem 0; }
.lexikon .lex-bsp::before { content: "Beispiel: "; font-weight: 700; }
.lexikon .lex-recht { font-size: .95rem; color: var(--text-muted); }
.themen-gruppe { scroll-margin-top: 6rem; }
.themen-gruppe ul { columns: 1; }
@media (min-width: 48rem) { .themen-gruppe ul { columns: 2; column-gap: 2rem; } }
.themen-gruppe li { break-inside: avoid; margin: .4rem 0; }

/* v34: Kopf mit Lesehilfe – mittlere Breiten zweizeilig (Marke + Schalter oben, Navigation darunter) */
@media (min-width: 62.01rem) and (max-width: 100rem) {
  .header-inner { flex-wrap: wrap; row-gap: 0; }
  .theme-toggle { margin-left: auto; }
  .main-nav { order: 4; width: 100%; border-top: 1px solid var(--border); padding: .25rem 0; }
  .main-nav > ul { flex-wrap: wrap; }
}

/* v34: große Schriftstufen – Inhalte umbrechen statt seitlich überzustehen */
.hero-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
html[data-schrift] main, html[data-schrift] footer { overflow-wrap: break-word; hyphens: auto; }
html[data-schrift] .art { white-space: normal; }
@media (max-width: 80rem) {
  html[data-schrift="3"] .grid-3, html[data-schrift="4"] .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-schrift="3"] .footer-grid, html[data-schrift="4"] .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 62rem) {
  html[data-schrift="3"] .grid-2, html[data-schrift="4"] .grid-2,
  html[data-schrift="3"] .grid-3, html[data-schrift="4"] .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
.related ul { grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.suche-form input { flex: 1 1 min(16rem, 100%); min-width: 0; }
html[data-schrift] .btn { white-space: normal; max-width: 100%; }
html[data-schrift] main input, html[data-schrift] main select, html[data-schrift] main textarea { max-width: 100%; min-width: 0; }
@media print { table { min-width: 0; } td.num, th.num { white-space: normal; } }

/* v34: Kopf auf schmalen Bildschirmen und bei großer Schrift nicht mitlaufen lassen,
   damit er keine Inhalte und keinen Tastaturfokus verdeckt (WCAG 2.4.11) */
@media (max-width: 47.99rem) { .site-header { position: relative; } }
html[data-schrift="2"] .site-header, html[data-schrift="3"] .site-header, html[data-schrift="4"] .site-header { position: relative; }
@media (min-width: 48rem) { html:not([data-schrift="2"]):not([data-schrift="3"]):not([data-schrift="4"]) { scroll-padding-top: 7.5rem; } }

/* v34b: Untermenüs liegen über der Lesehilfe-Leiste (vorher schienen deren Knöpfe durch) */
.main-nav { position: relative; z-index: 3; }
.main-nav .sub { z-index: 70; background: var(--surface); }
.lesehilfe { position: relative; z-index: 1; }

/* v34b: Themen-Menü in Gruppen */
.sub-gross .sub-gruppe { list-style: none; margin: 0; }
.sub-gross .sub-gruppe > ul { list-style: none; margin: 0 0 .4rem; padding: 0; }
.sub-gross .sub-titel { display: block; font-size: .85rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--gold-text); padding: .55rem .75rem .2rem; }
@media (min-width: 62.01rem) {
  .sub.sub-gross { min-width: 0; width: min(54rem, calc(100vw - 3rem)); padding: .6rem !important; }
  .sub.sub-gross.is-open, html:not(.js) .has-sub:hover > .sub.sub-gross, html:not(.js) .has-sub:focus-within > .sub.sub-gross {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 .75rem; }
  .sub-gross a { white-space: normal; }
  .main-nav .has-sub:has(> .sub-gross) { position: static; }
  .main-nav > ul { position: relative; }
}
@media (max-width: 62rem) {
  .sub-gross .sub-titel { padding-left: .5rem; }
}

/* v34b: Lesehilfe – Stimme, Online-Erlaubnis, Tipps */
.lh-stimmenwahl { max-width: min(22rem, 70vw); }
.lh-online { flex-basis: 100%; border: 2px solid var(--border); border-radius: .6rem; padding: .6rem .8rem; }
.lh-check { display: flex; align-items: center; gap: .6rem; font-weight: 700; min-height: 3rem; cursor: pointer; }
.lh-check input { width: 1.5rem; height: 1.5rem; flex: none; }
.lh-klein { margin: .3rem 0 0; font-size: .95rem; color: var(--text-muted); }
.lh-tipp { flex-basis: 100%; }
.lh-tipp > summary { font-weight: 700; color: var(--navy); cursor: pointer; min-height: 3rem; display: flex; align-items: center; }
.lh-tipp ul { margin: .3rem 0; padding-left: 1.2rem; }
.lh-tipp li { margin: .3rem 0; }
