/**
 * Fahndungs-Ticker — Seitenmodul für /polizei-fahndungen/ (Kit-v2.3-Konsument).
 * Lädt NACH kit.css/kit-pages.css (class-assets.php, Kit-Weiche) und nutzt
 * ausschließlich Kit-Tokens. Karten sind dynamisch (fahndungen.js) und laufen
 * deshalb bewusst OHNE data-reveal (kit.css-.js-Gate greift nur auf Markup,
 * das beim Initial-Scan existiert).
 */

/* ---- Filterleiste ---------------------------------------------------- */

.bp-fx__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.bp-fx__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Die Elementor-Kit-Globals (.elementor-kit-7 button …) stylen live JEDEN
   <button> auf Bebas/Teal/22px — die Chip-Optik braucht deshalb harte Resets
   (Muster laut PROJECT.md: gleichrangige Sitewide-Regeln nur per !important
   oder ID-Spezifität zu schlagen). */
.bp-fx__tab {
  cursor: pointer;
  padding: var(--space-3) var(--space-6) !important;
  border: var(--border-w) solid var(--chip-border) !important;
  border-radius: var(--radius-pill) !important;
  background: var(--chip-bg) !important;
  color: var(--chip-fg) !important;
  font-family: var(--font-sans) !important;
  font-size: var(--text-xs) !important;
  font-weight: var(--copy-wght) !important;
  line-height: var(--xs-lh) !important;
  text-transform: none !important;
  transition: background-color 0.45s cubic-bezier(0.44, 0, 0.56, 1), color 0.45s cubic-bezier(0.44, 0, 0.56, 1), border-color 0.45s cubic-bezier(0.44, 0, 0.56, 1);
}

.bp-fx__tab:hover {
  border-color: var(--teal) !important;
}

.bp-fx__tab.is-active {
  border-color: transparent !important;
  background: var(--teal-deep) !important;
  color: var(--color-text-inverse, #fff) !important;
}

.bp-fx__select-wrap {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.bp-fx__select-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--steel);
}

.bp-fx__select {
  appearance: none;
  padding: var(--space-3) var(--space-8) var(--space-3) var(--space-6);
  border: var(--border-w) solid var(--chip-border);
  border-radius: var(--radius-pill);
  background-color: var(--chip-bg);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  color: var(--chip-fg);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--copy-wght);
  line-height: var(--xs-lh);
}

/* ---- Status / Stand --------------------------------------------------- */

.bp-fx__loading,
.bp-fx__empty {
  grid-column: 1 / -1;
  padding: var(--space-10) var(--space-6);
  border: var(--border-w) dashed var(--ink-15);
  border-radius: var(--radius-card);
  text-align: center;
  color: var(--steel);
}

.bp-fx__stand {
  margin-top: var(--space-6);
  text-align: center;
  color: var(--steel);
}

.bp-fx__more {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding-top: var(--space-4);
}

/* Nativer <button> → dieselbe Elementor-Kit-Globals-Falle wie die Tabs:
   bp-btn-Optik auf den betroffenen Properties hart wiederherstellen. */
.bp-fx__more-btn {
  min-height: var(--pill-height) !important;
  padding: var(--pill-pad) !important;
  border: 0 !important;
  border-radius: var(--radius-button) !important;
  background: var(--button-bg) !important;
  color: var(--button-fg) !important;
  font-family: var(--font-sans) !important;
  font-size: var(--text-btn) !important;
  font-weight: var(--btn-wght) !important;
  line-height: var(--control-lh) !important;
  text-transform: none !important;
  cursor: pointer;
}

@media (max-width: 767px) {
  .bp-fx__bar {
    flex-direction: column;
    align-items: stretch;
  }
  .bp-fx__select-wrap {
    width: 100%;
  }
  .bp-fx__select {
    flex: 1;
    min-width: 0;
  }
}

/* =======================================================================
   Fahndungs-Karte „Akten-Split" (Chris-Entscheid 31.08.): schmale
   Wappen-Spalte links mit vertikalem Bundesland + Hairline, Fußzeile mit
   Status (Punkt + Wort) und Button. Status-Farben sind bewusst lokale
   Komponenten-Tokens — das Kit kennt kein Ampel-Rot/Grün.
   ======================================================================= */

.bp-card.bp-fxc {
  --fx-status-gesucht: #dc2626;
  --fx-status-sichergestellt: #16a34a;
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto 1fr;
  align-content: stretch;
  column-gap: var(--space-5);
  row-gap: var(--space-4);
}

.bp-fxc__side {
  grid-row: 1 / span 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding-right: var(--space-5);
  border-right: var(--border-w) solid var(--ink-10);
}

.bp-fxc__wappen {
  height: 36px;
  width: auto;
  max-width: 44px;
  object-fit: contain;
  flex: none;
}

.bp-fxc__side .bp-fxc__land {
  writing-mode: vertical-rl;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-size: 10px;
  line-height: 1;
  color: var(--steel);
}

.bp-fxc > .bp-t-h4-sm {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  margin: 0;
}

.bp-fxc > .bp-t-base {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin: 0;
}

.bp-fxc > .bp-fxc__foot {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
}

.bp-fxc__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: var(--border-w) solid var(--ink-10);
}

.bp-fxc__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  min-width: 0;
}

.bp-fxc__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: var(--xs-lh);
  color: var(--ink);
}

.bp-fxc__status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--fx-status-gesucht);
}

.bp-fxc__status--sichergestellt::before {
  background: var(--fx-status-sichergestellt);
}

.bp-fxc__datum {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--steel);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .bp-card.bp-fxc {
    grid-template-columns: 44px 1fr;
  }
}
