/* =========================================================
   SCHEDULE – BASE / MOBILE FIRST
   ========================================================= */

.schedule {
  margin: 0 auto;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.schedule-header {
  width: 100%;
}

.schedule-header h2 {
  width: 100%;
  text-align: start;
  margin-bottom: 1rem;
}

/* =========================================================
   MOBILE DEFAULT (CARD VIEW)
   ========================================================= */

.table-responsive {
  width: 100%;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

/* Tabellenkopf ausblenden (zugänglich bleibt er!) */
.schedule-table thead {
  background-color: var(--coloor-secondary);
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Jede Zeile = Card */
.schedule-table tbody tr {
  display: block;
  margin-bottom: 1rem;
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: #fff;
}

/* Zellen */
.schedule-table td {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid #dee2e6;
}

/* Labels aus data-label */
.schedule-table td[data-label]::before {
  content: attr(data-label);
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

/* Links */
.schedule-table a {
  color: #0d6efd;
  text-decoration: underline;
  white-space: nowrap;
}

thead {
  background: var(--color-primary);
}

.schedule-table th:last-child {
  width: 15%;
  border-right: none;
}

.table-row-v-a {
  background-color: var(--color-black-muted);
}

.table-row-v-b {
  background-color: var(--color-black);
}

/* =========================================================
   ≥ 576px – TABLE VIEW
   ========================================================= */

@media (min-width: 576px) {
  .schedule-table {
    border: 1px solid #dee2e6;
  }

  .schedule-table td::before {
    content: "" !important;
    display: none !important;
  }

  .schedule-table thead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .schedule-table thead th {
    padding: 0.75rem;
    font-size: 0.95rem;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    color: white;
  }

  .schedule-table tbody tr {
    display: table-row;
    margin: 0;
    border: none;
    border-radius: 0;
    padding: 0;
  }
  .schedule-table td {
    display: table-cell;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid #dee2e6;
  }

  .schedule-table td::before {
    content: none;
  }
}

/* =========================================================
   ≥ 992px – DESKTOP POLISH
   ========================================================= */

@media (min-width: 992px) {
  .schedule-table td,
  .schedule-table th {
    padding: 0.75rem 1rem;
  }

  .schedule-table tbody tr:hover {
    background: #f8f9fa;
  }
}
