/* ==========================================================================
   Seniorenkompass Bad Vilbel — Design-System v2
   Warm, freundlich, großzügig — gestaltet für Menschen ab 60.
   Keine Webfonts, kein Tracking, keine externen Ressourcen.
   ========================================================================== */

/* ---------- Design-Tokens ---------- */
:root {
  --paper: #fdf7ec;
  --paper-2: #f7edd9;
  --sage: #eaf2e6;
  --card: #fffdf7;
  --ink: #322b24;
  --ink-2: #5f564b;
  --ink-3: #7d7468;
  --line: #eadfc8;

  --brand: #1f5c4b;
  --brand-1: #164739;
  --brand-2: #164739;
  --brand-3: #0e332a;
  --brand-tint: #e2efe4;
  --brand-line: #c4dcc9;

  --accent: #d9730f;
  --accent-2: #b85e0b;
  --accent-tint: #fdeeda;
  --gold: #f0b429;

  --rose: #c2526d;
  --alert: #b93a26;
  --alert-2: #962d1c;
  --alert-tint: #fbe7e1;

  --ok: #2e7d43;
  --ok-2: #256b38;
  --ok-tint: #e7f3e9;
  --info-tint: #e9f1f7;
  --info-line: #c7d9e6;

  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 2px 5px rgba(122, 84, 20, 0.07), 0 14px 34px rgba(122, 84, 20, 0.09);
  --shadow-hover: 0 4px 10px rgba(122, 84, 20, 0.11), 0 22px 48px rgba(122, 84, 20, 0.16);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;

  --content-w: 74rem;
  --prose-w: 47rem;

  --fs-body: 1.25rem;
  --lh-body: 1.66;
}

/* Kategoriefarben (Verzeichnis & Ratgeber) */
:root {
  --cat-beratung: #4a7a96;
  --cat-aerzte: #177e6b;
  --cat-hausaerzte: #177e6b;
  --cat-fachaerzte: #0f5c50;
  --cat-zahnarzt: #1a7a6b;
  --cat-therapie: #2d8a6e;
  --cat-pflege: #205c4b;
  --cat-wohnen: #b4552d;
  --cat-apotheken: #3e8e5a;
  --cat-alltag: #9c6b1e;
  --cat-hilfsmittel: #0e5a50;
  --cat-treffpunkte: #8e4a66;
  --cat-mobilitaet: #2f6690;
  --cat-kliniken: #8a3b3b;
  --cat-geld: #9c6b1e;
  --cat-sicherheit: #b93a26;
  --cat-gesundheit: #177e6b;
  --cat-leben: #8e4a66;
}

/* Schriftgrößen-Stufen */
html[data-fsize="klein"] { font-size: 87.5%; }
html[data-fsize="normal"] { font-size: 100%; }
html[data-fsize="gross"] { font-size: 115%; }
html[data-fsize="gross2"] { font-size: 132.5%; }
html[data-fsize="gross3"] { font-size: 150%; }

/* Hoher Kontrast */
html[data-contrast="hoch"] {
  --paper: #ffffff;
  --paper-2: #f4f4f4;
  --sage: #eef4ee;
  --card: #ffffff;
  --ink: #000000;
  --ink-2: #222222;
  --ink-3: #3a3a3a;
  --line: #8a8a8a;
  --brand: #003f36;
  --brand-2: #002f29;
  --brand-3: #00211d;
  --brand-tint: #dff0eb;
  --brand-line: #4f7a6e;
  --accent: #8a4400;
  --accent-2: #6d3500;
  --accent-tint: #fdeed4;
  --alert: #8f1708;
  --alert-2: #701005;
  --alert-tint: #fbe3e0;
  --ok: #0d5220;
  --ok-2: #0a3d18;
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(31, 92, 75, 0.045) 1.2px, transparent 0);
  background-size: 26px 26px;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.22;
  color: var(--brand-3);
  margin: 1.6em 0 0.55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 3.8vw, 2.8rem); margin-top: 0.4em; }
h2 { font-size: clamp(1.55rem, 2.7vw, 2rem); }
h3 { font-size: clamp(1.3rem, 2.1vw, 1.55rem); }
h4 { font-size: 1.15rem; font-family: var(--sans); color: var(--ink); }

p { margin: 0.9em 0; }

a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--accent-2); text-decoration-thickness: 2.5px; }

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

::selection { background: var(--accent-tint); color: var(--ink); }

ul, ol { padding-left: 1.35em; }
li { margin: 0.38em 0; }

hr { border: 0; border-top: 2px solid var(--line); margin: 2.5rem 0; }

/* ---------- Hilfsklassen ---------- */
.container { width: min(100% - 2.5rem, var(--content-w)); margin-inline: auto; }
.prose { max-width: var(--prose-w); }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.small { font-size: 0.95rem; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; }
.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: -4.5rem;
  z-index: 300;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1.3rem;
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  text-decoration: none;
  font-weight: 700;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Sanftes Einblenden beim Scrollen ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Kopfleiste (Gruß + Einstellungen) ---------- */
.topbar {
  background: var(--brand-3);
  color: #dcebe2;
  font-size: 1rem;
}
.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1.2rem;
  flex-wrap: wrap;
  padding-block: 0.35rem;
}
.topbar-gruss { margin: 0; font-size: 1rem; }
.topbar-controls { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }

.fsize-group { display: inline-flex; align-items: center; gap: 0.25rem; }
.fsize-label { margin-right: 0.2rem; color: #dcebe2; }
.fsize-btn {
  font-family: var(--sans);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  min-width: 2.5rem;
  min-height: 2.2rem;
  cursor: pointer;
  font-weight: 700;
}
.fsize-btn[data-fsize-set="klein"] { font-size: 0.85rem; }
.fsize-btn[data-fsize-set="normal"] { font-size: 1rem; }
.fsize-btn[data-fsize-set="gross"] { font-size: 1.2rem; }
.fsize-btn[data-fsize-set="gross2"] { font-size: 1.3rem; }
.fsize-btn[data-fsize-set="gross3"] { font-size: 1.4rem; }
.fsize-btn[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--brand-3); }
.contrast-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  min-height: 2.2rem;
  padding: 0 0.8rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
}
.contrast-btn[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #000; }

/* High-Contrast: Topbar-Buttons */
html[data-contrast="hoch"] .topbar .fsize-btn,
html[data-contrast="hoch"] .topbar .contrast-btn {
  background: #fff;
  color: #000;
  border-color: #000;
}
html[data-contrast="hoch"] .topbar .fsize-btn[aria-pressed="true"],
html[data-contrast="hoch"] .topbar .contrast-btn[aria-pressed="true"] {
  background: #ffff00;
  border-color: #000;
  color: #000;
}

/* ---------- Header mit Logo & Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--card);
  border-bottom: 4px solid var(--brand);
  box-shadow: 0 2px 14px rgba(31, 92, 75, 0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.6rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand-logo { width: 60px; height: 60px; flex: none; filter: drop-shadow(0 2px 5px rgba(31, 92, 75, 0.3)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.62rem;
  color: var(--brand-2);
  letter-spacing: 0.01em;
}
.brand-ort {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--card);
  border: 2px solid var(--brand);
  color: var(--brand);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  font-size: 1.1rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { background: var(--brand-tint); color: var(--brand-2); }
.main-nav a[aria-current="page"] {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 3px 10px rgba(31, 92, 75, 0.35);
}
.nav-notfall {
  background: var(--alert) !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(185, 58, 38, 0.4);
}
.nav-notfall:hover { background: var(--alert-2) !important; }

@media (max-width: 58rem) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--card);
    border-bottom: 4px solid var(--brand);
    box-shadow: var(--shadow-hover);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 0.7rem; gap: 0.3rem; }
  .main-nav a { padding: 0.85rem 1.1rem; font-size: 1.25rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.4rem;
  padding: 0.75rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 1.13rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(31, 92, 75, 0.18);
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(31, 92, 75, 0.25); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 3px 10px rgba(217, 115, 15, 0.35); }
.btn-accent:hover { background: var(--accent-2); color: #fff; }
.btn-outline { background: transparent; border-color: var(--brand); color: var(--brand); box-shadow: none; }
.btn-outline:hover { background: var(--brand-tint); color: var(--brand-2); }
.btn-light { background: #fff; color: var(--brand-2); border-color: var(--brand-line); }
.btn-light:hover { background: var(--brand-tint); }
.btn-alert { background: var(--alert); color: #fff; box-shadow: 0 3px 10px rgba(185, 58, 38, 0.35); }
.btn-alert:hover { background: var(--alert-2); color: #fff; }
.btn-s { min-height: 2.7rem; padding: 0.4rem 1.1rem; font-size: 1.02rem; }
.btn-xs { min-height: 2.3rem; padding: 0.35rem 0.8rem; font-size: 0.94rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 380px at 88% -10%, rgba(240, 180, 41, 0.22), transparent 60%),
    linear-gradient(165deg, var(--sage) 0%, var(--paper) 68%);
  border-bottom: 1px solid var(--line);
  padding: 2.8rem 0 3.4rem;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.6rem;
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card);
  border: 1px solid var(--brand-line);
  color: var(--brand-2);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0 0 1.1rem;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.55rem);
  margin: 0 0 0.7rem;
  color: var(--brand-3);
}
.hero h1 .accent { color: var(--accent); }
.hero .lead { font-size: 1.32rem; color: var(--ink-2); max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.3rem;
  margin-top: 1.4rem;
  padding: 0;
  list-style: none;
  color: var(--brand-2);
  font-weight: 650;
  font-size: 1.02rem;
}
.hero-trust li { display: flex; align-items: center; gap: 0.45rem; margin: 0; }
.hero-trust .haken {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
}
.hero-art { display: flex; justify-content: center; }
.hero-art img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  display: block;
}

/* Nadel-Schwingen im Kompass */
@keyframes needle-sway {
  0%, 100% { transform: rotate(-7deg); }
  50% { transform: rotate(7deg); }
}
.needle {
  transform-box: fill-box;
  transform-origin: center;
  animation: needle-sway 5.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .needle { animation: none; } }

@media (max-width: 58rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: min(300px, 74vw); }
}

/* ---------- Wellen-Trenner ---------- */
.wave-sep { display: block; width: 100%; height: 60px; margin-bottom: -1px; }
.wave-sep.fill-paper { color: var(--paper); }
.wave-sep.fill-sage { color: var(--sage); }
.wave-sep.fill-brand3 { color: var(--brand-3); }
.wave-sep.flip { transform: scaleY(-1); }

/* ---------- Abschnitte ---------- */
.section { padding: 3.2rem 0; }
.section-sage { background: var(--sage); }
.section-paper2 { background: var(--paper-2); }
.section-head h2 {
  margin-top: 0;
  font-size: clamp(1.75rem, 3vw, 2.3rem);
}
.section-head h2::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.6rem;
  vertical-align: middle;
  margin-top: -0.2em;
}
.section-head {
  max-width: 46rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.section-head p { color: var(--ink-2); margin: 0.4rem 0 0; }
.kicker {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ---------- Karten & Raster ---------- */
.grid { display: grid; gap: 1.3rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 58rem) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
}
.card h3 { margin-top: 0; }
.card p { margin: 0.3rem 0; }
.card .card-link { margin-top: auto; padding-top: 0.7rem; font-weight: 700; }

/* Themenweg-Kacheln */
.weg-card {
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.18s ease, transform 0.15s ease;
}
.weg-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); color: var(--ink); }
.weg-card .weg-icon {
  width: 62px; height: 62px;
  border-radius: 18px;
  background: var(--cat, var(--brand));
  display: flex; align-items: center; justify-content: center;
  margin: 0.35rem 0 0.5rem;
  box-shadow: 0 4px 12px rgba(31, 92, 75, 0.25);
  transition: transform 0.18s ease;
}
.weg-card:hover .weg-icon { transform: translateY(-2px); }
.weg-card h3 { color: var(--brand-3); }
.weg-card .mehr { color: var(--accent-2); font-weight: 750; margin-top: auto; padding-top: 0.5rem; }

/* Kategorien-Töne */
.cat-beratung { --cat: var(--cat-beratung); }
.cat-aerzte { --cat: var(--cat-aerzte); }
.cat-hausaerzte { --cat: var(--cat-hausaerzte); }
.cat-fachaerzte { --cat: var(--cat-fachaerzte); }
.cat-zahnarzt { --cat: var(--cat-zahnarzt); }
.cat-therapie { --cat: var(--cat-therapie); }
.cat-pflege { --cat: var(--cat-pflege); }
.cat-wohnen { --cat: var(--cat-wohnen); }
.cat-apotheken { --cat: var(--cat-apotheken); }
.cat-alltag { --cat: var(--cat-alltag); }
.cat-hilfsmittel { --cat: var(--cat-hilfsmittel); }
.cat-treffpunkte { --cat: var(--cat-treffpunkte); }
.cat-mobilitaet { --cat: var(--cat-mobilitaet); }
.cat-kliniken { --cat: var(--cat-kliniken); }
.cat-geld { --cat: var(--cat-geld); }
.cat-sicherheit { --cat: var(--cat-sicherheit); }
.cat-gesundheit { --cat: var(--cat-gesundheit); }
.cat-leben { --cat: var(--cat-leben); }

/* ---------- Notfall-Band ---------- */
.sos-band {
  background: linear-gradient(150deg, var(--alert) 0%, var(--alert-2) 100%);
  border-radius: 26px;
  color: #fff;
  padding: 2rem 2.2rem;
  box-shadow: 0 12px 34px rgba(185, 58, 38, 0.35);
}
.sos-band-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.sos-band h2 { color: #fff; margin: 0; font-size: 1.75rem; }
.sos-band .sos-hinweis { margin: 0.2rem 0 0; color: #fbd9d0; font-size: 1.05rem; }
.sos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.3rem;
}
.sos-item {
  background: #fff;
  border-radius: var(--radius-s);
  padding: 1rem 1.1rem;
  color: var(--alert);
  text-decoration: none;
  display: block;
  text-align: center;
  transition: transform 0.13s ease, box-shadow 0.15s ease;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
}
.sos-item:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22); color: var(--alert-2); }
.sos-item .nr { display: block; font-size: 2.5rem; font-weight: 900; line-height: 1.05; letter-spacing: 0.01em; }
.sos-item .was { display: block; font-size: 1rem; font-weight: 650; color: var(--ink-2); margin-top: 0.2rem; }
@media (max-width: 58rem) { .sos-grid { grid-template-columns: repeat(2, 1fr); } }
.sos-mehr { display: inline-block; margin-top: 1.2rem; color: #fff; font-weight: 700; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 0.9rem 0 0; }
.breadcrumb ol {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0.35rem 1rem;
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.98rem;
  color: var(--ink-2);
  box-shadow: var(--shadow);
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: 0.4rem; }
.breadcrumb li + li::before { content: "›"; color: var(--ink-3); }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Artikel ---------- */
.article-head {
  position: relative;
  background:
    radial-gradient(700px 260px at 92% -20%, rgba(240, 180, 41, 0.18), transparent 60%),
    linear-gradient(160deg, var(--sage), var(--paper) 72%);
  border-bottom: 1px solid var(--line);
  padding: 2.4rem 0 2rem;
}
.article-head h1 { max-width: 22em; }
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem 1.2rem;
  color: var(--ink-2); font-size: 1rem; margin-top: 0.8rem;
}
.article-meta .kat {
  background: var(--accent-tint);
  color: var(--accent-2);
  font-weight: 800;
  border-radius: 999px;
  padding: 0.15rem 0.85rem;
  border: 1px solid rgba(217, 115, 15, 0.35);
}
.article-body { padding: 2.4rem 0 3.2rem; }
.article-body .prose > p:first-of-type {
  font-size: 1.3rem;
  color: var(--ink-2);
}
.article-body h2 { border-top: 3px solid var(--brand-tint); padding-top: 1.4rem; margin-top: 2.3rem; }
.article-body h2:first-of-type { border-top: 0; padding-top: 0; }

.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.5rem;
  margin: 1.7rem 0;
}
.toc-title { font-weight: 800; margin: 0 0 0.45rem; font-size: 1.08rem; color: var(--brand-3); }
.toc ol { margin: 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Infokästen — Farbe sitzt im Symbol, nicht am Rand */
.box {
  border-radius: var(--radius);
  border: 1px solid var(--brand-line);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.5rem;
  margin: 1.6rem 0;
}
.box .box-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  margin-top: 0;
  color: var(--brand-3);
}
.box .box-title::before {
  content: "i";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}
.box-tipp { background: var(--ok-tint); border-color: color-mix(in srgb, var(--ok) 35%, #fff); }
.box-tipp .box-title { color: var(--ok-2); }
.box-tipp .box-title::before { content: "✓"; background: var(--ok); font-family: var(--sans); }
.box-wichtig { background: var(--alert-tint); border-color: color-mix(in srgb, var(--alert) 35%, #fff); }
.box-wichtig .box-title { color: var(--alert-2); }
.box-wichtig .box-title::before { content: "!"; background: var(--alert); font-family: var(--sans); }
.box-info { background: var(--accent-tint); border-color: color-mix(in srgb, var(--accent) 40%, #fff); }
.box-info .box-title { color: var(--accent-2); }
.box-info .box-title::before { content: "i"; background: var(--accent); }
@supports not (background: color-mix(in srgb, red 10%, white)) {
  .box-tipp, .box-wichtig, .box-info { border-color: var(--line); }
}

/* ---------- Weiterempfehlen / Teilen ---------- */
.share-box {
  margin: 2rem 0 0;
  padding: 1.2rem 1.5rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--brand-line);
  background: var(--brand-tint);
  box-shadow: var(--shadow);
}
.share-box .share-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  color: var(--brand-3);
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}
.share-box .share-title::before {
  content: "";
  flex: none;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cline x1='8.6' y1='10.6' x2='15.4' y2='6.4'/%3E%3Cline x1='8.6' y1='13.4' x2='15.4' y2='17.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.95rem;
}
.share-box .share-text {
  margin: 0 0 1rem;
  color: var(--ink-2);
  font-size: 1rem;
}
.share-btns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
  gap: 0.6rem;
}
.share-btns .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
}
.share-btns .btn svg { flex: none; }
.share-feedback {
  margin: 0.7rem 0 0;
  font-weight: 700;
  color: var(--ok-2);
  min-height: 1.1em;
  font-size: 0.95rem;
}

[data-contrast="hoch"] .share-box {
  background: #fff;
  border: 2px solid #000;
}
[data-contrast="hoch"] .share-box .share-title,
[data-contrast="hoch"] .share-box .share-text { color: #000; }
[data-contrast="hoch"] .share-box .share-feedback { color: #060; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }

/* Tabellen */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}
table { border-collapse: collapse; width: 100%; font-size: 1.08rem; }
caption { text-align: left; font-weight: 700; padding: 0.85rem 1.1rem 0; }
th, td { text-align: left; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--brand); color: #fff; font-weight: 700; }
tbody tr:nth-child(even) { background: var(--paper); }
tbody tr:last-child td { border-bottom: 0; }

/* Schritte */
.steps { counter-reset: schritt; list-style: none; padding: 0; margin: 1.5rem 0; }
.steps li {
  counter-increment: schritt;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.4rem 1.15rem 4.6rem;
  margin: 0.9rem 0;
}
.steps li::before {
  content: counter(schritt);
  position: absolute;
  left: 1.2rem; top: 1.1rem;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 3px 8px rgba(217, 115, 15, 0.4);
}
.steps .step-title { font-weight: 800; margin-top: 0; color: var(--brand-3); }

/* Quellen */
.quellen { margin-top: 2.8rem; border-top: 3px solid var(--brand-tint); padding-top: 1.3rem; font-size: 1rem; }
.quellen h2 { font-size: 1.3rem; border: 0; padding: 0; margin: 0 0 0.6rem; }
.quellen ol { padding-left: 1.3em; }
.quellen li { margin: 0.28em 0; color: var(--ink-2); word-break: break-word; }
.stand {
  font-size: 0.98rem;
  color: var(--brand-2);
  background: var(--brand-tint);
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  display: inline-block;
}

/* Akkordeon */
details.acc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow);
  margin: 0.8rem 0;
  padding: 0;
  overflow: hidden;
}
details.acc summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--brand-3);
  padding: 1.05rem 1.3rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
details.acc summary::before {
  content: "+";
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  background: var(--brand);
  width: 1.9rem; height: 1.9rem;
  border-radius: 50%;
  flex: none;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
details.acc[open] summary::before { content: "–"; background: var(--accent); }
details.acc .acc-body { padding: 0 1.3rem 1.2rem 4rem; }
@media (max-width: 40rem) { details.acc .acc-body { padding-left: 1.3rem; } }

/* ---------- Verzeichnis ---------- */
.vz-tools {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem;
  margin: 1.5rem 0 1.9rem;
}
.vz-search-row { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.vz-search-wrap { position: relative; flex: 1 1 22rem; display: flex; }
.vz-search-wrap svg {
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  opacity: 0.55;
  pointer-events: none;
}
.vz-search {
  width: 100%;
  font: inherit;
  font-size: 1.15rem;
  padding: 0.8rem 1rem 0.8rem 2.6rem;
  border: 2px solid var(--brand-line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
}
.vz-search:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px rgba(31, 92, 75, 0.15); }
.vz-filters { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1rem; }
.vz-filter {
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  border: 2px solid var(--brand-line);
  background: var(--paper);
  color: var(--brand-2);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  min-height: 2.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: background 0.13s ease, color 0.13s ease, border-color 0.13s ease;
}
.vz-filter .vz-filter-count {
  background: var(--brand-tint);
  color: var(--brand-2);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.05rem 0.5rem;
}
.vz-filter:hover { background: var(--brand-tint); }
.vz-filter[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.vz-filter[aria-pressed="true"] .vz-filter-count { background: rgba(255, 255, 255, 0.25); color: #fff; }
.vz-select {
  font: inherit;
  font-size: 1.02rem;
  padding: 0.55rem 0.9rem;
  border: 2px solid var(--brand-line);
  border-radius: var(--radius-s);
  background: var(--paper);
  color: var(--ink);
  min-height: 2.85rem;
}
.vz-count { margin: 0.4rem 0 1.1rem; color: var(--ink-2); font-size: 1.03rem; }

.vz-list { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 58rem) { .vz-list { grid-template-columns: 1fr; } }

.vz-entry {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: box-shadow 0.15s ease, transform 0.12s ease;
}
.vz-entry:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.vz-entry h3 { margin: 0; font-size: 1.3rem; }
.vz-entry .vz-kat {
  align-self: flex-start;
  background: color-mix(in srgb, var(--cat, var(--brand)) 12%, #fff);
  color: var(--cat, var(--brand));
  border: 1px solid color-mix(in srgb, var(--cat, var(--brand)) 35%, #fff);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 750;
  padding: 0.12rem 0.75rem;
}
@supports not (background: color-mix(in srgb, red 10%, white)) {
  .vz-entry .vz-kat { background: var(--brand-tint); color: var(--brand-2); border-color: var(--brand-line); }
}
.vz-entry .vz-beschrieb { color: var(--ink-2); margin: 0.25rem 0; font-size: 1.05rem; }
.vz-entry address { font-style: normal; }
.vz-kontakt { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 0.35rem; font-size: 1.06rem; }
.vz-tel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(31, 92, 75, 0.3);
}
.vz-tel::before { content: "☎"; }
.vz-tel:hover { background: var(--brand-2); color: #fff; }
.vz-web { font-size: 1rem; word-break: break-all; }
.vz-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.45rem; }
.vz-tag {
  font-size: 0.86rem;
  font-weight: 650;
  background: var(--accent-tint);
  color: var(--accent-2);
  border-radius: 999px;
  padding: 0.1rem 0.65rem;
  border: 1px solid rgba(217, 115, 15, 0.25);
}
.vz-empty {
  background: var(--card);
  border: 2px dashed var(--brand-line);
  border-radius: var(--radius);
  padding: 2.2rem;
  text-align: center;
  color: var(--ink-2);
  grid-column: 1 / -1;
}

/* ---------- Verzeichnis: Karte & Ansicht-Umschalter ---------- */
.vz-view-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 1.2rem 0 1rem;
  flex-wrap: wrap;
}
.vz-toggle-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-2);
  margin-right: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.vz-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--card);
  color: var(--ink-1);
  border: 1.5px solid var(--brand-line);
  border-radius: 0;
  padding: 0.55rem 1.15rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  line-height: 1.3;
  font-weight: 500;
}
.vz-toggle-btn:first-of-type {
  border-radius: 0.5rem 0 0 0.5rem;
}
.vz-toggle-btn:last-of-type {
  border-radius: 0 0.5rem 0.5rem 0;
}
.vz-toggle-btn:hover {
  border-color: var(--brand-2);
  background: var(--brand-tint);
  z-index: 1;
}
.vz-toggle-btn.active,
.vz-toggle-btn[aria-pressed="true"] {
  background: var(--brand-1);
  color: #fff;
  border-color: var(--brand-1);
  font-weight: 600;
  z-index: 2;
}
.vz-toggle-btn.active:hover,
.vz-toggle-btn[aria-pressed="true"]:hover {
  background: var(--brand-3);
  border-color: var(--brand-3);
}
/* Keine Icons mehr — Text-only, clean */
.vz-toggle-icon {
  display: none;
}

.vz-map-wrap {
  display: none;
  margin-bottom: 1.2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--brand-line);
  position: relative;
  z-index: 0;
}
.vz-map-wrap.visible { display: block; }
.vz-map {
  height: 460px;
  width: 100%;
  background: #e8ece6;
}
.vz-map-hint {
  margin: 0;
  padding: 0.5rem 1rem;
  font-size: 0.86rem;
  color: var(--ink-3);
  background: var(--card);
}

/* Leaflet-Overrides: Marker-Popups für Senioren-Lesbarkeit */
.vz-map .leaflet-popup-content {
  font-size: 0.98rem;
  line-height: 1.45;
  margin: 0.5rem 0.7rem;
  min-width: 200px;
}
.vz-map .leaflet-popup-content h3 {
  font-size: 1.08rem;
  margin: 0 0 0.25rem;
  color: var(--brand-2);
}
.vz-map .leaflet-popup-content p { margin: 0.1rem 0; font-size: 0.92rem; }
.vz-map .leaflet-popup-content .vz-pop-kat {
  font-size: 0.82rem;
  color: var(--ink-3);
  margin-bottom: 0.3rem;
}
.vz-map .leaflet-popup-content a {
  display: inline-block;
  margin-right: 0.6rem;
  margin-top: 0.3rem;
  font-size: 0.9rem;
}
.vz-map .vz-pop-btn {
  display: block;
  margin-top: 0.5rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
  background: var(--brand-2);
  color: #fff;
  border: none;
  border-radius: 0.3rem;
  cursor: pointer;
  width: 100%;
  text-align: center;
}
.vz-map .vz-pop-btn:hover {
  background: var(--brand-1);
}

/* Beides-Ansicht: Karte oben, Liste darunter (natürlicher Fluss) */
.vz-both-visible .vz-map-wrap {
  display: block;
}

/* ---------- Werkzeuge ---------- */
.tool-card-big {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  padding: 1.8rem 2rem;
  margin: 1.3rem 0;
}
fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
legend { font-weight: 750; font-size: 1.08rem; margin-bottom: 0.55rem; padding: 0; color: var(--brand-3); }
label { font-weight: 600; }
.field { margin-bottom: 1.1rem; }
.field-hint { font-size: 0.96rem; color: var(--ink-2); font-weight: 400; display: block; margin-top: 0.25rem; }
input[type="number"], input[type="text"], input[type="range"], select { font: inherit; }
input[type="number"], input[type="text"] {
  padding: 0.7rem 0.95rem;
  border: 2px solid var(--brand-line);
  border-radius: var(--radius-s);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.15rem;
  max-width: 12rem;
}
.radio-cards { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card span {
  display: inline-block;
  padding: 0.6rem 1.05rem;
  border: 2px solid var(--brand-line);
  border-radius: 0.65rem;
  background: var(--paper);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.97rem;
  line-height: 1.3;
  transition: background 0.13s ease, color 0.13s ease, border-color 0.13s ease;
}
.radio-card span:hover { background: var(--brand-tint); border-color: var(--brand); }
.radio-card input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(31, 92, 75, 0.25);
}
.radio-card input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.ergebnis {
  background: var(--sage);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  padding: 1.6rem 2rem;
  margin-top: 1.5rem;
}
.ergebnis h3 { margin-top: 0; color: var(--brand-3); }
.ergebnis .betrag { font-size: 1.8rem; font-weight: 800; color: var(--brand-2); }
.ergebnis table { background: transparent; }
.ergebnis .table-wrap { box-shadow: none; }
.ergebnis tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.5); }
.ergebnis th { background: transparent; border-bottom: 2px solid var(--brand); }
.ergebnis td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 650; }
.ergebnis tr.sum td { padding-top: 0.7rem; border-top: 1.5px solid var(--brand-line); font-weight: 750; }
.ergebnis tr.zuschlag td { color: var(--brand-2); font-weight: 650; }
.ergebnis-block { margin-bottom: 1.2rem; }
.ergebnis-block h4 { margin: 0 0 0.5rem; font-size: 1.05rem; color: var(--brand-3); }
.ergebnis-heim { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 40rem) { .ergebnis-heim { grid-template-columns: 1fr; } }
.heim-col h4 { margin: 0 0 0.5rem; font-size: 1.05rem; color: var(--brand-3); }
.heim-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
@media (max-width: 40rem) { .heim-inputs { grid-template-columns: 1fr; } }
.heim-inputs .field-full { grid-column: 1 / -1; }
.input-euro { display: flex; align-items: center; gap: 0.4rem; }
.input-euro input { max-width: 8rem; }
.input-euro span { font-size: 1.15rem; font-weight: 700; color: var(--brand-2); }
.slider-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.4rem;
}
.slider-row input[type="range"] { flex: 1; max-width: 22rem; accent-color: var(--brand); }
.slider-min, .slider-max { font-size: 0.88rem; color: var(--ink-2); white-space: nowrap; }
.slider-wert { margin: 0.35rem 0 0; font-size: 1.3rem; font-weight: 800; color: var(--brand-2); }
#heim-wrap fieldset { margin-top: 0.5rem; }
#heim-wrap select {
  display: block;
  padding: 0.6rem 0.9rem;
  border: 2px solid var(--brand-line);
  border-radius: 0.5rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  max-width: 100%;
  width: 100%;
  margin-top: 0.25rem;
}

/* Checkliste */
.check-progress {
  position: sticky;
  top: 6.4rem;
  z-index: 50;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 1.1rem 1.4rem;
  margin: 1.3rem 0;
}
.progress-track { width: 100%; height: 10px; background: var(--brand-line); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--brand); border-radius: 999px; transition: width 0.35s ease; width: 0; }
.progress-cats { font-size: 0.88rem; color: var(--ink-2); margin-top: 0.35rem; }
.prog-cat-item { white-space: nowrap; }
.check-group {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  padding: 1.2rem 1.4rem;
  margin: 1rem 0;
}
.check-cat-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 0.7rem;
  color: var(--brand-3);
  flex-wrap: wrap;
}
.cat-progress {
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
}
.cat-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.cat-dringend { background: #fde8e8; color: #b91c1c; }
.cat-wichtig { background: #fef3c7; color: #b45309; }
.cat-sinnvoll { background: #e0f2fe; color: #075985; }
.cat-dranbleiben { background: #dcfce7; color: #166534; }
.priority-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--sage);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.3rem;
  white-space: nowrap;
}
.check-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.check-item:last-child { border-bottom: 0; }
.check-item input {
  width: 1.55rem; height: 1.55rem;
  margin-top: 0.3rem;
  flex: none;
  accent-color: var(--brand);
  cursor: pointer;
}
.check-item label { font-weight: 650; cursor: pointer; }
.check-item .check-hint { display: block; font-weight: 400; font-size: 0.97rem; color: var(--ink-2); }
.check-item.done label { text-decoration: line-through; color: var(--ink-3); }

/* ---------- Notfallpass ---------- */
.np-form { margin-top: 1rem; }
.np-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.4rem;
}
@media (max-width: 36rem) { .np-grid { grid-template-columns: 1fr; } }
.np-field-wide { grid-column: 1 / -1; }
.np-grid .field { margin-bottom: 0; }
.np-grid input, .np-grid select {
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.75rem;
  border: 2px solid var(--brand-line);
  border-radius: 0.5rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}
.np-grid select { padding: 0.55rem 0.75rem; }

.np-preview-wrap {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.np-preview-label { font-size: 0.88rem; color: var(--ink-2); margin: 0 0 0.6rem; }
.np-card-preview {
  background: linear-gradient(135deg, #faf6ef 0%, #fdfdfd 50%, #f0ede5 100%);
  border: 2px solid #aaa;
  border-radius: 10px;
  padding: 10px 12px;
  max-width: 340px;
  font-size: 0.82rem;
  line-height: 1.38;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 0.7rem;
}
.np-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
  padding-bottom: 4px;
  border-bottom: 1.5px solid #c00;
}
.np-card-title {
  font-weight: 800;
  font-size: 0.73rem;
  color: #c00;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.np-card-icon { 
  width: 18px; height: 18px;
  background: #c00;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.np-card-body { min-height: 40px; }
.np-card-empty { color: var(--ink-3); font-style: italic; margin: 0.2rem 0; font-size: 0.78rem; }
.np-line { margin-bottom: 2px; }
.np-name { font-weight: 700; font-size: 0.88rem; margin-bottom: 4px; }
.np-label { font-weight: 600; }
.np-kontakt { margin-top: 3px; padding-top: 2px; border-top: 1px dotted #ccc; }

@media print {
  .np-card-preview { box-shadow: none; border-color: #000; }
}

/* ════════════════════════════════════════════
   VORLESE-LEISTE (Read Aloud)
   ════════════════════════════════════════════ */
.read-aloud-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: var(--brand-3, #1a3a30);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.35);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
  flex-wrap: wrap;
  justify-content: center;
}
.read-aloud-bar.ra-active {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.3s ease;
}

.ra-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  min-height: 2.6rem;
  transition: background 0.15s, border-color 0.15s;
}
.ra-btn:hover,
.ra-btn:focus-visible {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.65);
  outline: none;
}
.ra-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.5);
}

.ra-btn-play,
.ra-btn-pause {
  min-width: 7.5rem;
  justify-content: center;
}

.ra-btn-stop {
  color: #ffb3b3;
  border-color: rgba(255,179,179,0.4);
}
.ra-btn-stop:hover {
  background: rgba(255,100,100,0.2);
  border-color: rgba(255,150,150,0.7);
}

.ra-rate {
  font-size: 0.95rem;
  font-weight: 700;
  min-width: 2.2rem;
  text-align: center;
  color: var(--gold, #f0a03c);
}

.ra-current-text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  font-style: italic;
  max-width: 24rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 0.5rem;
}

/* Hinweis-Knopf: bessere Stimme per Einwilligung freischalten */
.ra-hint {
  color: var(--gold, #f0a03c);
  border-color: rgba(240,160,60,0.55);
}
.ra-hint:hover,
.ra-hint:focus-visible {
  background: rgba(240,160,60,0.18);
  border-color: var(--gold, #f0a03c);
}

/* Gerade vorgelesener Abschnitt im Artikel */
.ra-highlight {
  background-color: rgba(240, 160, 60, 0.22);
  border-radius: 4px;
  box-shadow: 0 0 0 4px rgba(240, 160, 60, 0.10);
  transition: background-color 0.25s ease;
}

/* Button im Artikel-Header (neben "Seite drucken") */
.ra-trigger {
  /* erbt .btn .btn-light .btn-s .no-print */
}

/* Bei hohem Kontrast: weiße Leiste mit schwarzem Text */
[data-contrast="hoch"] .read-aloud-bar {
  background: #fff;
  color: #000;
  border-top: 2px solid #000;
}
[data-contrast="hoch"] .ra-btn {
  background: #f0f0f0;
  color: #000;
  border-color: #000;
}
[data-contrast="hoch"] .ra-btn:hover,
[data-contrast="hoch"] .ra-btn:focus-visible {
  background: #ddd;
}
[data-contrast="hoch"] .ra-btn-stop {
  color: #c00;
  border-color: #c00;
}
[data-contrast="hoch"] .ra-rate {
  color: #000;
}
[data-contrast="hoch"] .ra-current-text {
  color: #333;
}
[data-contrast="hoch"] .ra-hint {
  color: #7a4d00;
  border-color: #7a4d00;
}
[data-contrast="hoch"] .ra-hint:hover,
[data-contrast="hoch"] .ra-hint:focus-visible {
  background: #ffe9c4;
}
[data-contrast="hoch"] .ra-highlight {
  background-color: #ffe08a;
  box-shadow: none;
  outline: 2px solid #7a4d00;
}

@media (max-width: 540px) {
  .read-aloud-bar {
    gap: 0.35rem;
    padding: 0.5rem 0.6rem;
  }
  .ra-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    min-height: 2.2rem;
    gap: 0.2rem;
  }
  .ra-btn svg { width: 18px; height: 18px; }
  .ra-btn-play,
  .ra-btn-pause { min-width: auto; }
  .ra-current-text { display: none; }
  /* Auf kleinen Bildschirmen bleibt die Leiste schlank */
  .ra-hint { display: none; }
}

/* Notfallpass teilen */
.np-buttons {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.7rem;
}
.np-buttons-spacer {
  flex: 1;
  min-width: 0.5rem;
}
.btn-reset-pass {
  color: var(--ink-3);
  border-color: var(--line);
}
.btn-reset-pass:hover {
  color: var(--alert);
  border-color: var(--alert);
  background: #fff5f5;
}

.np-share-box {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
}
.np-share-text {
  width: 100%;
  font-family: monospace;
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  resize: vertical;
  background: #fdfdfd;
  color: var(--ink);
}
.np-share-feedback { font-size: 0.88rem; }

/* Aktionsplan */
#aktionsplan-section .box-info { background: var(--sage); border-color: var(--brand-line); }

/* Notfall-Seite: große Rufblöcke */
.sos-hero {
  background: linear-gradient(150deg, var(--alert) 0%, var(--alert-2) 100%);
  color: #fff;
  border-radius: 26px;
  padding: 2rem 2.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin: 1.5rem 0;
  box-shadow: 0 12px 34px rgba(185, 58, 38, 0.35);
}
.sos-hero h2 { color: #fff; margin: 0 0 0.5rem; font-size: 1.7rem; }
.sos-hero p { margin: 0.3rem 0; color: #fbd9d0; }
.sos-hero strong { color: #fff; }
.sos-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #fff;
  color: var(--alert);
  border-radius: var(--radius);
  text-decoration: none;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.13s ease, box-shadow 0.15s ease;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
}
.sos-big:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25); color: var(--alert-2); }
.sos-big .nr { font-size: 3.6rem; font-weight: 900; line-height: 1; }
.sos-big .was { font-weight: 700; font-size: 1.18rem; color: var(--ink-2); }
@media (max-width: 58rem) { .sos-hero { grid-template-columns: 1fr; } }

/* ---------- Artikel-Karten ---------- */
.art-card { text-decoration: none; color: var(--ink); transition: box-shadow 0.18s ease, transform 0.15s ease; }
.art-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); color: var(--ink); }
.art-card .art-kat {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cat, var(--accent-2));
  background: color-mix(in srgb, var(--cat, var(--accent)) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--cat, var(--accent)) 30%, #fff);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
}
@supports not (background: color-mix(in srgb, red 10%, white)) {
  .art-card .art-kat { background: var(--accent-tint); color: var(--accent-2); border-color: rgba(217, 115, 15, 0.3); }
}
.art-card h3 { color: var(--brand-3); margin: 0.35rem 0; }
.art-card .art-meta { font-size: 0.96rem; color: var(--ink-3); margin-top: auto; padding-top: 0.7rem; }

/* ---------- CTA-Band ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-3) 100%);
  color: #fff;
  border-radius: 26px;
  padding: 2.3rem 2.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.3rem;
  justify-content: space-between;
  box-shadow: 0 12px 34px rgba(31, 92, 75, 0.35);
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  border: 26px solid rgba(255, 255, 255, 0.07);
}
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 0.35rem 0 0; color: #cfe4d6; }
.cta-band .btn-outline { border-color: #fff; color: #fff; }
.cta-band .btn-outline:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

/* ---------- Fußzeile ---------- */
.site-footer {
  background: var(--brand-3);
  color: #c9ded2;
  margin-top: 0;
  padding: 2.8rem 0 1.7rem;
  font-size: 1.03rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:not(.f-tel) {
  position: relative;
}
.site-footer a:not(.f-tel)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.site-footer a:not(.f-tel):hover::after,
.site-footer a:not(.f-tel):focus-visible::after {
  width: 100%;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
}
.site-footer h2, .site-footer h3 {
  color: #fff;
  font-family: var(--sans);
  font-size: 1.13rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
}
.footer-brand { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.9rem; }
.footer-brand .brand-logo { width: 52px; height: 52px; }
.footer-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.footer-brand-name { color: #fff; font-size: 1.3rem; font-family: var(--serif); font-weight: 700; }
.footer-brand-ort { color: var(--gold); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.35rem 0; }
.footer-tel { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.f-tel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding: 0.45rem 0.4rem;
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, 0.08);
}
.f-tel:hover { background: rgba(255, 255, 255, 0.16); }
.f-tel .f-nr { font-size: 1.32rem; font-weight: 900; color: var(--gold); line-height: 1.15; }
.f-tel .f-was { font-size: 0.78rem; color: #9fbdb0; margin-top: 0.2rem; }
.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 2.2rem;
  padding-top: 1.3rem;
  font-size: 0.96rem;
  color: #9fbdb0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  justify-content: space-between;
}
.badge-nocookie {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.1rem;
  font-size: 0.92rem;
  color: #9fbdb0;
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 0;
}
@media (max-width: 58rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 36rem) { .footer-grid { grid-template-columns: 1fr; } .tool-card-big { padding: 1.2rem 1rem; } .ergebnis { padding: 1.2rem 1rem; } }

/* ---------- Info-Tooltips ---------- */
.info-i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--brand-line);
  color: var(--brand-3);
  font-size: 0.68rem;
  font-weight: 800;
  font-style: normal;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 0.3rem;
  line-height: 1;
  transition: background 0.12s ease, color 0.12s ease;
  flex-shrink: 0;
  user-select: none;
}
.info-i:hover, .info-i:focus-visible { background: var(--brand); color: #fff; outline: none; }
.info-i.active { background: var(--brand); color: #fff; }

.info-pop {
  position: absolute;
  z-index: 300;
  background: var(--card);
  border: 1px solid var(--brand);
  border-radius: 0.65rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 0.85rem 1rem;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 400;
  max-width: 18rem;
  min-width: 14rem;
  pointer-events: auto;
}
.info-pop p { margin: 0; }
.info-pop .info-pop-close {
  position: absolute;
  top: 0.3rem;
  right: 0.55rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink-2);
  padding: 0.1rem 0.3rem;
  line-height: 1;
}
.info-pop .info-pop-close:hover { color: var(--ink); }

/* Erlaubt relative positioning für tooltip-parent */
.pos-rel { position: relative; display: inline-flex; align-items: center; }

/* ---------- Nach-oben-Knopf ---------- */
.to-top {
  position: fixed;
  right: 1.2rem; bottom: 1.2rem;
  z-index: 250;
  width: 3.4rem; height: 3.4rem;
  border-radius: 50%;
  border: none;
  background: var(--brand);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(31, 92, 75, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.to-top.sichtbar { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-2); }

/* ---------- Druck ---------- */
@media print {
  .topbar, .site-header, .site-footer, .breadcrumb, .no-print, .sos-band, .cta-band, .to-top, .read-aloud-bar { display: none !important; }
  body { background: #fff; background-image: none; font-size: 12pt; color: #000; }
  .hero, .article-head, .section-sage, .section-paper2 { background: #fff !important; }
  .card, .vz-entry, .tool-card-big, .box, .check-group, .toc { box-shadow: none !important; border-color: #999 !important; break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; word-break: break-all; }
  .container { width: 100%; }
  h1 { font-size: 20pt; }
  h2 { font-size: 16pt; page-break-after: avoid; }
}

/* ==========================================================================
   Cookie-Consent-Banner & Einstellungen
   ========================================================================== */

/* ---------- Banner (unten fixiert) ---------- */
#vk-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: #fff;
  border-top: 3px solid var(--brand);
  box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.14);
  padding: 1.2rem 0;
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
#vk-consent-banner.vk-consent-banner--visible {
  transform: translateY(0);
}
.vk-consent-banner-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.8rem;
}
.vk-consent-banner-text {
  flex: 1 1 320px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.vk-consent-banner-title {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 0.25rem;
}
.vk-consent-banner-text a {
  color: var(--brand);
  text-decoration: underline;
  font-weight: 600;
}
.vk-consent-banner-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ---------- Banner-Buttons (ALLE drei MÜSSEN optisch gleichwertig sein — VG Hannover 10 A 5385/22) ---------- */
.vk-consent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
  font-family: var(--sans);
  line-height: 1.35;
  background: var(--ink);
  color: #fff;
}
.vk-consent-btn:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
}
/* Alle drei Banner-Buttons identisch gestylt (kein Nudging!) */
.vk-consent-btn--accept,
.vk-consent-btn--deny,
.vk-consent-btn--settings {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.vk-consent-btn--accept:hover,
.vk-consent-btn--deny:hover,
.vk-consent-btn--settings:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
}
/* Panel-Buttons (zweite Ebene) dürfen unterscheidbar sein */
.vk-consent-btn--save {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.vk-consent-btn--save:hover {
  background: var(--ink-2);
}
.vk-consent-btn--accept-all-panel {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.vk-consent-btn--accept-all-panel:hover {
  background: var(--brand-2);
  border-color: var(--brand-2);
}

/* ---------- Overlay / Panel ---------- */
#vk-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
#vk-consent-overlay.vk-consent-overlay--visible {
  opacity: 1;
  visibility: visible;
}
.vk-consent-panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  max-width: 620px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem 1.8rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
#vk-consent-overlay.vk-consent-overlay--visible .vk-consent-panel {
  transform: translateY(0);
}
.vk-consent-panel-close {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--ink-3);
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  line-height: 1;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.vk-consent-panel-close:hover {
  color: var(--ink);
  background: var(--paper-2);
}
.vk-consent-panel-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 0.3rem;
}
.vk-consent-panel-sub {
  font-size: 0.95rem;
  color: var(--ink-2);
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

/* ---------- Kategorie-Toggles ---------- */
.vk-consent-cat {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  padding: 1rem 1.1rem;
  margin-bottom: 0.7rem;
  transition: border-color 0.2s;
}
.vk-consent-cat:hover {
  border-color: var(--brand-line);
}
.vk-consent-cat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}
.vk-consent-cat-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.vk-consent-cat-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
}
.vk-consent-cat-desc {
  font-size: 0.85rem;
  color: var(--ink-3);
}
.vk-consent-cat-detail {
  margin: 0.6rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---------- Toggle-Switch ---------- */
.vk-consent-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.vk-consent-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.vk-consent-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 999px;
  transition: background 0.25s;
}
.vk-consent-toggle-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.vk-consent-toggle input:checked + .vk-consent-toggle-slider {
  background: var(--brand);
}
.vk-consent-toggle input:checked + .vk-consent-toggle-slider::before {
  transform: translateX(22px);
}
.vk-consent-toggle input:focus-visible + .vk-consent-toggle-slider {
  box-shadow: 0 0 0 3px var(--brand-tint);
}
.vk-consent-toggle.is-disabled .vk-consent-toggle-slider {
  background: var(--brand);
  opacity: 0.5;
  cursor: default;
}

/* ---------- Panel-Aktionen ---------- */
.vk-consent-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

/* ---------- Consent-Footer-Leiste (eingebettet in dunklen Footer) ---------- */
.vk-consent-footer-bar {
  background: var(--brand-3);
  padding-bottom: 0.9rem;
}
.vk-consent-footer-bar .container {
  display: flex;
  justify-content: center;
}
.vk-consent-footer-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.45rem 0.5rem 0.45rem 1.05rem;
}
.vk-consent-footer-icon {
  color: var(--gold);
  flex: none;
}
.vk-consent-footer-label {
  font-size: 0.94rem;
  color: #9fbdb0;
}
.vk-consent-footer-btn {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 0.42rem 1.15rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.vk-consent-footer-btn:hover,
.vk-consent-footer-btn:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--brand-3);
  outline: none;
}
.vk-consent-footer-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.45);
}
/* High-Contrast */
html[data-contrast="hoch"] .vk-consent-footer-bar {
  background: #fff;
}
html[data-contrast="hoch"] .vk-consent-footer-inner {
  background: #fff;
  border-color: #000;
}
html[data-contrast="hoch"] .vk-consent-footer-icon {
  color: #000;
}
html[data-contrast="hoch"] .vk-consent-footer-label {
  color: #000;
}
html[data-contrast="hoch"] .vk-consent-footer-btn {
  background: #000;
  color: #fff;
  border-color: #000;
}
html[data-contrast="hoch"] .vk-consent-footer-btn:hover,
html[data-contrast="hoch"] .vk-consent-footer-btn:focus-visible {
  background: #ffff00;
  border-color: #000;
  color: #000;
}

/* ---------- Einstellungen-Knopf im Karten-Placeholder (heller Hintergrund) ---------- */
.vk-map-settings-btn {
  background: none;
  border: none;
  color: var(--brand);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--sans);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0.15rem 0;
  transition: color 0.15s;
}
.vk-map-settings-btn:hover,
.vk-map-settings-btn:focus-visible {
  color: var(--brand-2);
}

/* ---------- Karten-Placeholder (wenn Consent fehlt) ---------- */
.vk-map-placeholder {
  background: var(--paper-2);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.vk-map-placeholder-icon {
  font-size: 2.8rem;
}
.vk-map-placeholder p {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-2);
  max-width: 28rem;
  line-height: 1.5;
}
.vk-map-placeholder .vk-consent-btn--accept {
  font-size: 1rem;
  padding: 0.65rem 1.5rem;
}

/* ---------- Kontrast-Modus Anpassungen ---------- */
[data-contrast="hoch"] #vk-consent-banner {
  background: #fff;
  border-top-color: #000;
}
[data-contrast="hoch"] .vk-consent-btn--accept,
[data-contrast="hoch"] .vk-consent-btn--deny,
[data-contrast="hoch"] .vk-consent-btn--settings,
[data-contrast="hoch"] .vk-consent-btn--accept-all-panel,
[data-contrast="hoch"] .vk-consent-btn--save {
  background: #000;
  color: #fff;
  border-color: #000;
}
