/*
 * Accessibility helpers. Loaded by the Code Snippet "Barrierefreiheit (Menü, Nach-oben-Link, Formular-Labels)".
 */

/* Visually hidden but read by screen readers (contact form labels). */
.cp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link (created in js/a11y.js): hidden until it receives keyboard focus. */
.cp-skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100000;
  padding: 12px 16px;
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  transform: translateY(-200%);
}

.cp-skip-link:focus {
  transform: none;
}

/* The jump target gets tabindex="-1" only to receive focus; no outline around a whole section. */
[data-cp-skip-target]:focus {
  outline: none;
}

/*
 * The menu toggle is focusable now (js/a11y.js). White ring plus dark outer ring stays visible
 * on the light header and on the dark full-screen menu.
 */
.oxy-menu-toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #13567e;
}

/* Buttons: the browser's default ring was white on blue/orange and practically invisible. */
.cta_main:focus-visible,
.ct-link-text:focus-visible,
.wpcf7-submit:focus-visible {
  outline: 3px solid #13567e;
  outline-offset: 3px;
}

/* tel:/mailto: links in addresses keep the look of the surrounding text. */
.cp-contact-link {
  color: inherit;
  text-decoration: none;
}

.cp-contact-link:hover,
.cp-contact-link:focus-visible {
  text-decoration: underline;
}

/* Oxygen's scroll animations (AOS) ignore the system setting "reduce motion". */
@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
