.grid-andersen {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 8px;
    max-width: 900px;
    margin: 2rem auto;
}

.grid-andersen > * {
    border-radius: 12px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

.grid-andersen > *[onclick] {
    cursor: pointer;
}

.grid-andersen > *[onclick]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.grid-andersen > red {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
}

.grid-andersen > green {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff;
}

.grid-andersen > blue {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
}

.grid-andersen > teil {
    background: linear-gradient(135deg, #1abc9c, #16a085);
    color: #fff;
}

.grid-andersen > yellow {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #2c3e50;
}

.grid-andersen > white {
    background: #f8f9fa;
    color: #2c3e50;
}

.grid-andersen > black {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    color: #fff;
}

.andersen-120-space {
    width: 120px;
}

@media (max-width: 600px) {
    .grid-andersen {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 6px;
    }

    .grid-andersen > * {
        font-size: 1rem;
        min-height: 70px;
    }
}
