/* Extras auf der Homepage: Preisliste und Badgecreator */
.bxe-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.bxe-toolbar input[type=search], .bxe-toolbar select { min-height: 36px; padding: 0 12px; border: 1px solid var(--bx-line); border-radius: 8px; background: var(--bx-card-2); color: var(--bx-text); font: inherit; font-size: 13px; }
.bxe-toolbar input[type=search] { flex: 1 1 200px; min-width: 0; }
.bxe-filter { min-height: 36px; padding: 0 14px; border: 1px solid var(--bx-line); border-radius: 8px; background: var(--bx-card-2); color: var(--bx-soft); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.bxe-filter:hover { color: #fff; }
.bxe-filter.is-active { border-color: var(--bx-green); background: #56ab2f2e; color: #fff; }
.bxe-empty { margin: 0; padding: 24px 12px; color: var(--bx-muted); font-size: 13px; text-align: center; }
.bxe-error { margin: 0; padding: 12px; color: #ff9a9d; font-size: 13px; }

.bxe-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.bxe-stats > div { padding: 12px 14px; border-radius: var(--bx-radius); background: var(--bx-card); box-shadow: var(--bx-shadow); }
.bxe-stats small { display: block; color: var(--bx-muted); font-size: 11px; }
.bxe-stats b { font-size: 16px; }

.bxe-pl-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 14px; }
.bxe-panel { padding: 14px; border-radius: var(--bx-radius); background: var(--bx-card); box-shadow: var(--bx-shadow); }
.bxe-pl-list { display: flex; flex-direction: column; gap: 5px; max-height: 720px; overflow-y: auto; }
.bxe-pl-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 10px 6px 6px; border: 1px solid transparent; border-radius: 8px; background: var(--bx-card-2); color: var(--bx-text); font: inherit; text-align: left; cursor: pointer; }
.bxe-pl-item:hover { border-color: #ffffff26; }
.bxe-pl-item.is-active { border-color: var(--bx-green); }
.bxe-pl-image { flex: none; display: grid; place-items: center; width: 54px; height: 54px; overflow: hidden; border-radius: 8px; background: #00000033; }
.bxe-pl-image img { max-width: 100%; max-height: 100%; }
.bxe-pl-image.is-large { width: 110px; height: 110px; }
.bxe-pl-text { flex: 1; min-width: 0; }
.bxe-pl-text b { display: block; overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.bxe-pl-text small { color: var(--bx-muted); font-size: 11px; }
.bxe-pl-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.bxe-tag { padding: 1px 7px; border-radius: 999px; font-size: 10px; font-style: normal; font-weight: 700; }
.bxe-tag.is-ltd { background: #e5484d33; color: #ff9a9d; }
.bxe-tag.is-super { background: #9b6be033; color: #cdb0f5; }
.bxe-price { flex: none; display: inline-flex; align-items: center; gap: 5px; }
.bxe-price b { color: var(--bx-yellow); font-size: 14px; }
.bxe-pl-detail { position: sticky; top: 12px; }
.bxe-pl-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.bxe-pl-head h2 { margin: 0 0 5px; font-size: 18px; }
.bxe-pl-head .bxe-price { margin-top: 7px; }
.bxe-pl-head .bxe-price b { font-size: 18px; }
.bxe-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bxe-fact { min-width: 0; padding: 8px 10px; border-radius: 8px; background: var(--bx-card-2); }
.bxe-fact small { display: block; color: var(--bx-muted); font-size: 10px; }
.bxe-fact b { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.bxe-pl-detail h3 { margin: 16px 0 8px; font-size: 13px; }
.bxe-conditions { display: flex; flex-direction: column; gap: 5px; }
.bxe-conditions > div { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; background: var(--bx-card-2); font-size: 12px; }
.bxe-conditions small { margin-left: auto; color: var(--bx-muted); font-size: 11px; }
.bxe-owners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; max-height: 300px; overflow-y: auto; }
.bxe-owners a { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 10px 4px 4px; border-radius: 8px; background: var(--bx-card-2); color: var(--bx-text); font-size: 12px; text-decoration: none; }
.bxe-owners a:hover { background: #ffffff14; }
.bxe-owners b { margin-left: auto; color: var(--bx-muted); font-size: 11px; font-weight: 600; }
.bxe-owner-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bxe-owner-head { flex: none; display: grid; place-items: center; width: 34px; height: 34px; overflow: hidden; border-radius: 50%; background: #ffffff0f; }
.bxe-owner-head img { max-width: none; }

/* Badgecreator */
.bxe-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.bxe-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 16px; border: 1px solid var(--bx-line); border-radius: 8px; background: var(--bx-card-2); color: var(--bx-soft); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.bxe-tab.is-active { border-color: var(--bx-green); background: #56ab2f2e; color: #fff; }
.bxe-tab i { padding: 0 6px; border-radius: 999px; background: var(--bx-red); color: #fff; font-size: 10px; font-style: normal; }
.bxe-message { margin-bottom: 12px; padding: 9px 12px; border-radius: 8px; font-size: 13px; }
.bxe-message.is-success { background: #56ab2f2e; color: #b9e8a0; }
.bxe-message.is-error { background: #e5484d2e; color: #ff9a9d; }
.bxe-create { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: 14px; }
.bxe-tools { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.bxe-tool { min-height: 32px; padding: 0 12px; border: 1px solid var(--bx-line); border-radius: 7px; background: var(--bx-card-2); color: var(--bx-soft); font: inherit; font-size: 12px; cursor: pointer; }
.bxe-tool:hover { color: #fff; }
.bxe-tool.is-active { border-color: var(--bx-green); background: #56ab2f2e; color: #fff; }
.bxe-tool.is-gap { margin-left: auto; }
.bxe-canvas-wrap { width: 100%; height: 400px; border-radius: 10px; background-color: #15171a; background-image: linear-gradient(45deg, #ffffff0a 25%, transparent 25%, transparent 75%, #ffffff0a 75%), linear-gradient(45deg, #ffffff0a 25%, transparent 25%, transparent 75%, #ffffff0a 75%); background-position: 0 0, 10px 10px; background-size: 20px 20px; }
.bxe-canvas-wrap canvas { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.bxe-palette { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 10px; }
.bxe-palette input[type=color] { width: 30px; height: 26px; padding: 0; border: 1px solid var(--bx-line); border-radius: 6px; background: none; cursor: pointer; }
.bxe-swatch { width: 22px; height: 22px; padding: 0; border: 2px solid #ffffff1f; border-radius: 5px; cursor: pointer; }
.bxe-swatch.is-active { border-color: #fff; }
.bxe-form { display: flex; flex-direction: column; gap: 10px; }
.bxe-preview { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; background: var(--bx-card-2); }
.bxe-preview-slot { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 8px; background: #00000033; }
.bxe-preview small { display: block; color: var(--bx-muted); font-size: 11px; }
.bxe-upload { display: block; padding: 10px 12px; border: 1px dashed #ffffff2e; border-radius: 10px; color: var(--bx-soft); font-size: 13px; cursor: pointer; }
.bxe-upload:hover { border-color: #ffffff59; color: #fff; }
.bxe-upload input { display: block; width: 100%; margin-top: 6px; color: var(--bx-muted); font-size: 12px; }
.bxe-upload small { display: block; margin-top: 4px; color: var(--bx-muted); font-size: 11px; }
.bxe-field span { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; }
.bxe-field input, .bxe-field textarea { display: block; width: 100%; padding: 8px 10px; border: 1px solid var(--bx-line); border-radius: 8px; background: var(--bx-card-2); color: var(--bx-text); font: inherit; font-size: 13px; }
.bxe-check { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; cursor: pointer; }
.bxe-check input { margin-top: 2px; accent-color: var(--bx-green); }
.bxe-check small { display: block; color: var(--bx-muted); font-size: 11px; }
.bxe-badge { display: flex; gap: 12px; padding: 12px; border-radius: 10px; background: var(--bx-card-2); }
.bxe-badge + .bxe-badge { margin-top: 8px; }
.bxe-badge-image { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 8px; background: #00000033; }
.bxe-badge-info { flex: 1; min-width: 0; }
.bxe-badge-info p { margin: 5px 0; font-size: 13px; overflow-wrap: anywhere; }
.bxe-badge-info > small { color: var(--bx-muted); font-size: 11px; }
.bxe-badge-info .bx-btn { margin-top: 8px; }
.bxe-badge-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bxe-status { padding: 1px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.bxe-status.is-pending { background: #f2c23026; color: var(--bx-yellow); }
.bxe-status.is-accepted { background: #56ab2f2e; color: #b9e8a0; }
.bxe-status.is-rejected { background: #e5484d2e; color: #ff9a9d; }
.bxe-note { color: #ff9a9d; }
.bxe-grant { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.bxe-grant input { flex: 1 1 150px; min-height: 34px; padding: 0 10px; border: 1px solid var(--bx-line); border-radius: 8px; background: var(--bx-card); color: var(--bx-text); font: inherit; font-size: 12px; }
.bxe-grant .bx-btn { margin-top: 0; }
.bxe-grant small { flex-basis: 100%; color: var(--bx-muted); font-size: 11px; }
[data-own] h3 { margin: 16px 0 8px; font-size: 13px; }
.bxe-history > div { display: flex; align-items: center; gap: 10px; padding: 6px 8px; font-size: 12px; }
.bxe-history small { margin-left: auto; color: var(--bx-muted); font-size: 11px; white-space: nowrap; }

@media (max-width: 860px) {
    .bxe-pl-layout, .bxe-create { grid-template-columns: minmax(0, 1fr); }
    .bxe-pl-detail { position: static; }
    .bxe-pl-list { max-height: 420px; }
}
@media (max-width: 560px) {
    .bxe-stats, .bxe-facts { grid-template-columns: repeat(2, 1fr); }
    .bxe-owners { grid-template-columns: minmax(0, 1fr); }
    .bxe-canvas-wrap { height: 300px; }
}

/* Preisliste: Karten und Detailspalte */
.bxp-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 16px; }
.has-detail .bxp-layout { grid-template-columns: minmax(0, 1fr) 340px; }
.bxp-grid-title { margin: 0 0 10px; color: var(--bx-soft); font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.bxp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.bxp-grid .bxe-empty, .bxp-grid .bxe-error { grid-column: 1 / -1; }
.bxp-card { overflow: hidden; border: 1px solid var(--bx-line); border-radius: var(--bx-radius); background: var(--bx-card); box-shadow: var(--bx-shadow); cursor: pointer; transition: border-color .15s, transform .15s; }
.bxp-card:hover { border-color: #ffffff33; transform: translateY(-2px); }
.bxp-card.is-active { border-color: var(--bx-green); }
.bxp-card-stage { position: relative; display: grid; place-items: center; height: 180px; background: radial-gradient(ellipse at 50% 70%, #ffffff12, transparent 65%), #16181a; }
.bxp-card-stage > img { max-width: 80%; max-height: 120px; }
.bxp-card-price { position: absolute; top: 12px; left: 12px; }
.bxp-card-price .bxe-price b { color: #fff; font-size: 12px; }
.bxp-card-name { padding: 12px 10px; overflow: hidden; background: var(--bx-card-2); font-size: 13px; font-weight: 600; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.bxp-star { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 7px; background: #ffffff14; color: #8a8f94; font-size: 16px; line-height: 1; cursor: pointer; }
.bxp-star:hover { background: #ffffff26; color: #fff; }
.bxp-star.is-active { color: var(--bx-yellow); }
.bxp-detail { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; }
.bxp-detail-title { display: flex; align-items: center; justify-content: space-between; margin: -2px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--bx-line); font-size: 14px; }
.bxp-close { padding: 0 4px; border: 0; background: none; color: var(--bx-soft); font-size: 20px; line-height: 1; cursor: pointer; }
.bxp-close:hover { color: #fff; }
.bxp-detail-head { position: relative; display: flex; align-items: center; gap: 14px; padding-right: 34px; }
.bxp-detail-head h2 { margin: 3px 0; font-size: 18px; overflow-wrap: anywhere; }
.bxp-detail-head small { color: var(--bx-soft); font-size: 11px; font-weight: 600; }
.bxp-detail-head .bxp-star { top: 0; right: 0; }
.bxp-detail-image { flex: none; display: grid; place-items: center; width: 84px; height: 84px; }
.bxp-detail-image img { max-width: 100%; max-height: 100%; }
.bxp-detail-price { display: flex; justify-content: center; margin: 14px 0 8px; padding: 14px; border-radius: 8px; background: #00000033; }
.bxp-detail-price .bxe-price b { color: #fff; font-size: 16px; }
.bxp-muted { margin: 6px 0; color: var(--bx-muted); font-size: 12px; }
.bxp-section { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--bx-line); }
.bxp-section summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 13px; font-weight: 700; cursor: pointer; }
.bxp-section summary small { padding: 2px 8px; border-radius: 6px; background: var(--bx-card-2); color: var(--bx-soft); font-size: 10px; font-weight: 600; }
.bxp-ranges { display: flex; gap: 4px; margin-bottom: 10px; }
.bxp-ranges button { min-height: 28px; padding: 0 12px; border: 0; border-radius: 6px; background: var(--bx-card-2); color: var(--bx-soft); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.bxp-ranges button.is-active { background: #24897f; color: #fff; }
.bxp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bxp-tiles > div { padding: 8px; border-radius: 8px; background: var(--bx-card-2); text-align: center; }
.bxp-tiles small { display: block; color: var(--bx-soft); font-size: 10px; }
.bxp-tiles b { font-size: 14px; }
.bxp-chart { display: flex; align-items: flex-end; gap: 1px; height: 70px; margin-top: 12px; border-bottom: 1px solid #ffffff26; }
.bxp-chart i { flex: 1; min-width: 1px; background: #ffffff14; }
.bxp-chart i.has-value { background: #2fb3a6; }
.bxp-chart-dates { display: flex; justify-content: space-between; margin-top: 4px; color: var(--bx-soft); font-size: 10px; }
.bxp-suggestions { display: flex; flex-direction: column; gap: 5px; margin-bottom: 8px; }
.bxp-suggestion { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid transparent; border-radius: 8px; background: var(--bx-card-2); }
.bxp-suggestion.is-mine { border-color: #56ab2f66; }
.bxp-suggestion-text { flex: 1; min-width: 70px; }
.bxp-suggestion-text b { display: block; font-size: 12px; }
.bxp-suggestion-text small { color: var(--bx-muted); font-size: 10px; }
.bxp-suggestion-actions { display: flex; flex-basis: 100%; gap: 5px; justify-content: flex-end; }
.bxp-suggest-open { width: 100%; min-height: 40px; margin-top: 8px; border: 1px solid var(--bx-line); border-radius: 8px; background: var(--bx-card-2); color: var(--bx-text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.bxp-suggest-open:hover { background: #ffffff14; }
.bxp-suggest-open[hidden], .bxp-suggest-form[hidden] { display: none; }
.bxp-suggest-form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bxp-suggest-form input, .bxp-suggest-form select { flex: 1 1 120px; min-height: 34px; padding: 0 10px; border: 1px solid var(--bx-line); border-radius: 8px; background: var(--bx-card-2); color: var(--bx-text); font: inherit; font-size: 12px; }
.bxp-suggest-form select { flex-basis: 100%; }
.bxp-suggest-form .bxe-error { flex-basis: 100%; padding: 0; font-size: 12px; }
.bxp-detail .bxe-owners { grid-template-columns: minmax(0, 1fr); max-height: 240px; }
@media (max-width: 860px) {
    .has-detail .bxp-layout { grid-template-columns: minmax(0, 1fr); }
    .bxp-detail { position: static; max-height: none; grid-row: 1; }
}

/* Rare-Details: Bühne wie die Karten, Name in voller Breite, ruhigere Abschnitte */
.bxp-detail { padding: 0 0 14px; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #ffffff2e transparent; }
.bxp-detail::-webkit-scrollbar { width: 8px; }
.bxp-detail::-webkit-scrollbar-thumb { border-radius: 8px; background: #ffffff2e; }
.bxp-detail > :not(.bxp-hero):not(.bxp-detail-title) { margin-right: 14px; margin-left: 14px; }
.bxp-detail-title { position: sticky; top: 0; z-index: 2; margin: 0; padding: 10px 14px; background: var(--bx-card); }
.bxp-hero { position: relative; display: grid; place-items: center; height: 150px; background: radial-gradient(ellipse at 50% 70%, #ffffff12, transparent 65%), #16181a; }
.bxp-hero .bxp-star { top: 10px; right: 10px; }
.bxp-hero-image { display: grid; place-items: center; max-width: 80%; height: 120px; }
.bxp-hero-image img { max-width: 100%; max-height: 100%; }
.bxp-hero-text { margin-top: 12px; text-align: center; }
.bxp-hero-text h2 { margin: 0 0 8px; font-size: 16px; font-weight: 600; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; }
.bxp-hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.bxe-tag.is-rare { background: var(--bx-card-2); color: var(--bx-soft); }
.bxp-detail .bxp-detail-price { margin-top: 12px; margin-bottom: 4px; padding: 12px; background: var(--bx-card-2); }
.bxp-detail > .bxp-muted { margin-top: 10px; margin-bottom: 0; font-size: 11px; text-align: center; }
.bxp-conditions { display: flex; flex-direction: column; gap: 4px; }
.bxp-conditions > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-left: 3px solid var(--tier); border-radius: 6px; background: var(--bx-card-2); }
.bxp-conditions > div.is-tier1 { --tier: #e7b93d; }
.bxp-conditions > div.is-tier2 { --tier: #c4ccd4; }
.bxp-conditions > div.is-tier3 { --tier: #c98a55; }
.bxp-conditions > div.is-tier4 { --tier: #7d8388; }
.bxp-conditions span:first-child { min-width: 0; }
.bxp-conditions b { display: block; font-size: 12px; font-weight: 600; }
.bxp-conditions small { color: var(--bx-muted); font-size: 10px; }
.bxp-conditions .bxe-price b { font-size: 13px; }
.bxp-ranges { display: inline-flex; gap: 0; overflow: hidden; border-radius: 7px; background: var(--bx-card-2); }
.bxp-ranges button { border-radius: 0; background: transparent; }
.bxp-ranges button.is-active { background: var(--bx-green); }
.bxp-tiles { gap: 0; overflow: hidden; border-radius: 8px; background: var(--bx-card-2); }
.bxp-tiles > div { border-radius: 0; background: transparent; }
.bxp-tiles > div + div { border-left: 1px solid var(--bx-line); }
.bxp-chart i.has-value { background: var(--bx-green); }

/* Besitzer-Köpfe mittig im Kreis (Kopfbild 64x110, Kopfmitte bei 32/39) */
.bxe-owner-head { position: relative; display: block; }
.bxe-owner-head img { position: absolute; left: calc(50% - 32px); top: calc(50% - 39px); max-width: none; }
