/* FPA Chat 0.5.1 – Seitenleiste der Chat-Seite (Statistik-Boxen). Keine externen Fonts/Bilder. */
.fpa-chat-leiste { display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; }
.fpa-chat-box { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); padding: 14px 16px; margin: 0 !important; font-size: 14px; line-height: 1.4; color: #1d2228; }
.fpa-chat-box .widget-title { margin: 0 0 10px !important; padding: 0 0 8px; border-bottom: 2px solid #f65002; font-size: 16px; }
.fpa-chat-box p { margin: 0 0 8px; }

/* Theme (Business Consultant Finder) setzt auf alle Sidebar-li ein FontAwesome-„>“ (::before) + oft padding-left – beides hier aus. */
.sidebar .fpa-chat-box li,
.sidebar .fpa-chat-box li:hover,
.sidebar .fpa-chat-box li:focus,
.fpa-chat-box li {
  position: relative !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
  background: none !important;
  list-style: none !important;
  border: 0 !important;
}
.sidebar .fpa-chat-box li::before,
.sidebar .fpa-chat-box li:before,
.sidebar .fpa-chat-box li:hover::before,
.sidebar .fpa-chat-box li:focus::before,
.fpa-chat-box li::before,
.fpa-chat-box li:before {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}

.fpa-chat-box img, .fpa-chat-box__ini {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f65002; color: #fff; font-weight: 700; font-size: 12px; margin: 0; flex: 0 0 auto;
}
.fpa-chat-box__liste, .fpa-chat-box__parks, .fpa-chat-box__avatare {
  list-style: none !important; margin: 0; padding: 0;
}

/* Top-Schreiber: Avatar | Name …… Zahl  ; Balken darunter über die volle Zeile */
.fpa-chat-box__liste { counter-reset: none; }
.fpa-chat-box__liste li {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 10px; row-gap: 3px;
  align-items: center;
  padding: 6px 0 !important;
  border-bottom: 1px solid #f1f3f5 !important;
}
.fpa-chat-box__liste li:last-child { border-bottom: 0 !important; }
.fpa-chat-box__liste .fpa-chat-box__bild { grid-row: 1 / span 2; align-self: center; }
.fpa-chat-box__zeile {
  display: flex; align-items: baseline; gap: 8px; min-width: 0;
}
.fpa-chat-box__liste .fpa-chat-box__name {
  flex: 1 1 auto; min-width: 45%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 600; color: #1d2228; font-size: 14px;
}
.fpa-chat-box__liste b {
  flex: 0 0 auto; font-variant-numeric: tabular-nums; color: #c23f00; font-size: 14px;
}
.fpa-chat-box__balken {
  display: block; height: 3px; border-radius: 2px; background: #f1f3f5;
  position: relative; overflow: hidden; grid-column: 2;
}
.fpa-chat-box__balken::after {
  content: ''; position: absolute; inset: 0 auto 0 0;
  width: var(--fpa-anteil, 0%); background: linear-gradient(90deg, #f65002, #ff9a5c); border-radius: 2px;
}

.fpa-chat-box__gross { font-size: 13px; color: #5d6873; }
.fpa-chat-box__gross b { font-size: 26px; color: #f65002; margin-right: 4px; vertical-align: -3px; }

/* Gerade aktiv: Raster Avatar + Name darunter */
.fpa-chat-box__avatare {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 10px 6px;
}
.fpa-chat-box__avatare li {
  display: flex !important; flex-direction: column; align-items: center; gap: 4px;
  text-align: center; min-width: 0; padding: 0 !important;
}
.fpa-chat-box__avatare .fpa-chat-box__bild { display: block; line-height: 0; }
.fpa-chat-box__avatare img, .fpa-chat-box__avatare .fpa-chat-box__ini {
  width: 40px; height: 40px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #18ba60;
}
.fpa-chat-box__avatare .fpa-chat-box__name {
  display: block; width: 100%; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11px; line-height: 1.2; color: #5d6873; font-weight: 600;
}

.fpa-chat-box__leer, .fpa-chat-box__hinweis { color: #8a949e; font-size: 12px; }
.fpa-chat-box__zahlen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 10px; }
.fpa-chat-box__zahlen div { background: #fff8f3; border-radius: 8px; padding: 8px 10px; }
.fpa-chat-box__zahlen dt { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #8a949e; font-weight: 700; }
.fpa-chat-box__zahlen dd { margin: 0; font-size: 22px; font-weight: 700; color: #1d2228; font-variant-numeric: tabular-nums; }
.fpa-chat-box__unter { font-size: 13px; color: #5d6873; }
.fpa-chat-box__stunden { display: grid; grid-template-columns: repeat(24, 1fr); align-items: end; gap: 2px; height: 48px; margin: 4px 0 2px; border-bottom: 1px solid #e5e7eb; }
.fpa-chat-box__stunden span { display: block; height: max(2px, var(--fpa-hoehe, 0%)); background: #ffbf99; border-radius: 2px 2px 0 0; }
.fpa-chat-box__stunden span:hover { background: #f65002; }
.fpa-chat-box__achse { display: flex; justify-content: space-between; font-size: 10px; color: #8a949e; margin: 0 0 8px; }
.fpa-chat-box__parks li {
  display: flex !important; justify-content: space-between; gap: 8px; align-items: baseline;
  padding: 5px 0 !important; border-bottom: 1px dashed #eef0f2 !important;
}
.fpa-chat-box__parks li:last-child { border-bottom: 0 !important; }
.fpa-chat-box__parks a { color: #c23f00; font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fpa-chat-box__parks a:hover { text-decoration: underline; }
.fpa-chat-box__parks b { flex: 0 0 auto; font-variant-numeric: tabular-nums; color: #c23f00; }
.fpa-chat-box__stores { display: flex; gap: 8px; flex-wrap: wrap; }
.fpa-chat-box__stores a { flex: 1 1 auto; text-align: center; padding: 8px 10px; background: #15191d; color: #fff !important; border-radius: 8px; font-weight: 700; text-decoration: none; }
.fpa-chat-box__stores a:hover { background: #2c343d; }
.fpa-chat-box__patron { display: inline-block; padding: 7px 14px; border-radius: 999px; background: #f65002; color: #fff !important; font-weight: 700; text-decoration: none; }
.fpa-chat-box__patron:hover { background: #c23f00; }

@media (max-width: 767.98px) {
  body.fpa-chat-seite .bcf-main-content { order: 1 !important; }
  body.fpa-chat-seite .bcf-sidebar { order: 2 !important; }
  .fpa-chat-box__avatare { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
}
