html {
  font-size: 100%;
}

body {
  font-family: sans-serif;
  transition: all 0.3s ease;
}

/* Runder Button */
.toggle-accessibility {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10000;
  background: white;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: none;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-accessibility:focus {
  outline: 3px solid #000;
}

.toggle-accessibility img {
  width: 16px;
  height: 16px;
  padding: 2px;
}

/* Panel */
.accessibility-panel {
  display: none;
  position: fixed;
  top: 4rem;
  left: 1rem;
  background: white;
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  max-width: 220px;
  color: black;
}

.accessibility-panel.active {
  display: block;
}

.accessibility-panel button {
  display: block;
  width: 100%;
  margin: 0.4rem 0;
  padding: 0.5rem;
  border: none;
  background: #f0f0f0;
  cursor: pointer;
  border-radius: 5px;
  color: black !important;
}

/* Barrierefreiheits-Modi */
body.high-contrast {
  background-color: black !important;
  color: yellow !important;
}

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

body.dark-mode {
  background-color: #121212 !important;
  color: #e0e0e0 !important;
}

body.readable-font {
  font-family: Arial, sans-serif !important;
}

body.highlight-links a {
  background-color: yellow !important;
  color: black !important;
  padding: 2px 4px;
  border: 2px solid red !important;
  border-radius: 3px;
  text-decoration: underline !important;
}
/* Allgemein: Texte im Dunkelmodus weiß */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode p,
body.dark-mode span,
body.dark-mode li,
body.dark-mode div,
body.dark-mode section,
body.dark-mode article,
body.dark-mode td,
body.dark-mode th {
  color: #ffffff !important;
}

/* Links im Dunkelmodus */
body.dark-mode a {
  color: #66ccff !important;
}
/* Textelemente im Modus "Hoher Kontrast" */
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 p,
body.high-contrast span,
body.high-contrast li,
body.high-contrast div,
body.high-contrast section,
body.high-contrast article,
body.high-contrast td,
body.high-contrast th {
  color: yellow !important;
  background-color: black !important;
}

/* Links im Kontrast-Modus */
body.high-contrast a {
  color: cyan !important;
  background-color: black !important;
  text-decoration: underline !important;
}
