/* Einstellungen: Rahmen (Bereichsliste links, Bereich rechts) und die gemeinsamen Klassen es-… aller Bereiche. Was jede
   Arbeitsfläche teilt (Knopf, Feld, Haken, Abzeichen, fl-e der Filterleiste, af-suche, Dialog, Menü), steht in oo.css – hier
   nie etwas davon überschreiben. Je Baugruppe eine eigene Datei (oo.einstellungen.<gruppe>.css) für das, was nur sie braucht.
   Regeln wie überall: Farben nur aus den Marken in oo.css (hell und dunkel), Ecken 3 px, Haarlinien statt Schatten, Blau nur
   Hauptknopf und Fokus, keine Symbole vor Überschriften. Eingebunden in Dokument.razor nach oo.css. */

/* ── Zahnrad im Kopfband (vor dem Firmenknopf) ───────────────────────────────── */
.oo-zahnrad { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 3px; color: var(--nacht-text-2); text-decoration: none; }
.oo-zahnrad:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.oo-zahnrad.aktiv { color: #fff; background: rgba(255, 255, 255, .14); }

/* ── Rahmen: Liste | Bereich ─────────────────────────────────────────────────── */
.es { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 224px minmax(0, 1fr); }
.es-nav { min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--linie); background: var(--grund); }
.es-nav-kopf { flex: 0 0 auto; display: grid; gap: 8px; padding: 12px 10px 8px; }
.es-nav-kopf h1 { padding: 0 2px; font-size: 15px; font-weight: 600; }
.es-suche { flex: 0 0 auto; min-width: 0; }
.es-liste { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 2px 6px 20px; }
.es-gruppe { margin-bottom: 10px; }
.es-gruppe-titel { padding: 8px 8px 4px 10px; color: var(--tinte-5); font-size: 12px; font-weight: 500; }
/* Einträge wie die Filterleiste (.fl-e), 28 px hoch, ohne Einrückung für Ebenen. */
.es-e { min-height: 28px; padding-left: 10px; text-decoration: none; }
.es-nichts { margin-top: 4px; }

.es-inhalt { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--grund); }

/* ── Ein Bereich: Kopf, der stehen bleibt, darunter der rollende Inhalt ──────── */
.es-bereich { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.es-kopf { flex: 0 0 auto; padding: 16px 24px 12px; border-bottom: 1px solid var(--linie); background: var(--flaeche); }
.es-zurueck { display: none; align-items: center; gap: 4px; margin: -4px 0 8px -2px; color: var(--tinte-4); font-size: 12.5px; text-decoration: none; }
.es-zurueck:hover { color: var(--tinte-1); }
.es-kopf-zeile { display: flex; align-items: flex-end; gap: 16px; }
.es-kopf-text { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.es-krume { color: var(--tinte-5); font-size: 12px; }
.es-kopf h1 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.es-zusatz { margin-left: 8px; color: var(--tinte-5); font-size: 13px; font-weight: 400; }
.es-erklaerung { max-width: 80ch; color: var(--tinte-4); }
.es-aktionen { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }

.es-band { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 24px; border-bottom: 1px solid var(--linie);
  background: var(--warn-grund); color: var(--warn); }
.es-band.fehler { background: var(--alarm-grund); color: var(--alarm); }
.es-laedt { display: flex; align-items: center; gap: 8px; padding: 24px; color: var(--tinte-4); }
/* Lädt ein Bereich (oder die PayPal-Karte der Bankverbindungen): kein sichtbarer Text, der Kreisel blendet erst nach 400 ms ein
   (Füllmodus both: bis dahin unsichtbar). Fast jeder Bereich ist vorher fertig, dann erscheint gar nichts; bis 17.11.2026 blitzte
   „Wird geladen …“ bei jedem Wechsel kurz auf. „Bewegung reduzieren“ (oo.css) kürzt nur die Dauer, die Verzögerung bleibt.
   Den Satz lesen Vorlesehilfen aus .es-vorlesen; position: relative hält ihn im Kasten (Wächter EinstellungenRahmenTests). */
.es-laedt, .es-pp-laedt { position: relative; animation: es-laedt-spaet .2s ease-out .4s both; }
@keyframes es-laedt-spaet { from { opacity: 0; } to { opacity: 1; } }
.es-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* ☠️ position: relative: enthaltender Block der unsichtbaren Hilfstexte der Bereiche (.es-bg-unsichtbar, .es-bn-unsichtbar, .es-lg-datei),
   sonst rollt das ganze Fenster mit, sobald einer unter dem Fenster steht (Nummernkreise, 14.11.2026, Wächter RollbereicheTests). */
.es-rollen { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 24px 32px; }
.es-breite { max-width: 1160px; display: grid; gap: 12px; }

/* ── Karten ──────────────────────────────────────────────────────────────────── */
.es-karte { min-width: 0; padding: 14px 16px; border: 1px solid var(--linie); border-radius: 3px; background: var(--flaeche); }
.es-karte-kopf { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.es-karte-text { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.es-karte-kopf h2 { font-size: 14px; font-weight: 600; }
.es-karte-hinweis { color: var(--tinte-5); font-size: 12px; }
.es-karte-aktionen { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
/* Mehrere Karten nebeneinander: Spalten mindestens 420 px. */
.es-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 12px; align-items: start; }

/* ── Kleine Tabelle mit Haarlinien ───────────────────────────────────────────── */
.es-tab { width: 100%; border-collapse: collapse; }
.es-tab th { height: 28px; padding: 0 8px; border-bottom: 1px solid var(--linie); color: var(--tinte-5); font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; }
.es-tab td { height: 30px; padding: 0 8px; border-bottom: 1px solid var(--linie-fein); vertical-align: middle; }
.es-tab .r { text-align: right; }
.es-tab tbody tr:hover { background: var(--grund); }
.es-tab tr.klickbar { cursor: pointer; }
.es-tab tr.gewaehlt { background: var(--auswahl); box-shadow: inset 2px 0 0 var(--tinte-1); }
.es-tab tr.gewaehlt:hover { background: var(--auswahl); }

/* ── Liste links fest, Editor rechts ─────────────────────────────────────────── */
.es-zwei { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 12px; align-items: start; }

/* ── Kleinteile ──────────────────────────────────────────────────────────────── */
.es-leer { padding: 18px 4px; color: var(--tinte-5); text-align: center; }
.es-hinweis { margin-top: 3px; color: var(--tinte-5); font-size: 12px; }
.es-knopfzeile { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
/* Kleines Menü an einer Zeile („…“): baut auf .oo-menue auf und steht unter dem Knopf. */
.es-zeilenmenue { position: absolute; right: 0; top: 100%; margin-top: 2px; min-width: 180px; }

/* ── Schmale Fenster (G5): Liste ODER Bereich ────────────────────────────────── */
@media (max-width: 860px) {
  .es { grid-template-columns: minmax(0, 1fr); }
  .es.nur-liste .es-inhalt { display: none; }
  .es.mit-bereich .es-nav { display: none; }
  .es-nav { border-right: 0; }
  .es-zurueck { display: inline-flex; }
  .es-kopf { padding: 12px 16px 10px; }
  .es-kopf-zeile { flex-wrap: wrap; align-items: flex-start; }
  .es-aktionen { flex: 1 1 100%; justify-content: flex-start; }
  .es-band { padding: 8px 16px; }
  .es-rollen { padding: 12px 16px 28px; }
  .es-zwei { grid-template-columns: minmax(0, 1fr); }
  .es-karten { grid-template-columns: minmax(0, 1fr); }
}

/* Auswahlfeld mit Prüfbefund: wie .ein.fehler aus oo.css (dort gibt es die Regel nur für Textfelder). */
.aus.fehler { border-color: var(--ampel-rot); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ampel-rot) 24%, transparent); }
