body {
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4; /* Heller Hintergrund */
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.container {
  max-width: 600px;
  margin: auto;
}

.card-container {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 250px;
  margin-bottom: 20px;
}

.card {
  width: 100%;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s, background-color 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 10px;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Schatten für mehr Tiefe */
}

.flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 20px;
  backface-visibility: hidden;
}

.card-back {
  transform: rotateY(180deg);
}

.correct {
  background-color: lightgreen !important;
}

.wrong {
  background-color: lightcoral !important;
}

.hidden {
  display: none;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

button {
  padding: 10px 20px;
  font-size: 16px;
  margin: 5px;
  border: 2px solid var(--clr-darkgrey); /* Roter Rahmen */
  background-color: #ecf0f1; /* Hellgrauer Hintergrund */
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s; /* Übergänge für Hover-Effekte */
  cursor: pointer;
}

button:hover {
  background-color: #bdc3c7; /* Grauer Hintergrund für alle Buttons */
  color: white; /* Weißer Text bei Hover */
}

button#correctButton:hover {
  background-color: #2ecc71; /* Grüner Hintergrund für "Richtig" */
  border-color: #27ae60; /* Grüner Rand für "Richtig" */
}

button#wrongButton:hover {
  background-color: #e74c3c; /* Roter Hintergrund für "Falsch" */
  border-color: #c0392b; /* Roter Rand für "Falsch" */
}

button:focus {
  outline: none; /* Entfernt die Standard-Fokus-Grenze */
}

#quizContainer {
  position: absolute; /* Positioniert das Quiz mittig auf dem Bildschirm */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%; /* Verhindert, dass es zu breit wird */
  text-align: center;
}
.home span {
  color: black;
  border: 2px solid var(--clr-darkgrey);
  border-radius: 20px;
  padding: 5px;
  text-decoration: none;
  background-color: var(--clr-light);
}
a {
  text-decoration: none;
}
span:hover {
  background-color: var(--clr-darkgrey);
}
