/* TEN accessibility dock — sits above Live Chat. ES5 / TYPO3 9.5. */

.ten-fab-dock {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 15000;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.ten-fab-dock > * {
  pointer-events: auto;
}

.ten-fab-dock .ten-livechat {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: auto;
}

.ten-a11y {
  position: relative;
  z-index: 3;
  font-family: "Nunito Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #1a1a1a;
}

/* 20 % smaller than 52px. No fill behind the cutout, no black ring. */
.ten-a11y__fab {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.ten-a11y__fab:focus {
  outline: none;
}

.ten-a11y__fab:focus-visible {
  box-shadow: 0 0 0 3px #1473e6;
}

.ten-a11y__fab-ring {
  display: none;
}

.ten-a11y__fab-face {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0;
  overflow: visible;
  border-radius: 50%;
  background: transparent;
}

.ten-a11y__fab-face svg {
  display: block;
  width: 42px;
  height: 42px;
}

.ten-a11y__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(320px, calc(100vw - 24px));
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 16px 16px 14px;
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16), 0 4px 14px rgba(15, 23, 42, 0.06);
}

.ten-a11y__panel[hidden] {
  display: none !important;
}

.ten-a11y__head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.ten-a11y__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.ten-a11y__close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #f3f4f6;
  color: #111;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.ten-a11y__block {
  margin-bottom: 14px;
}

.ten-a11y__label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.ten-a11y__chips {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 6px;
}

.ten-a11y__chip {
  padding: 6px 10px;
  border: 1px solid #d5d8de;
  border-radius: 999px;
  background: #fff;
  color: #1a1a1a;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ten-a11y__chip.is-active,
.ten-a11y__chip[aria-pressed="true"] {
  background: #111;
  border-color: #111;
  color: #fff;
}

.ten-a11y__range {
  width: 100%;
  margin: 0;
}

.ten-a11y__toggle {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.ten-a11y__reset {
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: #f3f4f6;
  color: #111;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ten-a11y-guide {
  position: fixed;
  left: 0;
  right: 0;
  height: 44px;
  margin-top: -22px;
  background: rgba(255, 214, 0, 0.28);
  border-top: 2px solid #111;
  border-bottom: 2px solid #111;
  pointer-events: none;
  z-index: 14950;
}

/* Text scale: zoom only when larger than 100%, so sticky/overflow on .site stay intact. */
html {
  --ten-a11y-zoom: 1;
}

html[data-ten-a11y-text]:not([data-ten-a11y-text="100"]) .site {
  zoom: var(--ten-a11y-zoom);
}

html[data-ten-a11y-contrast="high"] {
  background: #000;
}

html[data-ten-a11y-contrast="high"] body,
html[data-ten-a11y-contrast="high"] .site {
  background: #000 !important;
  color: #fff !important;
}

html[data-ten-a11y-contrast="high"] .site a {
  color: #ffe14d !important;
}

html[data-ten-a11y-contrast="high"] .site img,
html[data-ten-a11y-contrast="high"] .site video {
  filter: contrast(1.25);
}

html[data-ten-a11y-contrast="invert"] .site {
  filter: invert(1) hue-rotate(180deg);
}

html[data-ten-a11y-contrast="mono"] .site {
  filter: grayscale(1);
}

html[data-ten-a11y-font="dyslexia"] .site,
html[data-ten-a11y-font="dyslexia"] .site button,
html[data-ten-a11y-font="dyslexia"] .site input,
html[data-ten-a11y-font="dyslexia"] .site select,
html[data-ten-a11y-font="dyslexia"] .site textarea {
  font-family: "OpenDyslexic", "Comic Sans MS", "Chalkboard SE", "Arial", sans-serif !important;
  letter-spacing: 0.05em;
  word-spacing: 0.14em;
  line-height: 1.6;
}

html[data-ten-a11y-cursor="large"],
html[data-ten-a11y-cursor="large"] * {
  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 fill='%23fff' stroke='%23111' stroke-width='3' d='M6 4 L6 38 L16 28 L24 44 L30 41 L22 26 L36 26 Z'/%3E%3C/svg%3E") 6 4, auto !important;
}

html[data-ten-a11y-motion="off"] *,
html[data-ten-a11y-motion="off"] *::before,
html[data-ten-a11y-motion="off"] *::after {
  -webkit-animation-duration: 0.01ms !important;
  animation-duration: 0.01ms !important;
  -webkit-animation-iteration-count: 1 !important;
  animation-iteration-count: 1 !important;
  -webkit-transition-duration: 0.01ms !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

@media (max-width: 480px) {
  .ten-a11y__fab,
  .ten-a11y__fab-face,
  .ten-a11y__fab-face svg {
    width: 38px;
    height: 38px;
  }
}
