.page-content {
  display: flex;
  flex-direction: column;
  /* Entferne ggf. fixe Paddings, falls du sie nicht brauchst */
  padding-top: 100px;  /* nur wenn erwünscht */
  padding-bottom: 120px; /* nur wenn erwünscht */
  box-sizing: border-box;
}

/* Timetable Grid Layout */
.timetable-grid {
  flex: 1; /* Nimmt gesamten Platz in page-content ein */
  display: grid;
  grid-template-columns: 1fr 1fr;  /* 2 Spalten */
  grid-template-rows: 1fr 1fr;     /* 2 Reihen */
  gap: 0px;
  padding: 10px;
  box-sizing: border-box;
  align-items: center;   /* Ausrichtung in den Zellen */
  justify-items: center;
  /* Kein position: fixed, kein height: xyz, etc. */
}


/* Styling der Panels */
.timetable-panel {
  background-color: black;
  color: #c8a165; /* Goldene Farbe */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  position: relative;
  height: 100%; 
  width: 95%; /* Slightly smaller width to avoid edge-to-edge */
  max-height: calc(40vh - 30px); /* Further reduced height */
  margin: 0 auto; /* Center horizontally */
  border: 2px solid #c8a165; /* Goldener Rahmen */
}

/* Text in goldener Schrift, mittig zentriert */
.timetable-text {
  color: #c8a165; /* Goldene Farbe */
  font-size: 1.4em;
  font-weight: bold;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8); /* Schatten für bessere Lesbarkeit */
}

/* Panels Inhalt */
.timetable-panel p {
  margin: 0;
  text-align: center;
  width: 100%;
}

/* Entfernt - keine Bilder mehr */

/* Hover-Effekt */
.timetable-panel:hover {
  transform: scale(1.05);
  background-color: #c8a165;
  color: black;
  border-color: black;
}

.timetable-panel:hover .timetable-text {
  color: black;
}

/* Mobile Anpassungen */
@media (max-height: 700px), (max-width: 600px) {
  .timetable-grid {
      gap: 5px;
      padding: 5px;
      align-content: center; /* Ensure content is centered in available space */
  }

  .timetable-panel {
      max-height: calc(40vh - 30px); /* Even smaller on mobile devices */
  }

  .timetable-text {
      font-size: 1.1em;
  }
}

/* Extra small screens */
@media (max-height: 500px) {
  .timetable-panel {
      max-height: calc(35vh - 20px); /* Much smaller for very small screens */
  }
}
