/* =========================================================
   Barrierefreiheit – global additions (loaded last in head.inc.php)
   Contrast-safe blues on white: #1272bb (links/text), #1E5799 (dark)
   ========================================================= */

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100001; /* above preloader and navigation */
  padding: 12px 18px;
  background: #1E5799;
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus {
  top: 0;
  color: #fff;
  outline: 3px solid #fff;
  outline-offset: -6px;
}

/* Skip-link target is focused by script only */
#inhalt:focus { outline: none; }

/* ---------- Visible keyboard focus ---------- */
:focus-visible {
  outline: 3px solid #1E5799;
  outline-offset: 2px;
}
/* on blue backgrounds */
.navbar :focus-visible,
.navbar-toggler:focus-visible,
footer :focus-visible,
.va-hero :focus-visible,
.skip-link:focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 2px;
}
.navbar .dropdown-menu :focus-visible {
  outline-color: #1E5799 !important;
  outline-offset: -3px;
}

/* ---------- Links in running text: not by colour alone ---------- */
main :is(p, li, dd, td, blockquote) a:not([class*="btn"]):not([class*="card"]):not(.jb-teaser):not(.wow):not(.hueh-coop__logo-link) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
main :is(p, li, dd, td, blockquote) a:not([class*="btn"]):not([class*="card"]):not(.jb-teaser):not(.wow):not(.hueh-coop__logo-link):hover {
  text-decoration-thickness: 2px;
}
main a:not([class]) { color: #1272bb; }
main a:not([class]):hover { color: #1E5799; }

/* ---------- Footer: "Cookie-Einstellungen" is a button that looks like the links next to it ---------- */
.ft-legal__btn {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: #fff;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.ft-legal__btn:hover { text-decoration: underline; }
@media (max-width: 767.98px) {
  .ft-legal__btn { display: inline-block; padding: 6px 2px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Heading levels fixed for screen readers, look like h1 / h3 (see typography.css) ---------- */
.as-h1 {
  color: #168BE5;
  font-size: clamp(1.9rem, 1.35rem + 1.6vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-shadow: none;
  text-wrap: balance;
  margin: 2.25rem 0 1.25rem;
}
.as-h3 {
  color: #1E5799;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 1.9rem 0 .5rem;
}
@media (max-width: 575.98px) {
  .as-h1 {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    font-size: 1.75rem;
    margin-top: 1.5rem;
  }
}
