/* cmsms stylesheet: ANTIRAS-Tastaturnavigation modified: Sonntag, 24. August 2025 01:07:00 */
/* ================================
   Accessibility-Basisset
   ================================ */

/* 1) Skip-Links (unsichtbar bis Tab-Fokus) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 1000;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5em 1em;
  background: #005ea0;
  color: #fff;
  border-radius: 4px;
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
  outline: none;
}

/* 2) Generelle Fokus-Stile für interaktive Elemente */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid #ffcc00 !important;
  outline-offset: 3px !important;
  background-color: rgba(255, 204, 0, 0.15) !important;
}

/* 3) Navigation hervorheben */
#main-menu a:focus,,
.footer-navigation a:focus {
  color: #fff !important;
  background-color: #0097f0 !important;
  text-decoration: underline !important;
}

/* 4) Logo-Link sichtbar machen */
.logo a:focus {
  outline: 3px solid #ffcc00 !important;
  outline-offset: 5px !important;
  border-radius: 4px;
}

/* 5) Buttons & Submit klar hervorheben */
button:focus,
input[type="submit"]:focus {
  background-color: #0097f0 !important;
  color: #fff !important;
  outline: 3px solid #ffcc00 !important;
  outline-offset: 3px !important;
}

/* 6) Formulareingaben kontrastreich darstellen */
input:focus,
textarea:focus,
select:focus {
  border: 2px solid #0097f0 !important;
  box-shadow: 0 0 5px #0097f0 !important;
}

/* 7) Screenreader-only Klasse (falls noch nicht vorhanden) */
.sr-only {
  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;
  border: 0 !important;
}
.sr-only:focus,
.sr-only:active {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
}
/* cmsms stylesheet: ANTIRAS-Kontrasterhoehung modified: Sonntag, 24. August 2025 01:07:24 */
/* Overlay über das Hintergrundbild legen */
#nav {
  position: relative;
}

#nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35); /* leichtes Schwarz-Overlay */
  z-index: 0;
}

/* Navigationstext hervorheben */
#nav ul,
#nav a {
  position: relative;
  z-index: 1;
  color: #fff !important; /* statt #ccc für maximalen Kontrast */
  text-shadow: 0 1px 2px rgba(0,0,0,0.8); /* sorgt für Lesbarkeit auf hellem Verlauf */
}
