/* ==========================================================================
   Seniorenkompass Oberursel (Taunus) - Theme-Override (Stadt-Farben)
   Wird NACH style.css geladen und überschreibt die Basis-Farben.
   Stadt-spezifisch: liegt NICHT in shared/ und wird von sync-shared.sh
   nicht überschrieben.

   Farbkonzept "Brunnenstadt-Kupfer & Taunus-Bronze":
   - Brunnenstadt-Kupfer (#7E3C1B) = Brunnenstadt Oberursel (Taunus),
     inspiriert von der traditionsreichen Kupferhämmer- und Mühlenkultur am
     Urselbach, dem Fachwerk der Altstadt und den warmen Erdtönen des Vortaunus.
     Vollständig eigenständig und klar unterscheidbar von:
     Bad Vilbel (Grün), Karben (Amber), Offenbach (Königsblau),
     Bad Homburg (Violett), Hanau (Burgunder), Langen (Waldsee-Petrol),
     Neu-Isenburg (Hugenotten-Ziegelrot) und Maintal (Main-Schieferblau).
   - Taunus-Bronze (#8A5416 / #633B0E) = Warme Bronze- und Sandsteinakzente
   - Urselbach-Schieferblau (#1F3B4D) = Kühler Kontrastakzent
   - Papier = warmes, augenfreundliches Cremeweiß (#FAF6F2),
     Tinte = tiefes Kupfer-Anthrazit (#1C1613)

   Kontrast-Audit (WCAG 2.1 AA & AAA):
   - Brand #7E3C1B auf Weiß: > 8,5:1 (AAA)
   - Brand #7E3C1B auf Papier #FAF6F2: > 7,9:1 (AAA)
   - Weiß auf Brand #7E3C1B: > 8,5:1 (AAA)
   - Brand-1 #682F13 auf Weiß: > 10,6:1 (AAA)
   - Brand-2 #4E210A auf Weiß: > 13,5:1 (AAA)
   - Brand-3 #361505 auf Weiß: > 16,5:1 (AAA)
   - Ink #1C1613 auf Papier: > 16,2:1 (AAA)
   - Footer Text #F7EFE9 auf Brand-3 #361505: > 15,0:1 (AAA)
   ========================================================================== */

:root {
  --paper: #FAF6F2;
  --paper-2: #F4ECE4;
  --sage: #EBDCD0;
  --card: #FFFFFF;
  --ink: #1C1613;
  --ink-2: #4A3E37;
  --ink-3: #6B5B52;
  --line: #DFCFC2;
  --brand: #7E3C1B;
  --brand-1: #682F13;
  --brand-2: #4E210A;
  --brand-3: #361505;
  --brand-tint: #F7EFE9;
  --brand-line: #E2CEC0;
  --accent: #8A5416;
  --accent-2: #633B0E;
  --accent-tint: #FBF1E8;
  --accent-navy: #1F3B4D;
  --gold: #C28624;
  --rose: #B84C5E;
  --alert: #B93A26;
  --alert-2: #962D1C;
  --alert-tint: #FBE7E1;
  --ok: #247045;
  --ok-2: #1B5433;
  --ok-tint: #E8F4EC;
  --info-tint: #F3EEEB;
  --info-line: #D9C9BE;
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 2px 5px rgba(54, 21, 5, 0.07), 0 14px 34px rgba(54, 21, 5, 0.09);
  --shadow-hover: 0 4px 10px rgba(54, 21, 5, 0.11), 0 22px 48px rgba(54, 21, 5, 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: #F7EFE9;
  --card: #ffffff;
  --ink: #000000;
  --ink-2: #1a1a1a;
  --ink-3: #333333;
  --line: #666666;
  --brand: #4E210A;
  --brand-1: #361505;
  --brand-2: #240D02;
  --brand-3: #140701;
  --brand-tint: #F7EFE9;
  --brand-line: #7E3C1B;
  --accent: #4F2E08;
  --accent-2: #382004;
  --accent-tint: #FBF1E8;
  --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(126, 60, 27, 0.045) 1.2px, transparent 0);
  background-size: 26px 26px;
  text-rendering: optimizeLegibility;
}

.topbar {
  background: var(--brand-3);
  color: #F7EFE9;
  font-size: 1rem;
}

.fsize-label {
  margin-right: 0.2rem;
  color: #F7EFE9;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--card);
  border-bottom: 4px solid var(--brand);
  box-shadow: 0 2px 14px rgba(126, 60, 27, 0.12);
}

.brand-logo {
  width: 60px;
  height: 60px;
  flex: none;
  filter: drop-shadow(0 2px 5px rgba(126, 60, 27, 0.3));
}

.main-nav a[aria-current="page"] {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 3px 10px rgba(126, 60, 27, 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(126, 60, 27, 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(126, 60, 27, 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(126, 60, 27, 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(126, 60, 27, 0.25);
  transition: transform 0.18s ease;
}

.t-badge-wt {
  font-size: 0.78rem;
  color: #F7EFE9;
}

.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(126, 60, 27, 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(126, 60, 27, 0.3);
}

.vz-map {
  height: 460px;
  width: 100%;
  background: #F4ECE4;
}

.radio-card input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(126, 60, 27, 0.25);
}

.cat-dranbleiben {
  background: var(--accent-tint);
  color: var(--accent-2);
}

.read-aloud-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: var(--brand-3, #361505);
  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(126, 60, 27, 0.35);
  overflow: hidden;
}

.cta-band p {
  margin: 0.35rem 0 0;
  color: #F7EFE9;
}

.site-footer {
  background: var(--brand-3);
  color: #E8D5C8;
  margin-top: 0;
  padding: 2.8rem 0 1.7rem;
  font-size: 1.03rem;
}

.f-tel .f-was {
  font-size: 0.78rem;
  color: #D8BFAE;
  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: #D8BFAE;
  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: #D8BFAE;
  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(126, 60, 27, 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: #D8BFAE;
}

/* ============ Oberursel: Verzeichnis-Badges & Quartier- / 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: #F7EFE9;
  color: #682F13;
  border: 1px solid #E2CEC0;
}

.vz-badge-kultursensibel {
  background: var(--accent-tint);
  color: var(--accent-2);
  border: 1px solid #E8D5BC;
}

.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;
}

/* ============ Responsiveness & A11y Overflow-Schutz ============ */
.grid > * {
  min-width: 0;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.sos-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
}

.sos-item {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.sos-item .nr {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  overflow-wrap: break-word;
  word-break: break-word;
}

.sos-item .was {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.prose table {
  max-width: 100%;
}

.prose table td,
.prose table th {
  overflow-wrap: break-word;
  word-break: break-word;
}

.weg-card,
.angebot-card,
.card {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.weg-card h2,
.weg-card h3,
.angebot-card h3 {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

@media (max-width: 70rem) {
  .sos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 35rem) {
  .sos-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ Verzeichnis Grid & Overflow-Schutz ============ */
.vz-list {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 68rem) {
  .vz-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

html[data-fsize="gross2"] .vz-list,
html[data-fsize="gross3"] .vz-list {
  grid-template-columns: minmax(0, 1fr);
}

.vz-entry {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}
