/* <sistenta-einstellungen-2> (12.10.2026): Liste links, eine Kategorie rechts,
   auf dem Handy Liste ODER Kategorie. Farben nur aus den Tokens von dashboard-1.css. */
sistenta-einstellungen-2 { display: block; margin: 0 0 26px; }
.e2 { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }

/* Liste */
.e2-liste { position: sticky; top: 14px; display: grid; gap: 14px; }
.e2-gruppe { display: grid; gap: 1px; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.e2-gruppe > p { margin: 4px 10px 4px; font-size: 10.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.e2-eintrag { display: grid; grid-template-columns: 30px minmax(0, 1fr) 14px; align-items: center; gap: 10px; width: 100%; padding: 8px 8px; border: 0; border-radius: 11px;
  background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.e2-eintrag:hover { background: var(--panel2); }
.e2-eintrag[aria-current] { background: color-mix(in srgb, var(--accent) 14%, var(--panel2)); }
.e2-eintrag span { display: grid; min-width: 0; }
.e2-eintrag b { font-size: 13.5px; font-weight: 600; }
.e2-eintrag small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.e2-sym { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--panel2); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.e2-eintrag[aria-current] .e2-sym { background: var(--accent); color: var(--on-accent); }
.e2-pfeil { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.e2-eintrag[aria-current] .e2-pfeil, .e2-eintrag:hover .e2-pfeil { opacity: 1; }
.e2-nurpc-hinweis { display: none; margin: 0 6px; font-size: 12px; color: var(--muted); }

/* Kategorie */
.e2-detail { min-width: 0; }
.e2-zurueck { display: none; }
.e2-bereich { display: grid; gap: 14px; min-width: 0; }
.e2-bereich > header h2 { margin: 0; font-size: 22px; letter-spacing: -.3px; outline: none; }
.e2-bereich > header p { margin: 4px 0 0; font-size: 13px; color: var(--muted); max-width: 640px; }
.e2-platz { display: grid; gap: 14px; min-width: 0; }
.e2-platz:empty { display: none; }
.e2-platz > *, .e2-platz > .panel { margin: 0; }
.e2-karte { padding: 4px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.e2-karte--frei { padding: 8px; }
/* Eingehaengte alte Abschnitte: Ueberschrift eine Stufe kleiner als der Kategorietitel. */
.e2-platz .panel h2, .e2-platz .panel-head h2 { font-size: 15.5px; }
.e2-bereich sistenta-charakter-einstellungen, .e2-bereich sistenta-sprache-einstellungen { display: block; }

.e2-zeile { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.e2-karte > .e2-zeile:first-child { border-top: 0; }
.e2-zeile h3 { margin: 0; font-size: 14px; }
.e2-zeile p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); max-width: 560px; }
.e2-rechts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex: 0 0 auto; }
.e2-knopf { display: inline-flex; align-items: center; font: inherit; font-size: 12.5px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--text); cursor: pointer; text-decoration: none; white-space: nowrap; }
.e2-knopf:hover, .e2-knopf:focus-visible { border-color: var(--accent); }
.e2-knopf--haupt { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.e2-knopf:focus-visible, .e2-wahl button:focus-visible, .e2-eintrag:focus-visible, .e2-zurueck:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.e2-wahl { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.e2-wahl button { font: inherit; font-size: 12.5px; padding: 5px 13px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.e2-wahl button[aria-checked="true"] { background: var(--panel2); color: var(--text); font-weight: 600; }
.e2-profil { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.e2-profil > div { display: grid; gap: 1px; flex: 1; min-width: 0; }
.e2-profil small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.e2-avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, var(--panel2)); color: var(--text); font-weight: 650; }
.e2-weiter { margin: 0; }
.e2-fuss { margin: 0; font-size: 12.5px; color: var(--muted); max-width: 640px; }

/* Automatiken eingebettet: ohne Kopf und Erklaersatz. */
sistenta-automatik-2[data-kompakt] { margin: 0; }
sistenta-automatik-2[data-kompakt] .au2 { padding: 0; border: 0; background: transparent; box-shadow: none; }
sistenta-automatik-2[data-kompakt] .au2-kopf, sistenta-automatik-2[data-kompakt] .au2-text p, sistenta-automatik-2[data-kompakt] .au2-link { display: none; }
sistenta-automatik-2[data-kompakt] .au2-zeile { padding: 8px 12px; grid-template-columns: 34px minmax(0, 1fr) 130px 130px; }
sistenta-automatik-2[data-kompakt] .au2-sym { width: 34px; height: 34px; }
sistenta-automatik-2[data-kompakt] .au2-lief b { font-size: 15px; }

html[data-motion=on] .e2-bereich:not([hidden]) { animation: e2-rein .25s ease-out both; }
@keyframes e2-rein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .e2-bereich { animation: none !important; } }

@media (max-width: 1000px) {
  .e2 { grid-template-columns: 220px minmax(0, 1fr); gap: 18px; }
  .e2-eintrag small { display: none; }
}
/* Handy: Liste oder Kategorie, nie beides. */
@media (max-width: 760px) {
  .e2 { grid-template-columns: minmax(0, 1fr); }
  .e2-liste { position: static; }
  .e2-eintrag small { display: block; }
  .e2-eintrag { padding: 10px 8px; }
  .e2-pfeil { opacity: 1; }
  .e2-eintrag[aria-current] { background: transparent; }
  .e2-eintrag[aria-current] .e2-sym { background: var(--panel2); color: inherit; }
  [data-e2-nurpc] { display: none; }
  .e2-nurpc-hinweis { display: block; }
  .e2[data-ansicht="liste"] .e2-detail, .e2[data-ansicht="detail"] .e2-liste { display: none; }
  .e2-zurueck { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 12px -6px; padding: 6px 8px; border: 0; background: transparent;
    color: var(--accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
  .e2-zurueck svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .e2-karte { padding: 2px 16px; }
  .e2-zeile { flex-direction: column; align-items: stretch; gap: 10px; }
  .e2-rechts { justify-content: flex-start; }
  sistenta-automatik-2[data-kompakt] .au2-zeile { grid-template-columns: 34px minmax(0, 1fr) auto; }
}
