
/* Schritt 308: CS Raster reparieren, BIS Zeitprofil behalten */



/* Standard Raster für CS und INF: Montag bis Freitag */

.tt-week .tt-grid {

  display: grid !important;

  grid-template-columns: 72px repeat(5, minmax(0, 1fr)) 72px !important;

  grid-auto-flow: row !important;

  align-items: stretch !important;

}



/* BIS Raster: Montag bis Samstag */

.tt-week.tt-days-6 .tt-grid {

  grid-template-columns: 72px repeat(6, minmax(0, 1fr)) 72px !important;

}



/* Wichtig: Diese Platzhalter dürfen NICHT ausgeblendet werden.

   Sonst verschiebt sich das gesamte Raster nach jeder Pause. */

.tt-break-space {

  display: block !important;

  min-height: 16px !important;

  height: 16px !important;

  background: transparent !important;

  border: 0 !important;

  box-shadow: none !important;

}



/* Pause sauber über die Unterrichtsspalten spannen */

.tt-break {

  grid-column: 2 / -2 !important;

  display: flex !important;

  align-items: center !important;

  justify-content: center !important;

  min-height: 16px !important;

  height: 16px !important;

  border-radius: 999px !important;

  background: rgba(255,255,255,.85) !important;

  color: #334155 !important;

  font-weight: 850 !important;

  letter-spacing: .42em !important;

  font-size: 10px !important;

  line-height: 1 !important;

}



/* Standard Zeilenhöhe wieder stabil */

.tt-cell {

  min-height: 78px !important;

}



.tt-lesson {

  min-height: 72px !important;

  height: 72px !important;

}



/* CS und INF bleiben kompakt und lesbar */

.tt-week:not(.tt-days-6) .tt-subject {

  font-size: 12.8px !important;

  font-weight: 760 !important;

}



.tt-week:not(.tt-days-6) .tt-teacher,

.tt-week:not(.tt-days-6) .tt-room,

.tt-week:not(.tt-days-6) .tt-type {

  font-size: 10.3px !important;

  font-weight: 650 !important;

}



/* BIS braucht wegen Samstag etwas kompaktere Schrift */

.tt-week.tt-days-6 {

  min-width: 1080px !important;

}



.tt-week.tt-days-6 .tt-cell {

  min-height: 78px !important;

}



.tt-week.tt-days-6 .tt-lesson {

  min-height: 72px !important;

  height: 72px !important;

  padding-left: 8px !important;

  padding-right: 8px !important;

}



.tt-week.tt-days-6 .tt-subject {

  font-size: 11.3px !important;

  font-weight: 750 !important;

}



.tt-week.tt-days-6 .tt-teacher,

.tt-week.tt-days-6 .tt-room,

.tt-week.tt-days-6 .tt-type {

  font-size: 9.6px !important;

  font-weight: 640 !important;

}



/* Scroll nur wenn nötig, damit 100 Prozent Zoom nicht kaputt wirkt */

.tt-week-single,

.tt-week-pair {

  overflow-x: auto !important;

  padding-bottom: 8px !important;

}



.tt-week-pair .tt-week {

  min-width: 780px !important;

}



.tt-week-pair .tt-week.tt-days-6 {

  min-width: 900px !important;

}



/* Die Zeitspalten dürfen nicht in die Unterrichtszellen hineinlaufen */

.tt-time {

  display: flex !important;

  align-items: center !important;

  justify-content: center !important;

  text-align: center !important;

  white-space: nowrap !important;

  overflow: hidden !important;

}



/* Leere Zellen ruhig anzeigen, aber nicht dominant */

.tt-empty {

  background: rgba(255,255,255,.72) !important;

  border: 1px dashed rgba(148,163,184,.35) !important;

}



/* Profilhinweis darf das Layout nicht drücken */

.tt-profile-note {

  margin-top: 10px !important;

  padding: 9px 12px !important;

  border: 1px solid rgba(148, 163, 184, .35) !important;

  border-radius: 14px !important;

  background: rgba(248, 250, 252, .92) !important;

  font-size: 12px !important;

}

