/* "Ist X für dich geeignet?" & "Beste Alternative" – Börsen-Testbericht */

.boerse-fit-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.boerse-fit-layout.no-left {
    grid-template-columns: 1fr;
}

.boerse-fit-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.boerse-fit-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-radius);
    box-shadow: none;
}

.boerse-fit-card h3 {
    margin: 0 0 16px;
    color: var(--kb-text);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.4;
}

/* Listen mit dezenten Häkchen / Kreuzen */
.boerse-fit-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.boerse-fit-list li {
    position: relative;
    margin: 0;
    padding-left: 30px;
    color: var(--kb-text);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.55;
}

.boerse-fit-list li::before {
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.boerse-fit-yes .boerse-fit-list li::before {
    content: "✓";
    background: #dcfce7;
    color: #16a34a;
}

.boerse-fit-no .boerse-fit-list li::before {
    content: "✕";
    background: #fee2e2;
    color: #dc2626;
}

/* Buttons */
.boerse-fit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.boerse-fit-btn-primary {
    background: var(--kb-cta);
    border: 1px solid var(--kb-cta);
    color: #fff !important;
}

.boerse-fit-btn-primary:hover,
.boerse-fit-btn-primary:focus {
    background: var(--kb-cta-hover);
    border-color: var(--kb-cta-hover);
}

.boerse-fit-btn-outline {
    background: #fff;
    border: 1px solid #d1d5db;
    color: var(--kb-text) !important;
}

.boerse-fit-btn-outline:hover,
.boerse-fit-btn-outline:focus {
    border-color: #9ca3af;
}

.boerse-fit-btn-block {
    width: 100%;
    margin-top: auto;
}

.boerse-fit-yes .boerse-fit-list {
    margin-bottom: 24px;
}

.boerse-fit-arrow {
    flex-shrink: 0;
}

/* Beste Alternative */
.boerse-alternative-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.boerse-alternative-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
    flex-shrink: 0;
}

.boerse-alternative-title {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.boerse-alternative-name {
    color: var(--kb-text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.boerse-alternative-label {
    color: #b45309;
    font-size: 0.8125rem;
    font-weight: 600;
}

.boerse-alternative-rating {
    margin-left: auto;
    color: var(--kb-text);
    font-size: 1.125rem;
    font-weight: 700;
    white-space: nowrap;
}

.boerse-alternative-rating small {
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 600;
}

.boerse-alternative-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.boerse-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.5;
}

.boerse-chip.is-positive {
    background: #ecfdf5;
    color: #047857;
}

.boerse-chip.is-negative {
    background: #fef2f2;
    color: #b91c1c;
}

.boerse-alternative-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 768px) {
    .boerse-fit-layout {
        grid-template-columns: 1fr;
    }

    .boerse-fit-card {
        padding: 20px;
    }
}

@media (max-width: 420px) {
    .boerse-alternative-actions {
        grid-template-columns: 1fr;
    }
}

/* Eigene Icons (kb-icons) statt Zeichen und Emojis in ::before/::after */
.boerse-fit-yes .boerse-fit-list li::before {
    content: "";
    border-radius: 0;
    background: var(--kbi-check-good) center / contain no-repeat;
    color: transparent;
    font-size: 0;
    width: 20px;
    height: 20px;
}
.boerse-fit-no .boerse-fit-list li::before {
    content: "";
    border-radius: 0;
    background: var(--kbi-cross-bad) center / contain no-repeat;
    color: transparent;
    font-size: 0;
    width: 20px;
    height: 20px;
}
