/* =========================================================
   AfD Vellmar App – Premium v2 (seriös, institutionell)
   Nur Optik – Struktur unverändert
   ========================================================= */

:root {
  --navy-950: #021018;
  --navy-900: #021a2e;
  --navy-850: #032a48;
  --navy-800: #033a5c;
  --blue-700: #0066A6;
  --blue-600: #0088c8;
  --blue-500: #00A2DF;
  --blue-300: #5bc4ef;
  --red-600: #c8101e;
  --ink: #042036;
  --muted: #5a7188;
  --line: rgba(0, 102, 166, 0.12);
  --line-strong: rgba(0, 162, 223, 0.22);
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 10px 28px rgba(0, 102, 166, 0.09);
  --shadow-sm: 0 4px 14px rgba(0, 102, 166, 0.06);
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html, body {
  background: linear-gradient(165deg, #f3f9fc 0%, #e4f3fa 45%, #d6eef8 100%) !important;
  color: var(--ink) !important;
  font-family: var(--font) !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  color-scheme: light;
}

/* Typo: nur 400–700 */
body, button, input, select, textarea { font-weight: 400; }
strong, b, h1, h2, h3, .brand strong { font-weight: 700 !important; }
.button, .chip, .tab, .kicker, .eyebrow, .bottom-nav button,
.page-intro small, .clean-intro small, .topic-number {
  font-weight: 600 !important;
}

h1, h2, h3 {
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.kicker, .eyebrow, .section-label, .page-intro small, .clean-intro small {
  color: var(--blue-700) !important;
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  font-weight: 600 !important;
}

/* Header: hell, ruhig */
.app-header {
  background: linear-gradient(180deg, #ffffff 0%, #e8f4fb 100%) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: 0 4px 16px rgba(0, 102, 166, 0.05) !important;
  backdrop-filter: blur(14px) !important;
}
.app-header .brand span small { color: var(--blue-700) !important; font-weight: 600 !important; }
.app-header .brand span strong { color: var(--ink) !important; font-weight: 700 !important; }

/* Boot */
.boot {
  background: linear-gradient(160deg, #021a2e 0%, #0066A6 52%, #00A2DF 100%) !important;
  color: #fff !important;
}
.boot-glow { opacity: 0.35 !important; filter: blur(40px) !important; }

/* Hero */
.hero-clean, .hero {
  border: 1px solid rgba(0, 102, 166, 0.22) !important;
  border-radius: 20px !important;
  background: linear-gradient(148deg, #021a2e 0%, #033a5c 42%, #0066A6 100%) !important;
  box-shadow: var(--shadow) !important;
}

/* Buttons – ruhig */
.button, button.primary, .button.primary {
  font-weight: 600 !important;
  border-radius: 999px !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}
.button.primary, button.primary {
  background: linear-gradient(155deg, #1eb0e0 0%, #00A2DF 48%, #0066A6 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(0, 162, 223, 0.28) !important;
  box-shadow: 0 6px 18px rgba(0, 162, 223, 0.18) !important;
}
.button.primary:hover, button.primary:hover {
  box-shadow: 0 8px 22px rgba(0, 162, 223, 0.24) !important;
}
.button.glass {
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* Live-Punkt: kein aggressiver Pulse */
.live-pulse {
  animation: none !important;
  background: #21b77d !important;
  box-shadow: 0 0 0 3px rgba(33, 183, 125, 0.15) !important;
  opacity: 0.9 !important;
}

/* Cards */
.card, .live-strip, .panel, .block, .news-tool-card, .push-settings,
.weather-panel, .install-card, .family-page-panel, .detail-section,
.stimme-panel, .topic-card, .feed-card, .waste-card {
  background: linear-gradient(180deg, #ffffff 0%, #f5fafd 100%) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow-sm) !important;
  color: var(--ink) !important;
  border-radius: var(--radius) !important;
}

.topic-card {
  background: linear-gradient(160deg, #021a2e 0%, #033554 55%, #0066A6 100%) !important;
  color: #fff !important;
  border-color: rgba(0, 102, 166, 0.35) !important;
  box-shadow: 0 12px 32px rgba(2, 26, 46, 0.22) !important;
}
.topic-number {
  color: #5bc4ef !important;
  font-weight: 700 !important;
  opacity: 0.9;
}
.preview-status-chip {
  font-size: 9px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  background: rgba(2, 26, 46, 0.55) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  color: rgba(255,255,255,0.75) !important;
}

/* Chips / tabs */
.chip, .tag, .filter-chip, .tab {
  background: rgba(0, 162, 223, 0.08) !important;
  border: 1px solid rgba(0, 162, 223, 0.2) !important;
  color: var(--blue-700) !important;
  font-weight: 600 !important;
}
.chip.active, .tab.active, .filter-chip.active, .is-active {
  background: linear-gradient(155deg, #00A2DF, #0066A6) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(0, 162, 223, 0.16) !important;
}

/* Surprise: sehr dezent */
.surprise-top {
  background: #f0f7fb !important;
  border: 1px solid var(--line) !important;
  color: var(--muted) !important;
  box-shadow: none !important;
}

/* Bottom nav: dunkel, aktiv Hellblau */
.bottom-nav {
  background: linear-gradient(180deg, #033a5c 0%, #021a2e 100%) !important;
  border-top: 1px solid rgba(0, 162, 223, 0.22) !important;
  box-shadow: 0 -8px 24px rgba(2, 26, 46, 0.2) !important;
  backdrop-filter: blur(16px) !important;
}
.bottom-nav button {
  color: rgba(255, 255, 255, 0.55) !important;
  font-weight: 600 !important;
  font-size: 10px !important;
  background: transparent !important;
}
.bottom-nav button svg {
  stroke: rgba(255, 255, 255, 0.55) !important;
}
.bottom-nav button.active {
  color: #5bc4ef !important;
  background: rgba(0, 162, 223, 0.12) !important;
}
.bottom-nav button.active svg {
  stroke: #00A2DF !important;
}

/* Redesign-Overrides entschärfen */
body.app-redesign-2026 {
  background: linear-gradient(165deg, #f3f9fc 0%, #e4f3fa 45%, #d6eef8 100%) !important;
  color: var(--ink) !important;
}
body.app-redesign-2026 .bottom-nav {
  background: linear-gradient(180deg, #033a5c 0%, #021a2e 100%) !important;
  box-shadow: 0 -8px 24px rgba(2, 26, 46, 0.2) !important;
}
body.app-redesign-2026 .bottom-nav button { color: rgba(255,255,255,0.55) !important; }
body.app-redesign-2026 .bottom-nav button.active {
  color: #5bc4ef !important;
  background: rgba(0, 162, 223, 0.12) !important;
}
body.app-redesign-2026 .bottom-nav button.active svg { stroke: #00A2DF !important; }
body.app-redesign-2026 .app-header {
  background: linear-gradient(180deg, #ffffff 0%, #e8f4fb 100%) !important;
}
body.app-redesign-2026 .button.primary {
  background: linear-gradient(155deg, #1eb0e0 0%, #00A2DF 48%, #0066A6 100%) !important;
  box-shadow: 0 6px 18px rgba(0, 162, 223, 0.18) !important;
}

/* Inputs */
input, select, textarea {
  border: 1px solid rgba(0, 102, 166, 0.18) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--ink) !important;
}
input:focus, select:focus, textarea:focus {
  border-color: #00A2DF !important;
  box-shadow: 0 0 0 3px rgba(0, 162, 223, 0.14) !important;
  outline: none !important;
}

/* =========================================================
   V41 Feinabstimmung – Lesbarkeit, Gesamtbild, iPhone/PWA
   Diese Regeln stehen absichtlich am Dateiende und gewinnen
   gegen ältere Redesign-/Kontrast-Overrides.
   ========================================================= */

/* Ruhige, institutionelle Grundfläche – AfD-Blau nur als Akzent. */
html,
body,
body.app-redesign-2026 {
  background:
    radial-gradient(ellipse 75% 32% at 100% 0%, rgba(0, 162, 223, 0.10) 0%, transparent 62%),
    linear-gradient(165deg, #f7fbfd 0%, #eef7fb 48%, #e4f2f8 100%) !important;
  color: #042036 !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

/* Header bewusst heller und ruhiger als in der vorherigen Final-Version. */
body.app-redesign-2026 .app-header,
.app-header {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(235,247,252,.98) 100%) !important;
  border-bottom: 1px solid rgba(0, 102, 166, 0.13) !important;
  box-shadow: 0 4px 16px rgba(0, 72, 115, 0.06) !important;
}

/* Normale Inhaltsflächen immer hell – keine versehentlichen blauen Vollflächen. */
body.app-redesign-2026 .card,
body.app-redesign-2026 .panel,
body.app-redesign-2026 .block,
body.app-redesign-2026 .news-tool-card,
body.app-redesign-2026 .push-settings,
body.app-redesign-2026 .weather-panel,
body.app-redesign-2026 .install-card,
body.app-redesign-2026 .family-page-panel,
body.app-redesign-2026 .detail-section,
body.app-redesign-2026 .stimme-panel,
body.app-redesign-2026 .feed-card,
body.app-redesign-2026 .waste-card,
body.app-redesign-2026 .news-hub,
body.app-redesign-2026 .app-accordion {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%) !important;
  border-color: rgba(0, 102, 166, 0.13) !important;
  color: #042036 !important;
  box-shadow: 0 7px 22px rgba(0, 72, 115, 0.07) !important;
}

/* Push-Modul: eigenständige, ruhige Bedienfläche. */
body.app-redesign-2026 [data-page="news"] > .news-push-card,
body.app-redesign-2026 .news-push-card,
body.app-redesign-2026 .push-settings {
  background: #ffffff !important;
  border: 1px solid rgba(0, 102, 166, 0.16) !important;
  box-shadow: 0 8px 24px rgba(0, 72, 115, 0.08) !important;
  overflow: hidden !important;
}
body.app-redesign-2026 [data-page="news"] > .news-push-card .section-header,
body.app-redesign-2026 .news-push-card .section-header {
  background: transparent !important;
  color: #042036 !important;
}
body.app-redesign-2026 [data-page="news"] > .news-push-card .section-header small,
body.app-redesign-2026 .news-push-card .section-header small {
  color: #0066A6 !important;
}
body.app-redesign-2026 [data-page="news"] > .news-push-card .section-header h2,
body.app-redesign-2026 .news-push-card .section-header h2 {
  color: #042036 !important;
}
body.app-redesign-2026 .push-panel,
body.app-redesign-2026 .push-topic-list {
  background: transparent !important;
  color: #042036 !important;
}
body.app-redesign-2026 .push-topic {
  background: linear-gradient(180deg, #ffffff 0%, #f3f8fb 100%) !important;
  border: 1px solid rgba(0, 102, 166, 0.15) !important;
  box-shadow: 0 2px 8px rgba(0, 72, 115, 0.04) !important;
  color: #042036 !important;
}
body.app-redesign-2026 .push-topic:hover {
  background: #f0f8fc !important;
  border-color: rgba(0, 102, 166, 0.28) !important;
  transform: none !important;
}
body.app-redesign-2026 .push-topic:has(input:checked) {
  background: linear-gradient(180deg, #f3fbfe 0%, #e4f4fb 100%) !important;
  border-color: rgba(0, 102, 166, 0.34) !important;
  box-shadow: inset 0 0 0 1px rgba(0, 162, 223, 0.06), 0 2px 8px rgba(0,72,115,.04) !important;
}
body.app-redesign-2026 .push-topic strong {
  color: #05243b !important;
  font-weight: 700 !important;
}
body.app-redesign-2026 .push-topic small {
  color: #526d83 !important;
}
body.app-redesign-2026 .push-topic i {
  border-color: #6f8799 !important;
  background: #ffffff !important;
}
body.app-redesign-2026 .push-topic i::after {
  background: #0066A6 !important;
}
body.app-redesign-2026 .push-topic:has(input:checked) i,
body.app-redesign-2026 .push-topic input:checked ~ i {
  border-color: #0066A6 !important;
  background: #e8f5fb !important;
}

/* Zustimmung und Status: Kontrastfehler aus der vorherigen Ansicht ausschließen. */
body.app-redesign-2026 .push-consent {
  background: #f6fafc !important;
  border: 1px solid rgba(0, 102, 166, 0.16) !important;
  color: #3f5d73 !important;
  box-shadow: none !important;
}
body.app-redesign-2026 .push-consent:has(input:checked) {
  background: #eef8fc !important;
  border-color: rgba(0, 102, 166, 0.30) !important;
}
body.app-redesign-2026 .push-consent input {
  accent-color: #0066A6 !important;
}
body.app-redesign-2026 .push-status {
  background: #f4f8fb !important;
  border-color: rgba(0, 102, 166, 0.13) !important;
  color: #4d687e !important;
}
body.app-redesign-2026 .push-status[data-state="active"] {
  background: #edf8f2 !important;
  border-color: #9bc9af !important;
  color: #285d40 !important;
}
body.app-redesign-2026 .push-support {
  color: #526d83 !important;
}
body.app-redesign-2026 .push-privacy {
  color: #0066A6 !important;
  font-weight: 600 !important;
}
body.app-redesign-2026 .push-actions button {
  min-height: 44px !important;
  font-weight: 700 !important;
}
body.app-redesign-2026 .push-enable {
  background: linear-gradient(145deg, #033a5c 0%, #0066A6 58%, #00A2DF 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(0, 102, 166, 0.25) !important;
  box-shadow: 0 6px 16px rgba(0, 102, 166, 0.16) !important;
}
body.app-redesign-2026 .push-disable {
  background: #ffffff !important;
  color: #08283f !important;
  border: 1px solid rgba(0, 102, 166, 0.22) !important;
  box-shadow: 0 3px 10px rgba(0, 72, 115, 0.05) !important;
}

/* Bottom-Navigation: auf dem iPhone jederzeit klar lesbar. */
body.app-redesign-2026 .bottom-nav,
.bottom-nav {
  background: linear-gradient(180deg, #06446b 0%, #033451 38%, #021a2e 100%) !important;
  border-top: 1px solid rgba(91, 196, 239, 0.32) !important;
  box-shadow: 0 -7px 24px rgba(2, 26, 46, 0.22) !important;
  backdrop-filter: blur(16px) saturate(120%) !important;
}
body.app-redesign-2026 .bottom-nav button,
.bottom-nav button {
  color: rgba(255,255,255,.84) !important;
  background: transparent !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.18) !important;
}
body.app-redesign-2026 .bottom-nav button svg,
.bottom-nav button svg {
  stroke: rgba(255,255,255,.84) !important;
}
body.app-redesign-2026 .bottom-nav button.active,
body.app-redesign-2026 .bottom-nav button[aria-current="page"],
.bottom-nav button.active,
.bottom-nav button[aria-current="page"] {
  color: #ffffff !important;
  background: linear-gradient(180deg, rgba(0,162,223,.24), rgba(0,102,166,.22)) !important;
  border-color: rgba(91,196,239,.34) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 14px rgba(0,0,0,.10) !important;
}
body.app-redesign-2026 .bottom-nav button.active svg,
body.app-redesign-2026 .bottom-nav button[aria-current="page"] svg,
.bottom-nav button.active svg,
.bottom-nav button[aria-current="page"] svg {
  stroke: #ffffff !important;
}

/* Spezifische Altregeln für News/Familie/Müll dürfen die Lesbarkeit nicht ändern. */
body.app-redesign-2026 .bottom-nav button[data-nav="news"].active,
body.app-redesign-2026 .bottom-nav button[data-nav="family"].active,
body.app-redesign-2026 .bottom-nav button[data-nav="waste"].active,
body.app-redesign-2026 .bottom-nav button[data-nav="more"].active {
  color: #ffffff !important;
  background: linear-gradient(180deg, rgba(0,162,223,.24), rgba(0,102,166,.22)) !important;
}
body.app-redesign-2026 .bottom-nav button[data-nav="news"].active svg,
body.app-redesign-2026 .bottom-nav button[data-nav="family"].active svg,
body.app-redesign-2026 .bottom-nav button[data-nav="waste"].active svg,
body.app-redesign-2026 .bottom-nav button[data-nav="more"].active svg {
  stroke: #ffffff !important;
}

/* Kleine Displays: sechs Reiter bleiben lesbar, ohne das Layout umzubauen. */
@media (max-width: 430px) {
  body.app-redesign-2026 .bottom-nav button,
  .bottom-nav button {
    font-size: 9.5px !important;
    padding-left: 1px !important;
    padding-right: 1px !important;
  }
  body.app-redesign-2026 .bottom-nav button svg,
  .bottom-nav button svg {
    width: 19px !important;
    height: 19px !important;
  }
  body.app-redesign-2026 .push-topic {
    padding: 9px 9px !important;
  }
  body.app-redesign-2026 .push-topic strong {
    font-size: 12px !important;
  }
  body.app-redesign-2026 .push-topic small {
    font-size: 10px !important;
    line-height: 1.28 !important;
  }
}

/* Zugriff/Focus klar sichtbar. */
body.app-redesign-2026 button:focus-visible,
body.app-redesign-2026 a:focus-visible,
body.app-redesign-2026 input:focus-visible,
body.app-redesign-2026 textarea:focus-visible,
body.app-redesign-2026 select:focus-visible {
  outline: 3px solid rgba(0,162,223,.34) !important;
  outline-offset: 2px !important;
}

/* =========================================================
   V42 – Bottom-Navigation: maximale Lesbarkeit und Cache-Härtung
   Hintergrund bleibt institutionell dunkel; Beschriftungen und
   Symbole erhalten unabhängig von älteren Regeln festen Kontrast.
   ========================================================= */
html body.app-redesign-2026 nav.bottom-nav,
html body nav.bottom-nav {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  background: linear-gradient(180deg, #073e61 0%, #042b45 42%, #021a2e 100%) !important;
  border-top: 1px solid rgba(91, 196, 239, 0.48) !important;
  box-shadow: 0 -8px 26px rgba(2, 26, 46, 0.28) !important;
  padding: 7px 7px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  backdrop-filter: blur(16px) saturate(115%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(115%) !important;
}

html body.app-redesign-2026 nav.bottom-nav > button,
html body nav.bottom-nav > button {
  min-height: 58px !important;
  padding: 6px 1px 5px !important;
  gap: 4px !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  background: transparent !important;
  color: #eef8fc !important;
  opacity: 1 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22) !important;
}

/* Explizit auf SPAN und SVG setzen: ältere Contrast-Regeln dürfen
   weder den aktiven Text dunkel färben noch Icons ausgrauen. */
html body.app-redesign-2026 nav.bottom-nav > button > span,
html body nav.bottom-nav > button > span {
  display: block !important;
  color: #eef8fc !important;
  -webkit-text-fill-color: #eef8fc !important;
  opacity: 1 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
}
html body.app-redesign-2026 nav.bottom-nav > button > svg,
html body nav.bottom-nav > button > svg {
  width: 22px !important;
  height: 22px !important;
  color: #dff3fb !important;
  stroke: #dff3fb !important;
  opacity: 1 !important;
}
html body.app-redesign-2026 nav.bottom-nav > button > svg path,
html body nav.bottom-nav > button > svg path {
  fill: none !important;
  stroke: inherit !important;
  stroke-width: 1.85 !important;
}

html body.app-redesign-2026 nav.bottom-nav > button.active,
html body.app-redesign-2026 nav.bottom-nav > button[aria-current="page"],
html body nav.bottom-nav > button.active,
html body nav.bottom-nav > button[aria-current="page"] {
  background: linear-gradient(180deg, #0088c8 0%, #0066A6 100%) !important;
  border-color: rgba(91, 196, 239, 0.62) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 4px 12px rgba(0,0,0,.16) !important;
}
html body.app-redesign-2026 nav.bottom-nav > button.active > span,
html body.app-redesign-2026 nav.bottom-nav > button[aria-current="page"] > span,
html body nav.bottom-nav > button.active > span,
html body nav.bottom-nav > button[aria-current="page"] > span {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}
html body.app-redesign-2026 nav.bottom-nav > button.active > svg,
html body.app-redesign-2026 nav.bottom-nav > button[aria-current="page"] > svg,
html body nav.bottom-nav > button.active > svg,
html body nav.bottom-nav > button[aria-current="page"] > svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
  opacity: 1 !important;
}

@media (max-width: 430px) {
  html body.app-redesign-2026 nav.bottom-nav > button,
  html body nav.bottom-nav > button,
  html body.app-redesign-2026 nav.bottom-nav > button > span,
  html body nav.bottom-nav > button > span {
    font-size: 10.5px !important;
  }
  html body.app-redesign-2026 nav.bottom-nav > button > svg,
  html body nav.bottom-nav > button > svg {
    width: 21px !important;
    height: 21px !important;
  }
}

/* =========================================================
   V45 – Filterzahlen sauber in den Pills ausrichten.
   Gilt für Nachrichten- und Politikradar-Filter und gewinnt
   absichtlich gegen ältere Contrast-/Accessibility-Regeln.
   ========================================================= */
html body.app-redesign-2026 .news-filter-modern button,
html body.app-redesign-2026 .party-filter-row button,
html body.app-redesign-2026 .filter-row button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  line-height: 1 !important;
}

html body.app-redesign-2026 .news-filter-modern .filter-count,
html body.app-redesign-2026 .party-filter-row .filter-count,
html body.app-redesign-2026 .filter-row .filter-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  vertical-align: middle !important;
  margin: 0 !important;
  min-width: 23px !important;
  height: 23px !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  opacity: 1 !important;
  box-sizing: border-box !important;
  background: #e1edf4 !important;
  color: #24465d !important;
  -webkit-text-fill-color: #24465d !important;
}

html body.app-redesign-2026 .news-filter-modern button.active .filter-count,
html body.app-redesign-2026 .news-filter-modern button[aria-pressed="true"] .filter-count,
html body.app-redesign-2026 .party-filter-row button.active .filter-count,
html body.app-redesign-2026 .party-filter-row button[aria-pressed="true"] .filter-count,
html body.app-redesign-2026 .filter-row button.active .filter-count,
html body.app-redesign-2026 .filter-row button[aria-pressed="true"] .filter-count {
  background: rgba(255,255,255,.22) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Nachrichtenfilter als inhaltsbreite Pills statt erzwungener Viertelbreite.
   Dadurch bleibt jede Zahl eindeutig bei ihrem Label; falls der Platz auf sehr
   kleinen Displays nicht reicht, scrollt die Reihe horizontal statt zu quetschen. */
html body.app-redesign-2026 .news-filter-modern {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}
html body.app-redesign-2026 .news-filter-modern::-webkit-scrollbar { display: none !important; }
html body.app-redesign-2026 .news-filter-modern button {
  flex: 0 0 auto !important;
  min-width: max-content !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
  overflow: visible !important;
}

@media (max-width: 430px) {
  html body.app-redesign-2026 .news-filter-modern button {
    gap: 5px !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    font-size: 11px !important;
  }
  html body.app-redesign-2026 .news-filter-modern .filter-count {
    min-width: 21px !important;
    height: 21px !important;
    padding: 0 5px !important;
    font-size: 10px !important;
  }
}


/* =========================================================
   V46 – Filterzahlen klar sichtbar in News- und Familienfiltern
   Aktive und inaktive Zähler erhalten deutlichen Kontrast.
   ========================================================= */
html body.app-redesign-2026 .news-filter-modern .filter-count,
html body.app-redesign-2026 .party-filter-row .filter-count,
html body.app-redesign-2026 .family-filter-row .filter-count,
html body.app-redesign-2026 .page[data-page="family"] .filter-count,
html body.app-redesign-2026 .filter-row .filter-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  min-width: 26px !important;
  height: 26px !important;
  padding: 0 7px !important;
  margin-left: 6px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(20, 74, 114, 0.10) !important;
  background: #e2ebf2 !important;
  color: #1f4258 !important;
  -webkit-text-fill-color: #1f4258 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-align: center !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

html body.app-redesign-2026 .news-filter-modern button.active .filter-count,
html body.app-redesign-2026 .news-filter-modern button[aria-pressed="true"] .filter-count,
html body.app-redesign-2026 .party-filter-row button.active .filter-count,
html body.app-redesign-2026 .party-filter-row button[aria-pressed="true"] .filter-count,
html body.app-redesign-2026 .family-filter-row button.active .filter-count,
html body.app-redesign-2026 .family-filter-row button[aria-pressed="true"] .filter-count,
html body.app-redesign-2026 .page[data-page="family"] .filter-row button.active .filter-count,
html body.app-redesign-2026 .page[data-page="family"] .filter-row button[aria-pressed="true"] .filter-count,
html body.app-redesign-2026 .filter-row button.active .filter-count,
html body.app-redesign-2026 .filter-row button[aria-pressed="true"] .filter-count {
  border-color: rgba(0, 102, 166, 0.22) !important;
  background: #0f6fa8 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html body.app-redesign-2026 .family-filter-row button,
html body.app-redesign-2026 .page[data-page="family"] .filter-row button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}
