/* ==========================================================================
   Seniorenkompass Maintal — 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 "Klares Main-Flussblau":
   – Main-Flussblau (#136F9E) = Stadt am Main (Dörnigheim, Bischofsheim,
     Hochstadt, Wachenbuchen), bewusst ohne Rot/Grün der Stadtbildmarke,
     um als unabhängiges Bürgerportal erkennbar zu bleiben.
   – Warmer Bernstein/Gold (#C48214 / #96620B) = Kompassnadel & warme Akzente
   – Papier = kühles, blendfreies Fluss-Weiß (#FAFCFD), Tinte = tiefes Schieferblau (#16222B)
   ========================================================================== */

:root {
  --paper: #FAFCFD;
  --paper-2: #F0F6FA;
  --sage: #E3EEF5;
  --card: #FFFFFF;
  --ink: #16222B;
  --ink-2: #354754;
  --ink-3: #566B7A;
  --line: #CFE0EC;
  --brand: #136F9E;
  --brand-1: #0F5B82;
  --brand-2: #0B4360;
  --brand-3: #06283B;
  --brand-tint: #EAF4F9;
  --brand-line: #BCD9EA;
  --accent: #C48214;
  --accent-2: #96620B;
  --accent-tint: #FDF6E7;
  --gold: #D49B27;
  --rose: #C2526D;
  --alert: #B93A26;
  --alert-2: #962D1C;
  --alert-tint: #FBE7E1;
  --ok: #2E7D43;
  --ok-2: #256B38;
  --ok-tint: #E7F3E9;
  --info-tint: #EDF5FA;
  --info-line: #BBD5E6;
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 2px 5px rgba(6, 40, 59, 0.07), 0 14px 34px rgba(6, 40, 59, 0.09);
  --shadow-hover: 0 4px 10px rgba(6, 40, 59, 0.11), 0 22px 48px rgba(6, 40, 59, 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: #EAF4F9;
  --card: #ffffff;
  --ink: #000000;
  --ink-2: #222222;
  --ink-3: #3a3a3a;
  --line: #8a8a8a;
  --brand: #0B4360;
  --brand-1: #06283B;
  --brand-2: #041D2B;
  --brand-3: #02121B;
  --brand-tint: #EAF4F9;
  --brand-line: #136F9E;
  --accent: #7A5006;
  --accent-2: #5A3A03;
  --accent-tint: #FDF6E7;
  --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(19, 111, 158, 0.045) 1.2px, transparent 0);
  background-size: 26px 26px;
  text-rendering: optimizeLegibility;
}
.topbar {
  background: var(--brand-3);
  color: #EAF4F9;
  font-size: 1rem;
}
.fsize-label {
  margin-right: 0.2rem;
  color: #EAF4F9;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--card);
  border-bottom: 4px solid var(--brand);
  box-shadow: 0 2px 14px rgba(19, 111, 158, 0.12);
}
.brand-logo {
  width: 60px;
  height: 60px;
  flex: none;
  filter: drop-shadow(0 2px 5px rgba(19, 111, 158, 0.3));
}
.main-nav a[aria-current="page"] {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 3px 10px rgba(19, 111, 158, 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(19, 111, 158, 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(19, 111, 158, 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(19, 111, 158, 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(19, 111, 158, 0.25);
  transition: transform 0.18s ease;
}
.t-badge-wt {
  font-size: 0.78rem;
  color: #EAF4F9;
}
.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(19, 111, 158, 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(19, 111, 158, 0.3);
}
.vz-map {
  height: 460px;
  width: 100%;
  background: #EAF4F9;
}
.radio-card input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(19, 111, 158, 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, #06283B);
  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(19, 111, 158, 0.35);
  overflow: hidden;
}
.cta-band p {
  margin: 0.35rem 0 0;
  color: #EAF4F9;
}
.site-footer {
  background: var(--brand-3);
  color: #D8E9F3;
  margin-top: 0;
  padding: 2.8rem 0 1.7rem;
  font-size: 1.03rem;
}
.f-tel .f-was {
  font-size: 0.78rem;
  color: #B2CDDF;
  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: #B2CDDF;
  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: #B2CDDF;
  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(19, 111, 158, 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: #B2CDDF;
}

/* ============ Maintal: 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: #EAF4F9;
  color: #0F5B82;
  border: 1px solid #BCD9EA;
}
.vz-badge-kultursensibel {
  background: var(--accent-tint);
  color: var(--accent-2);
  border: 1px solid #ECD9B6;
}
.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;
  }
}
