/* ==========================================================================
   Einstellungen (js/views/einstellungen.js) wie die Systemeinstellungen bei Apple:
   links die Abschnitte, rechts gruppierte Listen mit 52-px-Zeilen. Nur Variablen.
   ========================================================================== */
.st-kopf { margin-bottom: 14px; }
.st-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.st-nav { position: sticky; top: calc(var(--kopf-unten, 84px) + 12px); display: flex; flex-direction: column; gap: 12px; }
.st-profil { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-gross); background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.st-profil .grow { display: flex; flex-direction: column; min-width: 0; }
.st-profil b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-profil .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-profil .pm-tarif { flex: none; padding: 2px 8px; border-radius: var(--r-klein); background: var(--marke-soft); color: var(--marke-text); font-size: 11.5px; font-weight: 650; }
.st-profil:hover { box-shadow: var(--shadow-hover, var(--shadow)); }
.st-liste { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: var(--r-gross); background: var(--card); box-shadow: var(--shadow); }
.st-eintrag { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: var(--r-mittel); color: var(--ink-2); text-decoration: none; font-weight: 560; }
.st-eintrag:hover { background: var(--hover); color: var(--ink); }
.st-eintrag.an { background: var(--inset); color: var(--ink); box-shadow: none; }
.st-eintrag.an .sz-ic { color: var(--accent-text); }
.st-eintrag .sz-pfeil { display: none; }
.st-eintrag.st-demo { color: var(--akzent-schrift); }
.st-eintrag.st-demo .sz-ic { color: var(--akzent-schrift); }
.avatar.gross { width: 48px; height: 48px; font-size: 17px; }
.avatar.foto { padding: 0; overflow: hidden; background: var(--track); }
.avatar.foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-inhalt { min-width: 0; max-width: 760px; }
.st-titel { margin: 0 0 18px; font-family: var(--font-display); font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.st-zurueck { display: none; }

/* Gruppen und Zeilen */
.sg { margin-bottom: 26px; }
.sg-titel { margin: 0 0 6px 16px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.sg-karte { border-radius: var(--r-gross); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.sg-erkl { margin: 6px 16px 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.sz { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 6px 16px; width: 100%; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; text-decoration: none; }
/* feine Trennlinie, eingerückt */
.sz + .sz::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 1px solid var(--line); }
.sz-link { cursor: pointer; }
.sz-link:hover { background: var(--hover); }
.sz-link:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.sz-l { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.sz-ic { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: var(--r-klein); background: var(--inset); color: var(--ink-2); }
.sz-t { display: flex; flex-direction: column; min-width: 0; }
.sz-name { font-size: 14.5px; }
.sz-sub { font-size: 12px; color: var(--ink-3); }
.sz-fehler { font-size: 12px; color: var(--crit-text, var(--neg)); }
.sz-fehler[hidden] { display: none; }
.sz-r { display: flex; align-items: center; gap: 8px; flex: none; max-width: 60%; color: var(--ink-3); }
.sz-wert { color: var(--ink-3); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sz-pfeil { font-size: 20px; line-height: 1; color: var(--ink-3); }
.sz-chip { height: 20px; font-size: 11px; }
.sz-input { width: min(320px, 100%); height: 36px; padding: 0 10px; border: 0; border-radius: var(--r-mittel); background: transparent; color: var(--ink); font: inherit; font-size: 14.5px; text-align: right; }
.sz-input:hover { background: var(--inset); }
.sz-input:focus { outline: none; background: var(--inset); box-shadow: var(--ring); text-align: left; }
.sz-input.invalid { box-shadow: inset 0 0 0 1.5px var(--crit, var(--neg)); }
.sz-input[disabled] { opacity: .5; }
.sz-select { height: 36px; min-width: 180px; }
.sz-zeit { width: 96px; text-align: center; }
.st-zeiten { display: inline-flex; align-items: center; gap: 6px; }
.sz-aus { opacity: .55; cursor: default; }
.sz-aus:hover { background: transparent; }
.sz-rot { cursor: pointer; justify-content: flex-start; }
.sz-rot .sz-name { color: var(--crit-text, var(--neg)); font-weight: 560; }
.sz-rot:hover { background: var(--hover); }
.sz-kopf { min-height: 36px; padding-top: 4px; padding-bottom: 0; }
.sz-kopf + .sz::before { display: none; }
.st-kanaele { display: grid; grid-template-columns: repeat(3, 56px); justify-items: center; gap: 4px; font-size: 11.5px; color: var(--ink-3); }
.st-bild { display: flex; align-items: center; gap: 8px; }
.st-tarif { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.st-tarif-kopf b { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.st-nutz { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 13.5px; }
.st-nutz-zahl { color: var(--ink-3); }
.st-nutz-b { grid-column: 1 / -1; height: 6px; border-radius: var(--r-rund); background: var(--track); overflow: hidden; }
.st-nutz-b i { display: block; height: 100%; border-radius: var(--r-rund); background: var(--ink); }
.st-dev-hinweis { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; padding: 12px 14px; border-radius: var(--r-mittel); background: var(--inset); box-shadow: inset 0 0 0 1px var(--warn); color: var(--ink-2); }
.st-marke-vorschau { display: flex; align-items: center; gap: 10px; }
.st-neu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.st-neu li { display: flex; flex-direction: column; }
.sg-rot .sg-karte { box-shadow: var(--shadow); }
.st-inhalt .card.konto-karte { margin-bottom: 26px; }

/* Kippschalter wie „Details“ in der Kopfleiste */
.sw-knopf { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; border: 0; background: transparent; cursor: pointer; }
.sw-knopf .schalter { position: relative; flex: none; width: 36px; height: 22px; border-radius: var(--r-rund); background: var(--line-2); transition: background-color var(--dauer-2) var(--ease); }
.sw-knopf .schalter i { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: var(--r-rund); background: #FFFFFF; box-shadow: 0 1px 3px rgba(15, 18, 20, .25); transition: transform var(--dauer-2) var(--ease); }
.sw-knopf[aria-checked="true"] .schalter { background: var(--ink); }
.sw-knopf[aria-checked="true"] .schalter i { transform: translateX(14px); background: var(--page); }
.sw-knopf:focus-visible { outline: none; }
.sw-knopf:focus-visible .schalter { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--marke); }
.sw-knopf[disabled] { opacity: .45; cursor: default; }
@media (prefers-reduced-motion: reduce) { .sw-knopf .schalter, .sw-knopf .schalter i { transition: none; } }

/* Handy: erst die Liste, dann der Abschnitt mit „‹ Einstellungen“ */
@media (max-width: 760px) {
  .st-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .st-nav { position: static; }
  .st-layout.st-offen .st-nav { display: none; }
  .st-layout:not(.st-offen) .st-inhalt { display: none; }
  .st-kopf.st-unter { display: none; }
  .st-zurueck { display: inline-flex; margin: 4px 0 6px; color: var(--accent-text); font-weight: 600; text-decoration: none; min-height: 44px; align-items: center; }
  .st-liste { padding: 0; gap: 0; overflow: hidden; }
  .st-eintrag { min-height: 52px; padding: 0 16px; border-radius: 0; color: var(--ink); }
  .st-eintrag + .st-eintrag { box-shadow: inset 0 1px 0 var(--line); }
  .st-eintrag.an { background: transparent; box-shadow: none; }
  .st-eintrag .sz-pfeil { display: inline; }
  .sz { flex-wrap: wrap; }
  .sz-r { max-width: 100%; }
  .sz-input { width: 100%; text-align: left; background: var(--inset); }
  .st-kanaele { grid-template-columns: repeat(3, 48px); }
}
/* Zwei-Faktor */
.zf { display: flex; flex-direction: column; gap: 12px; }
.zf-liste { display: flex; flex-direction: column; }
.zf-zeile { display: flex; align-items: center; gap: 10px; min-height: 44px; border-bottom: 1px solid var(--line); }
.zf-schritte { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.zf-einrichten { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 16px; align-items: start; }
.zf-qr { width: 168px; height: 168px; padding: 8px; border-radius: var(--r-mittel); background: #fff; border: 1px solid var(--line); }
.zf-rechts { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.zf-geheim { display: block; padding: 8px 10px; border-radius: var(--r-klein); background: var(--inset); font-size: 12.5px; overflow-wrap: anywhere; user-select: all; }
@media (max-width: 640px) { .zf-einrichten { grid-template-columns: 1fr; justify-items: center; } .zf-rechts { width: 100%; } }
/* Was ist neu */
.modal.neu-groesse { width: min(620px, 100%); }
.neu-liste { gap: 14px; }
.neu-liste li { flex-direction: row; align-items: flex-start; gap: 12px; }
.neu-liste li .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.neu-liste li .grow > span { color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.neu-check { margin: 0; font-size: 13.5px; }
@media (max-width: 640px) { .modal.neu-groesse .modal-foot .neu-check { flex-basis: 100%; } }
.abo-probe { display: flex; flex-direction: column; gap: 12px; }
.abo-probe-karte { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-mittel); }
.abo-probe-karte > div { display: flex; flex-direction: column; gap: 2px; }
