body {
    margin: 0;
    padding: 0;
}

#main-container {
margin: 0;
padding: 0;
}

.theme-light body {
    background-color: #FFFFFF !important;
}

.theme-dark body {
    background-color: #1A202C !important;
}

#toggle-theme {
transition: transform 0.2s, background-color 0.2s;
}

#toggle-theme:hover {
transform: scale(1.1);
background-color: #6B7280 !important; /* Leicht helleres Grau */
}

/* Zählpunkte */

.counter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    /*margin-top: -10px;*/
}

.counter-box {
    display: flex;
    align-items: center;
    font-size: 36px;
    margin: 10px 0;
}

.counter-number {
    color: #0f653e;
    font-size: 36px;
    margin-right: 10px;
}

.counter-label {
    font-size: 18px;
}

/* Animation */
.fluss-dreieck {
    position: relative;
    width: 300px;
    height: 180px;
    margin: 0 auto 30px auto;
}

.label {
    position: absolute;
    font-weight: bold;
    font-size: 16px;
}

.label.pv {
    top: -30px;
    left: 10px; /* Angepasst an die neue Position von PV (x=50) */
}

.label.netz {
    top: -30px;
    right: 30px; /* Angepasst an die neue Position von Netz (x=250) */
}

.label.verbrauch {
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
}

.kugel {
    width: 12px;
    height: 12px;
    background-color: #FFD700;
    border-radius: 50%;
    position: absolute;
    z-index: 2;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    transform: translate(-50%, -50%);
    display: none; /* unsichtbar beim ersten laden */
}

.kugel-pv-verbrauch {
    offset-path: path('M50,30 L148,167'); /* Angepasst an neue Koordinaten */
    animation: moveAlongPath 3s infinite;
}

.kugel-netz-verbrauch {
    offset-path: path('M238,26 L142,160'); /* Angepasst an neue Koordinaten */
    animation: moveAlongPath 3s infinite;
}

.kugel-pv-netz {
    offset-path: path('M55,26 L255,26'); /* Angepasst an neue Koordinaten */
    animation: moveAlongPath 3s infinite;
}

@keyframes moveAlongPath {
    0% {
        offset-distance: 0%;
    }
    100% {
        offset-distance: 100%;
    }
}

.wert {
    position: absolute;
    font-size: 14px;
}

.pv-wert {
    top: -10px;
    left: 25px;
}

.netz-wert {
    top: -10px;
    right: 20px;
}

.verbrauch-wert {
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
}
