/* ============================================
   ♿ ACCESSIBILITY WIDGET – MHT DESIGN
   ============================================ */

/* ----------------------
   Floating Button
---------------------- */
#a11yWidgetBtn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;

  background: linear-gradient(135deg, #A256D1, #4B0082);
  color: #fff;
  cursor: pointer;

  z-index: 999999;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(162, 86, 209, 0.35);

  transition: all .25s ease;
}

#a11yWidgetBtn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(162, 86, 209, 0.5);
}


/* ----------------------
   Widget Container
---------------------- */
#a11yWidget {
  position: fixed;
  bottom: 100px;
  left: 20px;

  width: 360px;
  max-height: 82vh;
  overflow-y: auto;

  padding: 22px;
  border-radius: 28px;

  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(15px);

  border: 1px solid rgba(162,86,209,0.25);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);

  z-index: 999998;

  opacity: 0;
  transform: translateY(40px) scale(0.95);

  transition: all .35s cubic-bezier(.21, .98, .6, 1.3);
}

#a11yWidget.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}


/* ----------------------
   Header
---------------------- */
.a11y-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 20px;
  font-weight: 700;
  color: #4B0082;

  margin-bottom: 15px;
}

.a11y-actions button {
  background: none;
  border: none;
  font-size: 20px;
  color: #A256D1;
  cursor: pointer;

  transition: .2s;
}
.a11y-actions button:hover {
  transform: scale(1.2);
}


/* ----------------------
   Sections
---------------------- */
.a11y-section {
  margin-bottom: 26px;
}

.a11y-section h3 {
  color: #4B0082;
  opacity: .8;
  font-size: 15px;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.a11y-section button {
  width: 100%;
  padding: 13px 15px;
  margin-bottom: 10px;

  border-radius: 18px;

  background: linear-gradient(135deg, #f7efff, #ece4fa);
  border: 1px solid rgba(162,86,209,0.25);

  font-size: 15px;
  cursor: pointer;

  transition: all .2s ease;
}

.a11y-section button:hover {
  background: linear-gradient(135deg, #EBD9FF, #D9C5FA);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(162, 86, 209, .3);
}


/* ----------------------
   Footer
---------------------- */
.a11y-footer {
  text-align: center;
  font-size: 12px;
  color: #666;
  padding-top: 6px;
}


/* ----------------------
   Accessibility Modes
---------------------- */

html.a11y-text-size {
  font-size: 20px !important;
}

html.a11y-line-height * {
  line-height: 1.9 !important;
}

html.a11y-text-align * {
  text-align: left !important;
}

html.a11y-readable-font * {
  font-family: Arial, Helvetica, sans-serif !important;
}

html.a11y-high-contrast {
  filter: contrast(1.4);
}

html.a11y-grayscale {
  filter: grayscale(100%);
}

html.a11y-hide-images img {
  display: none !important;
}

html.a11y-stop-animations * {
  animation: none !important;
  transition: none !important;
}

html.a11y-highlight-links a {
  background: #fff6cc;
  outline: 3px solid #ffbf00;
}

html.a11y-focus-outline *:focus {
  outline: 4px solid #ff9900 !important;
}

html.a11y-structure-outline * {
  outline: 1px dashed red !important;
}


/* Lesemaske */
#a11yReadingMask {
  position: fixed;
  left: 0;
  width: 100%;
  height: 70px;

  background: rgba(0,0,0,0.25);
  pointer-events: none;

  z-index: 999998;
}
