body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f4f4f4;
}

.navigation {
    margin-bottom: 20px;
}

.navigation button {
    padding: 10px 20px;
    margin: 0 10px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
}

.card-container {
    width: 300px;
    height: 400px;
    perspective: 1000px; /* Für den 3D-Effekt */
}

.card {
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
    position: relative; /* Wichtig für die Positionierung der Vorder- und Rückseite */
}

.card.is-flipped {
    transform: rotateY(180deg);
}

.card__face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Verhindert, dass die Rückseite im Flip sichtbar ist */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.card__face--front {
    background-color: #3498db;       /* Blaue Vorderseite */
    display: flex;
    flex-direction: column; /* Align items vertically */
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically */
}


.card-image {
    max-width: 150px; /* Adjust as needed */
    max-height: 150px; /* Adjust as needed */
    margin-bottom: 10px; /* Space between image and text */
    display: block; /* Prevents image from affecting text flow */
    margin-left: auto;
    margin-right: auto;
}

.card__face--back {
    background-color: #e74c3c; /* Rote Rückseite */
    transform: rotateY(180deg); /* Dreht die Rückseite standardmäßig */
}