body {
    background-color: #121212; /* Dunkelschwarz */
    color: white; /* Wei�er Text f�r bessere Lesbarkeit */
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

#blazor-error-ui {
    background: black; /* Hintergrund auf Schwarz setzen */
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(255, 255, 255, 0.2); /* Wei�er Schatten f�r Kontrast */
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: white; /* Fehlertext wei� */
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 3.5rem;
        top: 0.5rem;
        color: white;
    }

.blazor-error-boundary {
    background: black; /* Hintergrund der Fehlerbox ebenfalls schwarz */
    color: white;
    padding: 1rem 1rem 1rem 3.7rem;
}

    .blazor-error-boundary::after {
        content: "Ein Fehler ist aufgetreten.";
        color: white;
    }

/* Stil f�r die Startseite */
.title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap; /* Buttons können umbrechen */
}

.btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

    .btn:hover {
        transform: translateY(-5px);
    }

/* Mobile Optimierung für Hauptseite */
@media screen and (max-width: 768px) {
    .title {
        font-size: 1.5rem; /* Kleinere Schrift für mobile Geräte */
        margin-bottom: 15px;
    }
    
    .button-container {
        gap: 10px; /* Weniger Abstand zwischen Buttons */
        margin-top: 20px;
        padding: 0 10px; /* Seitenabstand hinzufügen */
    }
    
    .btn {
        padding: 12px 20px; /* Kleinere Buttons für mobile Geräte */
        font-size: 1rem; /* Kleinere Schrift */
        flex: 1; /* Buttons nehmen verfügbaren Platz ein */
        min-width: 120px; /* Mindestbreite für Touch-Target */
    }
}

/* Farben der Buttons */
.manga {
    background-color: #e91e63;
    color: white;
}

.tcg {
    background-color: #009688;
    color: white;
}

.spiele {
    background-color: #3f51b5;
    color: white;
}

.kleinanzeigen {
    background-color: #ff9800;
    color: white;
}

.flohmarkt {
    background-color: #84C3BE;
    color: white;
}

/* Bildoptimierungen */
.game-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.game-images img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    background-color: #1a1a1a;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.game-images img:hover {
    transform: scale(1.05);
}

/* Modal für große Bilder */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.image-modal img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

/* Lazy Loading Placeholder */
.game-images img[loading="lazy"] {
    background-color: #1a1a1a;
    min-height: 200px;
}