/*
 * APPtimal Schuldnerberatung Barrierefreiheit - Sicher
 * WCAG 2.2 AA frontend layer. Every rule is scoped to the plugin body class.
 */

.apptimal-sbooe-a11y,
.apptimal-sbooe-a11y *,
.apptimal-sbooe-a11y *::before,
.apptimal-sbooe-a11y *::after {
  box-sizing: border-box;
}

.apptimal-sbooe-a11y {
  font-size: 100%;
  line-height: 1.5;
}

.apptimal-sbooe-a11y .apptimal-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.apptimal-sbooe-a11y .apptimal-empty-heading {
  display: none !important;
}

.apptimal-sbooe-a11y .skip-link {
  position: fixed !important;
  z-index: 100000 !important;
  top: 0.75rem !important;
  left: 0.75rem !important;
  width: auto !important;
  height: auto !important;
  padding: 0.75rem 1rem !important;
  margin: 0 !important;
  clip: auto !important;
  clip-path: none !important;
  overflow: visible !important;
  transform: translateY(-200%) !important;
  color: #ffffff !important;
  background: #17202b !important;
  border: 0.1875rem solid #ffffff !important;
  border-radius: 0.25rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
}

.apptimal-sbooe-a11y .skip-link:focus,
.apptimal-sbooe-a11y .skip-link:focus-visible {
  transform: translateY(0) !important;
}

.apptimal-sbooe-a11y :where(
    a[href],
    button,
    input,
    select,
    textarea,
    summary,
    [tabindex]:not([tabindex="-1"]),
    [role="button"]
  ):focus {
  outline: 0.25rem solid #123f36 !important;
  outline-offset: 0.1875rem !important;
  box-shadow: 0 0 0 0.375rem #ffffff !important;
}

.apptimal-sbooe-a11y :where(
    a[href],
    button,
    input,
    select,
    textarea,
    summary,
    [tabindex]:not([tabindex="-1"]),
    [role="button"]
  ):focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

.apptimal-sbooe-a11y :where(
    a[href],
    button,
    input,
    select,
    textarea,
    summary,
    [tabindex]:not([tabindex="-1"]),
    [role="button"]
  ):focus-visible {
  outline: 0.25rem solid #123f36 !important;
  outline-offset: 0.1875rem !important;
  box-shadow: 0 0 0 0.375rem #ffffff !important;
}

.apptimal-sbooe-a11y
  :where(
    #pe-maincontent,
    #pe-top1,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    a,
    button,
    input,
    select,
    textarea,
    [tabindex]
  ) {
  scroll-margin-block-start: 8rem;
  scroll-margin-block-end: 2rem;
}

.apptimal-sbooe-a11y #pe-logo a {
  display: inline-block;
  border-radius: 0.25rem;
}

.apptimal-sbooe-a11y #pe-logo a:focus,
.apptimal-sbooe-a11y #pe-logo a:focus-visible {
  outline: 0.25rem solid #123f36 !important;
  outline-offset: 0.1875rem !important;
  box-shadow: 0 0 0 0.375rem #ffffff !important;
}

.apptimal-sbooe-a11y :where(#pe-maincontent, main) a:not(.button):not(.faq_q) {
  color: #46566b;
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.16em;
}

.apptimal-sbooe-a11y
  :where(#pe-maincontent, main)
  a:not(.button):not(.faq_q):hover {
  color: #1f2b39;
  background-color: #fff2ad;
}

.apptimal-sbooe-a11y #pe-footer {
  color: #263446;
}

.apptimal-sbooe-a11y #pe-footer a {
  display: inline-block;
  min-height: 1.5rem;
  padding-block: 0.15rem;
  color: #263446 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 0.1em !important;
  text-underline-offset: 0.16em !important;
}

.apptimal-sbooe-a11y #pe-footer a:hover,
.apptimal-sbooe-a11y #pe-footer a:focus-visible {
  color: #111820 !important;
  background-color: #ffffff !important;
}

.apptimal-sbooe-a11y #pe-copyrights a {
  color: #ffffff !important;
  text-decoration: underline;
}

.apptimal-sbooe-a11y
  :where(#pe-maincontent, main)
  span[style*="#ffcc00" i],
.apptimal-sbooe-a11y
  :where(#pe-maincontent, main)
  span[style*="rgb(255, 204, 0)" i] {
  color: #735900 !important;
  font-weight: 600;
}

.apptimal-sbooe-a11y .apptimal-accordion-heading {
  margin: 0.5rem 0 0 !important;
  padding: 0 !important;
  font-size: 1rem !important;
  line-height: 1.4 !important;
}

.apptimal-sbooe-a11y .apptimal-accordion-button.faq_q {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.7rem 2.5rem 0.7rem 0.75rem;
  border: 0.0625rem solid #555555;
  border-radius: 0;
  color: #ffffff;
  background: #666666;
  font: inherit;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.apptimal-sbooe-a11y .apptimal-accordion-button.faq_q:hover {
  color: #ffffff;
  background: #4d4d4d;
}

.apptimal-sbooe-a11y .apptimal-accordion-button.faq_q[aria-expanded="true"] {
  color: #17202b;
  background: #fcd51e;
  border-color: #17202b;
}

.apptimal-sbooe-a11y .apptimal-term-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.apptimal-sbooe-a11y .apptimal-term-button {
  display: inline;
  min-height: 1.75rem;
  padding: 0.08em 0.28em;
  border: 0.0625rem solid #594700;
  border-radius: 0.2em;
  color: #263446;
  background: #fcd51e;
  font: inherit;
  font-weight: 700;
  line-height: 1.35;
  text-align: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 0.16em;
  cursor: help;
}

.apptimal-sbooe-a11y .apptimal-term-button:hover,
.apptimal-sbooe-a11y .apptimal-term-button[aria-expanded="true"] {
  color: #ffffff;
  background: #263446;
}

.apptimal-sbooe-a11y .apptimal-term-description {
  position: absolute;
  z-index: 10000;
  top: calc(100% + 0.4rem);
  left: 0;
  width: max-content;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  color: #ffffff;
  background: #17202b;
  border: 0.125rem solid #ffffff;
  border-radius: 0.25rem;
  box-shadow: 0 0.25rem 0.75rem rgb(0 0 0 / 35%);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
  pointer-events: none;
}

.apptimal-sbooe-a11y .apptimal-term-description.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
}

.apptimal-sbooe-a11y :where(input, select, textarea, button) {
  font: inherit;
}

.apptimal-sbooe-a11y
  :where(
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
    select,
    textarea
  ) {
  max-width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.65rem;
  line-height: 1.5;
}

.apptimal-sbooe-a11y textarea {
  width: 100%;
  min-height: 8rem;
  resize: vertical;
}

.apptimal-sbooe-a11y
  :where(
    button,
    input[type="button"],
    input[type="submit"],
    input[type="reset"],
    [role="button"]
  ) {
  min-height: 2.75rem;
}

.apptimal-sbooe-a11y img,
.apptimal-sbooe-a11y svg,
.apptimal-sbooe-a11y video,
.apptimal-sbooe-a11y canvas {
  max-width: 100%;
  height: auto;
}

.apptimal-sbooe-a11y iframe,
.apptimal-sbooe-a11y embed,
.apptimal-sbooe-a11y object {
  max-width: 100%;
}

.apptimal-sbooe-a11y iframe.cmplz-video,
.apptimal-sbooe-a11y iframe[src*="youtube"],
.apptimal-sbooe-a11y iframe[data-src-cmplz*="youtube"] {
  width: 100% !important;
  min-height: 12rem;
  height: auto !important;
  aspect-ratio: 16 / 9;
  padding-left: 0 !important;
}

.apptimal-sbooe-a11y .apptimal-table-scroll {
  max-width: 100%;
  margin-block: 1rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.apptimal-sbooe-a11y .apptimal-table-scroll > table {
  margin-block: 0;
}

.apptimal-sbooe-a11y .cmplz-cookiebanner,
.apptimal-sbooe-a11y .cmplz-manage-consent-container {
  max-width: calc(100vw - 1rem) !important;
  max-height: calc(100vh - 1rem) !important;
  overflow: auto !important;
}

.apptimal-sbooe-a11y :where(p, li, td, th, label, a) {
  overflow-wrap: break-word;
}

.apptimal-sbooe-a11y :where(h1, .page-header-main-title) {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
}

.apptimal-sbooe-a11y h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  line-height: 1.25;
}

.apptimal-sbooe-a11y h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  line-height: 1.3;
}

@media (max-width: 48rem) {
  .apptimal-sbooe-a11y .cmplz-cookiebanner {
    max-height: 45vh !important;
  }

  .apptimal-sbooe-a11y
    :where(
      #pe-main,
      #pe-header-in,
      #pe-logo-nav-in,
      #pe-content-part-in,
      #pe-footer-in,
      #pe-bottom-in,
      #pe-copyrights-in,
      .pe-container
    ) {
    width: 100% !important;
    max-width: 100% !important;
  }

  .apptimal-sbooe-a11y .pe-row,
  .apptimal-sbooe-a11y .row {
    max-width: 100%;
    margin-inline: 0;
  }

  .apptimal-sbooe-a11y
    :where(#pe-content, #pe-left, #pe-right, .pe-row > [class*="col-"]) {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    inset-inline: auto !important;
  }

  .apptimal-sbooe-a11y #pe-content-part {
    padding-inline: 0.75rem;
  }

  .apptimal-sbooe-a11y #pe-footer .row,
  .apptimal-sbooe-a11y #pe-bottom .row {
    display: block;
  }

  .apptimal-sbooe-a11y .apptimal-term-description {
    position: fixed;
    top: auto;
    right: 1rem !important;
    bottom: 1rem;
    left: 1rem !important;
    width: auto;
    max-width: none;
  }

  .apptimal-sbooe-a11y table {
    font-size: 0.9375rem;
  }
}

@media (max-width: 22.5rem) {
  .apptimal-sbooe-a11y #pe-content-part {
    padding-inline: 0.5rem;
  }

  .apptimal-sbooe-a11y
    :where(
      input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
      select,
      textarea
    ) {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apptimal-sbooe-a11y *,
  .apptimal-sbooe-a11y *::before,
  .apptimal-sbooe-a11y *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .apptimal-sbooe-a11y .skip-link,
  .apptimal-sbooe-a11y .apptimal-term-description,
  .apptimal-sbooe-a11y .apptimal-link-note {
    display: none !important;
  }
}
