
/*** T3SB identifier: t3sbsCSSassets_13694 */

/* t3sbs_assets_13694 */
/* ==========================================================
   Kettenzug-Tabellen DTD (1 und 2 Geschwindigkeiten)
   Klasse "dtd-table" sitzt am umgebenden Inhalts-Element:
   <div class="dtd-table"> ... <table> ... </table> </div>

   Deckt zwei Aufbauten ab:
   A) Kopf im <thead> mit <th>
   B) Kopf = die ersten zwei <tr> im <tbody> (Name + Einheit)
   ========================================================== */

/* ---------- Wrapper / Scrollen als Fallback ---------- */
.dtd-table figure.table,
.dtd-table .table-responsive {
  width: 100% !important;
  overflow-x: auto;
}
.dtd-table figure.table {
  margin: 1.5em 0;
}

/* ---------- Tabelle ---------- */
.dtd-table table {
  width: 100% !important;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0;
  table-layout: auto;
}

/* ---------- Alle Zellen: kompakt ---------- */
.dtd-table th,
.dtd-table td {
  width: auto !important;
  padding: 6px 7px !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  border: 0 !important;
  border-bottom: 1px solid #e3e6ea !important;
}
.dtd-table td {
  background: #fff !important;
}
.dtd-table th p,
.dtd-table td p {
  margin: 0 !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

/* ---------- Kopf (A: thead/th  und  B: erste 2 Zeilen im tbody) ---------- */
.dtd-table thead th,
.dtd-table table:not(:has(thead)) tr:nth-child(-n+2) td {
  background: #1f3a5f !important;   /* überschreibt das Inline-Grau */
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 600;
  vertical-align: bottom;
  white-space: normal;
}
.dtd-table thead th strong,
.dtd-table table:not(:has(thead)) tr:nth-child(-n+2) td strong {
  font-weight: 600;
}

/* A: Einheit als zweiter Absatz im Kopf */
.dtd-table thead th p + p {
  margin-top: 2px !important;
  font-size: 11px !important;
  font-weight: 400;
  opacity: .85;
}

/* B: Zeile 1 = Name, Zeile 2 = Einheit, optisch eine Kopfzeile */
.dtd-table table:not(:has(thead)) tr:nth-child(1) td {
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}
.dtd-table table:not(:has(thead)) tr:nth-child(2) td {
  padding-top: 2px !important;
  font-size: 11px !important;
  color: rgba(255, 255, 255, .85) !important;
}
.dtd-table table:not(:has(thead)) tr:nth-child(2) td strong {
  font-weight: 400;
}

/* ---------- Erste Spalte (Typ) bleibt beim Scrollen stehen ---------- */
.dtd-table th:first-child,
.dtd-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  box-shadow: 1px 0 0 #e3e6ea;
}
.dtd-table td:first-child {
  font-weight: 600;
}
.dtd-table thead th:first-child,
.dtd-table table:not(:has(thead)) tr:nth-child(-n+2) td:first-child {
  z-index: 2;
}

/* ---------- Zebra ---------- */
.dtd-table thead ~ tbody tr:nth-child(even) td,
.dtd-table tbody tr:nth-child(n+3):nth-child(even) td {
  background: #f6f8fa !important;
}

/* ---------- Hover ---------- */
.dtd-table thead ~ tbody tr:nth-child(n):hover td,
.dtd-table tbody tr:nth-child(n+3):hover td {
  background: #e6eef8 !important;
}
	

