/* xxxxxxxxxxxxxx  Auswahl Audio und Visuelle Darstellung xxxxxxxxxxx */
#accessibility-hub {
    background: #f0f0f0;
    padding: 10px;
    border-bottom: 2px solid #ccc;
}

.hub-buttons button {
    padding: 10px 15px;
    margin-right: 10px;
    font-weight: bold;
    cursor: pointer;
}

/* Wenn das Untermenü aktiv ist, machen wir es sichtbar */
#acc-menu.is-active, #audio-tts-menu.is-active {
    display: inline-block !important;
    margin-top: 10px;
}

/* Sichtbarer Fokus-Rahmen, damit der User weiß, wo er sich befindet */
#acc-menu:focus, #audio-tts-menu:focus, .hub-buttons button:focus {
    outline: 3px solid #0056b3;
    outline-offset: 2px;
}

/* Die Optionen selbst bleiben für Sehende ausgeblendet, wie gewünscht */
#acc-menu [role="option"] {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}




/* Versteckt Elemente visuell, hält sie aber für Screenreader barrierefrei zugänglich */

.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;
}

/* Formate für den Bereich der visuell Empfindlichen */
/* Das Menü-Element */
#acc-menu {
    border: 2px solid #333;
    padding: 5px;
    display: inline-block;
    background: #fff;
    color: #000;
}

/* Visuelle Buttons verstecken, und nur vorgelesen */
#acc-menu [role="option"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Versteckt Elemente visuell, hält sie aber für Screenreader barrierefrei zugänglich */
.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;
}

/* Das Menü-Element */
#acc-menu {
    border: 2px solid #333;
    padding: 5px;
    display: inline-block;
    background: #fff;
    color: #000;
}

/* Rahmen signalisiert dem Tastaturnutzer, wo er sich befindet */
#acc-menu:focus {
    outline: 3px solid #0056b3;
    outline-offset: 2px;
}

/* Das gut lesbare Display-DIV für den Hilfetext */
#acc-help-display {
    margin-top: 15px;
    padding: 15px;
    border: 3px solid #000;
    background-color: #f9f9f9;
    color: #000;
    font-size: 1.2rem;
    font-weight: bold;
    max-width: 400px;
    line-height: 1.4;
}

/* Stile für die Modi aus dem vorherigen Schritt (hier beispielhaft erweitert) */

/* --- 1. SCHWARZ-WEISS MODUS --- */

body.accessibility-mono { filter: grayscale(100%) !important; }

/* --- 2. HOHER KONTRAST & GROSSE SCHRIFT --- */
body.accessibility-high-contrast {
    background-color: #000000 !important;
    color: #ff000 !important;
    font-size: 130% !important; /* Vergrößert die Basisschrift */
    line-height: 1.6 !important;
}


body.accessibility-high-contrast #acc-help-display {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #ffff00 !important;
}

/* andere Formatierungen für das Vorlesen*/

/* Sorgt dafür, dass Links und Überschriften im Kontrastmodus lesbar bleiben */
body.accessibility-high-contrast a {
    color: #00ffff !important; /* Gut lesbares Cyan auf Schwarz */
    text-decoration: underline !important;
}

body.accessibility-high-contrast h1, 
body.accessibility-high-contrast h2, 
body.accessibility-high-contrast h3 {
    color: #ffff00 !important; /* Gelb für Überschriften */
}


/* Navigation wieder seitlich*/
#anchormenu {
    position: fixed; /* Hält das Menü beim Scrollen bombenfest */
    top: 40px;
    right: 20px;     /* Oder links, je nachdem wo Platz ist */
    width: 250px;
    height: 400px;
    overflow-y: auto; /* Erlaubt internes Scrollen, wenn die Liste lang ist */
    background: #ffffff;
    border: 2px solid #333;
    padding: 10px;
    z-index: 1000;   /* Liegt immer über dem Buchtext */
}

#anchormenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#anchormenu li {
    padding: 8px 12px;
    margin-bottom: 4px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Visueller Fokus im Menü für Tastaturnutzer */
#anchormenu li:focus {
    background: #0056b3;
    color: #ffffff;
    outline: none;
}

/* Hervorhebung des gerade vorgelesenen Textblocks */
.tts-highlight {
    background-color: #ffffcc !important; /* Dezentes Gelb */
    transition: background-color 0.3s ease;
}

/* Optionale Hervorhebung des aktuell vorgelesenen Elements für Gemini-Ansätze */
    .tts-active {
      background-color: #fff3cd;
      transition: background-color 0.3s ease;
    }









#anchormenu {
    position: fixed;
    top: 40px;
    right: 20px;
    width: 280px;
    height: 450px;
    overflow-y: auto;
    background: #ffffff;
    border: 3px solid #000000;
    padding: 12px;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Die Steuerung bleibt immer oben sichtbar, auch wenn die Liste gescrollt wird */
.player-controls {
    position: sticky;
    top: 0;
    background: #ffffff;
    padding-bottom: 8px;
    display: flex;
    justify-content: space-between;
    gap: 5px;
    z-index: 10;
}

.player-controls button {
    flex: 1;
    padding: 8px 5px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid #333;
    background: #f0f0f0;
}

/* Deutlicher Fokus-Zustand für den Play-Button */
.player-controls button:focus {
    background: #0056b3;
    color: #ffffff;
    outline: 2px solid #000;
}

.menu-divider {
    border: 0;
    border-top: 2px solid #333;
    margin: 8px 0;
}

#nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#nav-list li {
    padding: 8px 12px;
    margin-bottom: 5px;
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
}

#nav-list li:focus {
    background: #222222;
    color: #ffffff;
    outline: none;
}

/* Farbe des markierten Textes beim Vorlesen */
.tts-highlight {
    background-color: #ffffcc !important;
}
#anchormenu {
    position: fixed;
    top: 40px;
    right: 20px;
    width: 270px;
    height: 420px;
    overflow-y: auto;
    background: #ffffff;
    border: 3px solid #000000;
    padding: 10px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.player-controls {
    position: sticky;
    top: 0;
    background: #ffffff;
    padding-bottom: 8px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.player-controls button {
    flex: 1;
    padding: 8px 0;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid #000;
    background: #f0f0f0;
}

/* Visueller Fokus auf dem Button */
.player-controls button:focus {
    background: #0056b3;
    color: #ffffff;
    outline: none;
}

.menu-divider {
    border: 0;
    border-top: 2px solid #000;
    margin: 6px 0;
}

#nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#nav-list li {
    padding: 6px 10px;
    margin-bottom: 4px;
    background: #f9f9f9;
    border: 1px solid #ccc;
    cursor: pointer;
}

#nav-list li:focus {
    background: #222222;
    color: #ffffff;
    outline: none;
}

<!-- /// für Gemini /// -->
    .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;
    }
  </style>




.tts-highlight {
    background-color: #ffffcc !important;
}
    /* Layout: Navigation & Steuerung im Kopf- oder Seitenbereich */
    .tts-sidebar {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      background: #f8f9fa;
      border: 1px solid #dee2e6;
      padding: 15px;
      border-radius: 8px;
      margin-bottom: 25px;
    }

    /* Hierarchische Navigations-Liste */
    .tts-nav-tree {
      list-style: none;
      padding-left: 0;
      margin: 0;
      max-height: 250px;
      overflow-y: auto;
      border: 1px solid #ced4da;
      background: #fff;
      border-radius: 4px;
    }

    .tts-nav-item {
      padding: 6px 10px;
      border-bottom: 1px solid #f1f3f5;
      cursor: pointer;
      font-size: 0.9em;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .tts-nav-item:hover {
      background-color: #e9ecef;
    }

    /* Tastatur-Fokus / Aktiver Punkt */
    .tts-nav-focused {
      background-color: #d0ebff !important;
      font-weight: bold;
      border-left: 4px solid #1c7ed6;
    }

    /* Einrückungsstufen für die Hierarchie */
    .tts-nav-level-1 { padding-left: 8px; font-weight: bold; background: #f1f3f5; } /* class="seite" */
    .tts-nav-level-2 { padding-left: 20px; font-weight: bold; } /* H1 */
    .tts-nav-level-3 { padding-left: 35px; } /* H2 */
    .tts-nav-level-4 { padding-left: 50px; font-size: 0.85em; } /* H3 */
    .tts-nav-level-5 { padding-left: 65px; font-size: 0.8em; color: #495057; } /* Footnote / Comment */

    /* Typen-Badges */
    .tts-nav-badge {
      font-size: 0.7em;
      padding: 2px 6px;
      border-radius: 3px;
      color: white;
      background: #adb5bd;
    }
    .tts-badge-page { background: #339af0; }
    .tts-badge-h1 { background: #5c7cfa; }
    .tts-badge-h2 { background: #748ffc; }
    .tts-badge-h3 { background: #91a7ff; }
    .tts-badge-footnote { background: #fcc419; color: #000; }
    .tts-badge-comment { background: #51cf66; }

    /* Text-Hervorhebung beim Vorlesen */
    .tts-active {
      background-color: #ffe066;
      border-left: 4px solid #f59f00;
      padding-left: 4px;
      transition: all 0.2s ease;
    }

    .hotkey-legend {
      font-size: 0.85em;
      background: #e9ecef;
      padding: 10px;
      border-radius: 4px;
      margin-top: 15px;
    }
 /* STYLING für die GEMINI-Variante OKT ist in access-oct.css*/






















