/* BER-virtual – Pilotenliste (/pilots, /users). Baut auf profile-pro.css (.pbx) auf. Präfix plx- */

/* ---------- Kopf ---------- */
.plx-hero { position: relative; overflow: hidden; border-radius: 16px; background: #3a0a12; color: #fff; margin-bottom: 20px; min-height: 230px; }
.plx-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plx-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(105deg, rgba(143, 20, 36, .97) 0%, rgba(204, 34, 52, .93) 40%, rgba(224, 71, 90, .45) 60%, rgba(0, 0, 0, .05) 78%); }
.plx-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; z-index: 1; background: linear-gradient(0deg, rgba(10, 10, 14, .45), rgba(10, 10, 14, 0)); }
.plx-hero-in { position: relative; z-index: 2; padding: 32px 36px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; min-height: 230px; }
.plx-hero .pbx-eyebrow { color: rgba(255, 255, 255, .8); }
.plx-hero h1 { margin: 6px 0 6px; font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; color: #fff; }
.plx-hero p { margin: 0; max-width: 520px; font-size: 14px; opacity: .92; }
.plx-hero-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.plx-hero-stats div { min-width: 112px; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.plx-hero-stats b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.plx-hero-stats span { font-size: 11.5px; font-weight: 600; opacity: .85; }

/* ---------- Bestenliste ---------- */
.plx-top3 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.plx-best { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.plx-best .plx-ava { width: 52px; height: 52px; font-size: 17px; }
.plx-best-txt { min-width: 0; flex: 1; }
.plx-best-txt .pbx-eyebrow { display: flex; align-items: center; gap: 6px; }
.plx-best-txt .pbx-eyebrow .pbx-i { width: 13px; height: 13px; color: var(--pbx-red); }
.plx-best-txt b { display: block; font-size: 15px; font-weight: 750; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plx-best-txt small { color: var(--pbx-mute); font-size: 12px; }
.plx-best-val { font-size: 22px; font-weight: 800; letter-spacing: -.02em; text-align: right; line-height: 1.1; }
.plx-best-val small { display: block; font-size: 11px; font-weight: 600; color: var(--pbx-mute); letter-spacing: 0; }

/* ---------- Werkzeugleiste ---------- */
.plx-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; padding: 12px; }
.plx-search { position: relative; flex: 1 1 260px; max-width: 360px; }
.plx-search .pbx-i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--pbx-mute); width: 17px; height: 17px; }
.plx-search input { width: 100%; height: 40px; padding: 0 12px 0 38px; border-radius: 10px; border: 1px solid var(--pbx-line); background: var(--pbx-soft); font: inherit; font-size: 13.5px; color: var(--pbx-ink); outline: none; transition: .15s; }
.plx-search input:focus { background: #fff; border-color: #f1a5af; box-shadow: 0 0 0 4px rgba(209, 31, 53, .08); }
.plx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.plx-chip { height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--pbx-line); background: #fff; font: inherit; font-size: 12.5px; font-weight: 650; color: var(--pbx-ink2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.plx-chip em { font-style: normal; font-size: 11px; color: var(--pbx-mute); font-weight: 600; }
.plx-chip:hover { background: var(--pbx-soft); }
.plx-chip.is-on { background: var(--pbx-ink); border-color: var(--pbx-ink); color: #fff; }
.plx-chip.is-on em { color: rgba(255, 255, 255, .65); }
.plx-tools-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.plx-select { height: 38px; padding: 0 34px 0 12px; border-radius: 10px; border: 1px solid var(--pbx-line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8d99' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--pbx-ink); cursor: pointer; }
.plx-view { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--pbx-soft); border: 1px solid var(--pbx-line); }
.plx-view button { width: 32px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--pbx-mute); display: grid; place-items: center; cursor: pointer; padding: 0; }
.plx-view button.is-on { background: #fff; color: var(--pbx-ink); box-shadow: 0 1px 3px rgba(20, 21, 26, .12); }
.plx-view .pbx-i { width: 16px; height: 16px; }
.plx-count { font-size: 12.5px; color: var(--pbx-mute); font-weight: 600; white-space: nowrap; }

/* ---------- Avatar ---------- */
.plx-ava { position: relative; width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, #e0475a, #8f1424); color: #fff; font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.plx-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.plx-ava i { position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #fff; background: #c9ccd6; }
.plx-ava i.on { background: var(--pbx-ok); }

/* ---------- Karten ---------- */
.plx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.plx-card { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; color: var(--pbx-ink) !important; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.plx-card:hover { transform: translateY(-3px); border-color: #e3e3ee; box-shadow: 0 2px 4px rgba(20, 21, 26, .04), 0 20px 36px -20px rgba(20, 21, 26, .35); }
.plx-card-top { position: relative; padding: 18px 18px 14px; display: flex; gap: 14px; align-items: center; background: linear-gradient(180deg, #fbf3f4 0%, #ffffff 100%); }
.plx-card-top::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #8f1424, #d11f35, #ef8592); opacity: 0; transition: .2s; }
.plx-card:hover .plx-card-top::before { opacity: 1; }
.plx-who { min-width: 0; flex: 1; }
.plx-name { display: flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 750; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plx-name .flag-icon { flex: none; border-radius: 2px; }
.plx-ident { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--pbx-red); margin-top: 1px; }
.plx-rank { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--pbx-ink2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plx-rank img { height: 16px; width: auto; border-radius: 2px; flex: none; }
.plx-flags { position: absolute; top: 12px; right: 12px; display: flex; gap: 4px; }
.plx-flag { font-size: 9.5px; font-weight: 800; letter-spacing: .06em; padding: 2px 7px; border-radius: 99px; background: var(--pbx-red); color: #fff; }
.plx-flag.is-team { background: var(--pbx-ink); }
.plx-places { display: flex; gap: 6px; padding: 0 18px; flex-wrap: wrap; }
.plx-places .pbx-tag { font-size: 11.5px; padding: 3px 8px; }
.plx-places .pbx-tag .pbx-i { width: 12px; height: 12px; }
.plx-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 18px 0; border: 1px solid var(--pbx-line); border-radius: 12px; overflow: hidden; }
.plx-stats div { padding: 10px 8px; text-align: center; border-left: 1px solid var(--pbx-line); }
.plx-stats div:first-child { border-left: 0; }
.plx-stats b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.plx-stats span { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pbx-mute); }
.plx-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding: 12px 18px 14px; font-size: 11.5px; color: var(--pbx-mute); }
.plx-foot b { color: var(--pbx-ink2); font-weight: 650; }
.plx-stats + .plx-foot { margin-top: 12px; border-top: 1px dashed var(--pbx-line); }

/* Listenansicht */
.plx-grid.is-list { grid-template-columns: 1fr; gap: 10px; }
.plx-grid.is-list .plx-card { flex-direction: row; align-items: center; }
.plx-grid.is-list .plx-card-top { flex: 0 0 340px; background: none; padding: 12px 16px; }
.plx-grid.is-list .plx-card-top::before { width: 4px; height: auto; bottom: 0; right: auto; }
.plx-grid.is-list .plx-ava { width: 46px; height: 46px; font-size: 15px; }
.plx-grid.is-list .plx-flags { position: static; order: 3; }
.plx-grid.is-list .plx-places { flex: 0 0 210px; padding: 0 8px; }
.plx-grid.is-list .plx-stats { flex: 1; margin: 0 12px; border: 0; }
.plx-grid.is-list .plx-stats div { padding: 4px 8px; }
.plx-grid.is-list .plx-foot { flex: 0 0 190px; flex-direction: column; margin: 0; padding: 0 16px; border: 0; text-align: right; }

.plx-none { display: none; }
.plx-empty { grid-column: 1 / -1; }

@media (max-width: 1399.98px) {
  .plx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plx-top3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1099.98px) {
  .plx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plx-grid.is-list .plx-places, .plx-grid.is-list .plx-foot { display: none; }
}
@media (max-width: 767.98px) {
  .plx-hero-in { padding: 24px 20px; }
  .plx-hero h1 { font-size: 30px; }
  .plx-hero-stats div { min-width: 0; flex: 1 1 40%; }
  .plx-top3 { grid-template-columns: 1fr; gap: 12px; }
  .plx-grid { grid-template-columns: 1fr; gap: 12px; }
  .plx-tools-r { margin-left: 0; width: 100%; }
  .plx-search { max-width: none; }
  .plx-grid.is-list .plx-card-top { flex: 1 1 auto; }
  .plx-grid.is-list .plx-stats { display: none; }
}
.plx-best-txt .pbx-eyebrow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .08em; }
@media (max-width: 767.98px) {
  .plx-top3 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .plx-best { flex: 0 0 82%; scroll-snap-align: start; }
}
