/* Stimmgerät – Logik in web/src/stimmgeraet/ */
.sg-main { max-width: 720px; }
#sg { display: flex; flex-direction: column; gap: 16px; margin-bottom: var(--sp-7, 48px); }
.sg-stage { --ok: #22c55e; position: relative; padding: 22px 18px 18px; border-radius: 22px; color: #fff; text-align: center; overflow: hidden;
  background: radial-gradient(circle at 20% 15%, rgba(255,255,255,.18), transparent 50%), linear-gradient(135deg, var(--c1, #e879f9), var(--c2, #4338ca)); box-shadow: 0 24px 50px -26px var(--c2, #4338ca); transition: background .3s; }
.sg-stage.ok { background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.25), transparent 60%), linear-gradient(135deg, #34d399, #059669); }
.sg-gauge { position: relative; width: min(320px, 100%); height: 160px; margin: 0 auto; }
.sg-ticks span { position: absolute; left: 50%; bottom: 0; width: 2px; height: 150px; margin-left: -1px; transform-origin: 50% 100%; }
.sg-ticks span::before { content: ""; position: absolute; top: 0; left: 0; width: 2px; height: 14px; background: rgba(255,255,255,.55); border-radius: 2px; }
.sg-ticks span.z::before { height: 24px; width: 4px; left: -1px; background: #fff; }
.sg-needle { position: absolute; left: 50%; bottom: 0; width: 4px; height: 140px; margin-left: -2px; background: #fff; border-radius: 4px; transform-origin: 50% 100%; transition: transform .12s ease-out, opacity .3s; box-shadow: 0 0 12px rgba(255,255,255,.6); }
.sg-needle::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; }
.sg-lbl { position: absolute; bottom: 0; font-size: .78rem; opacity: .8; }
.sg-lbl.l { left: 0; } .sg-lbl.r { right: 0; }
.sg-readout { margin-top: 14px; line-height: 1; }
.sg-note { font-size: 5.2rem; font-weight: 800; letter-spacing: -.02em; }
.sg-oct { font-size: 1.6rem; font-weight: 700; opacity: .8; }
.sg-hz { margin: 6px 0 0; font-variant-numeric: tabular-nums; opacity: .9; min-height: 1.3em; }
.sg-hint { margin: 6px 0 0; font-weight: 700; min-height: 1.3em; }
.sg-controls { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sg-go { min-width: 240px; height: 58px; border: 0; border-radius: 999px; font: inherit; font-size: 1.15rem; font-weight: 800; color: #fff; cursor: pointer; background: linear-gradient(135deg, var(--c1, #e879f9), var(--c2, #4338ca)); box-shadow: 0 12px 24px -10px var(--c2, #4338ca); }
.sg-go.on { background: #1f2937; }
.sg-msg { color: var(--danger, #b91c1c); text-align: center; max-width: 520px; }
.sg-box { padding: 18px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.sg-field { display: flex; flex-direction: column; gap: 6px; }
.sg-field span { font-weight: 600; }
.sg-field input[type=range] { accent-color: var(--c2, var(--accent)); }
.sg-strings { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sg-str { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 8px 10px; border-radius: 16px; border: 2px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.sg-str b { font-size: 1.4rem; }
.sg-str small { color: var(--muted); font-size: .78rem; }
.sg-str.cur { border-color: var(--c2, var(--accent)); transform: translateY(-3px); }
.sg-str.fix { background: color-mix(in srgb, var(--c2, #4338ca) 12%, var(--surface)); border-color: var(--c2, var(--accent)); }
.sg-str.done::after { content: "✓"; position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: #22c55e; color: #fff; font-size: .8rem; font-weight: 800; display: grid; place-items: center; }
.sg-auto { border: 0; background: none; color: var(--muted); font: inherit; font-size: .88rem; cursor: pointer; text-align: center; }
.sg-more summary { cursor: pointer; font-weight: 600; }
.sg-more[open] { display: flex; flex-direction: column; gap: 8px; }
.sg-fine { color: var(--muted); font-size: .88rem; text-align: center; }
@media (max-width: 560px) { .sg-note { font-size: 4.2rem; } .sg-gauge { height: 130px; } .sg-ticks span { height: 122px; } .sg-needle { height: 114px; } }
@media (prefers-reduced-motion: reduce) { .sg-needle { transition: none; } }
.sg-inst-top { max-width: 420px; margin: 0 auto 12px; }
