/* =========================================================
   BetterPick Produktbox – Frontend CSS v2 (Variante 1)
   Farbstreifen + Score-Ring + aufklappbare Pros/Cons
   ========================================================= */

.bpv-productbox {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin: 1.5rem 0;
    max-width: 100%;
}

/* ── Farbstreifen oben ───────────────────────────────── */

.bpv-pb-accent {
    height: 4px;
    background: linear-gradient(90deg, #185fa5, #378add, #5dcaa5);
}

/* ── Top Row ────────────────────────────────────────────── */

.bpv-pb-top {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    align-items: center;
    padding: 16px;
    gap: 0;
}

.bpv-pb-img-col {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 84px;
    height: 84px;
    background: #EAF3DE;
    border-radius: 12px;
    flex-shrink: 0;
}

.bpv-pb-adnote {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 9px;
    color: #9ca3af;
    border: 1px solid #e5e7eb;
    padding: 1px 4px;
    border-radius: 3px;
    background: #fff;
}

.bpv-pb-img-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
}

.bpv-pb-img {
    max-width: 72px;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.bpv-pb-img-placeholder {
    width: 56px;
    height: 56px;
    background: #d0e8f5;
    border-radius: 8px;
}

/* ── Info Block ─────────────────────────────────────────── */

.bpv-pb-info {
    padding: 0 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bpv-pb-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.bpv-pb-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.bpv-pb-badge-winner     { background: #1696d2; color: #fff; }
.bpv-pb-badge-toppick    { background: #e8690a; color: #fff; }
.bpv-pb-badge-price      { background: #e3a51a; color: #fff; }
.bpv-pb-badge-highlight  { background: #7f77dd; color: #fff; }
.bpv-pb-badge-strong     { background: #3b6d11; color: #fff; }
.bpv-pb-badge-eco        { background: #228b22; color: #fff; }
.bpv-pb-badge-new        { background: #185fa5; color: #fff; }
.bpv-pb-badge-premium    { background: #534ab7; color: #fff; }
.bpv-pb-badge-bestseller { background: #993c1d; color: #fff; }
.bpv-pb-badge-tested     { background: #EAF3DE; color: #27500A; border: 1px solid #3b6d11; }

.bpv-pb-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}

.bpv-pb-title a {
    color: inherit;
    text-decoration: none;
}

.bpv-pb-title a:hover {
    color: #185fa5;
    text-decoration: underline;
}

.bpv-pb-brand {
    font-size: 12px;
    color: #6b7280;
}

/* ── Score Ring ─────────────────────────────────────────── */

.bpv-pb-score {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.bpv-pb-score svg {
    width: 80px;
    height: 80px;
}

/* Mobile: Score als Balken neben Titel */
.bpv-pb-score-mobile {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.bpv-pb-score-mobile-num {
    font-size: 14px;
    font-weight: 700;
    color: #185fa5;
    line-height: 1;
    white-space: nowrap;
}

.bpv-pb-score-mobile-bar-wrap {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.bpv-pb-score-mobile-bar {
    height: 100%;
    background: #185fa5;
    border-radius: 2px;
    transition: width .3s ease;
}

.bpv-pb-score-mobile-max {
    font-size: 10px;
    color: #9ca3af;
    white-space: nowrap;
}

/* ── Trennlinie ─────────────────────────────────────────── */

.bpv-pb-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0 16px;
}

/* ── Fazit als Zitat ────────────────────────────────────── */

.bpv-pb-fazit {
    padding: 12px 16px;
}

.bpv-pb-fazit-text {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
    font-style: italic;
    padding-left: 12px;
    border-left: 2px solid #185fa5;
}

/* ── Pros / Cons ────────────────────────────────────────── */

.bpv-pb-proscons {
    border-top: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.bpv-pb-pros {
    padding: 14px 16px;
    border-right: 1px solid #e5e7eb;
}

.bpv-pb-cons {
    padding: 14px 16px;
}

.bpv-pb-list-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bpv-pb-list-label-pro { color: #3B6D11; }
.bpv-pb-list-label-con { color: #A32D2D; }

.bpv-pb-item {
    font-size: 13px;
    color: #4b5563;
    padding: 3px 0;
    display: flex;
    gap: 7px;
    align-items: flex-start;
    line-height: 1.4;
}

.bpv-pb-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

.bpv-pb-dot-pro { background: #639922; }
.bpv-pb-dot-con { background: #e24b4a; }

/* Aufklappbare weitere Einträge */
.bpv-pb-extra {
    overflow: hidden;
    transition: max-height .3s ease;
    max-height: 0;
}

.bpv-pb-extra.bpv-pb-open {
    max-height: 300px;
}

.bpv-pb-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #185fa5;
    cursor: pointer;
    padding: 3px 0;
    margin-top: 4px;
    border: none;
    background: none;
    font-family: inherit;
    line-height: 1;
}

.bpv-pb-more-btn svg {
    transition: transform .2s ease;
    flex-shrink: 0;
}

.bpv-pb-more-btn.bpv-pb-open svg {
    transform: rotate(180deg);
}

/* ── Für wen ────────────────────────────────────────────── */

.bpv-pb-forwhom {
    border-top: 1px solid #e5e7eb;
    padding: 10px 16px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.bpv-pb-forwhom-lbl {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
    margin-top: 1px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.bpv-pb-forwhom-text {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}

/* ── Footer / CTA ───────────────────────────────────────── */

.bpv-pb-footer {
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
    background: #fff;
}

.bpv-pb-price {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.bpv-pb-price-note {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 1px;
}

.bpv-pb-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #185fa5;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s ease;
}

.bpv-pb-cta:hover {
    background: #0c447c;
}

.bpv-pb-amz-logo {
    height: 14px;
    width: auto;
    vertical-align: middle;
    filter: brightness(0) invert(1);
}

/* ── Affiliate * ────────────────────────────────────────── */

.bpv-pb-aff {
    font-size: 10px;
    font-weight: 400;
    vertical-align: super;
    line-height: 0;
    color: inherit;
    opacity: 0.7;
    margin-left: 1px;
}

.bpv-pb-aff-cta {
    color: #fff;
    opacity: 0.85;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 600px) {
    .bpv-pb-top {
        grid-template-columns: 80px 1fr;
        padding: 12px;
    }

    .bpv-pb-score {
        display: none;
    }

    .bpv-pb-score-mobile {
        display: flex;
    }

    .bpv-pb-img-col {
        width: 68px;
        height: 68px;
    }

    .bpv-pb-img {
        max-width: 56px;
        max-height: 56px;
    }

    .bpv-pb-proscons {
        grid-template-columns: 1fr 1fr;
    }

    .bpv-pb-pros {
        border-right: 1px solid #e5e7eb;
    }

    .bpv-pb-item {
        font-size: 12px;
    }

    .bpv-pb-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .bpv-pb-cta {
        justify-content: center;
    }
}
