body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  background-color: #f4f7f6;
}

.wrap {
  max-width: 2000px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background-color: rgb(214, 237, 237);
  padding: 20px;
  border-radius: 10px;
  margin: 10px;
}

.topbar {
  display: flex;
  justify-content: space-between; 
  align-items: center;          
}

.nav a {
  color: black;          
  text-decoration: none; 
  margin-left: 15px;     
}

.nav a:hover {
  text-decoration: underline; 
}

footer {
  background-color: rgb(214, 237, 237);
  padding: 15px;
  text-align: center;
  border-radius: 10px;
  margin: 30px 10px 10px 10px;
}
/* Der neue Grid-Container */
.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Genau 2 Spalten, die sich den Platz teilen */
  gap: 30px; /* Der Abstand zwischen den Karten (horizontal und vertikal) */
  max-width: 700px; /* Maximale Gesamtbreite des Grids */
  margin: 40px auto; /* Zentriert das gesamte Grid auf der Webseite */
  padding: 0 20px;
}

/* Der Container der einzelnen Karte (leicht angepasst) */
.card-container {
  width: 100%;
  min-height: 250px; /* Ändere 'height' zu 'min-height' und erhöhe es leicht */
  perspective: 1000px;
  cursor: pointer;
}
.card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 10px;
}

.card-side {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Behält die volle Höhe der Karte bei */
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
}
.card-list {
  text-align: left; /* Liest sich bei Listen oft besser */
  font-size: 0.85rem; /* Macht die Schrift auf der Karte etwas kleiner */
  padding-left: 15px;
  margin: 0;
}

.card-list li {
  margin-bottom: 5px; /* Kleiner Abstand zwischen den Punkten */
}
.card.is-flipped {
  transform: rotateY(180deg);
}

.front { background-color: rgb(203, 214, 214); color: rgb(0, 0, 0); }
.back { background-color: rgb(203, 214, 214); color: rgb(0, 0, 0); transform: rotateY(180deg); }

