@charset "utf-8";

/* Accessibility widget
   ------------------------------------------------------------------
   Floating button (bottom right) + options panel.
   Options are applied as classes on <html> and stored in localStorage.
   ------------------------------------------------------------------ */

.a11y_widget{
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 1100;
}

/* round launcher */
.a11y_toggle{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid #000000;
  border-radius: 50%;
  background: #5996FF;
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.a11y_toggle:hover,
.a11y_toggle:focus-visible{
  transform: translate(-2px, -3px);
  box-shadow: 4px 5px 0 #000000;
}

/* options panel */
.a11y_panel{
  position: absolute;
  right: 0;
  bottom: 70px;
  width: 280px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #D7D7D7;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), visibility 0.25s;
}

.a11y_widget.is_open .a11y_panel{
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.a11y_head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.a11y_title{
  margin: 0;
  font-family: 'URW DIN', Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #2E2E2E;
}

.a11y_close{
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #F2F2F4;
  color: #2E2E2E;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.a11y_close:hover{
  background: #FFAB2D;
}

/* text size row */
.a11y_row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.a11y_row_label{
  font-size: 15px;
  font-weight: 700;
  color: #2E2E2E;
}

.a11y_steps{
  display: flex;
  align-items: center;
  gap: 8px;
}

.a11y_step{
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #D7D7D7;
  border-radius: 8px;
  background: #ffffff;
  color: #2E2E2E;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.a11y_step:hover{
  background: #FFAB2D;
  border-color: #000000;
}

.a11y_step_value{
  min-width: 46px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #2E2E2E;
}

/* toggles */
.a11y_option{
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 8px;
  padding: 10px 14px;
  border: 1px solid #D7D7D7;
  border-radius: 10px;
  background: #ffffff;
  color: #2E2E2E;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.a11y_option i{
  font-size: 18px;
}

.a11y_option:hover{
  background: #FFFBF3;
}

.a11y_option.is_on{
  background: #E6F2DD;
  border-color: #000000;
  font-weight: 700;
}

.a11y_reset{
  width: 100%;
  margin-top: 6px;
  padding: 10px 14px;
  border: 1px solid #000000;
  border-radius: 10px;
  background: #FFAB2D;
  color: #2E2E2E;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.a11y_reset:hover{
  transform: translate(-2px, -3px);
  box-shadow: 4px 5px 0 #000000;
}

/* ------------------------------------------------------------------
   what the options actually do (classes land on <html>)
   ------------------------------------------------------------------ */

html.a11y_contrast{
  filter: contrast(1.35);
}

html.a11y_grayscale{
  filter: grayscale(1);
}

html.a11y_contrast.a11y_grayscale{
  filter: grayscale(1) contrast(1.35);
}

html.a11y_links a{
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

html.a11y_links a:focus-visible{
  outline: 3px solid #FFAB2D;
  outline-offset: 2px;
}

html.a11y_readable,
html.a11y_readable body,
html.a11y_readable h1,
html.a11y_readable h2,
html.a11y_readable h3,
html.a11y_readable h4,
html.a11y_readable h5,
html.a11y_readable h6,
html.a11y_readable p,
html.a11y_readable a,
html.a11y_readable button,
html.a11y_readable input,
html.a11y_readable select,
html.a11y_readable textarea{
  font-family: Verdana, Tahoma, Arial, sans-serif !important;
  letter-spacing: 0.02em;
}

html.a11y_motion *,
html.a11y_motion *::before,
html.a11y_motion *::after{
  animation-play-state: paused !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

@media only screen and (max-width: 575px){
  .a11y_widget{
    right: 14px;
    bottom: 84px;
  }
  .a11y_panel{
    width: 250px;
  }
}
