* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(
        circle at top left,
        #0088cc 0%,
        #004c99 100%
    );
    overflow: hidden;
    position: relative;
}

.sun {
    position: absolute;
    top: 50px;
    left: 50px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #FFD700 30%, #FFA500);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.4);
    animation: sunGlow 4s infinite alternate;
    z-index: 0;
}

@keyframes sunGlow {
    0% { box-shadow: 0 0 60px rgba(255, 215, 0, 0.4); }
    100% { box-shadow: 0 0 100px rgba(255, 215, 0, 0.8); }
}

.container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    width: 90%;
    position: relative;
    z-index: 1;
}

h1 {
    color: #ffffff;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
    font-weight: 400;
}

.battery-container {
    position: relative;
    width: 280px;
    margin: 2rem auto;
}

.progress-container {
    width: 100%;
    height: 40px;
    background: #2a2a2a;
    border-radius: 20px;
    padding: 4px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 16px;
    width: 50%;  /* Startposition auf 50% setzen */
    animation: loadProgress 8s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

@keyframes loadProgress {
    0% { width: 50%; }    /* Start bei 50% */
    50% { width: 100%; }  /* Zur vollen Breite */
    100% { width: 50%; }  /* Zurück zu 50% */
}

.solar-panels-group {
    position: absolute;
    bottom: 0;
    left: 10%;
    display: flex;
    gap: 20px;
    z-index: 2;
}

.solar-panel {
    width: 150px;
    height: 100px;
    background: #0a0a0a;
    border: 2px solid #1a1a1a;
    transform: perspective(500px) rotateX(45deg);
    box-shadow: 
        0 5px 15px rgba(0,0,0,0.3),
        inset 0 0 20px rgba(0,0,0,0.5);
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
    padding: 6px;
    position: relative;
}

.solar-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(255,255,255,0.05);
    pointer-events: none;
}

.solar-panel::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255,255,255,0.03) 45%,
        rgba(255,255,255,0.05) 50%,
        rgba(255,255,255,0.03) 55%,
        transparent 100%
    );
    transform: rotate(45deg);
    pointer-events: none;
}

.solar-cell {
    background: linear-gradient(145deg, #000911, #001a33);
    border: 1px solid #001830;
    position: relative;
    overflow: hidden;
    animation: cellGlow 4s infinite;
    border-radius: 2px;
}

/* Verzögerung für jede Zelle innerhalb eines Panels */
.solar-panel:nth-child(1) .solar-cell:nth-child(1) { animation-delay: 0s; }
.solar-panel:nth-child(1) .solar-cell:nth-child(2) { animation-delay: 0.1s; }
.solar-panel:nth-child(1) .solar-cell:nth-child(3) { animation-delay: 0.2s; }
.solar-panel:nth-child(1) .solar-cell:nth-child(4) { animation-delay: 0.3s; }
.solar-panel:nth-child(1) .solar-cell:nth-child(5) { animation-delay: 0.4s; }
.solar-panel:nth-child(1) .solar-cell:nth-child(6) { animation-delay: 0.5s; }
.solar-panel:nth-child(1) .solar-cell:nth-child(7) { animation-delay: 0.6s; }
.solar-panel:nth-child(1) .solar-cell:nth-child(8) { animation-delay: 0.7s; }
.solar-panel:nth-child(1) .solar-cell:nth-child(9) { animation-delay: 0.8s; }
.solar-panel:nth-child(1) .solar-cell:nth-child(10) { animation-delay: 0.9s; }
.solar-panel:nth-child(1) .solar-cell:nth-child(11) { animation-delay: 1.0s; }
.solar-panel:nth-child(1) .solar-cell:nth-child(12) { animation-delay: 1.1s; }

/* Zweites Panel startet nach dem ersten */
.solar-panel:nth-child(2) .solar-cell:nth-child(1) { animation-delay: 1.2s; }
.solar-panel:nth-child(2) .solar-cell:nth-child(2) { animation-delay: 1.3s; }
.solar-panel:nth-child(2) .solar-cell:nth-child(3) { animation-delay: 1.4s; }
.solar-panel:nth-child(2) .solar-cell:nth-child(4) { animation-delay: 1.5s; }
.solar-panel:nth-child(2) .solar-cell:nth-child(5) { animation-delay: 1.6s; }
.solar-panel:nth-child(2) .solar-cell:nth-child(6) { animation-delay: 1.7s; }
.solar-panel:nth-child(2) .solar-cell:nth-child(7) { animation-delay: 1.8s; }
.solar-panel:nth-child(2) .solar-cell:nth-child(8) { animation-delay: 1.9s; }
.solar-panel:nth-child(2) .solar-cell:nth-child(9) { animation-delay: 2.0s; }
.solar-panel:nth-child(2) .solar-cell:nth-child(10) { animation-delay: 2.1s; }
.solar-panel:nth-child(2) .solar-cell:nth-child(11) { animation-delay: 2.2s; }
.solar-panel:nth-child(2) .solar-cell:nth-child(12) { animation-delay: 2.3s; }

/* Drittes Panel startet nach dem zweiten */
.solar-panel:nth-child(3) .solar-cell:nth-child(1) { animation-delay: 2.4s; }
.solar-panel:nth-child(3) .solar-cell:nth-child(2) { animation-delay: 2.5s; }
.solar-panel:nth-child(3) .solar-cell:nth-child(3) { animation-delay: 2.6s; }
.solar-panel:nth-child(3) .solar-cell:nth-child(4) { animation-delay: 2.7s; }
.solar-panel:nth-child(3) .solar-cell:nth-child(5) { animation-delay: 2.8s; }
.solar-panel:nth-child(3) .solar-cell:nth-child(6) { animation-delay: 2.9s; }
.solar-panel:nth-child(3) .solar-cell:nth-child(7) { animation-delay: 3.0s; }
.solar-panel:nth-child(3) .solar-cell:nth-child(8) { animation-delay: 3.1s; }
.solar-panel:nth-child(3) .solar-cell:nth-child(9) { animation-delay: 3.2s; }
.solar-panel:nth-child(3) .solar-cell:nth-child(10) { animation-delay: 3.3s; }
.solar-panel:nth-child(3) .solar-cell:nth-child(11) { animation-delay: 3.4s; }
.solar-panel:nth-child(3) .solar-cell:nth-child(12) { animation-delay: 3.5s; }

/* Viertes Panel startet nach dem dritten */
.solar-panel:nth-child(4) .solar-cell:nth-child(1) { animation-delay: 3.6s; }
.solar-panel:nth-child(4) .solar-cell:nth-child(2) { animation-delay: 3.7s; }
.solar-panel:nth-child(4) .solar-cell:nth-child(3) { animation-delay: 3.8s; }
.solar-panel:nth-child(4) .solar-cell:nth-child(4) { animation-delay: 3.9s; }
.solar-panel:nth-child(4) .solar-cell:nth-child(5) { animation-delay: 4.0s; }
.solar-panel:nth-child(4) .solar-cell:nth-child(6) { animation-delay: 4.1s; }
.solar-panel:nth-child(4) .solar-cell:nth-child(7) { animation-delay: 4.2s; }
.solar-panel:nth-child(4) .solar-cell:nth-child(8) { animation-delay: 4.3s; }
.solar-panel:nth-child(4) .solar-cell:nth-child(9) { animation-delay: 4.4s; }
.solar-panel:nth-child(4) .solar-cell:nth-child(10) { animation-delay: 4.5s; }
.solar-panel:nth-child(4) .solar-cell:nth-child(11) { animation-delay: 4.6s; }
.solar-panel:nth-child(4) .solar-cell:nth-child(12) { animation-delay: 4.7s; }

.solar-cell::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        145deg, 
        rgba(0,102,204,0.1) 0%,
        transparent 30%,
        transparent 70%,
        rgba(0,102,204,0.05) 100%
    );
}

@keyframes cellGlow {
    0% { 
        background: linear-gradient(145deg, #000911, #001a33);
        border-color: #001830;
    }
    50% { 
        background: linear-gradient(145deg, #001225, #002244);
        border-color: #002040;
    }
    100% { 
        background: linear-gradient(145deg, #000911, #001a33);
        border-color: #001830;
    }
}

.wind-turbine {
    position: absolute;
    bottom: -60px;
    right: 15%;
    height: 300px;
}

.turbine-pole {
    width: 12px;
    height: 240px;
    background: linear-gradient(to right, #d1d1d1, #ffffff, #d1d1d1);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.turbine-head {
    width: 30px;
    height: 30px;
    background: linear-gradient(to right, #d1d1d1, #ffffff, #d1d1d1);
    border-radius: 50%;
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
}

.turbine-blades-container {
    position: absolute;
    width: 160px;
    height: 160px;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
}

.turbine-blades {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate 8s linear infinite;
    transform-origin: center center;
}

.blade {
    position: absolute;
    width: 12px;
    height: 70px;
    background: linear-gradient(to right, #d1d1d1, #ffffff, #d1d1d1);
    left: 50%;
    top: 50%;
    transform-origin: center bottom;
    margin-left: -6px;
    margin-top: -70px;
    border-radius: 40% 40% 0 0;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

footer {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .container {
        padding: 2rem;
        width: 95%;
    }

    h1 {
        font-size: 2.5rem;
    }

    .battery-container {
        width: 240px;
    }

    .wind-turbine {
        transform: scale(0.6);
        right: 5%;
    }

    .solar-panels-group {
        left: 5%;
        gap: 10px;
        transform: scale(0.8);
    }

    .sun {
        top: 30px;
        left: 30px;
        width: 100px;
        height: 100px;
    }
}