/* ==========================================================================
   Seniorenkompass Neu-Isenburg - 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 "Hugenotten-Ziegelrot & Warmes Messing":
   - Hugenotten-Ziegelrot (#8F2D18) = Hugenottenstadt Neu-Isenburg,
     gegründet 1699 durch Graf Johann Philipp von Ysenburg-Büdingen.
     Inspiriert von den roten Isenburgischen Balken im Stadtwappen und der
     historischen Backstein- und Mansardarchitektur des Hugenottenviertels.
     Vollständig eigenständig und klar unterscheidbar von:
     Bad Vilbel (Grün), Karben (Amber), Offenbach (Königsblau),
     Bad Homburg (Violett), Hanau (Burgunder) und Langen (Waldsee-Petrol).
   - Warmes Messing (#966C12 / #704F09) = Historische Glocken- & Wappenakzente
   - Hugenotten-Nachtblau (#1A365D) = Schildgrund des Hugenottenkreuzes im Wappen
   - Papier = warmes, augenfreundliches Fondweiß (#FDFCFB),
     Tinte = tiefes Ziegel-Anthrazit (#231C1A)

   Kontrast-Audit (WCAG 2.1 AA & AAA):
   - Brand #8F2D18 auf Weiß: 8,21:1 (AAA)
   - Brand #8F2D18 auf Papier: 8,02:1 (AAA)
   - Weiß auf Brand #8F2D18: 8,21:1 (AAA)
   - Brand-1 #772412 auf Weiß: 10,27:1 (AAA)
   - Brand-2 #58190B auf Weiß: 13,47:1 (AAA)
   - Brand-3 #3A1006 auf Weiß: 16,71:1 (AAA)
   - Brand #8F2D18 auf Brand-Tint #FBF2EF: 7,45:1 (AAA)
   - Accent #966C12 auf Weiß: 4,72:1 (AA)
   - Accent-2 #704F09 auf Weiß: 7,47:1 (AAA)
   - Accent-2 #704F09 auf Accent-Tint #FAF3E5: 6,76:1 (AA)
   - Hugenotten-Nachtblau #1A365D auf Weiß: 12,14:1 (AAA)
   - Ink #231C1A auf Papier: 16,36:1 (AAA)
   - Ink-2 #463834 auf Papier: 10,93:1 (AAA)
   - Ink-3 #6A5852 auf Papier: 6,55:1 (AA)
   - Footer Text #FBF2EF auf Brand-3 #3A1006: 15,16:1 (AAA)
   ========================================================================== */

:root {
  --paper: #FDFCFB;
  --paper-2: #F7F2F0;
  --sage: #EFE4E0;
  --card: #FFFFFF;
  --ink: #231C1A;
  --ink-2: #463834;
  --ink-3: #6A5852;
  --line: #DEC8C0;
  --brand: #8F2D18;
  --brand-1: #772412;
  --brand-2: #58190B;
  --brand-3: #3A1006;
  --brand-tint: #FBF2EF;
  --brand-line: #E8CBC2;
  --accent: #966C12;
  --accent-2: #704F09;
  --accent-tint: #FAF3E5;
  --accent-navy: #1A365D;
  --gold: #C5941E;
  --rose: #C24F64;
  --alert: #B93A26;
  --alert-2: #962D1C;
  --alert-tint: #FBE7E1;
  --ok: #247045;
  --ok-2: #1B5433;
  --ok-tint: #E8F4EC;
  --info-tint: #F5EEF0;
  --info-line: #DBC6CD;
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 2px 5px rgba(58, 16, 6, 0.07), 0 14px 34px rgba(58, 16, 6, 0.09);
  --shadow-hover: 0 4px 10px rgba(58, 16, 6, 0.11), 0 22px 48px rgba(58, 16, 6, 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: #FBF2EF;
  --card: #ffffff;
  --ink: #000000;
  --ink-2: #1a1a1a;
  --ink-3: #333333;
  --line: #666666;
  --brand: #4A1206;
  --brand-1: #330C04;
  --brand-2: #200702;
  --brand-3: #100301;
  --brand-tint: #FBF2EF;
  --brand-line: #8F2D18;
  --accent: #523803;
  --accent-2: #3B2802;
  --accent-tint: #FAF3E5;
  --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(143, 45, 24, 0.045) 1.2px, transparent 0);
  background-size: 26px 26px;
  text-rendering: optimizeLegibility;
}

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

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

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

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

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

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

.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(143, 45, 24, 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(143, 45, 24, 0.3);
}

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

.radio-card input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(143, 45, 24, 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, #3A1006);
  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(143, 45, 24, 0.35);
  overflow: hidden;
}

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

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

.f-tel .f-was {
  font-size: 0.78rem;
  color: #D6B9B0;
  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: #D6B9B0;
  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: #D6B9B0;
  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(143, 45, 24, 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: #D6B9B0;
}

/* ============ Neu-Isenburg: 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: #FBF2EF;
  color: #772412;
  border: 1px solid #E8CBC2;
}

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

/* ============ 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;
}
