/* Stile für die React-Konfigurator-Zusammenfassung */

.react-configurator-summary {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin: 30px auto;
    max-width: 800px;
    overflow: hidden;
}

.summary-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 25px 20px;
    text-align: center;
    position: relative;
}

.summary-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.summary-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.summary-body {
    padding: 25px;
}

.summary-section {
    margin-bottom: 30px;
}

.summary-section h4 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    padding-left: 15px;
}

.summary-section h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.summary-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.summary-item:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.summary-item-label {
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 5px;
}

.summary-item-value {
    font-weight: 600;
    color: var(--primary-color);
}

/* Ladezustand */
.summary-loading {
    text-align: center;
    padding: 30px;
}
.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid rgba(198, 158, 78, 0.2);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fehlerzustand */
.summary-error {
    background-color: #fff3f3;
    border-left: 4px solid #ff5252;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    color: #d32f2f;
}

/* Zusätzliche Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.summary-item {
    animation: fadeInUp 0.5s ease;
    animation-fill-mode: both;
}

.summary-item:nth-child(2) { animation-delay: 0.1s; }
.summary-item:nth-child(3) { animation-delay: 0.2s; }
.summary-item:nth-child(4) { animation-delay: 0.3s; }
.summary-item:nth-child(5) { animation-delay: 0.4s; }
.summary-item:nth-child(6) { animation-delay: 0.5s; }
.summary-item:nth-child(7) { animation-delay: 0.6s; }
.summary-item:nth-child(8) { animation-delay: 0.7s; }
.summary-item:nth-child(9) { animation-delay: 0.8s; }
.summary-item:nth-child(10) { animation-delay: 0.9s; }

/* Speziellere Stile für bestimmte Themen */
[data-theme="barrierefreies-bad"] .summary-header {
    background: linear-gradient(135deg, #2e4b8a 0%, #4f7ac0 100%);
}

[data-theme="komplettbad"] .summary-header {
    background: linear-gradient(135deg, #1a7b54 0%, #2db68a 100%);
}

[data-theme="heizungstausch"] .summary-header {
    background: linear-gradient(135deg, #b35c00 0%, #ff8c1a 100%);
}

[data-theme="heizungsmodernisierung"] .summary-header {
    background: linear-gradient(135deg, #7b1a4d 0%, #d03384 100%);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .summary-header {
        padding: 15px 10px;
    }
    
    .summary-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .summary-header h3 {
        font-size: 18px;
    }
    
    .summary-body {
        padding: 15px;
    }
    
    .summary-section h4 {
        font-size: 16px;
    }
}