/* 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: #ffffff !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 */
}
