body {
    background-color: #e6ffe6;
    color: #f5f5f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    max-width: 800px;
    width: 90%;
    padding: 40px;
    background-color: #0d3a26;
    border-radius: 8px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.5);
    border-top: 4px solid #ffcc00;
}

h1 {
    color: #ffcc00;
    font-size: clamp(3rem, 10vw, 6.6rem);
    margin-bottom: 15px;
    font-weight: bold; /* Deine gewünschte Bold-Kapazität */
    letter-spacing: 2px;
    font-family: 'Brush Script MT', 'Lucida Handwriting', cursive; /* Retro-Handschrift */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4); /* Ein leichter Schatten für den perfekten Retro-Pop */
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e0e0e0;
}

/* --- Laufende Kugel-Leiste (Die perfekte Flex-Schiene) --- */
.todo-section {
    margin: 25px 0;
    background-color: #052014;
    padding: 20px 0;
    border-radius: 4px;
    overflow: hidden;
    border-top: 1px solid #135237;
    border-bottom: 1px solid #135237;
    /* Flexbox hält Waggon 1 und Waggon 2 absolut stabil nebeneinander */
    display: flex;
    white-space: nowrap;
}

.ticker-wrap {
    display: inline-block;
    flex-shrink: 0; /* Verhindert, dass der Container gequetscht wird */
    /* Zurück auf entspannte 90s, da wir jetzt echte Container verschieben */
    animation: ticker 90s linear infinite;
}

.lotto-row {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    margin-right: 40px;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
}

.lotto-date {
    background-color: #ffcc00;
    color: #062417;
    border-radius: 4px;
    padding: 2px 8px;
    margin-right: 20px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.lotto-numbers {
    color: #ffffff;
    font-weight: bold;
    margin-right: 20px;
    letter-spacing: 1px;
}

.lotto-prize {
    background-color: #ffcc00;
    color: #062417;
    border-radius: 4px;
    padding: 2px 8px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.lotto-wait {
    color: #39ff14;
    font-weight: bold;
    font-style: italic;
    margin: 0 50px;
    font-size: 1.1rem;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 1px;
    animation: smoothPulse 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes smoothPulse {
    0%, 100% {
        opacity: 0.4;
        text-shadow: 0 0 2px rgba(57, 255, 20, 0.2);
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 8px rgba(57, 255, 20, 0.8), 0 0 2px rgba(57, 255, 20, 1);
    }
}

/* Der mathematische Trick: Exakt 100% der EIGENEN Waggon-Breite nach links */
@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #ffcc00, transparent);
    margin: 25px 0;
}

footer {
    margin-top: 25px;
    font-size: 0.8rem;
    color: #709482;
    font-family: sans-serif;
    line-height: 1.5;
}

    footer a {
        color: #ffcc00;
        text-decoration: none;
        border-bottom: 1px dashed #ffcc00;
    }

        footer a:hover {
            color: #ffffff;
            text-decoration: none;
        }
