/* === Tabellen (RTE/CKEditor – figure.table > table.table) === */

figure.table {
  margin: 1.5rem 0 2rem;
}

figure.table .table-responsive {
  border: 1px solid var(--osmium-linie);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

figure.table .table {
  --bs-table-bg: transparent;
  --bs-table-accent-bg: transparent;
  --bs-table-striped-bg: transparent;
  --bs-table-hover-bg: transparent;
  --bs-table-color: var(--osmium-tinte);
  --bs-table-border-color: var(--osmium-linie);

  border-collapse: collapse;
  font-size: 0.92rem;
  margin-bottom: 0;
  min-width: 24rem;
  width: 100%;
}

figure.table .table > :not(caption) > * > * {
  box-shadow: none;
}

/* Kopfzeile */
figure.table .table thead th {
  background: var(--osmium-gruen);
  border-bottom: 2px solid var(--osmium-messing);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--osmium-weiss);
  font-family: var(--osmium-font-display);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: 0.7rem 1rem;
  text-transform: uppercase;
  vertical-align: bottom;
}

figure.table .table thead th:first-child {
  width: 6rem;
}

figure.table .table thead th:last-child {
  border-right: 0;
}

/* Körperzellen */
figure.table .table tbody td {
  border-bottom: 1px solid var(--osmium-linie);
  line-height: 1.4;
  padding: 0.6rem 1rem;
  vertical-align: middle;
}

/* Zeilenköpfe: erste Spalte */
figure.table .table tbody td:first-child {
  background: var(--osmium-sand-hell) !important;
  color: var(--osmium-gruen);
  font-family: var(--osmium-font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Wechselnde Zeilenfarben */
figure.table .table tbody tr:nth-child(odd) > td:not(:first-child) {
  background: var(--osmium-weiss);
}

figure.table .table tbody tr:nth-child(even) > td:not(:first-child) {
  background: var(--osmium-sand-hell);
}

/* Letzter Eintrag (z. B. Dauerkarte) */
figure.table .table tbody tr:last-child td {
  border-bottom: 0;
}

figure.table .table tbody tr:last-child > td:first-child {
  color: var(--osmium-kastanie);
}
