/*
 * Copyright Stefan Ennemoser, web-crossing GmbH
 *
 * Barrierefreiheit (A-030): Ergaenzungen, die das Erscheinungsbild nicht veraendern. Wird als letzte Datei geladen,
 * weil main2021.scss mit "*:focus{outline:none !important}" jede Fokusanzeige abschaltet (WCAG 2.4.7).
 */

/* Nur fuer Screenreader: Ersatz-h1, Beschriftungen */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Sprunglink zum Inhalt: unsichtbar, bis er per Tastatur den Fokus bekommt */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.5em 1em;
  background: #fff;
  color: #000;
  font-weight: bold;
}
.skip-link:focus {
  left: 1em;
  top: 1em;
}

/* Menueschalter ist jetzt ein button: Browser-Stile entfernen, damit er wie das fruehere div aussieht */
button.toggleMenu {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  line-height: inherit;
  text-align: inherit;
  background-color: transparent;
}

/* Sichtbarer Tastaturfokus; :focus-visible greift nicht bei Mausklicks, das gewohnte Bild bleibt */
:focus-visible {
  outline: 3px solid #000 !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #fff !important;
}
