/* Nachrichten an Nutzer (24.09.2026).
   1. Der Dialog beim Empfänger (modules/nachrichtDialog.js). Seit 01.10.2026
      im Stil der Erklärkarte (.ek, erklaerkarte.css; Designkatalog
      Erklaerkarte/standard): Karte, Bildband, Chip, Titel, Knöpfe und
      Punkte kommen von dort. Hier steht nur, was die Nachricht zusätzlich
      hat: Linien und Symbol im Band, Regel-Karten, Punkte-Liste, Chips,
      Schluss, „nicht mehr …“ und die Handy-Anordnung (Karte von unten).
   2. Die Verwaltung im Reiter „Nutzer" (modules/adminNachrichten.js):
      Unterreiter, Liste, Editor mit Vorschau.
   Nur Tokens und FRF-Variablen; eigene Farbwerte stehen ausschließlich im
   :root-Block direkt darunter. Nicht im Demo-Paket (DROP_STYLESHEETS). */

:root {
  /* Funding-Linien im Bildkopf: die gedämpften Börsenfarben des FRF
     (exchangeProfiles in modules/state.js: bitget, extended, hyperliquid). */
  --nachricht-linie-1: #0896b4;
  --nachricht-linie-2: #c36e0d;
  --nachricht-linie-3: #169d7c;
}

/* ── 1. Dialog ─────────────────────────────────────────────────────── */

/* Der <dialog> ist nur die Hülle; die Karte darin ist die Erklärkarte. */
.nd-dialog {
  width: 520px;
  max-width: calc(100vw - 2 * var(--space-4));
  max-height: calc(100dvh - 2 * var(--space-4));
  box-sizing: border-box;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--auth-text-1);
  font-family: var(--font-sans);
  /* Notbremse für sehr niedrige Fenster; in den geprüften Größen scrollt nichts. */
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nd-dialog::backdrop { background: var(--ek-backdrop); backdrop-filter: blur(3px); }
.nd-dialog[open] { animation: nd-auf .22s ease-out; }
@keyframes nd-auf {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: none; }
}
html:has(.nd-dialog[open]) { overflow: hidden; }
/* Der Dialog selbst hat beim Öffnen den Fokus (kein Rahmen am X); Tab führt weiter. */
.nd-dialog:focus { outline: none; }

/* Bildband: Symbol vor drei Funding-Linien. */
.nd-linien { position: absolute; inset: 0; width: 100%; height: 100%; }
.nd-linie { stroke-width: 2; fill: none; vector-effect: non-scaling-stroke; }
.nd-linie-1 { stroke: var(--nachricht-linie-1); opacity: .55; }
.nd-linie-2 { stroke: var(--nachricht-linie-2); opacity: .45; }
.nd-linie-3 { stroke: var(--nachricht-linie-3); opacity: .4; }
.nd-symbol .nd-punkte { stroke-width: 2.4; }
/* Regel-Karten (Bild „alarm-regeln"). */
.nd-regeln { position: relative; z-index: 1; width: 236px; height: 104px; overflow: visible; }
.nd-regel-karte { fill: var(--auth-surface-2); stroke: var(--auth-border-3); stroke-width: 1; }
.nd-regel-zeile { stroke: var(--auth-border-3); stroke-width: 3; stroke-linecap: round; fill: none; }
.nd-regel-schwelle { stroke: var(--gold-rand); stroke-width: 1.2; stroke-dasharray: 3 3; fill: none; }
.nd-regel-kurve { stroke-width: 2; fill: none; opacity: .9; }
.nd-regel-punkt { fill: var(--gold); }
.nd-seit { font-variant-numeric: tabular-nums; }

/* Inhalt: Abstände über gap statt über die Ränder der Erklärkarte. */
.nd-karte .nd-inhalt { position: relative; display: flex; flex-direction: column; gap: var(--space-3); }
.nd-karte .nd-inhalt > * { margin: 0; }
/* Mehrseitig: nachrichtDialog.js setzt die Höhe der höchsten Seite als
   min-height der Karte; der Inhalt füllt sie, der Fuß bleibt unten. */
.nd-karte.nd-mehrseitig { display: flex; flex-direction: column; }
.nd-karte.nd-mehrseitig .nd-inhalt { flex: 1 0 auto; }
.nd-karte .nd-marke { align-self: flex-start; }
/* Ohne Bild sitzt das X oben rechts im Inhalt; der Titel macht ihm Platz. */
.nd-ohne-bild .nd-inhalt > .nd-zu { position: absolute; top: var(--space-4); right: var(--space-4); }
.nd-ohne-bild .nd-titel { padding-right: var(--space-8); }
.nd-text { white-space: pre-line; }

.nd-fragen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nd-frage {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  color: var(--ek-text-2);
  font-size: var(--fs-15);
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.nd-punkt { flex: none; color: var(--gold); font-size: var(--fs-12); line-height: 1; }
/* Nummerierte Schritte („1. …"): Nummer in der goldenen Kachel wie .ek-liste. */
.nd-nummeriert .nd-frage { align-items: flex-start; }
.nd-nummer {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  box-sizing: border-box;
  border: 1px solid var(--gold-rand);
  border-radius: 7px;
  background: var(--gold-hauch);
  color: var(--gold);
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
}
.nd-schluss {
  display: flex;
  flex-direction: column;
  color: var(--ek-text-2);
  font-size: var(--fs-14);
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.nd-unterschrift { color: var(--auth-text-1); font-weight: var(--fw-semibold); }

/* Knöpfe: .ek-k aus erklaerkarte.css; der Text darf nicht umbrechen. */
.nd-knopf { max-width: 100%; }
.nd-knopf-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-knopf-weiter svg, .nd-zurueck svg { width: 16px; height: 16px; }
.nd-zurueck.ist-leer { display: none; }
/* „nicht mehr …“: leise eigene Zeile unter den Knöpfen. */
.nd-nie {
  flex: 1 0 100%;
  align-self: center;
  margin: calc(-1 * var(--space-1)) 0 calc(-1 * var(--space-2));
  padding: calc(var(--space-1) + 2px) var(--space-2);
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--ek-text-3);
  font: inherit;
  font-size: var(--fs-13);
  cursor: pointer;
}
.nd-nie:hover { color: var(--auth-text-1); }

/* Ask-FRF-Vorstellung (25.09.2026): Marke über dem Titel (.ek-marke) und
   Beispiel-Fragen als Chips. Ein Chip übernimmt die Frage ins Eingabefeld
   von Ask FRF. */
.nd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.nd-chips-titel {
  flex: 1 0 100%;
  color: var(--ek-text-3);
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
}
.nd-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  max-width: 100%;
  min-height: 32px;
  padding: var(--space-1) var(--space-3);
  box-sizing: border-box;
  border: 1px solid var(--gold-rand);
  border-radius: var(--radius-pill);
  background: var(--gold-hauch);
  color: var(--auth-text-1);
  font: inherit;
  font-size: var(--fs-13);
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.nd-chip:hover { border-color: var(--gold); background: var(--gold-flaeche); }
.nd-chip svg {
  flex: none;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nd-chip-text { overflow-wrap: anywhere; }

/* Handy: Karte von unten, Knöpfe untereinander. */
.nd-dialog:has(.nd-handy) {
  width: 100%;
  max-width: 100%;
  max-height: 100dvh;
  margin: auto 0 0;
}
.nd-dialog:has(.nd-handy)[open] { animation-name: nd-von-unten; }
@keyframes nd-von-unten {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.nd-karte.nd-handy {
  border-width: 1px 0 0;
  border-radius: 22px 22px 0 0;
}
.nd-handy .nd-kopf { height: 132px; }
.nd-handy .nd-linie-3 { display: none; }
.nd-handy .ek-symbol { width: 60px; height: 60px; border-radius: 18px; }
.nd-handy .ek-symbol svg { width: 28px; height: 28px; }
.nd-handy .nd-regeln { width: 190px; height: 84px; }
/* Die Handy-Vorlage zeigt „Dabei seit" nicht. */
.nd-handy .nd-seit { display: none; }
.nd-handy .nd-zu { width: 44px; height: 44px; }
.nd-handy .nd-inhalt { padding: var(--space-5) var(--space-5) 0; }
.nd-handy.nd-ohne-bild .nd-titel { padding-right: var(--space-9); }
.nd-handy .nd-fuss { flex-direction: column; align-items: stretch; padding: var(--space-5); }
.nd-handy .nd-fuss .ek-punkte { justify-content: center; margin: 0 0 var(--space-1); }
.nd-handy .nd-fuss .ek-k { width: 100%; height: 48px; }
.nd-handy .nd-fuss .ek-k1 { order: -1; }
.nd-handy .nd-fuss .ek-punkte { order: -2; }
.nd-handy .nd-nie { min-height: 44px; margin: 0; }
.nd-handy .nd-chip { min-height: 36px; }

@media (prefers-reduced-motion: reduce) {
  .nd-dialog[open] { animation: none; }
}

/* ── 2. Verwaltung ─────────────────────────────────────────────────── */

/* Unterreiter (Katalog Tabs, Pill-Rahmen). */
.nr-unterreiter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin: 0 0 var(--space-3);
}
.nr-unterreiter-knopf {
  padding: var(--space-2) var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-3);
  font: inherit;
  font-size: var(--fs-14);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.nr-unterreiter-knopf:hover { background: var(--surface-2); color: var(--text-1); }
.nr-unterreiter-knopf.is-aktiv { border-color: var(--text-1); color: var(--text-1); font-weight: var(--fw-semibold); }
.nr-unterreiter-knopf:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* `.panel` setzt display: flex und schlüge sonst `hidden`. */
#usersNutzerBereich[hidden], .nr-panel[hidden], .nr-editor[hidden] { display: none; }
.nr-kopf-rechts { flex-wrap: wrap; justify-content: flex-end; }
.nr-meldung { color: var(--text-2); font-size: var(--fs-13); }
.nr-meldung[data-art="ok"] { color: var(--text-success); }
.nr-meldung[data-art="fehler"] { color: var(--text-danger); }

.nr-klein { min-height: 28px; padding: 0 var(--space-3); font-size: var(--fs-13); }
.lz-knopf.nr-gefahr { color: var(--text-danger); }
.lz-knopf.nr-gefahr:hover:not(:disabled) { border-color: var(--danger); background: var(--surface-3); }
.lz-knopf:disabled { opacity: .55; cursor: not-allowed; }

/* Liste */
.nr-tabelle-huelle { position: relative; overflow-x: auto; }
.nr-tabelle { font-size: var(--fs-14); }
.nr-tabelle th .nr-sortier,
.nr-empf-tabelle th .nr-sortier {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.nr-tabelle th .nr-sortier:hover,
.nr-tabelle th .nr-sortier.ist-aktiv,
.nr-empf-tabelle th .nr-sortier:hover,
.nr-empf-tabelle th .nr-sortier.ist-aktiv { color: var(--text-1); }
.nr-tabelle th .nr-sortier:focus-visible,
.nr-empf-tabelle th .nr-sortier:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.nr-sortier-pfeil { display: inline-block; width: 1em; margin-left: 2px; text-align: left; }
.nr-tabelle th.col-right .nr-sortier { flex-direction: row; }

.nr-zeile { cursor: pointer; }
.nr-zeile:hover { background: var(--surface-2); }
.nr-zeile:focus-visible { outline: 2px solid var(--focus-color); outline-offset: -2px; }
.nr-zeile.ist-offen, .nr-zeile.ist-in-arbeit { background: var(--surface-2); }
.nr-zeile.ist-in-arbeit > td:first-child { box-shadow: inset 3px 0 0 var(--text-1); }
.nr-titel-zelle { min-width: 180px; }
.nr-titel { display: block; color: var(--text-1); font-weight: var(--fw-semibold); overflow-wrap: anywhere; }
.nr-warnung { display: block; margin-top: 2px; color: var(--text-warning); font-size: var(--fs-12); overflow-wrap: anywhere; }
.nr-leer { color: var(--text-3); }
.nr-zahl { font-variant-numeric: tabular-nums; }
.nr-zeit { white-space: nowrap; font-variant-numeric: tabular-nums; }
.nr-status {
  display: inline-block;
  padding: 2px var(--space-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-pill);
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}
.nr-status-entwurf { color: var(--text-warning); border-color: color-mix(in srgb, var(--warning) 45%, transparent); background: var(--warning-soft); }
.nr-status-gesendet { color: var(--text-1); background: var(--surface-3); }
.nr-status-auto { color: var(--text-success); border-color: color-mix(in srgb, var(--success) 45%, transparent); background: color-mix(in srgb, var(--success) 12%, transparent); }
/* Regel einer automatischen Nachricht in einem Satz, unter dem Titel. */
.nr-auto-regel { display: block; max-width: 56ch; margin-top: 2px; color: var(--text-2); font-size: var(--fs-12); line-height: 1.4; overflow-wrap: anywhere; }
.nr-aktionen { white-space: nowrap; }
.nr-aktionen .lz-knopf + .lz-knopf { margin-left: var(--space-1); }

.nr-detail > td { padding: 0 var(--space-3) var(--space-3); background: var(--surface-2); }
.nr-detail-innen { position: relative; padding: var(--space-2) var(--space-3); border: 1px solid var(--border-1); border-radius: var(--radius-md); background: var(--surface-1); }
.nr-empf-tabelle { width: 100%; border-collapse: collapse; font-size: var(--fs-13); }
.nr-empf-tabelle th, .nr-empf-tabelle td { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--border-1); text-align: left; }
.nr-empf-tabelle tbody tr:last-child td { border-bottom: 0; }
.nr-empf-tabelle th { color: var(--text-3); font-size: var(--fs-12); font-weight: var(--fw-bold); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.nr-reaktion-knopf { color: var(--text-success); }
.nr-reaktion-nicht_mehr { color: var(--text-2); }
.nr-reaktion-spaeter { color: var(--text-warning); }
.nr-reaktion-offen { color: var(--text-3); }

/* Editor */
.nr-editor { margin: 0 var(--space-5) var(--space-4); padding: var(--space-5); border: 1px solid var(--border-2); border-radius: var(--radius-lg); background: var(--surface-1); }
.nr-editor-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: var(--space-6); align-items: start; }
.nr-formular { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.nr-editor-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.nr-editor-titel { margin: 0; font-size: var(--fs-17); font-weight: var(--fw-semibold); }
.nr-editor-stand { color: var(--text-2); font-size: var(--fs-13); }
.nr-feld { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.nr-label {
  color: var(--text-3);
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}
.nr-pflicht { color: var(--text-danger); }
.nr-eingabe {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  background: var(--input-bg);
  color: var(--text-1);
  font: inherit;
  font-size: var(--fs-14);
  line-height: var(--lh-normal);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.nr-eingabe::placeholder { color: var(--input-placeholder); }
.nr-eingabe:hover:not(:focus) { border-color: var(--secondary-hover-border); }
.nr-eingabe:focus { border-color: var(--text-1); box-shadow: var(--input-focus-ring); }
.nr-eingabe.ist-fehler { border-color: var(--danger); }
.nr-mehrzeilig { min-height: 96px; resize: vertical; }
.nr-hilfe { color: var(--text-3); font-size: var(--fs-12); overflow-wrap: anywhere; }
.nr-hilfe.ist-fehler { color: var(--text-danger); }
.nr-zweier { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }

/* Seiten im Editor: je Seite eine Karte; die Seite der Vorschau ist markiert. */
.nr-seiten { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.nr-seite {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4) var(--space-4);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-md);
  background: var(--surface-0);
}
.nr-seite.ist-in-vorschau { border-color: var(--text-3); box-shadow: inset 3px 0 0 var(--text-1); }
.nr-seite-kopf { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.nr-seite-name { color: var(--text-1); font-size: var(--fs-14); font-weight: var(--fw-semibold); }
.nr-seite-werkzeug { display: inline-flex; gap: var(--space-1); }
.nr-abschnitt { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--border-1); }
.nr-abschnitt-titel { color: var(--text-2); font-size: var(--fs-13); font-weight: var(--fw-semibold); }
#nrLinkFeld[hidden] { display: none; }
#nrVorschauSeiten[hidden] { display: none; }
.nr-fragen-liste { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.nr-fragen-liste:empty { display: none; }
.nr-frage-zeile { display: flex; gap: var(--space-2); align-items: center; }
.nr-weg { flex: none; width: 36px; min-height: 36px; padding: 0; font-size: var(--fs-17); }
.nr-dazu { align-self: flex-start; }

/* Segmented (Katalog Tabs/Segmented) */
.nr-segmente { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.nr-segment {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text-2);
  font: inherit;
  font-size: var(--fs-13);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-normal);
  cursor: pointer;
}
.nr-segment:hover:not(.is-aktiv) { color: var(--text-1); border-color: var(--text-3); }
.nr-segment.is-aktiv { color: var(--text-1); background: var(--surface-3); border-color: var(--text-1); font-weight: var(--fw-bold); }
.nr-segment:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.nr-segmente-klein .nr-segment { padding: var(--space-1) var(--space-3); font-size: var(--fs-12); }

/* Häkchen (Katalog Toggle/Checkbox) */
.nr-haekchen-reihe { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.nr-haekchen { position: relative; display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; color: var(--text-1); font-size: var(--fs-14); cursor: pointer; user-select: none; }
.nr-haekchen input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nr-kasten {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: 1.5px solid var(--border-2);
  border-radius: 4px;
  background: var(--input-bg);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.nr-haekchen input:checked + .nr-kasten { background: var(--surface-3); border-color: var(--check); }
.nr-haekchen input:checked + .nr-kasten::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid var(--check);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.nr-haekchen input:focus-visible + .nr-kasten { outline: 2px solid var(--focus-color); outline-offset: 2px; }

.nr-ziel-detail { display: flex; flex-direction: column; gap: var(--space-2); }
.nr-suche { max-width: 360px; }
/* Nutzerliste: zweispaltig ab 9 Einträgen, eigene Höhe, nie scrollbar. */
.nr-nutzer-liste { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1) var(--space-4); }
.nr-nutzer-liste.is-zweispaltig { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nr-nutzer { padding: var(--space-1) 0; }
.nr-nutzer-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nr-nutzer-rolle { flex: none; color: var(--text-3); font-size: var(--fs-12); }
.nr-ziel-zahl { align-self: flex-start; color: var(--text-1); font-size: var(--fs-14); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }

/* FormNotice: Warum Senden gesperrt ist. */
.nr-sperre {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  border: 1px solid color-mix(in srgb, var(--warning) 45%, transparent);
  border-radius: var(--radius-md);
  background: var(--warning-soft);
  color: var(--text-1);
  font-size: var(--fs-13);
  overflow-wrap: anywhere;
}
.nr-sperre[hidden] { display: none; }
.nr-editor-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--border-1); }
.nr-abstand { flex: 1 1 auto; }

/* Vorschau: die echte Karte, verkleinert. */
.nr-vorschau { position: sticky; top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.nr-vorschau-kopf { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.nr-vorschau-flaeche {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: var(--space-4);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  background: var(--surface-0);
  overflow: hidden;
}
.nr-vorschau-flaeche > .nd-karte { width: 520px; flex: none; zoom: .72; pointer-events: none; }
.nr-vorschau-flaeche.ist-handy > .nd-karte { width: 390px; zoom: .8; }

@media (max-width: 1180px) {
  .nr-editor-raster { grid-template-columns: minmax(0, 1fr); }
  .nr-vorschau { position: static; }
}
@media (max-width: 640px) {
  .nr-editor { margin: 0 var(--space-3) var(--space-3); padding: var(--space-4); }
  .nr-zweier { grid-template-columns: minmax(0, 1fr); }
  .nr-vorschau-flaeche { padding: var(--space-2); }
  .nr-vorschau-flaeche > .nd-karte { zoom: .55; }
  .nr-vorschau-flaeche.ist-handy > .nd-karte { zoom: .72; }
  .nr-nutzer-liste.is-zweispaltig { grid-template-columns: minmax(0, 1fr); }
}

/* ── Ask FRF – Nutzertracking (25.09.2026, adminAskFrf.js) ─────────────
   Unterreiter „Ask FRF": Leisten mit Beschriftung über dem Feld, Nutzer-
   tabelle mit Werkzeug-Chips, Filter-Chip „Nutzer: X ✕". Kopfsortierung
   über die Knöpfe der Nachrichtenliste (nr-sortier), Seiten wie in der
   Statistik (ng-seiten). Am Handy werden beide Tabellen zu Karten, statt
   quer zu rollen; die Sortierköpfe stehen dann als Zeile darüber. */
#askFrfAdminBereich .akv-leiste {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  margin: var(--space-4) 0 var(--space-2);
}
#askFrfAdminBereich .akv-feld { flex: 0 0 auto; }
#askFrfAdminBereich .akv-suche-feld { flex: 0 1 340px; }
#askFrfAdminBereich .akv-suche-feld .nr-eingabe { height: 32px; padding-block: 0; }
#askFrfAdminBereich .akv-info {
  margin: 0;
  color: var(--text-2);
  font-size: var(--fs-13);
  font-variant-numeric: tabular-nums;
}
#askFrfAdminBereich .akv-teil { position: relative; }
#askFrfAdminBereich .akv-filter { display: flex; flex-wrap: wrap; gap: var(--space-2); }
#askFrfAdminBereich .akv-filter:empty { display: none; }
#askFrfAdminBereich .akv-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 32px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--text-1);
  font: inherit;
  font-size: var(--fs-13);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: border-color var(--t-fast);
}
#askFrfAdminBereich .akv-filter-chip:hover { border-color: var(--secondary-hover-border); }
#askFrfAdminBereich .akv-filter-chip:focus-visible { outline: none; box-shadow: var(--focus-ring); }

#askFrfAdminBereich .akv-nt-tabelle,
#askFrfAdminBereich .akv-tabelle { width: 100%; font-size: var(--fs-13); }
#askFrfAdminBereich .akv-nt-tabelle thead th { vertical-align: bottom; white-space: normal; }
#askFrfAdminBereich .akv-nt-name { color: var(--text-1); font-weight: var(--fw-semibold); white-space: nowrap; }
#askFrfAdminBereich .akv-nt-werkzeuge { min-width: 220px; }
#askFrfAdminBereich .akv-nt-zeile.ist-offen > td:first-child { box-shadow: inset 3px 0 0 var(--text-1); }
#askFrfAdminBereich .akv-ohne { display: block; color: var(--text-3); font-size: var(--fs-12); white-space: nowrap; }
#askFrfAdminBereich .akv-chips { display: flex; flex-wrap: wrap; gap: 4px; }
#askFrfAdminBereich .akv-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 1px 6px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: var(--fs-12);
  white-space: nowrap;
}
#askFrfAdminBereich .akv-chip b { color: var(--text-1); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
#askFrfAdminBereich .akv-bew { white-space: nowrap; }
#askFrfAdminBereich .akv-letzte { min-width: 180px; max-width: 300px; }
#askFrfAdminBereich .akv-letzte-zeit { display: block; color: var(--text-2); font-size: var(--fs-12); }
#askFrfAdminBereich .akv-letzte-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}
#askFrfAdminBereich .akv-kopf-teile { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
#askFrfAdminBereich .akv-kopf-titel { margin-right: 2px; }
#askFrfAdminBereich .akv-kopf-trenner { color: var(--text-3); }
#askFrfAdminBereich .akv-f-feedback { overflow-wrap: anywhere; }

@media (max-width: 760px) {
  #askFrfAdminBereich .akv-suche-feld { flex: 1 1 100%; }
  #askFrfAdminBereich .akv-nt-huelle,
  #askFrfAdminBereich .akv-tabelle { overflow: visible; }
  #askFrfAdminBereich :is(.akv-nt-tabelle, .akv-tabelle),
  #askFrfAdminBereich :is(.akv-nt-tabelle, .akv-tabelle) :is(thead, tbody, tr, th, td) { display: block; }
  #askFrfAdminBereich :is(.akv-nt-tabelle, .akv-tabelle) thead tr {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-3);
    padding: var(--space-2) var(--space-3);
  }
  #askFrfAdminBereich :is(.akv-nt-tabelle, .akv-tabelle) thead th { padding: 0; border: 0; text-align: left; }
  #askFrfAdminBereich :is(.akv-nt-tabelle, .akv-tabelle) tbody tr.nr-zeile {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2) var(--space-3);
    padding: var(--space-3);
    border-top: 1px solid var(--border-1);
  }
  #askFrfAdminBereich :is(.akv-nt-tabelle, .akv-tabelle) tbody td { min-width: 0; max-width: none; padding: 0; border: 0; text-align: left; }
  #askFrfAdminBereich :is(.akv-nt-tabelle, .akv-tabelle) tbody td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--text-3);
    font-size: var(--fs-12);
    font-weight: var(--fw-semibold);
  }
  #askFrfAdminBereich :is(.akv-nt-name, .akv-f-frage, .akv-f-feedback, .akv-letzte, td[data-label="Werkzeuge"]) { grid-column: 1 / -1; }
  #askFrfAdminBereich .akv-nt-name::before { content: none !important; }
  #askFrfAdminBereich .akv-nt-name { white-space: normal; overflow-wrap: anywhere; }
  #askFrfAdminBereich .akv-nt-werkzeuge { min-width: 0; }
  #askFrfAdminBereich .akv-nt-zeile.ist-offen > td:first-child { box-shadow: none; }
  #askFrfAdminBereich .akv-nt-zeile.ist-offen { box-shadow: inset 3px 0 0 var(--text-1); }
}

/* Ask FRF: Tageslimit je Nutzer (25.09.2026) */
#askFrfAdminBereich .akv-limit-knopf { background: none; border: 0; padding: 2px 4px; color: var(--text-main); font: inherit; font-variant-numeric: tabular-nums; cursor: pointer; border-radius: var(--radius-sm); }
#askFrfAdminBereich .akv-limit-knopf:hover { background: var(--surface-2, var(--th-grund-ffffff-04)); }
#askFrfAdminBereich .akv-limit-knopf:focus-visible { outline: 2px solid var(--focus-color, currentColor); outline-offset: 1px; }
#askFrfAdminBereich .akv-limit-edit { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
#askFrfAdminBereich .akv-limit-feld { width: 84px; height: 28px; }
#askFrfAdminBereich .akv-limit-fehler { flex-basis: 100%; text-align: right; color: var(--text-danger); font-size: 12px; }
