/* Allgemeine Stile */
body {
    margin: 0;
    min-height: 100vh; /* min-height anstatt height verwenden */
    background: linear-gradient(0deg, black, blue, purple, black);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: Arial, sans-serif;
    overflow-x: hidden; /* nur horizontales Scrollen verhindern */
    padding: 20px; /* Ein bisschen Padding hinzufügen */
    box-sizing: border-box;
}

.container {
    display: none;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Halbdurchsichtiger Hintergrund für besseren Kontrast */
    border-radius: 10px;
    transition: opacity 1s ease-in-out;
    opacity: 0;
    max-width: 600px; /* Begrenzung der maximalen Breite */
    width: 100%; /* Anpassung an kleinere Bildschirme */
    box-sizing: border-box;
}

.container.show {
    opacity: 1;
}

.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Sicherstellen, dass der Loader den gesamten Viewport einnimmt */
}

.loader::before {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 5px solid #3498db;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.buttons a {
    display: inline-block;
    margin: 10px;
    padding: 12px 24px;
    text-decoration: none;
    background-color: #3498db;
    color: white;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 16px;
    min-width: 150px; /* Mindestbreite für Buttons */
    text-align: center;
}

.buttons a:hover {
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.buttons a:active {
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Footer-Stile */
.footer {
    color: white;
    text-align: center;
    padding: 10px 20px;
    box-sizing: border-box;
    margin-top: 20px; /* Abstand zum oberen Inhalt */
    position: relative; /* Footer bleibt relativ zum Seiteninhalt */
    width: 100%;
}

.footer a {
    color: #4facfe; /* Farbe des Links */
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline; /* Unterstreichen des Links beim Hover */
}

/* Mobile Anpassungen */
@media (max-width: 480px) {
    body {
        padding: 10px;
        justify-content: center; /* Beibehaltung der Zentrierung */
        align-items: flex-start; /* Inhalt startet oben */
        overflow-y: auto; /* Ermöglicht das Scrollen auf kleineren Bildschirmen */
    }

    .container {
        padding: 15px;
        width: 100%;
        max-width: 100%; /* Maximale Breite auf 100% setzen */
        border-radius: 0; /* Entfernt den Randradius für eine vollflächige Darstellung */
    }

    .buttons a {
        margin: 5px;
        padding: 10px 20px;
        font-size: 14px;
        min-width: 120px; /* Mindestbreite für kleinere Bildschirme */
    }

    .loader {
        height: 100vh; /* Sicherstellen, dass der Loader immer zentriert bleibt */
    }
}

/* Liste mit Slide-in-Animation */
ul {
    list-style-type: none;
    padding: 0;
    opacity: 0; /* Initial verstecken */
    transform: translateX(-100%); /* Startposition außerhalb des Bildschirms */
    transition: opacity 1s ease-out, transform 1s ease-out; /* Animations-Effekte */
}

/* Liste sichtbar machen */
.container.show ul {
    opacity: 1; /* Sichtbar machen */
    transform: translateX(0); /* Endposition */
}

/* Verzögerung für die Liste */
.container.show ul {
    transition-delay: 1s; /* Verzögerung nach dem Anzeigen des Containers */
}

ul li {
    background: #2a2a2a;
    margin: 5px 0;
    padding: 10px;
    border-radius: 5px;
    color: #e0e0e0;
    font-size: 18px;
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out; /* Animation für Hover-Effekt */
}

ul li:hover {
    background: #3a3a3a; /* Etwas helleres Grau bei Hover */
    transform: translateX(10px); /* Leichte Verschiebung nach rechts bei Hover */
}
