.khe-spec,
.khe-spec * {
  box-sizing: border-box;
}

.khe-spec {
  --accent: #c9a227;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --head-bg: #111827;
  --zebra: #f9fafb;
  --hover: #f3f0e4;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.5;
}

.khe-spec .khe-spec-title {
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}

.khe-spec .khe-spec-title span {
  color: var(--accent);
}

/* Theme-Tabellenstile neutralisieren */
.khe-spec table,
.khe-spec th,
.khe-spec td {
  border: 0;
  margin: 0;
}

.khe-spec table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
}

.khe-spec thead th {
  background: var(--head-bg);
  color: #fff;
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.khe-spec thead th:first-child {
  width: 32%;
  border-radius: 8px 0 0 0;
}

.khe-spec thead th:last-child {
  border-radius: 0 8px 0 0;
}

.khe-spec tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.khe-spec tbody tr:nth-child(even) td {
  background: var(--zebra);
}

.khe-spec tbody tr:hover td {
  background: var(--hover);
}

.khe-spec td.component {
  font-weight: 600;
}

.khe-spec td.detail {
  color: var(--muted);
}

.khe-spec tbody tr:last-child td:first-child {
  border-radius: 0 0 0 8px;
}

.khe-spec tbody tr:last-child td:last-child {
  border-radius: 0 0 8px 0;
}

@media (max-width: 560px) {
  .khe-spec thead {
    display: none;
  }
  .khe-spec table,
  .khe-spec tbody,
  .khe-spec tr,
  .khe-spec td {
    display: block;
    width: 100%;
  }
  .khe-spec tbody tr {
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
  }
  .khe-spec tbody tr:nth-child(even) td {
    background: #fff;
  }
  .khe-spec tbody td {
    border-bottom: none;
    padding: 0.5rem 1rem;
  }
  .khe-spec td.component {
    background: #f3f4f6;
    padding-top: 0.7rem;
  }
  .khe-spec td.detail {
    padding-bottom: 0.7rem;
  }
  .khe-spec tbody tr:last-child td:first-child,
  .khe-spec tbody tr:last-child td:last-child {
    border-radius: 0;
  }
}
