/* Fenster „Ton und Musik“ (ton.js): große Knöpfe, kein Scrollen, CVI mit Schwarz und Kontrastfarbe. */
.ton-fenster { position:fixed; inset:0; z-index:60; display:grid; place-items:center; padding:var(--luecke,8px); background:#06101cd9; }
.ton-karte { box-sizing:border-box; width:min(860px,100%); max-height:100%; overflow:hidden; display:grid; gap:clamp(8px,1.6vh,14px);
  padding:clamp(12px,2.4vw,28px); border:2px solid #ffffff40; border-radius:24px; background:#10233a; color:var(--text,#fbf7ee); box-shadow:0 18px 50px #000a; }
.ton-kopf { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.ton-kopf h2 { margin:0; font-size:var(--s-titel,30px); line-height:1.1; }
.ton-reihe { display:grid; grid-template-columns:repeat(3,minmax(var(--knopf-b,120px),1fr)); gap:var(--luecke,10px); }
.ton-reihe h3 { grid-column:1 / -1; margin:0; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-end; gap:8px; font-size:var(--s-text,18px); }
.ton-stand { display:inline-flex; align-items:flex-end; gap:10px; font-weight:400; }
.ton-balken { display:inline-flex; align-items:flex-end; gap:4px; }
.ton-balken i { display:block; width:10px; border-radius:3px; background:#ffffff38; }
.ton-balken i.an { background:var(--akzent,#e0a84a); }
.ton-karte .ton-knopf { min-width:var(--knopf-b,120px); min-height:var(--knopf-min-h,96px); font:inherit; font-weight:700; font-size:var(--s-knopf,18px); }
.ton-karte .ton-knopf:disabled { opacity:.45; }
.ton-karte .ton-aus { border-style:dashed; }
.ton-karte .ton-fertig { flex:none; width:var(--zurueck-b,200px); }
.ton-status { margin:0; min-height:1.3em; font-size:var(--s-klein,15px); }
/* Niedrige Bildschirme: beide Gruppen nebeneinander statt kleinerer Knöpfe (Knöpfe bleiben ≥ 120 × 96) */
@media (max-height:560px) and (min-width:700px) {
  .ton-karte { width:min(1100px,100%); grid-template-columns:1fr 1fr; column-gap:clamp(12px,2vw,24px); }
  .ton-kopf,.ton-status { grid-column:1 / -1; }
  .ton-kopf h2 { font-size:var(--s-h3,22px); }
  .ton-reihe h3 { font-size:var(--s-klein,14px); }
}
body.bf-cvi .ton-karte { background:#000; border-color:var(--bf-cvi-farbe,#ffd400); }
body.bf-cvi .ton-balken i.an { background:var(--bf-cvi-farbe,#ffd400); }
