/* Brandschutz Analyzer - Risk Matrix Styles */

.bsa-risk-matrix {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.bsa-risk-matrix h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
}

.bsa-risk-matrix-overall {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.bsa-risk-matrix-score {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bsa-risk-matrix-gauge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.bsa-risk-matrix-gauge::after {
    content: '/5';
    font-size: 14px;
    font-weight: 400;
    position: absolute;
    bottom: 15px;
    right: 12px;
}

.bsa-risk-matrix-label strong {
    font-size: 18px;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.bsa-risk-matrix-label span {
    font-size: 13px;
    color: #666;
}

.bsa-risk-matrix-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.bsa-risk-matrix-category {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #ccc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.bsa-risk-matrix-category.sehr_niedrig {
    border-left-color: #28a745;
}

.bsa-risk-matrix-category.niedrig {
    border-left-color: #5cb85c;
}

.bsa-risk-matrix-category.mittel {
    border-left-color: #ffc107;
}

.bsa-risk-matrix-category.hoch {
    border-left-color: #ff9800;
}

.bsa-risk-matrix-category.sehr_hoch {
    border-left-color: #dc3545;
}

.bsa-risk-matrix-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.bsa-risk-matrix-category-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.bsa-risk-matrix-category-score {
    font-size: 18px;
    font-weight: 700;
    color: #666;
}

.bsa-risk-matrix-category-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.bsa-risk-matrix-category-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.bsa-risk-matrix-category-bar-fill.sehr_niedrig {
    background: linear-gradient(90deg, #28a745, #5cb85c);
}

.bsa-risk-matrix-category-bar-fill.niedrig {
    background: linear-gradient(90deg, #5cb85c, #8bc34a);
}

.bsa-risk-matrix-category-bar-fill.mittel {
    background: linear-gradient(90deg, #ffc107, #ffb300);
}

.bsa-risk-matrix-category-bar-fill.hoch {
    background: linear-gradient(90deg, #ff9800, #ff5722);
}

.bsa-risk-matrix-category-bar-fill.sehr_hoch {
    background: linear-gradient(90deg, #dc3545, #c82333);
}

.bsa-risk-matrix-category-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .bsa-risk-matrix-overall {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .bsa-risk-matrix-categories {
        grid-template-columns: 1fr;
    }
}
