/* ==========================================================================
   Seniorenkompass Bad Homburg vor der Höhe — Theme-Override (Stadt-Farben)
   Wird NACH style.css geladen und überschreibt die Basis-Grüntöne.
   Stadt-spezifisch: liegt NICHT in shared/ und wird von sync-shared.sh
   nicht überschrieben.

   Farbkonzept "Kurstadt-Violett":
   – Violett  = Kurstadt-Eleganz (Kaiser-Wilhelms-Bad, Königslavendel),
                klar unterscheidbar von Bad Vilbel (Grün), Karben (Amber)
                und Offenbach (Blau)
   – Beerenrot = Akzent (Purpur-Tradition der Kurhäuser, Wappen-Rot)
   – Papier    = zart violett-weiß, Tinte = dunkles Violett-Grau

   Kontrast-Audit (WCAG AA, gemessen 01.08.2026): 28/28 Paare ≥ 4,5:1
   (Liste im BAD-HOMBURG-HANDBUCH, Teil 4).
   ========================================================================== */

:root {
  --paper: #F8F6FC;
  --paper-2: #F0ECF8;
  --sage: #E9E3F4;
  --card: #FFFFFF;
  --ink: #241D34;
  --ink-2: #4B4363;
  --ink-3: #6C6486;
  --line: #DDD6EC;
  --brand: #5B3E8F;
  --brand-1: #4B3277;
  --brand-2: #3B2760;
  --brand-3: #2B1B46;
  --brand-tint: #F1ECF8;
  --brand-line: #DCCFEE;
  --accent: #9E2B4E;
  --accent-2: #7E2240;
  --accent-tint: #F9E8E6;
  --gold: #C8951F;
  --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(59, 39, 96, 0.07), 0 14px 34px rgba(59, 39, 96, 0.09);
  --shadow-hover: 0 4px 10px rgba(59, 39, 96, 0.11), 0 22px 48px rgba(59, 39, 96, 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;
}
html[data-contrast="hoch"] {
  --paper: #ffffff;
  --paper-2: #f4f4f4;
  --sage: #F1ECF8;
  --card: #ffffff;
  --ink: #000000;
  --ink-2: #222222;
  --ink-3: #3a3a3a;
  --line: #8a8a8a;
  --brand: #3B2760;
  --brand-1: #2B1B46;
  --brand-2: #241539;
  --brand-3: #1B0F2B;
  --brand-tint: #E6DEF2;
  --brand-line: #BFA9DC;
  --accent: #7E2240;
  --accent-2: #611A33;
  --accent-tint: #F3DDE2;
  --alert: #8F1708;
  --alert-2: #701005;
  --alert-tint: #FBE3E0;
  --ok: #0D5220;
  --ok-2: #0A3D18;
}
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(91, 62, 143, 0.05) 1.2px, transparent 0);
  background-size: 26px 26px;
  text-rendering: optimizeLegibility;
}
.topbar {
  background: var(--brand-3);
  color: #E3DBF4;
  font-size: 1rem;
}
.fsize-label {
  margin-right: 0.2rem;
  color: #E3DBF4;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--card);
  border-bottom: 4px solid var(--brand);
  box-shadow: 0 2px 14px rgba(91, 62, 143, 0.12);
}
.brand-logo {
  width: 60px;
  height: 60px;
  flex: none;
  filter: drop-shadow(0 2px 5px rgba(91, 62, 143, 0.3));
}
/* Kopfzeile: dank des langen Stadtnamens „Bad Homburg vor der Höhe“
   kompaktere Typografie, damit Brand und Navigation auf einer Zeile
   bleiben (wie bei den Schwester-Portalen). */
.header-inner {
  gap: 0.4rem 0.75rem;
}
.brand-name {
  font-size: 1.5rem;
}
.brand-ort {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}
.main-nav ul {
  flex-wrap: nowrap;
}
.main-nav a {
  padding: 0.55rem 0.85rem;
  font-size: 1.05rem;
}
@media (max-width: 68rem) {
  .brand-name { font-size: 1.38rem; }
  .brand-ort { font-size: 0.72rem; letter-spacing: 0.11em; }
  .main-nav a { padding: 0.5rem 0.65rem; font-size: 0.97rem; }
}
.main-nav a[aria-current="page"] {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 3px 10px rgba(91, 62, 143, 0.35);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 0;
  overflow-wrap: break-word;
  hyphens: auto;
  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(91, 62, 143, 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(91, 62, 143, 0.25);
}
.finder-ico {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--cat, var(--brand));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 9px rgba(91, 62, 143, 0.22);
  transition: transform 0.16s ease;
}
.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(91, 62, 143, 0.25);
  transition: transform 0.18s ease;
}
.t-badge-wt {
  font-size: 0.78rem;
  color: #E3DBF4;
}
.chip-privat {
  background: var(--ok-tint);
  color: var(--ok-2);
  border-color: var(--brand-line);
}
.vz-search:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 4px rgba(91, 62, 143, 0.15);
}
.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(91, 62, 143, 0.3);
}
.vz-map {
  height: 460px;
  width: 100%;
  background: #EFE9F8;
}
.radio-card input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(91, 62, 143, 0.25);
}
.cat-dranbleiben {
  background: var(--accent-tint);
  color: var(--accent-2); /* 8,09:1 auf --accent-tint */
}
.read-aloud-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: var(--brand-3, #2B1B46);
  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;
}
.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(91, 62, 143, 0.35);
  overflow: hidden;
}
.cta-band p {
  margin: 0.35rem 0 0;
  color: #E3DBF4;
}
.site-footer {
  background: var(--brand-3);
  color: #CFC4E8;
  margin-top: 0;
  padding: 2.8rem 0 1.7rem;
  font-size: 1.03rem;
}
/* Fußzeile: Ortsname mit längerem Namen auf eine Zeile bringen
   (schwächere Sperrung, kleinere Schrift) */
.footer-brand-ort {
  font-size: 0.78rem;
  letter-spacing: 0.13em;
}
@media (max-width: 72rem) {
  .footer-brand { gap: 0.5rem; }
  .footer-brand .brand-logo { width: 44px; height: 44px; }
  .footer-brand-ort { font-size: 0.68rem; letter-spacing: 0.09em; }
}
.f-tel .f-was {
  font-size: 0.78rem;
  color: #A99AD0;
  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: #A99AD0;
  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: #A99AD0;
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 0;
}
.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(91, 62, 143, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.vk-consent-footer-label {
  font-size: 0.94rem;
  color: #A99AD0;
}

/* ============ Bad Homburg: Verzeichnis-Badges & Sprach-Filter ============ */
.vz-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 0.2rem;
}
.vz-badge {
  display: inline-block;
  font-size: 0.78rem;
  line-height: 1;
  padding: 0.34rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.vz-badge-sprachen {
  background: #EFE9F8;
  color: #4B3277;
  border: 1px solid #D8CCEE;
}
.vz-badge-kultursensibel {
  background: var(--accent-tint);
  color: var(--accent-2);
  border: 1px solid #EFD9D4;
}
.vz-sprach-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.85rem 0 0;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}
.vz-sprach-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-2);
  margin-right: 0.15rem;
}
.vz-filter-sprache {
  font-size: 0.9rem;
}
.vz-filter-sprache.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
