
.accessibility-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: white;
    color: #222;
    font-size: 28px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.accessibility-button:hover {
    transform: scale(1.08);
}

.accessibility-menu {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 85px;
    width: 280px;
    padding: 20px;
    background: white;
    color: #222;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    z-index: 9998;
}

.accessibility-menu.open {
    display: block;
}

.accessibility-menu h3 {
    margin-top: 0;
    color: #222;
}

.accessibility-menu button {
    width: 100%;
    padding: 11px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f5f5f5;
    color: #222;
    cursor: pointer;
    font-size: 15px;
}

.accessibility-menu button:hover {
    background: #e5e5e5;
}


/* ============================= */
/* GROSSE SCHRIFT                */
/* ============================= */

body.large-text p,
body.large-text a,
body.large-text span,
body.large-text div,
body.large-text li,
body.large-text label,
body.large-text td,
body.large-text th,
body.large-text button,
body.large-text input,
body.large-text textarea,
body.large-text select,
body.large-text h1,
body.large-text h2,
body.large-text h3,
body.large-text h4,
body.large-text h5,
body.large-text h6 {
    font-size: 20px !important;
}

body.large-text h1 {
    font-size: 42px !important;
}

body.large-text h2 {
    font-size: 36px !important;
}

body.large-text h3 {
    font-size: 30px !important;
}

body.large-text h4 {
    font-size: 26px !important;
}

body.large-text h5 {
    font-size: 23px !important;
}

body.large-text h6 {
    font-size: 21px !important;
}


/* ============================= */
/* SEHR GROSSE SCHRIFT           */
/* ============================= */

body.extra-large-text p,
body.extra-large-text a,
body.extra-large-text span,
body.extra-large-text div,
body.extra-large-text li,
body.extra-large-text label,
body.extra-large-text td,
body.extra-large-text th,
body.extra-large-text button,
body.extra-large-text input,
body.extra-large-text textarea,
body.extra-large-text select,
body.extra-large-text h1,
body.extra-large-text h2,
body.extra-large-text h3,
body.extra-large-text h4,
body.extra-large-text h5,
body.extra-large-text h6 {
    font-size: 24px !important;
}

body.extra-large-text h1 {
    font-size: 50px !important;
}

body.extra-large-text h2 {
    font-size: 42px !important;
}

body.extra-large-text h3 {
    font-size: 36px !important;
}

body.extra-large-text h4 {
    font-size: 30px !important;
}

body.extra-large-text h5 {
    font-size: 27px !important;
}

body.extra-large-text h6 {
    font-size: 25px !important;
}


/* ============================= */
/* SCHWARZ AUF WEISS             */
/* ============================= */

body.high-contrast {
    background: #ffffff !important;
    background-image: none !important;
    color: #000000 !important;
}

body.high-contrast *:not(.accessibility-button):not(.accessibility-menu):not(.accessibility-menu *):not(#readingLine) {
    color: #000000 !important;
    border-color: #000000 !important;
    text-shadow: none !important;
}

body.high-contrast div:not(.accessibility-menu):not(.accessibility-menu *) {
    background-color: #ffffff !important;
}

body.high-contrast header,
body.high-contrast nav,
body.high-contrast main,
body.high-contrast section,
body.high-contrast article,
body.high-contrast aside,
body.high-contrast footer {
    background-color: #ffffff !important;
    background-image: none !important;
}

body.high-contrast p,
body.high-contrast span,
body.high-contrast div,
body.high-contrast li,
body.high-contrast label,
body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast h5,
body.high-contrast h6,
body.high-contrast strong,
body.high-contrast b,
body.high-contrast em {
    color: #000000 !important;
}

body.high-contrast a {
    color: #000000 !important;
    text-decoration: underline !important;
    font-weight: bold !important;
}

body.high-contrast button:not(.accessibility-button),
body.high-contrast input,
body.high-contrast textarea,
body.high-contrast select {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
}

body.high-contrast img {
    filter: none !important;
}

body.high-contrast .accessibility-menu {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
}

body.high-contrast .accessibility-menu h3 {
    color: #000000 !important;
}

body.high-contrast .accessibility-menu button {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
}

body.high-contrast .accessibility-button {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
}


/* ============================= */
/* WEISS AUF SCHWARZ             */
/* ============================= */

body.dark-contrast {
    background: #000000 !important;
    background-image: none !important;
    color: #ffffff !important;
}

body.dark-contrast *:not(.accessibility-button):not(.accessibility-menu):not(.accessibility-menu *):not(#readingLine) {
    color: #ffffff !important;
    border-color: #ffffff !important;
    text-shadow: none !important;
}

body.dark-contrast div:not(.accessibility-menu):not(.accessibility-menu *) {
    background-color: #000000 !important;
}

body.dark-contrast header,
body.dark-contrast nav,
body.dark-contrast main,
body.dark-contrast section,
body.dark-contrast article,
body.dark-contrast aside,
body.dark-contrast footer {
    background-color: #000000 !important;
    background-image: none !important;
}

body.dark-contrast p,
body.dark-contrast span,
body.dark-contrast div,
body.dark-contrast li,
body.dark-contrast label,
body.dark-contrast h1,
body.dark-contrast h2,
body.dark-contrast h3,
body.dark-contrast h4,
body.dark-contrast h5,
body.dark-contrast h6,
body.dark-contrast strong,
body.dark-contrast b,
body.dark-contrast em {
    color: #ffffff !important;
}

body.dark-contrast a {
    color: #ffff00 !important;
    text-decoration: underline !important;
    font-weight: bold !important;
}

body.dark-contrast button:not(.accessibility-button),
body.dark-contrast input,
body.dark-contrast textarea,
body.dark-contrast select {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

body.dark-contrast img {
    filter: none !important;
}

body.dark-contrast .accessibility-menu {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

body.dark-contrast .accessibility-menu h3 {
    color: #ffffff !important;
}

body.dark-contrast .accessibility-menu button {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
}

body.dark-contrast .accessibility-button {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}


/* ============================= */
/* LESEFREUNDLICHE SCHRIFT       */
/* ============================= */

body.dyslexia-font,
body.dyslexia-font * {
    font-family: Arial, Helvetica, sans-serif !important;
}

body.dyslexia-font p,
body.dyslexia-font li,
body.dyslexia-font a,
body.dyslexia-font span,
body.dyslexia-font label,
body.dyslexia-font h1,
body.dyslexia-font h2,
body.dyslexia-font h3,
body.dyslexia-font h4,
body.dyslexia-font h5,
body.dyslexia-font h6 {
    letter-spacing: 0.05em !important;
    word-spacing: 0.12em !important;
}


/* ============================= */
/* MEHR ZEILENABSTAND             */
/* ============================= */

body.more-line-spacing p,
body.more-line-spacing li,
body.more-line-spacing a,
body.more-line-spacing span,
body.more-line-spacing div,
body.more-line-spacing h1,
body.more-line-spacing h2,
body.more-line-spacing h3,
body.more-line-spacing h4,
body.more-line-spacing h5,
body.more-line-spacing h6 {
    line-height: 2 !important;
}


/* ============================= */
/* MEHR BUCHSTABENABSTAND         */
/* ============================= */

body.more-letter-spacing p,
body.more-letter-spacing li,
body.more-letter-spacing a,
body.more-letter-spacing span,
body.more-letter-spacing div,
body.more-letter-spacing h1,
body.more-letter-spacing h2,
body.more-letter-spacing h3,
body.more-letter-spacing h4,
body.more-letter-spacing h5,
body.more-letter-spacing h6 {
    letter-spacing: 0.12em !important;
}


/* ============================= */
/* LINKS HERVORHEBEN             */
/* ============================= */

body.highlight-links a {
    background: #ffff00 !important;
    color: #000000 !important;
    text-decoration: underline !important;
    font-weight: bold !important;
    padding: 2px 4px !important;
}


/* ============================= */
/* GRÖSSERER MAUSZEIGER          */
/* ============================= */

body.large-cursor,
body.large-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M5 2 L5 38 L15 28 L23 45 L30 41 L22 25 L38 25 Z' fill='white' stroke='black' stroke-width='3'/%3E%3C/svg%3E") 5 2, auto !important;
}


/* ============================= */
/* LESELINEAL                    */
/* ============================= */

#readingLine {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    height: 35px;
    border-top: 2px solid #000000;
    border-bottom: 2px solid #000000;
    background: rgba(255, 255, 0, 0.15);
    pointer-events: none;
    z-index: 9997;
}

body.high-contrast #readingLine {
    background: #ffff00 !important;
    border-color: #000000 !important;
}

body.dark-contrast #readingLine {
    background: #ffff00 !important;
    border-color: #ffffff !important;
}

