/* Globales Layout – gilt für Bildschirm & Druck */
body {
  font-family: sans-serif;
  font-size: 9pt;
  margin: 20px;
  background: #fff;
  color: #000;
}

h1 {
  text-align: center;
  font-size: 18pt;
  margin-top: 0;
}

/* Tabellen-Layout */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
  table-layout: fixed; /* gleichmäßige Spaltenbreiten */
  page-break-after: always; /* jede Tabelle auf neuer Seite beim Druck */
}

thead th,
tbody td {
  width: 16.66%; /* 6 gleich breite Spalten */
  border: 2px solid #000;
  padding: 4px;
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: left;
}

thead th {
  background-color: #f0f0f0;
  border: 2px solid #000;
  text-align: center;
}

strong {
  font-weight: bold;
  margin-bottom: 2px;
}

/* Farben für Ereignisse */
.unterrichtsfrei {
  background-color: #ffff00;
}

.feiertag {
  background-color: #e3f2fd;
  font-weight: bold;
}

.termin {
  
}

/* Druckformatierung */
@media print {
  @page {
    size: A4 landscape;
    margin: 10mm;
  }

  body {
    margin: 0;
    color: #000;
    background: white;
  }

  /* Farben erhalten im Druck */
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  table {
    page-break-after: always;
  }
}
