/* mariulab · Ton-Schalter im Kopf (Coderin, 18.11.2026; settings.ML_TON) – nur mit ton.js geladen.
   Klein, ruhig, neben dem Auge. Aus = Lautsprecher mit Kreuz; nur Klaenge = eine Welle; Klaenge + Musik = zwei Wellen.
   Wartet eine gemerkte Wahl auf den ersten Klick: Wellen atmen leise (bei „Bewegung reduzieren“ nicht).
   Repo: Entwurf der Coderin – Feinschliff durch die Designerin offen (Bericht 2026-11-18-coderin-navigation-ton). */
.ton-knopf {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 8px; margin: 0 0 0 2px; border: 1px solid transparent; border-radius: 999px;
  background: transparent; color: rgba(185, 205, 255, .62); cursor: pointer;
  font: 500 11px/1 var(--font-display, sans-serif); letter-spacing: .14em; text-transform: uppercase;
  transition: color .2s, border-color .2s, background-color .2s;
}
.ton-knopf[hidden] { display: none; }
.ton-knopf:hover { color: #E8EDFF; border-color: rgba(143, 176, 255, .28); }
.ton-knopf:focus-visible { outline: 2px solid rgba(143, 176, 255, .9); outline-offset: 2px; }
.ton-knopf svg { flex: none; overflow: visible; }
.ton-knopf svg path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ton-knopf .tk-lautsprecher { fill: currentColor; fill-opacity: .18; }
.ton-knopf .tk-welle1, .ton-knopf .tk-welle2 { opacity: 0; transition: opacity .25s; }
html.ton-klaenge .ton-knopf, html.ton-musik .ton-knopf { color: #E8EDFF; }
html.ton-klaenge .ton-knopf .tk-welle1, html.ton-musik .ton-knopf .tk-welle1, html.ton-musik .ton-knopf .tk-welle2 { opacity: 1; }
html:not(.ton-klaenge):not(.ton-musik) .ton-knopf .tk-aus { opacity: 1; }
html.ton-klaenge .ton-knopf .tk-aus, html.ton-musik .ton-knopf .tk-aus { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  html.ton-wartet .ton-knopf .tk-welle1, html.ton-wartet .ton-knopf .tk-welle2 { animation: ton-wartet 2s ease-in-out infinite; }
  @keyframes ton-wartet { 50% { opacity: .25; } }
}
/* schmale Kopfzeile (bis 1199 px, darunter wird die Kapitel-Leiste eng): nur das Zeichen (Name bleibt fuer Screenreader im aria-label) */
@media (max-width: 1199px) { .ton-knopf { padding: 0 6px; } .ton-knopf .ton-wort { display: none; } }
/* Repo: bis 380 px passte der Knopf nicht mehr neben DE | EN und „Menü“ (bei 320/360 px schob er „Menü“ aus dem Bild,
   bei 280 px rutschte er in den Schriftzug). Dort steht der Sprachschalter nur noch im Menü und im Fuß – Vorschlag der
   Coderin, Entscheidung der Designerin offen. Der Knopf schrumpft nie (sonst ueberlappt er den Schriftzug). */
.kopf > .ton-knopf { flex: none; }
@media (max-width: 380px) { .kopf .rechts > .sprache { display: none; } .ton-knopf { padding: 0 4px; margin: 0; } }
/* Zweite Musik (settings.ML_TON_ZWEI, 20.11.2026): Wahl-Knopf am Ton-Knopf, nur bei „Klaenge + Musik“. Er haengt als kleine
   Lasche mittig unter dem Ton-Knopf (eigenes Element direkt hinter dem Kopf, fest positioniert; ton.js setzt --ton-wahl-x),
   damit der volle Kopf bei keiner Breite enger wird (neben dem Knopf schob er bei 390 px „Menue“ und bei 1024 px „Kontakt“ aus dem Bild). Zeigt den Namen der
   laufenden Musik (Ist-Zustand) mit kleinem Umschalt-Zeichen; gleiche Schrift und Farben wie der Ton-Knopf. */
.ton-wahl {
  position: fixed; z-index: 61; top: calc(var(--head-h, 64px) - 6px); left: var(--ton-wahl-x, 120px); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  height: 24px; padding: 0 9px; margin: 0; border: 1px solid rgba(143, 176, 255, .22); border-radius: 999px;
  background: rgba(4, 5, 10, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: rgba(185, 205, 255, .78); cursor: pointer;
  font: 500 10px/1 var(--font-display, sans-serif); letter-spacing: .14em; text-transform: uppercase;
  transition: color .2s, border-color .2s, opacity .25s;
}
.ton-wahl[hidden], html:not(.ton-musik) .ton-wahl { display: none; }
.ton-wahl:hover { color: #E8EDFF; border-color: rgba(143, 176, 255, .45); }
.ton-wahl:focus-visible { outline: 2px solid rgba(143, 176, 255, .9); outline-offset: 2px; }
.ton-wahl svg { flex: none; }
.ton-wahl svg path { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
