.code-box {
  background: #f8f9fa;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  margin: 24px 0;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Header-Bereich oben (Datei-Name & Buttons) */
.code-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f1f3f5;
  padding: 8px 14px;
  border-bottom: 1px solid #e1e4e8;
  font-size: 0.85rem;
  font-family: sans-serif;
  color: #495057;
}

.code-box-filename {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.code-box-actions {
  display: flex;
  gap: 8px;
}

/* Buttons für Kopieren und Download */
.code-btn {
  background: #ffffff;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.8rem;
  color: #333;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.code-btn:hover {
  background: #e9ecef;
  border-color: #adb5bd;
  color: #000;
  text-decoration: none;
}

/* Code-Container (jetzt ohne Tabellen-Overhead) */
.code-box .highlight {
  margin: 0;
  padding: 16px;
  overflow-x: auto; /* Sorgt für den Scrollbalken bei schmalem Fenster */
  background: transparent !important;
}

.code-box pre {
  margin: 0;
  background: transparent !important;
}

/* Verhindert unerwartete Abstände bei Kommentaren */
.code-box .highlight span.cm,
.code-box .highlight span.c1,
.code-box .highlight span.c {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
}
