/* Container für Timeline und Karten */
.grid-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 auto;
  max-width: 1200px;
  padding: 20px;
  gap: 40px;
  /* Abstand zwischen Monaten */
  position: relative;
}

/* Vertikale Timeline */
.grid-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 3px;
  background: #f4d03f;
}

/* Monatspunkt */
.month {
    display: flex;
    align-items: center;
    position: relative;
    font-size: 1.5rem;
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    padding: 0.5rem 3rem;
    padding-left: 3rem;
    margin: 1rem 0 1rem 1rem;
margin-left:2rem;
}

.month::after {
    content: '';
    width: 2rem;
    height: 0;
    border-bottom: 4px dotted #f4d03f;
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
}


/* Monatsspezifische Farben */
.month:nth-child(1) {
  background: #a9d801; /* Januar - Grün */
}

.month:nth-child(3) {
  background: #3498db; /* Februar - Blau */
}

.month:nth-child(5) {
  background: #f1c40f; /* März - Gelb */
}

.month:nth-child(7) {
  background: #e67e22; /* April - Orange */
}

.month:nth-child(9) {
  background: #2ecc71; /* Mai - Hellgrün */
}

.month:nth-child(11) {
  background: #9b59b6; /* Juni - Lila */
}

.month:nth-child(13) {
  background: #34495e; /* Juli - Dunkelgrau */
}

.month:nth-child(15) {
  background: #e74c3c; /* August - Rot */
}

.month:nth-child(17) {
  background: #1abc9c; /* September - Türkis */
}

.month:nth-child(19) {
  background: #d35400; /* Oktober - Dunkelorange */
}

.month:nth-child(21) {
  background: #8e44ad; /* November - Dunkellila */
}

.month:nth-child(23) {
  background: #f39c12; /* Dezember - Gold */
}


.month::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  /* background: #f4d03f;
  border-radius: 50%;
  border: 3px solid #fff; */
}

/* Kartenlayout */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: 50px;
  /* Abstand von der Timeline */
  width: 100%;
  justify-content: center;
  /* Zentrierung */
}

.card {
  background: rgba(32, 32, 64, 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  flex: 1 1 calc(25% - 20px);
  /* Vier Karten pro Reihe */
  max-width: calc(25% - 20px);
  min-width: 200px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Karten-Bild */
.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* Button in der Karte */
.card button {
  margin: 10px;
  padding: 10px 15px;
  font-size: 1rem;
  background: #f4d03f;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.card button:hover {
  background: #d4ac0d;
}

/* Text für "Noch X Tage" */
.card .days-remaining {
  color: #f4d03f;
  font-size: 1rem;
  margin-top: 10px;
}

/* Responsivität */
@media (max-width: 1024px) {
  .card {
    flex: 1 1 calc(33.33% - 20px);
    /* Drei Karten pro Reihe */
    max-width: calc(33.33% - 20px);
  }
}

@media (max-width: 768px) {
  .card {
    flex: 1 1 calc(50% - 20px);
    /* Zwei Karten pro Reihe */
    max-width: calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .card {
    flex: 1 1 80%;
    /* Eine Karte pro Reihe */
    max-width: 80%;
  }

  .grid-container::before {
    left: 10px;
    /* Anpassung der Timeline-Position */
  }

  .month {
    font-size: 1.2rem;
    padding-left: 40px;
  }

  .month::before {
    left: 5px;
    /* Punkt näher an der Linie */
    width: 15px;
    height: 15px;
  }

  .card-container {
    margin-left: 40px;
    /* Weniger Abstand von der Timeline */
  }
}