/* --- nebenkosten/public/assets/css/backoffice.css ---
   =====================================================================
   NEBENKOSTEN – Komponenten (Karten, Tabellen, Modals, Buttons, Formulare)
   Übernommen aus sommerland-management. Die dort als Inline-<style> in
   layout.php steckenden Regeln (.admin-container, .admin-card,
   .admin-table) stehen hier – das Layout bekommt keinen <style>-Block.
   ===================================================================== */

/* -------------------------------------------------------------------
   IBM Plex Mono, lokal ausgeliefert (SIL Open Font License)
   Nur für Zahlen-/ID-Spalten in Tabellen (.admin-table .text-right).
   ------------------------------------------------------------------- */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plexmono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plexmono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* =====================================================================
   CONTAINER, KARTE, TABELLE
   ===================================================================== */
.admin-container {
  width: 100%;
  margin: 0;
  padding: 1rem 0;
}

.admin-card {
  background: #fff9;
  backdrop-filter: saturate(1.2) blur(2px);
  position: relative;            /* Bezugsrahmen für den ::after-Scrollpfeil */
  padding: 1rem;
  border-radius: .75rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  overflow-x: auto;              /* Karte scrollt horizontal */
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
/* Scroll-Indikator rechts (nur schmale Bildschirme) */
.admin-card:has(.admin-table)::after {
  content: '→';
  position: absolute;
  right: 1rem;
  top: 3rem;
  background: rgba(255,255,255,0.95);
  padding: 0.3rem 0.6rem;
  border-radius: 0.25rem;
  pointer-events: none;
  font-size: 1.2rem;
  color: #999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
@media (min-width: 800px) {
  .admin-card:has(.admin-table)::after { display: none; }
}
/* Scrollbar immer sichtbar */
.admin-card::-webkit-scrollbar { height: 8px; }
.admin-card::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); border-radius: 4px; }
.admin-card::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.3); border-radius: 4px; }
.admin-card::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.5); }

.admin-table {
  width: 100%;
  min-width: 800px;              /* erzwingt Querscrollen auf schmalen Bildschirmen */
  border-collapse: collapse;
  border-spacing: 0;
}
.admin-table th,
.admin-table td {
  padding: .4rem .5rem;
  border-bottom: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;           /* Fließtext in Zellen: .cell-wrap / .cell-text */
}
.admin-table thead th {
  background: rgba(183,111,94,.09);
  font-weight: 600;
}
.admin-table tbody tr:hover {
  background: rgba(183,111,94,.04);
}
/* Summenzeile */
.admin-table tfoot td {
  border-top: 2px solid color-mix(in srgb, var(--ink) 35%, transparent);
  font-weight: 600;
}
/* Zahlen-/ID-Spalten in Plex Mono. Bewusst nicht th (Wort-Labels wie „Betrag"). */
.admin-table .text-right:not(th) {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.col-actions {
  position: sticky;
  right: 0;
  background: var(--paper);
  box-shadow: -2px 0 4px rgba(0,0,0,.06);
  white-space: nowrap;
}

.actions { display: flex; gap: .25rem; flex-wrap: wrap; }

@media (max-width: 768px) {
  .admin-container { padding: 0.5rem; }
  .admin-card { padding: 0.75rem; }
}

/* =====================================================================
   MODALS
   ===================================================================== */
.slf-modal {
  position: fixed;
  inset: 0;
  z-index: 200000;               /* über Header (1000) und klebenden Leisten */
  display: none;                 /* wird per JS über .slf-modal--open gezeigt */
}
.slf-modal--open {
  display: flex;
  align-items: center;
  justify-content: center;
}
.slf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: grid;
  place-items: center;
  padding: 16px;
}
.slf-modal__dialog {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: min(900px, 100%);
  max-height: 90vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.slf-modal__dialog--wide {
  width: 90%;
  max-width: 1200px;
}
.slf-modal__header,
.slf-modal__footer {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.slf-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.slf-modal__footer {
  border-top: 1px solid rgba(0,0,0,.06);
  border-bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
.slf-modal__body {
  padding: 0.75rem 1rem;
  overflow: auto;
}
.slf-modal__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}
.slf-modal__close {
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
@media (max-width: 640px) {
  .slf-modal__dialog {
    max-height: 100vh;
    border-radius: 0;
  }
}

/* =====================================================================
   ALERTS / MELDUNGEN
   ===================================================================== */
.alert {
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.alert-info    { background: #e7f3ff; color: #0c5460; border: 1px solid #b8daff; }

/* =====================================================================
   BUTTON-VARIANTEN
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
}

.btn-primary {
  background-color: var(--terra) !important;
  color: #fff !important;
  border-color: var(--terra) !important;
}
.btn-primary:hover {
  background-color: color-mix(in srgb, var(--terra) 85%, black) !important;
  border-color: color-mix(in srgb, var(--terra) 85%, black) !important;
}

.btn-secondary {
  background-color: #f0ebe8 !important;
  color: var(--ink) !important;
  border-color: #d9d2ce !important;
}
.btn-secondary:hover { background-color: #e5dfdb !important; }

.btn-danger {
  background-color: #c0392b !important;
  color: #fff !important;
  border-color: #c0392b !important;
}
.btn-danger:hover {
  background-color: #a33025 !important;
  border-color: #a33025 !important;
}

.btn-warning {
  background-color: var(--amber) !important;
  color: #fff !important;
  border-color: var(--amber) !important;
}
.btn-warning:hover {
  background-color: #d4922e !important;
  border-color: #d4922e !important;
}

/* Outline-Varianten */
.btn-outline-primary {
  background-color: transparent !important;
  color: var(--terra) !important;
  border: 2px solid var(--terra) !important;
}
.btn-outline-primary:hover {
  background-color: var(--terra) !important;
  color: #fff !important;
}
.btn-outline-danger {
  background-color: transparent !important;
  color: #c0392b !important;
  border: 2px solid #c0392b !important;
}
.btn-outline-danger:hover {
  background-color: #c0392b !important;
  color: #fff !important;
}

/* Größen */
.btn-xs {
  padding: 0.1rem 0.35rem !important;
  font-size: 0.75rem !important;
  line-height: 1.2 !important;
  vertical-align: middle;
  height: auto;
  min-height: 0;
}
.btn-sm {
  padding: 0.3rem 0.6rem !important;
  font-size: 0.85rem !important;
}
.btn-lg {
  padding: 0.7rem 1.4rem !important;
  font-size: 1.1rem !important;
}

/* Icon-Buttons für Tabellenaktionen */
.btn-icon {
  padding: 0.35rem 0.5rem !important;
  font-size: 1rem;
  min-width: 2rem;
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-edit {
  background-color: var(--terra) !important;
  color: #fff !important;
  border-color: var(--terra) !important;
}
.btn-delete {
  background-color: #c0392b !important;
  color: #fff !important;
  border-color: #c0392b !important;
}
.btn-info,
.btn-copy {
  background-color: #5a7d8a !important;
  color: #fff !important;
  border-color: #5a7d8a !important;
}

.btn-group {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* =====================================================================
   FORMULAR-KOMPONENTEN
   ===================================================================== */
.form-group { margin-bottom: 0.8rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.form-control {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #d9d2ce;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
}
.form-control:focus {
  outline: none;
  border-color: var(--terra);
  box-shadow: 0 0 0 3px var(--ring);
}

.form-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid #e5e5e5;
}

/* Umbruch nach verfügbarem Platz statt nach Fensterbreite.
   min() deckelt die Untergrenze auf die Containerbreite (Handy). */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  gap: 1rem;
}
.form-row--single { grid-template-columns: 1fr; }

.form-section {
  background: rgba(183,111,94,.04);
  border: 1px solid rgba(183,111,94,.15);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.form-section-title {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--terra);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(183,111,94,.2);
}

.checkbox-group label {
  display: block;
  margin-bottom: 0.25rem;
}
.checkbox-options {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.form-inline { display: inline; }

/* Filter-Leiste */
.filter-bar {
  background: #f7f3f1;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: nowrap;
}
.filter-bar > div { flex: 0 0 auto; }
.filter-bar .btn-group {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.filter-bar label {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}
@media (max-width: 768px) {
  .filter-bar { flex-wrap: wrap; }
  .filter-bar > div { flex: 1 1 100%; }
}

/* Scroll-Liste für Auswahlboxen */
.scroll-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  padding: 0.5rem;
  margin-bottom: 1rem;
}
.scroll-list label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

/* =====================================================================
   INFO- UND WARNUNGS-BOXEN
   ===================================================================== */
.info-box {
  background: #e7f3ff;
  border-left: 4px solid #2196F3;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.warning-box {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* =====================================================================
   SEITEN-NAVIGATION & TABS
   ===================================================================== */
.page-nav {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.back-link {
  color: var(--terra);
  text-decoration: none;
  font-weight: 600;
}
.back-link:hover { text-decoration: underline; }

.tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0;
}
.tab {
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #666;
  border-radius: 0.25rem 0.25rem 0 0;
}
.tab:hover {
  background: #f5f5f5;
  color: #333;
}
.tab.active {
  background: #fff;
  color: #333;
  border: 2px solid #ddd;
  border-bottom: 2px solid #fff;
  margin-bottom: -2px;
  font-weight: bold;
}

/* =====================================================================
   STATISTIK-KARTEN
   ===================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--paper);
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.stat-card .label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.stat-card .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--terra);
}
.stat-sub {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
}
.stat-card--blue   { background: #e3f2fd; }
.stat-card--blue .value   { color: #1565c0; }
.stat-card--green  { background: #e8f5e9; }
.stat-card--green .value  { color: #2e7d32; }
.stat-card--orange { background: #fff3e0; }
.stat-card--orange .value { color: #ef6c00; }
.stat-card--red    { background: #ffebee; }
.stat-card--red .value    { color: #c62828; }

/* =====================================================================
   DETAILS-GRID (Detailansichten)
   ===================================================================== */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}
.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.detail-label {
  font-size: 0.85rem;
  color: var(--muted);
}
.detail-value {
  font-weight: 600;
  color: var(--ink);
}

/* =====================================================================
   BADGES
   ===================================================================== */
.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
}
.badge-success   { background: #28a745; color: #fff; }
.badge-warning   { background: #ffc107; color: #333; }
.badge-secondary { background: #6c757d; color: #fff; }
.badge-info      { background: #17a2b8; color: #fff; }
.badge-primary   { background: var(--terra); color: #fff; }

/* =====================================================================
   DASHBOARD – KACHELN & SCHNELLZUGRIFF
   ===================================================================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
}
.dashboard-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.25rem;
  background: var(--paper);
  border: 1px solid #e0dcd8;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.dashboard-tile:hover {
  border-color: var(--terra);
  box-shadow: var(--shadow);
}
.dashboard-icon {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
.dashboard-label {
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--ink);
  text-align: center;
  overflow-wrap: break-word;
  hyphens: auto;
  word-break: break-word;
}

/* =====================================================================
   LOGIN-SEITE
   ===================================================================== */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.login-card {
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
}
.login-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* =====================================================================
   HILFE – ?-Knopf und Seitenleiste (resources/views/_hilfe.php, hilfe.js)
   Desktop: Leiste rechts. Handy (≤768px): Vollbild.
   ===================================================================== */
.hilfe-knopf {
  inline-size: 40px;
  block-size: 40px;
  min-height: 40px;   /* statt 44px-Touchregel aus utilities.css, sonst wird der Kreis oval */
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--terra);
  background: var(--paper);
  color: var(--terra);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hilfe-knopf:hover,
.hilfe-knopf[aria-expanded="true"] {
  background: var(--terra);
  color: var(--paper);
  filter: none;
}

/* Container über Header (1000), unter Modals (200000) */
.hilfe {
  position: fixed;
  inset: 0;
  z-index: 100000;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear .25s;
}
.hilfe--offen {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s linear 0s;
}
html.hilfe-gesperrt { overflow: hidden; }

.hilfe-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 35%, transparent);
  opacity: 0;
  transition: opacity .25s ease;
}
.hilfe--offen .hilfe-backdrop { opacity: 1; }

.hilfe-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  inline-size: min(440px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  box-shadow: -4px 0 20px color-mix(in srgb, var(--ink) 15%, transparent);
  transform: translateX(100%);
  transition: transform .25s ease;
}
.hilfe--offen .hilfe-panel { transform: translateX(0); }

.hilfe-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 1rem;
  padding-top: calc(.75rem + env(safe-area-inset-top));
  background: var(--terra);
  color: var(--paper);
}
.hilfe-titel {
  margin: 0;
  font-size: 1.1rem;
  color: inherit;
  overflow-wrap: anywhere;
}
.hilfe-schliessen {
  flex-shrink: 0;
  inline-size: 40px;
  block-size: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-size: 1.9rem;
  line-height: 1;
}
.hilfe-schliessen:hover { background: color-mix(in srgb, var(--paper) 15%, transparent); filter: none; }

.hilfe-inhalt {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  font-size: .92rem;
  line-height: 1.55;
}
.hilfe-inhalt p { margin: 0 0 .6rem; }
.hilfe-leer { color: var(--muted); text-align: center; padding: 2rem 0; }

/* Aufklappbare Blöcke: Überblick und Arbeitsabläufe */
.hilfe-ueberblick,
.hilfe-prozess {
  margin-bottom: .75rem;
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--terra) 25%, var(--paper));
  border-radius: var(--radius);
  overflow: hidden;
}
.hilfe-ueberblick > summary,
.hilfe-prozess > summary {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.hilfe-ueberblick > summary { background: var(--rose); }
.hilfe-ueberblick > summary::-webkit-details-marker,
.hilfe-prozess > summary::-webkit-details-marker { display: none; }
.hilfe-ueberblick > summary::after,
.hilfe-prozess > summary::after {
  content: '▸';
  margin-left: auto;
  color: var(--muted);
  transition: transform .2s;
}
.hilfe-ueberblick[open] > summary::after,
.hilfe-prozess[open] > summary::after { transform: rotate(90deg); }

.hilfe-ueberblick-text { padding: .75rem 1rem; }
.hilfe-zwischentitel {
  margin: 1rem 0 .3rem;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--terra);
}
.hilfe-ueberblick-text > .hilfe-zwischentitel:first-child { margin-top: 0; }
.hilfe-liste { margin: 0 0 .6rem; padding-left: 1.2rem; }
.hilfe-liste li { margin: .2rem 0; }

.hilfe-abschnitt {
  margin: 1rem 0 .5rem;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Schritte */
.hilfe-schritte {
  list-style: none;
  margin: 0;
  padding: .25rem 1rem .75rem;
  border-top: 1px solid color-mix(in srgb, var(--terra) 15%, var(--paper));
}
.hilfe-schritt {
  display: flex;
  gap: .75rem;
  padding-top: .75rem;
}
.hilfe-nr {
  flex-shrink: 0;
  inline-size: 1.6rem;
  block-size: 1.6rem;
  border-radius: 50%;
  background: var(--terra);
  color: var(--paper);
  font-size: .8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hilfe-schritt-text { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.hilfe-schritt-text > p:last-child { margin-bottom: 0; }
.hilfe-schritt-titel { font-weight: 600; margin-bottom: .2rem !important; }

.hilfe-wichtig,
.hilfe-stolperstein {
  padding: .5rem .7rem;
  border-radius: var(--radius);
  font-size: .87rem;
}
.hilfe-wichtig {
  background: color-mix(in srgb, var(--amber) 14%, var(--paper));
  border-left: 4px solid var(--amber);
}
.hilfe-stolperstein {
  background: color-mix(in srgb, var(--terra) 10%, var(--paper));
  border-left: 4px solid var(--terra);
}

@media (max-width: 768px) {
  .hilfe-panel { inline-size: 100%; box-shadow: none; }
}

/* =========================================
   Regel-Editor: JSON-Feld und Unterschied zur Vorversion
========================================= */
.code-area {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85em;
  line-height: 1.45;
  white-space: pre;
  overflow-x: auto;
}
.diff {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85em;
  line-height: 1.45;
  margin: 0 0 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--paper);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  overflow-x: auto;
}
.diff span { display: block; white-space: pre; }
.diff-gleich { color: var(--muted); }
.diff-neu { background: color-mix(in srgb, var(--terra) 14%, transparent); color: var(--ink); }
.diff-weg { background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--ink); text-decoration: line-through; }
