/* === GC Table Stilvorlage === */
/* Wird angewendet auf <table class="gc-table"> via MarkdownProcessor */

.gc-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin: var(--sp-4, 1rem) 0;
  font-size: var(--fs-sm, 0.9375rem);
  border: 1px solid var(--c-slate-300, #CBD5E1);
  border-radius: 5px;
  overflow: hidden;
}

.gc-table th,
.gc-table td {
  padding: 0.375rem 0.625rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-slate-200, #E2E8F0);
}

/* Header: Grünton des Logo-Themas — heller Hintergrund, dunkle Schrift, Rahmen in Schriftfarbe */
.gc-table thead th {
  background: var(--c-green-soft, #D1FAE5);
  color: var(--c-green-deep, #0A7F5C);
  font-weight: 600;
  border-bottom: 2px solid var(--c-green-deep, #0A7F5C);
}

/* Alternierende Row-Hintergründe — Body light-grau */
.gc-table tbody tr:nth-child(even) {
  background: var(--c-slate-100, #F1F5F9);
}

.gc-table tbody tr:nth-child(odd) {
  background: var(--c-slate-50, #F8FAFC);
}

.gc-table tbody tr:hover {
  background: var(--c-slate-200, #E2E8F0);
}

.gc-table tbody tr:last-child td {
  border-bottom: none;
}

/* === Dark mode === */
:root[data-theme="dark"] .gc-table {
  border-color: var(--c-slate-500, #64748B);
}

:root[data-theme="dark"] .gc-table th,
:root[data-theme="dark"] .gc-table td {
  border-bottom-color: var(--c-slate-700, #334155);
}

/* Header im Dark-Mode: dunkler Grünton, helle Schrift, Rahmen in Schriftfarbe */
:root[data-theme="dark"] .gc-table thead th {
  background: rgba(10, 127, 92, 0.25);
  color: #6EE7B7;
  border-bottom-color: #6EE7B7;
}

/* Body im Dark-Mode: dunkles slate */
:root[data-theme="dark"] .gc-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .gc-table tbody tr:nth-child(odd) {
  background: transparent;
}

:root[data-theme="dark"] .gc-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.07);
}