/* ═══════════════════════════════════════════════════════════════════════════
   PF_HAM SVG HOUSE VISUALIZATION CSS
   Isometrisches 3D-Haus mit Live Solar & Battery Monitoring
   ═══════════════════════════════════════════════════════════════════════════ */

.pf-ham-svg-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 16px;
    padding: 15px;
    margin: 0;
}

/* Summary Cards Row - KOMPAKT & NEBENEINANDER */
.pf-ham-summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.pf-ham-summary-card {
    background: white;
    border-radius: 8px;
    padding: 10px 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 0 1 auto;
    min-width: 120px;
    max-width: 150px;
}

.pf-ham-summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pf-ham-summary-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.pf-ham-summary-label {
    font-size: 0.75rem;
    color: #7f8c8d;
    margin-bottom: 3px;
}

.pf-ham-summary-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #667eea;
}

/* SVG Haus Styling */
#pf-ham-house-svg {
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: 0 auto;
    display: block;
    background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 50%, #90EE90 100%);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* SVG Panel Animationen */
.pf-svg-panel {
    cursor: pointer;
    transition: all 0.3s ease;
}

.pf-svg-panel:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255,215,0,0.8));
}

.pf-svg-panel.active .panel-rect {
    fill: url(#panelActive) !important;
    filter: url(#solarGlow);
    animation: pulsePanel 2s ease-in-out infinite;
}

.pf-svg-panel.low .panel-rect {
    fill: #95a5a6 !important;
}

/* Panel Power Text Animation */
.pf-svg-panel.active .panel-power {
    animation: textGlow 1.5s ease-in-out infinite alternate;
}

@keyframes pulsePanel {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

@keyframes textGlow {
    from {
        fill: white;
        filter: drop-shadow(0 0 3px rgba(255,255,255,0.5));
    }
    to {
        fill: #FFD700;
        filter: drop-shadow(0 0 8px rgba(255,215,0,0.9));
    }
}

/* Batterie Animationen */
.pf-svg-battery,
.pf-svg-battery-mini {
    cursor: pointer;
    transition: all 0.3s ease;
}

.pf-svg-battery:hover,
.pf-svg-battery-mini:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(243,156,18,0.6));
}

.pf-svg-battery.charging rect {
    animation: batteryCharge 2s ease-in-out infinite;
}

@keyframes batteryCharge {
    0%, 100% {
        fill: url(#batteryGradient);
        opacity: 1;
    }
    50% {
        fill: #f1c40f;
        opacity: 0.9;
    }
}

/* Batterie Charge Level Colors */
.battery-charge[data-charge="high"] {
    fill: #27ae60 !important;
}

.battery-charge[data-charge="medium"] {
    fill: #f39c12 !important;
}

.battery-charge[data-charge="low"] {
    fill: #e74c3c !important;
}

/* Legende */
.pf-ham-svg-legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pf-ham-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pf-ham-legend-box {
    width: 30px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #2c3e50;
}

.pf-ham-legend-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pf-ham-summary-row {
        grid-template-columns: 1fr;
    }
    
    #pf-ham-house-svg {
        height: 500px;
    }
    
    .pf-ham-summary-icon {
        font-size: 2rem;
    }
    
    .pf-ham-summary-value {
        font-size: 1.4rem;
    }

    .pf-ham-svg-legend {
        flex-direction: column;
        align-items: center;
    }
}

/* Energie-Flow Animation (optional - für später) */
.energy-flow {
    animation: flowEnergy 3s linear infinite;
}

@keyframes flowEnergy {
    0% {
        stroke-dashoffset: 1000;
    }
    100% {
        stroke-dashoffset: 0;
    }
}
