/* Cold Start - Einstellungsfenster (assets/settings.js) */

.st-overlay { z-index: 60; }
.st-card { width: min(720px, 94vw); max-width: 720px; text-align: left; padding: 20px 26px 18px; }
.st-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.st-head h2 { margin: 0; }
.st-close {
  width: 30px; height: 30px;
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .25);
  color: var(--ink-dim);
  font-size: 20px; line-height: 1;
  cursor: pointer;
}
.st-close:hover { color: var(--ink); border-color: var(--ink-mute); }

.st-card section { padding: 12px 0 4px; border-top: 1px solid var(--panel-edge); margin-top: 10px; }
.st-card h3 {
  margin: 0 0 6px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--ink-dim);
}
.st-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 8px 0; }
.st-label { font-size: 14px; font-weight: 600; }
.st-label small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--ink-mute); }
.st-label kbd {
  display: inline-block; min-width: 16px; margin-left: 6px; padding: 0 4px;
  border: 1px solid var(--panel-edge); border-radius: 3px;
  font: 600 11px var(--font); color: var(--ink-dim); text-align: center;
}

/* Schalter */
/* Schalter als Kontrollleuchte (Bastian, 2026-09-26, Variante D):
   Taster mit Lampe - leuchtet gold, wenn an, dazu EIN/AUS. */
.st-switch {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 70px;
  padding: 4px 10px 4px 5px;
  border: 1px solid var(--panel-edge);
  border-radius: 4px;
  background: linear-gradient(#26211a, #1a1611);
  color: var(--ink-mute);
  font: 700 11px var(--font); letter-spacing: 1px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.st-switch:hover { border-color: var(--ink-mute); }
.st-switch span {
  width: 16px; height: 16px; border-radius: 3px;
  border: 1px solid #0b0907;
  background: radial-gradient(circle at 40% 35%, #4a4436, #221e17 70%);
  box-shadow: inset 0 0 3px rgba(0, 0, 0, .8);
  transition: background .15s, box-shadow .15s;
}
.st-switch.is-on { color: var(--gold); border-color: rgba(201, 162, 39, .55); }
.st-switch.is-on span {
  background: radial-gradient(circle at 40% 35%, #fff4c4, #f0c43c 45%, #a8801c 80%);
  box-shadow: 0 0 8px rgba(240, 196, 60, .7), inset 0 0 2px rgba(255, 255, 255, .6);
}
.st-switch:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Auswahl in Segmenten */
.st-seg { flex: 0 0 auto; display: flex; border: 1px solid var(--panel-edge); border-radius: var(--radius); overflow: hidden; }
.st-seg button {
  padding: 6px 11px;
  border: 0; border-left: 1px solid var(--panel-edge);
  background: rgba(0, 0, 0, .25);
  color: var(--ink-dim);
  font: 600 12.5px var(--font);
  cursor: pointer;
}
.st-seg button:first-child { border-left: 0; }
.st-seg button:hover { color: var(--ink); }
.st-seg button.is-on { background: rgba(201, 162, 39, .18); color: var(--gold); }

/* Regler */
.st-slider { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.st-slider input { width: 160px; accent-color: var(--gold); }
.st-slider output { width: 40px; text-align: right; font-size: 12.5px; color: var(--ink-dim); }

@media (max-width: 560px) {
  .st-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Bereich Chat (settings.js chatSection) */
.st-card { max-height: calc(100vh - 32px); overflow-y: auto; }

/* Linke Leiste mit den Bereichen, rechts der gewaehlte Bereich */
.st-body { display: flex; gap: 22px; margin-top: 10px; border-top: 1px solid var(--panel-edge); padding-top: 14px; }
.st-nav { flex: 0 0 150px; display: flex; flex-direction: column; gap: 4px; }
.st-nav button {
  position: relative; text-align: left;
  padding: 9px 12px 9px 14px;
  border: 1px solid transparent; border-radius: 5px;
  background: none; color: var(--ink-dim);
  font: 600 13.5px var(--font); letter-spacing: .3px; cursor: pointer;
}
.st-nav button:hover { color: var(--ink); background: rgba(255, 255, 255, .03); }
.st-nav button.is-on {
  color: var(--gold); border-color: rgba(201, 162, 39, .35);
  background: rgba(201, 162, 39, .10);
}
.st-nav button.is-on::before {
  content: ''; position: absolute; left: -1px; top: 7px; bottom: 7px; width: 3px;
  border-radius: 2px; background: var(--gold);
}
.st-card .st-pane { flex: 1; min-width: 0; min-height: 420px; margin: 0; padding: 0; border-top: 0; }
.st-card .st-pane h3 { margin-top: 2px; }
/* Zwischenueberschrift innerhalb eines Reiters (z. B. Chat unter Ton) */
.st-card .st-pane h3.st-sub { margin: 18px 0 2px; padding-top: 14px; border-top: 1px solid var(--panel-edge); }
@media (max-width: 640px) {
  .st-body { flex-direction: column; gap: 12px; }
  .st-nav { flex: none; flex-direction: row; flex-wrap: wrap; }
  .st-nav button.is-on::before { display: none; }
  .st-card .st-pane { min-height: 0; }
}
.st-row.st-col { flex-direction: column; align-items: stretch; }
.btn.st-mini { padding: 4px 10px; font-size: 12.5px; margin-top: 0; }
.st-card .st-note { margin: 4px 0 8px; font-size: 12.5px; color: var(--ink-mute); }
.st-ignored { list-style: none; margin: 6px 0 0; padding: 0; }
.st-ignored li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--panel-edge); font-size: 13px; }
.st-ignored small { color: var(--ink-mute); }

/* Gesperrte Stufe (Jugendschutz): sichtbar, aber nicht waehlbar. Ganz
   wegzulassen waere schlechter - dann fragt man sich, wo die dritte
   Moeglichkeit hin ist. */
.st-seg button.is-zu {
  opacity: .4;
  cursor: not-allowed;
  text-decoration: line-through;
}
