/* Verwaltung → Einstellungen (frontend/einstellungen.js). Vorsilbe st-. Farben und Schrift nur über Variablen (docs/DESIGN.md). */

.st-list { display:flex; flex-direction:column; }
/* Eine Zeile je Einstellung: links Name, Erklärung, Standard und Grenze; rechts das Feld. */
.st-row { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:8px 20px; align-items:start; padding:14px 16px; }
.st-row + .st-row { border-top:.5px solid var(--line); }
.st-row[hidden] { display:none; }
.st-text { min-width:0; display:flex; flex-direction:column; gap:3px; }
.st-label { font-weight:600; font-size:var(--fs-body); overflow-wrap:anywhere; display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; }
.st-hint, .st-meta, .st-note { margin:0; }
.st-meta { color:var(--ink-2); }
.st-meta code, .st-note code { font-size:var(--fs-cap); }
.st-warn { color:var(--amber); font-weight:600; }
.st-note { color:var(--ink-2); }
.st-link { color:var(--accent); font-weight:500; }
.st-link:hover { text-decoration:underline; }
.st-control { display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
.st-field { display:flex; align-items:center; gap:8px; }
.st-field input[type=number] { width:6.5em; text-align:right; }
.st-field input[type=time] { width:7.5em; }
.st-unit { font-size:var(--fs-sub); color:var(--ink-2); }
/* Ungespeicherte Änderung: feiner Akzent links (Farbe nie allein – dazu das Schild „nicht gespeichert“). */
.st-pending { box-shadow:inset 3px 0 0 var(--accent); }
/* Baustein aus: ausgegraut, Felder gesperrt, der Link zu Verwaltung → Bausteine bleibt kräftig. */
.st-off .st-label, .st-off .st-hint, .st-off .st-meta, .st-off .st-control { opacity:.55; }
.st-group[hidden] { display:none; }

/* Leiste unten: Zahl der Änderungen und die eine Hauptaktion „Speichern“ (wie Termine → Auswählen). */
.st-bar { position:sticky; bottom:12px; z-index:5; margin-top:12px; display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  padding:10px 12px; border-radius:12px; background:var(--surface); border:.5px solid var(--line-strong); box-shadow:0 4px 18px rgba(0, 0, 0, .14); }
.st-bar[hidden] { display:none; }
.st-count { font-weight:600; }

@media (max-width:900px) {
  .st-bar { bottom:calc(72px + env(safe-area-inset-bottom)); }
  .st-bar .btn, .st-reset { min-height:44px; }
  .st-field .seg button { min-height:40px; }
}
/* Handy: Feld unter dem Text statt daneben. */
@media (max-width:600px) {
  .st-row { grid-template-columns:minmax(0, 1fr); }
  .st-control { flex-direction:row; align-items:center; justify-content:space-between; flex-wrap:wrap; }
  .st-field { flex-wrap:wrap; }
  .st-count { flex:1 1 100%; }
  .st-bar .spacer { display:none; }
  .st-bar .btn { flex:1; }
}
