/* ========== KAMERA STYLES ========== */
.ha-camera-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.ha-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f3f4;
}

.ha-refresh-btn {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 15px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ha-refresh-btn:hover:not(:disabled) {
    background: #0056b3;
    transform: scale(1.05);
}

.ha-refresh-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.ha-camera-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.ha-camera-container.fallback {
    border: 2px dashed #6c757d;
}

.ha-camera-image {
    max-width: 100%;
    max-height: 500px;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ha-camera-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.ha-camera-time {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.ha-camera-status {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.ha-camera-error {
    padding: 50px;
    text-align: center;
    color: #dc3545;
    font-weight: 600;
}

/* ========== SOLAR SECTION ========== */
.ha-solar-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-left: 5px solid #ffc107;
}

/* ========== BASIS LAYOUT ========== */
.ha-solar-simple {
    font-family: system-ui, -apple-system, sans-serif;
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.ha-simple-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #dee2e6;
}

.ha-simple-header h1 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.ha-simple-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* ========== PREIS EINGABE ========== */
.ha-price-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 5px solid #28a745;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.ha-price-box label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.ha-price-input-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.ha-price-input-group input {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.ha-price-input-group input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.ha-price-input-group button {
    padding: 12px 30px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ha-price-input-group button:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* ========== STATUS KARTEN ========== */
.ha-live-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ha-status-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border-top: 4px solid;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.ha-status-card:hover {
    transform: translateY(-5px);
}

.ha-status-card.leistung {
    border-top-color: #ffc107;
}

.ha-status-card.direkteinspeisung {
    border-top-color: #20c997;
}

.ha-status-card.heute {
    border-top-color: #17a2b8;
}

.ha-status-card.woche {
    border-top-color: #6f42c1;
}

.ha-status-card.monat {
    border-top-color: #fd7e14;
}

.ha-status-card.jahr {
    border-top-color: #e83e8c;
}

.ha-card-title {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.ha-card-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.ha-card-value.live {
    color: #28a745;
    font-size: 2.5rem;
}

.ha-card-unit {
    font-size: 0.9rem;
    color: #6c757d;
}

/* ========== ERSPARNIS ========== */
.ha-savings-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.ha-savings-title {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: #28a745;
    font-weight: 600;
}

.ha-savings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.ha-saving-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.ha-saving-period {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 10px;
    font-weight: 600;
}

.ha-saving-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 8px;
}

.ha-saving-original {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .ha-solar-simple {
        padding: 20px;
    }
    
    .ha-price-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ha-price-input-group input {
        max-width: 100%;
    }
    
    .ha-card-value {
        font-size: 1.8rem;
    }
    
    .ha-camera-container {
        min-height: 200px;
    }
    
    .ha-live-status {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .ha-savings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ha-savings-grid {
        grid-template-columns: 1fr;
    }
    
    .ha-live-status {
        grid-template-columns: 1fr;
    }
    
    .ha-simple-header h1 {
        font-size: 1.8rem;
    }
    
    .ha-card-value {
        font-size: 1.6rem;
    }
    
    .ha-saving-amount {
        font-size: 1.5rem;
    }
}

/* ========== ANIMATIONEN ========== */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ========== ZUSÄTZLICHE KLASSEN FÜR EINZELNE SHORTCODES ========== */
.ha-live-leistung-wert {
    font-weight: bold;
    color: #28a745;
}

/* ========== DIREKTEINSPEISUNG ========== */
.ha-saving-comparison {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 5px;
    font-style: italic;
}
