/* ----------------------------------------------------------
   GLOBAL
---------------------------------------------------------- */
body {
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    font-family: Arial, sans-serif;

    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    margin-top: 30px;
    margin-bottom: 30px;
    font-size: 36px;
    text-align: center;
}

/* ----------------------------------------------------------
   SPIELE GRID
---------------------------------------------------------- */
.spiele-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    width: 90%;
    max-width: 900px;
    padding-bottom: 40px;
}

/* ----------------------------------------------------------
   KACHELN
---------------------------------------------------------- */
.spiel-kachel {
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;

    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spiel-kachel:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* ----------------------------------------------------------
   EINHEITLICHE BILDGRÖSSE
---------------------------------------------------------- */
.spiel-kachel img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* Puzzle-Bild etwas größer */
.puzzle-img {
    width: 150px;
    height: 150px;
}

/* ----------------------------------------------------------
   TEXT
---------------------------------------------------------- */
.spiel-kachel h2 {
    margin: 10px 0 5px;
}

.spiel-kachel p {
    margin: 0;
    color: #555;
}

/* ----------------------------------------------------------
   Zurück-Maus
---------------------------------------------------------- */
.zurueck-maus {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: min(10vw, 60px);
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.15s ease;
}

.zurueck-maus:hover {
    transform: scale(1.08);
}

/* ----------------------------------------------------------
   MOBILE
---------------------------------------------------------- */
@media (max-width: 600px) {
    h1 {
        font-size: 8vw;
    }

    .spiel-kachel img {
        width: 30vw;
        height: 30vw;
        max-width: 140px;
        max-height: 140px;
    }

    .puzzle-img {
        width: 36vw;
        height: 36vw;
        max-width: 170px;
        max-height: 170px;
    }

    .zurueck-maus {
        width: min(14vw, 48px);
        bottom: 14px;
        right: 14px;
    }
}
