/* BER-virtual – Modul-Seiten im Profil-Stil (Airlines, Hubs, Ränge, Flotte, PIREPs, Statistik …). Baut auf profile-pro.css + pilots-pro.css auf. Präfix pgx- */

/* ---------- Tabellen ---------- */
.pgx-table-wrap { overflow-x: auto; margin: 0 -6px; }
.pgx-table { width: 100%; border-collapse: collapse; }
.pgx-table th { position: sticky; top: 0; background: #fff; z-index: 1; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pbx-mute); text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--pbx-line); white-space: nowrap; }
.pgx-table td { padding: 11px 10px; border-bottom: 1px solid var(--pbx-line); vertical-align: middle; white-space: nowrap; font-size: 13.5px; }
.pgx-table tr:last-child td { border-bottom: 0; }
.pgx-table tbody tr { transition: background .12s; }
.pgx-table tbody tr:hover td { background: #fafafd; }
.pgx-table .r { text-align: right; }
.pgx-table .c { text-align: center; }
.pgx-reg { font-weight: 800; letter-spacing: .02em; color: var(--pbx-ink) !important; }
.pgx-reg:hover { color: var(--pbx-red) !important; }
.pgx-sub { display: block; font-size: 11.5px; color: var(--pbx-mute); font-weight: 500; }
.pgx-type { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; background: var(--pbx-ink); color: #fff; }
.pgx-logo { height: 22px; width: auto; max-width: 70px; object-fit: contain; vertical-align: middle; }
.pgx-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--pbx-soft); color: var(--pbx-ink2); }
.pgx-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pgx-pill.g { background: #e8f6f0; color: #0f8a5b; }
.pgx-pill.o { background: #fff4e0; color: #b46e00; }
.pgx-pill.r { background: #fdecee; color: #c01a2e; }
.pgx-pill.b { background: #eaf3ff; color: #1b5fd1; }
.pgx-pill.n { background: var(--pbx-soft); color: var(--pbx-mute); }
.pgx-who { display: flex; align-items: center; gap: 10px; }
.pgx-who .plx-ava { width: 32px; height: 32px; font-size: 11px; }
.pgx-who b { font-weight: 700; }
.pgx-muted { color: var(--pbx-mute); }

/* Pagination (Laravel/Bootstrap-Ausgabe) */
.pgx-pages { display: flex; justify-content: center; margin-top: 18px; }
.pgx-pages .pagination { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; justify-content: center; }
.pgx-pages .page-link { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px !important; border: 1px solid var(--pbx-line) !important; background: #fff !important; color: var(--pbx-ink2) !important; font-weight: 650; font-size: 13px; box-shadow: none !important; }
.pgx-pages .page-item.active .page-link { background: var(--pbx-ink) !important; border-color: var(--pbx-ink) !important; color: #fff !important; }
.pgx-pages .page-item.disabled .page-link { opacity: .45; }
.pgx-pages nav > div:first-child, .pgx-pages p.small { display: none; }

/* ---------- Airlines ---------- */
.pgx-airlines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pgx-airline { padding: 0; overflow: hidden; display: flex; flex-direction: column; color: var(--pbx-ink) !important; transition: transform .2s, box-shadow .2s; }
.pgx-airline:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20, 21, 26, .04), 0 20px 36px -20px rgba(20, 21, 26, .35); }
.pgx-airline-top { display: flex; align-items: center; gap: 20px; padding: 22px 24px; background: radial-gradient(120% 140% at 0% 0%, #fbf1f3 0%, #ffffff 60%); border-bottom: 1px solid var(--pbx-line); }
.pgx-airline-logo { width: 150px; height: 72px; flex: none; display: grid; place-items: center; background: #fff; border: 1px solid var(--pbx-line); border-radius: 14px; padding: 10px; }
.pgx-airline-logo img { width: 100%; height: 100%; object-fit: contain; }
.pgx-airline h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.pgx-airline-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pgx-airline .plx-stats { grid-template-columns: repeat(4, 1fr); margin: 18px 24px; }
.pgx-airline-foot { margin-top: auto; padding: 0 24px 20px; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--pbx-mute); }
.pgx-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--pbx-red); }
.pgx-go .pbx-i { width: 15px; height: 15px; transition: transform .2s; }
.pgx-airline:hover .pgx-go .pbx-i, .pgx-hub:hover .pgx-go .pbx-i { transform: translateX(3px); }

/* ---------- Hubs ---------- */
.pgx-hubs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pgx-hub { padding: 0; overflow: hidden; display: flex; flex-direction: column; color: var(--pbx-ink) !important; transition: transform .2s, box-shadow .2s; }
.pgx-hub:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20, 21, 26, .04), 0 20px 36px -20px rgba(20, 21, 26, .35); }
.pgx-hub-img { position: relative; height: 124px; background: linear-gradient(135deg, #2a1217, #8f1424); overflow: hidden; }
.pgx-hub-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pgx-hub:hover .pgx-hub-img img { transform: scale(1.04); }
.pgx-hub-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 10, 14, .78) 0%, rgba(10, 10, 14, .1) 60%, rgba(10, 10, 14, 0) 100%); }
.pgx-hub-code { position: absolute; left: 18px; bottom: 12px; z-index: 1; color: #fff; }
.pgx-hub-code b { display: block; font-size: 30px; font-weight: 800; letter-spacing: .02em; line-height: 1; }
.pgx-hub-code span { font-size: 12px; font-weight: 600; opacity: .85; }
.pgx-hub-flag { position: absolute; right: 14px; top: 14px; z-index: 1; }
.pgx-hub-body { padding: 16px 18px 4px; }
.pgx-hub-body h3 { font-size: 15.5px; font-weight: 750; }
.pgx-hub-body p { margin: 2px 0 0; font-size: 12.5px; color: var(--pbx-mute); }
.pgx-hub .plx-stats { margin: 12px 18px 0; }
.pgx-hub-foot { margin-top: auto; padding: 14px 18px 16px; display: flex; justify-content: flex-end; font-size: 12.5px; }

/* ---------- Ränge ---------- */
.pgx-ladder { position: relative; display: grid; gap: 12px; }
.pgx-ladder::before { content: ""; position: absolute; left: 33px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(180deg, #ef8592, #d11f35 40%, #8f1424); border-radius: 2px; }
.pgx-rank { position: relative; display: grid; grid-template-columns: 68px minmax(0, 1.6fr) 120px 150px 150px minmax(0, 1.2fr); align-items: center; gap: 16px; padding: 14px 20px 14px 14px; }
.pgx-rank-no { width: 40px; height: 40px; margin-left: 0; border-radius: 50%; background: #fff; border: 2px solid #f3c4ca; color: var(--pbx-red); display: grid; place-items: center; font-weight: 800; font-size: 13px; position: relative; z-index: 1; }
.pgx-rank.is-done .pgx-rank-no { background: var(--pbx-red); border-color: var(--pbx-red); color: #fff; }
.pgx-rank.is-me { border-color: #f1a5af; box-shadow: 0 0 0 4px rgba(209, 31, 53, .08), var(--pbx-shadow); }
.pgx-rank.is-me .pgx-rank-no { background: var(--pbx-ink); border-color: var(--pbx-ink); color: #fff; }
.pgx-rank-name { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pgx-rank-name img { height: 30px; width: auto; border-radius: 4px; box-shadow: 0 3px 8px -3px rgba(0, 0, 0, .4); flex: none; }
.pgx-rank-name b { display: block; font-size: 15px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pgx-rank-name small { font-size: 11.5px; color: var(--pbx-mute); font-weight: 600; }
.pgx-rank-kv span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--pbx-mute); }
.pgx-rank-kv b { font-size: 15px; font-weight: 800; }
.pgx-rank-kv b small { font-size: 11px; color: var(--pbx-mute); font-weight: 600; margin-left: 2px; }
.pgx-rank-sf { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.pgx-rank-sf .pbx-tag { font-size: 11px; padding: 3px 7px; }
.pgx-rank-me { position: absolute; top: -9px; left: 64px; font-size: 10px; font-weight: 800; letter-spacing: .06em; background: var(--pbx-ink); color: #fff; padding: 2px 8px; border-radius: 99px; }
.pgx-progress { margin-bottom: 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }
.pgx-progress .pbx-gauge { background: var(--pbx-soft); height: 12px; }
.pgx-progress .pbx-gauge > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ef8592, #d11f35); }

/* ---------- Seiten mit Modul-Inhalten (Statistik, Freiflug, Flugsuche): vorhandene Karten im neuen Stil ---------- */
.pgx-skin .card { background: #fff; border: 1px solid var(--pbx-line) !important; border-radius: var(--pbx-r) !important; box-shadow: var(--pbx-shadow) !important; overflow: hidden; margin-bottom: 20px; }
.pgx-skin .card-header { background: #fff !important; border-bottom: 1px solid var(--pbx-line) !important; padding: 16px 20px !important; font-weight: 750; font-size: 15px; color: var(--pbx-ink) !important; }
.pgx-skin .card-header h5, .pgx-skin .card-header h6, .pgx-skin .card-title { font-size: 15px !important; font-weight: 750 !important; margin: 0; color: var(--pbx-ink) !important; text-transform: none !important; letter-spacing: -.01em; }
.pgx-skin .card-header i { color: var(--pbx-red); }
.pgx-skin .card-body { padding: 18px 20px; }
.pgx-skin .card-footer { background: var(--pbx-soft) !important; border-top: 1px solid var(--pbx-line) !important; font-size: 12px; color: var(--pbx-mute); }
.pgx-skin .table { margin: 0; --bs-table-striped-bg: transparent; --bs-table-hover-bg: #fafafd; }
.pgx-skin .table > :not(caption) > * > * { padding: 10px 12px; border-bottom-color: var(--pbx-line); background: transparent; box-shadow: none; }
.pgx-skin .table th { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pbx-mute); }
.pgx-skin .table td { font-size: 13.5px; }
.pgx-skin .btn { border-radius: 10px; font-weight: 650; font-size: 13px; }
.pgx-skin .btn-danger, .pgx-skin .btn-primary { background: var(--pbx-red); border-color: var(--pbx-red); }
.pgx-skin .btn-sm { border-radius: 8px; }
.pgx-skin .badge { border-radius: 99px; font-weight: 700; padding: .4em .75em; }
.pgx-skin .form-control, .pgx-skin .form-select { border-radius: 10px; border-color: var(--pbx-line); background-color: var(--pbx-soft); min-height: 40px; font-size: 13.5px; }
.pgx-skin .form-control:focus, .pgx-skin .form-select:focus { background-color: #fff; border-color: #f1a5af; box-shadow: 0 0 0 4px rgba(209, 31, 53, .08); }
.pgx-skin label, .pgx-skin .form-label { font-size: 12px; font-weight: 700; color: var(--pbx-ink2); }
.pgx-skin .nav-pills .nav-link { border-radius: 10px; font-weight: 650; color: var(--pbx-ink2); }
.pgx-skin .nav-pills .nav-link.active { background: var(--pbx-ink); color: #fff; }
.pgx-skin .widgets-icons, .pgx-skin .font-35 { color: var(--pbx-red) !important; }
.pgx-skin .radius-10 { border-radius: var(--pbx-r) !important; }

@media (max-width: 1199.98px) {
  .pgx-hubs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgx-rank { grid-template-columns: 56px minmax(0, 1fr) 100px 120px; }
  .pgx-rank > :nth-child(5), .pgx-rank > :nth-child(6) { display: none; }
}
@media (max-width: 767.98px) {
  .pgx-airlines, .pgx-hubs { grid-template-columns: 1fr; gap: 12px; }
  .pgx-airline-top { flex-direction: column; align-items: flex-start; }
  .pgx-airline .plx-stats { grid-template-columns: repeat(2, 1fr); }
  .pgx-airline .plx-stats div:nth-child(3) { border-left: 0; }
  .pgx-airline .plx-stats div:nth-child(n+3) { border-top: 1px solid var(--pbx-line); }
  .pgx-rank { grid-template-columns: 48px minmax(0, 1fr) 80px; gap: 10px; }
  .pgx-rank > :nth-child(4) { display: none; }
  .pgx-ladder::before { left: 27px; }
  .pgx-progress { grid-template-columns: 1fr; }
}
