.tts-active {
background-color: #e0fdd2;
transition: background-color 0.3s ease;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#accessibility-reader-menu DIV DIV button 

/* Basis-Styling für die Icons (optional für besseren Abstand) */
.btn-play::before, 
.btn-stop::before, 
.btn-close::before {
  margin-right: 8px; /* Abstand zum Text */
  font-weight: normal;
}

/* Icon für "Spielen" (Play-Button) */
.btn-play::before {
  content: "\25B6 "; /* Unicode für ein ausgefülltes, nach rechts zeigendes Dreieck */
}

/* Icon für "Stopp" */
.btn-pause::before {
  content: "\23F8 "; /* Unicode Quadrat \25A0 sonst zwei vertikale Striche: \23F8 */
}

/* Icon für "Abbrechen / Schließen" */
.btn-close::before {
  content: "\2716 "; /* Unicode für ein schweres Multiplikationszeichen (X) */
}
    .accessibility-read { margin-bottom: 30px; padding: 20px; border: 1px solid #e0e0e0; border-radius: 8px; }
        sup { color: #007bff; font-weight: bold; cursor: pointer; }
        sup:hover { text-decoration: underline; }
        blockquote { border-left: 4px solid #007bff; padding-left: 15px; margin: 15px 0; font-style: italic; }
button{background:transparent;border:none;border-bottom:solid 1px red;}
#tts-controls{border:solid 1px green;border-radius:8px;width:90%;}

    .tts-active {
      background-color: #ffeeba;
      border-left: 4px solid #ffc107;
      padding-left: 5px;
      transition: all 0.2s ease;
    }
    #tts-control-panel {
      background: #f8f9fa;
      border: 1px solid #ddd;
      padding: 15px;
      margin-bottom: 20px;
      border-radius: 5px;
    }
    .tts-ui-group {
      margin-bottom: 10px;
    }
    .hotkey-legend {
      font-size: 0.85em;
      background: #e9ecef;
      padding: 10px;
      border-radius: 4px;
    }




/* ===================================================
   TTS Reader & Navigation Stylesheet
   =================================================== */

/* --- 1. Navigationsbox (Feste Hoehe, scrollbar) --- */
#tts-navigation {
  width: 320px;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ccc;
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 10px 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-family: sans-serif;
  font-size: 0.9em;
  margin-bottom: 20px;
}

.tts-nav-list,
.tts-nav-sublist {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.tts-nav-sublist {
  padding-left: 18px;
  margin-top: 4px;
  margin-bottom: 6px;
}

.tts-nav-sublist.tts-collapsed {
  display: none;
}

.tts-nav-seite {
  margin-top: 8px;
  font-weight: bold;
}

.tts-nav-toggle {
  display: inline-block;
  width: 16px;
  cursor: pointer;
  user-select: none;
  color: #555;
  font-size: 0.8em;
}

.tts-nav-toggle:hover {
  color: #000;
}

.tts-nav-subitem {
  font-weight: normal;
  margin: 3px 0;
}

.tts-nav-subitem a {
  color: #333;
  text-decoration: none;
}

.tts-nav-subitem a:hover {
  text-decoration: underline;
}

/* --- 2. Highlight des aktiven Leseabschnitts --- */
.tts-active-chunk {
  background-color: #fff3a3;
  transition: background-color 0.3s ease;
}

/* --- 3. Schwebendes Bedienfeld (Fixed unten rechts) --- */
#tts-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #222;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  font-family: sans-serif;
}

.tts-controls button {
  background: #444;
  color: #fff;
  border: none;
  padding: 6px 12px;
  margin-right: 4px;
  border-radius: 4px;
  cursor: pointer;
}

.tts-controls button:hover {
  background: #666;
}

.tts-settings {
  margin-top: 8px;
  font-size: 0.85em;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tts-settings label {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- 4. Fortschrittsbalken & Restzeit-Anzeige --- */
.tts-progress-container {
  margin-top: 10px;
  width: 100%;
}

.tts-progress-bar {
  width: 100%;
  height: 6px;
  background-color: #444;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 5px;
}

#tts-progress-fill {
  height: 100%;
  width: 0%;
  background-color: #4CAF50;
  transition: width 0.3s ease;
}

#tts-status-text {
  font-size: 0.75em;
  color: #ccc;
  display: flex;
  justify-content: space-between;
}