/* Spirit6 – Vorlesen (Build 8, Dev P), nur article.php. Build-7-Tokens: Text auf Markierung >= 7:1 (AAA) in Hell und Dunkel
 * (Hell: --text #1F1829 auf --accent-soft #FFE4D6; Dunkel: --text #ECEEF8 auf --accent-soft #3A2A3E), dazu Unterstreichung
 * (nicht nur Farbe). forced-colors: Systemfarben Highlight/HighlightText. */
.s6-tts { display: grid; gap: .5rem; }
.s6-tts[hidden] { display: none; }
.s6-tts__bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; }
.s6-tts__play .icon { width: 18px; height: 18px; }
.s6-tts__rate { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .25rem; margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.s6-tts__rate legend { float: left; margin-right: .35rem; font-weight: 600; font-size: var(--fs-small); color: var(--text-muted); padding: 0; }
.s6-tts__rate label { position: relative; display: inline-flex; }
.s6-tts__rate input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.s6-tts__rate label > span { display: inline-flex; align-items: center; min-height: 40px; min-width: 44px; justify-content: center; padding: .3rem .7rem;
  border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1.5px var(--control); color: var(--text); font-weight: 600; font-size: var(--fs-small); background: var(--surface); }
.s6-tts__rate input:checked + span { background: var(--accent-soft); box-shadow: inset 0 0 0 2.5px var(--accent-sel); }
.s6-tts__rate input:focus-visible + span { outline: 3px solid var(--ring); outline-offset: 2px; }
.s6-tts__voice { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; font-size: var(--fs-small); }
.s6-tts__voice label { font-weight: 600; color: var(--text-muted); }
.s6-tts__voice select { width: auto; max-width: 100%; min-height: 40px; padding-block: .3rem; }
.s6-tts__note { display: flex; gap: .45rem; align-items: flex-start; margin: 0; font-size: var(--fs-small); color: var(--text-muted); }
.s6-tts__note .icon { flex: none; width: 18px; height: 18px; margin-top: .15rem; }

/* Aktueller Satz (CSS Custom Highlight API) + Absatz-Markierung (auch Rückfall) */
::highlight(s6-tts) { background-color: var(--accent-soft); color: var(--text); text-decoration: underline 2px var(--accent-sel); text-underline-offset: 3px; }
.s6-tts-cur { box-shadow: -6px 0 0 0 var(--accent-sel); border-radius: 2px; }
html.view-a11y ::highlight(s6-tts) { background-color: var(--accent-soft); color: var(--text); text-decoration-thickness: 3px; }

@media (forced-colors: active) {
  ::highlight(s6-tts) { background-color: Highlight; color: HighlightText; text-decoration: none; }
  .s6-tts-cur { box-shadow: none; outline: 2px solid Highlight; outline-offset: 2px; }
  .s6-tts__rate input:checked + span { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}
@media print { .s6-tts { display: none !important; } }
