/* BAVORA OS · Funktionsübersicht „Was BAVORA kann“ (06.11.2026) – CRM-Tokens aus bavora-crm-unified.css */
.fx-page { display: grid; gap: var(--bv-gap, 24px); }
.fx-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--bv-gap, 24px); flex-wrap: wrap; }
.fx-head .left { flex: 1 1 420px; }
.fx-summary { display: flex; align-items: center; gap: 16px; padding: 16px 20px !important; flex: 0 1 380px; }
.fx-ring { --fx: 0; width: 72px; height: 72px; flex: 0 0 72px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--bv-crm-primary, #17523b) calc(var(--fx) * 1%), var(--bv-crm-primary-tint, #eef4ef) 0); }
.fx-ring span { width: 56px; height: 56px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; color: var(--bv-crm-primary, #17523b); font-variant-numeric: tabular-nums; }
.fx-summary strong { font-size: 1rem; }
.fx-warning { border-color: var(--warn, #a36a15) !important; color: var(--warn, #a36a15); }

.fx-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fx-chip { border: 1px solid var(--bv-crm-line, #d5e1d8); background: #fff; color: var(--ink-soft, #3d3d3d); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; min-height: 36px; }
.fx-chip.active { background: var(--bv-crm-primary, #17523b); border-color: var(--bv-crm-primary, #17523b); color: #fff; }
.fx-chip:focus-visible { outline: 3px solid var(--bv-crm-focus, #2e865c); outline-offset: 2px; }
.fx-filters__hint { margin-left: auto; }
.fx-filters__hint kbd { font-family: var(--font-mono); font-size: .72rem; padding: 1px 6px; border: 1px solid var(--bv-crm-line, #d5e1d8); border-radius: 4px; background: #fff; }

/* 07.11.2026: gleiche Kachelhöhe je Zeile; max. zwei Spalten, damit die Kacheln nicht zu schmal werden. */
.fx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bv-gap, 24px); align-items: stretch; }
.fx-tile { display: grid; gap: 14px; align-content: start; height: 100%; margin: 0 !important; }
@media (max-width: 1000px) { .fx-grid { grid-template-columns: minmax(0, 1fr); } }
.fx-tile__head { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.fx-tile__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bv-crm-primary-tint, #eef4ef); color: var(--bv-crm-primary, #17523b); }
.fx-tile.is-complete .fx-tile__icon { background: var(--bv-crm-primary, #17523b); color: #fff; }
.fx-tile__title h2 { font-size: 1.3rem !important; margin: 0 0 3px; line-height: 1.2; }
.fx-tile__title p { margin: 0; }
.fx-tile__count { display: grid; justify-items: end; line-height: 1.1; }
.fx-tile__count strong { font-size: 1.25rem; color: var(--bv-crm-primary, #17523b); font-variant-numeric: tabular-nums; }
.fx-tile__count span { font-size: .72rem; color: var(--ink-muted, #73716c); }
.fx-meter { height: 6px; border-radius: 999px; background: var(--bv-crm-primary-tint, #eef4ef); overflow: hidden; }
.fx-meter span { display: block; height: 100%; width: var(--fx); background: var(--bv-crm-primary, #17523b); border-radius: inherit; }

.fx-items { list-style: none; margin: 0; padding: 0; display: grid; }
.fx-item { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--bv-crm-line-soft, #e6ede8); }
.fx-item__mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; border: 1.5px solid var(--bv-crm-secondary-line, #8eaa97); color: var(--bv-crm-primary, #17523b); }
.fx-item.is-done .fx-item__mark { background: var(--bv-crm-primary, #17523b); border-color: var(--bv-crm-primary, #17523b); color: #fff; }
.fx-item.is-partial .fx-item__mark { border-color: var(--warn, #a36a15); color: var(--warn, #a36a15); }
.fx-item.is-ready .fx-item__mark { border-style: dashed; }
.fx-item__text { min-width: 0; display: grid; gap: 2px; }
.fx-item__label { font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.fx-badge { font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.fx-badge.is-done { background: var(--success-bg, #e8f0ea); color: var(--bv-crm-primary, #17523b); }
.fx-badge.is-open { background: #f3f1ec; color: #5d5a54; }
.fx-badge.is-partial { background: var(--warn-bg, #faf0dd); color: var(--warn, #a36a15); }
.fx-badge.is-ready { background: var(--bv-crm-primary-tint, #eef4ef); color: #3d6b4f; }
.fx-item .btn { white-space: nowrap; }

@media (max-width: 640px) {
  .fx-summary { flex: 1 1 100%; }
  .fx-tile__head { grid-template-columns: 40px minmax(0, 1fr); }
  .fx-tile__count { grid-column: 1 / -1; justify-items: start; display: flex; gap: 6px; align-items: baseline; }
  .fx-item { grid-template-columns: 24px minmax(0, 1fr); }
  .fx-item .btn { grid-column: 2; justify-self: start; }
  .fx-filters__hint { display: none; }
}
