#a11y-overlay {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: #f9f9f9;
  border: 2px solid #333;
  padding: 1rem;
  border-radius: 1rem;
  z-index: 9999;
  width: 220px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  font-family: system-ui, sans-serif;
  font-size: 14px;
}

.ally-head {
  margin-top: 0;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  text-align: center;
  color:#000;
  font-weight:bold;
}

.a11y-group {
  margin: 0.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: flex-start;
}

#a11y-overlay button,
#a11y-overlay select {
  padding: 0.4rem 0.6rem;
  border: 1px solid #444;
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  width: 100%;
  text-align: left;
}

#a11y-overlay select {
  width: 100%;
}

.a11y-reset {
  background-color: #f44336;
  color: #000;
  font-weight: bold;
}

.a11y-reset:hover {
  background-color: #d32f2f;
}

/* Dynamische Schriftgröße */
body[data-a11y-textsize] {
  font-size: calc(1em + var(--a11y-textsize, 0px));
}

/* Dynamischer Zeilenabstand */
body[data-a11y-spacing] * {
  line-height: calc(1.4 + var(--a11y-spacing, 0));
}

/* Kontrastmodus */
body.a11y-high-contrast {
/*  background: #000 !important;
  color: #fff !important;*/
  filter: contrast(200%) brightness(120%);
}

body.a11y-high-contrast .mod_article {
/*   background-color:#000 !important;
  color: #fff !important; */
}

/* Einfache Schrift */
body.a11y-simple-font * {
  font-family: Arial, Helvetica, sans-serif !important;
}

/* Ablenkungsfreier Modus */
body.a11y-clean-mode img,
body.a11y-clean-mode video,
body.a11y-clean-mode iframe,
body.a11y-clean-mode .mod_pageimage,
body.a11y-clean-mode .mod_rocksolid_slider,
body.a11y-clean-mode #seitenbild,
body.a11y-clean-mode .parallaxcontent,
body.a11y-clean-mode .cebackgroundimage
{
  display: none !important;
}
body.a11y-clean-mode #a11y-toggle img, #main .inside .scrollup a img {
  display:inline-block !important;
}

/* Farbenblindheits-Filter via CSS-Filter */
body.a11y-filter-protanopia {
  filter: sepia(100%) hue-rotate(330deg) saturate(150%);
}
body.a11y-filter-deuteranopia {
  filter: sepia(80%) hue-rotate(10deg);
}
body.a11y-filter-tritanopia {
  filter: sepia(60%) hue-rotate(210deg);
}
body.a11y-filter-grayscale {
  filter: grayscale(100%);
}

#a11y-overlay button.a11y-active {
  background-color: #000;
  color: #fff;
  border: 2px solid #fff;
}
/* Links hervorheben */
body.a11y-highlight-links a {
  background-color: #fffd99;
  border: 2px dashed #cc0;
  padding: 2px;
  text-decoration: underline;
}
/* Optional: Icon im Button besser zentrieren */
#a11y-toggle svg {
  width: 32px;
  height: 32px;
}
#a11y-toggle {
  position: fixed;
  right:20px;
  top:47px;
  z-index:1000;
  border:0px;
  background-color:transparent;
}
.a11y-close-btn {
  background: #000;
  color: #000;
  border: none;
  padding: 6px 10px;
  font-size: 16px;
  cursor: pointer;
}
.a11y-group button img {
  padding-bottom:2px;
  padding-right: 2px;
}