/* Accessibility helpers + pragmatic WCAG quick wins */

.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;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100000;
  padding: 0.75rem 1.25rem;
  background: #0653b6;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.2em;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible,
.slick-arrow:focus-visible,
.primary-button:focus-visible,
.car-search-link:focus-visible,
.contact-link:focus-visible {
  outline: 3px solid #0653b6 !important;
  outline-offset: 2px;
}

.slick-prev:focus,
.slick-next:focus,
.slick-arrow:focus {
  outline: 3px solid #0653b6;
  outline-offset: 2px;
}

/* Hero: .h1/.subtitle kommen aus style.less (gleiche Tokens wie h1/h2) – hier nichts überschreiben */

/*
 * Low-contrast auf Foto-Heroes (WAVE/axe „background image“):
 * Overlay wurde nach unten zu transparent → weiße Schrift/ Nav auf hellen Bildstellen.
 */
.small-hero-section .hero-slide .background:after,
.subpage-hero-section .hero-slide .background:after,
.home-hero-section .hero-slide .background:after {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.62) 42%,
    rgba(0, 0, 0, 0.48) 100%
  ) !important;
}

.small-hero-section .hero-slide .background.mobile:after,
.subpage-hero-section .hero-slide .background.mobile:after,
.home-hero-section .hero-slide .background.mobile:after {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(0, 0, 0, 0.42) 100%
  ) !important;
}

.small-hero-section .hero-slide h1,
.small-hero-section .hero-slide .h1,
.small-hero-section .hero-slide h2,
.small-hero-section .hero-slide .h2,
.small-hero-section .hero-slide .subtitle,
.subpage-hero-section .hero-slide h1,
.subpage-hero-section .hero-slide .h1,
.subpage-hero-section .hero-slide h2,
.subpage-hero-section .hero-slide .h2,
.subpage-hero-section .hero-slide .subtitle,
.home-hero-section .hero-slide h1,
.home-hero-section .hero-slide .h1,
.home-hero-section .hero-slide h2,
.home-hero-section .hero-slide .h2,
.home-hero-section .hero-slide .subtitle {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 2px 18px rgba(0, 0, 0, 0.45);
  font-weight: 400;
}

/* Nav-Schatten nur über dem Hero (weiße Schrift). Nach Scroll: weißer Header + dunkle Schrift → kein Shadow */
body:not(.scrolled) .page-header .navigation .desktop .menu > .menu-item > a .text {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

body.scrolled .page-header .navigation .desktop .menu > .menu-item > a .text {
  text-shadow: none;
}

/* Footer contrast: darken links on grey background (#E6E6E6) */
.footer-section .main-footer .menu-item a .text,
.footer-section .main-footer .menu-item a,
.footer-section .main-footer .a11y-footer-link a {
  color: #0b4fa8;
}

.footer-section .main-footer .menu-item a:hover .text,
.footer-section .main-footer .menu-item a:hover,
.footer-section .main-footer .a11y-footer-link a:hover {
  color: #0653b6;
  text-decoration: underline;
}

.footer-section .main-footer .a11y-footer-link {
  margin-top: 1.25em;
  margin-bottom: 0;
}

.footer-section .main-footer p.title,
.footer-section .main-footer .h5.title {
  font-size: var(--h4FontSize, 1.25rem);
  text-transform: uppercase;
  margin-bottom: 0.5em;
  font-weight: 600;
}

.global-ajax-form .form-row .column > label:not(.checkbox-label) {
  display: block;
  margin-bottom: 0.3em;
  font-weight: 500;
}

.privacy-link-underline,
.global-ajax-form .checkbox-label a {
  text-decoration: underline;
}

/* Footer social: klarer Tastaturfokus auf Icon-Links */
.footer-section .main-footer .social-nav a:focus-visible {
  outline: 3px solid #0653b6 !important;
  outline-offset: 3px;
}

/* Globaler Slider-Pause in der rechten Sidebar (Best Practice: ein sichtbarer Schalter für alle Autoplay-Inhalte) */
.sidebar-wrapper .side-nav .contacts button.contact-link.slider-pause-toggle {
  appearance: none;
  border: 0;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  background-color: var(--greyColor, #e6e6e6);
  display: flex;
  align-items: center;
  padding: 0.5em 1em;
  height: 3em;
  border-bottom: 1px solid var(--greyColor, #e6e6e6);
  margin-bottom: 0.2em;
}

.sidebar-wrapper .side-nav .contacts button.contact-link.slider-pause-toggle .text {
  line-height: 1;
  color: var(--darkGreyColor, #4d4d4d);
  font-weight: 700;
}

.sidebar-wrapper .side-nav .contacts button.contact-link.slider-pause-toggle:hover .text,
.sidebar-wrapper .side-nav .contacts button.contact-link.slider-pause-toggle:focus-visible .text {
  color: var(--primaryColor, #1c69d4);
}

.sidebar-wrapper .side-nav .contacts button.contact-link.slider-pause-toggle[aria-pressed="true"] .text {
  color: var(--primaryDark, #0653b6);
}

.sidebar-wrapper .slider-pause-icon svg {
  color: #fff;
}

.sidebar-wrapper .slider-pause-icon svg rect,
.sidebar-wrapper .slider-pause-icon svg path {
  fill: #fff;
}

.sidebar-wrapper .slider-pause-icon .slider-pause-icon__play {
  display: none;
}

.sidebar-wrapper .slider-pause-icon.is-paused .slider-pause-icon__pause {
  display: none;
}

.sidebar-wrapper .slider-pause-icon.is-paused .slider-pause-icon__play {
  display: block;
}

@media (max-width: 600px) {
  .sidebar-wrapper .side-nav .contacts button.contact-link.slider-pause-toggle {
    height: 2.5em;
  }
}
