@media (forced-colors: active) {
  body {
    background: Window !important;
    color: WindowText !important;
    forced-color-adjust: none; /* Verhindert automatische Farbanpassung */
  }

  a {
    color: LinkText !important;
  }

  .button, input[type="submit"] {
    background-color: Highlight !important;
    color: HighlightText !important;
    border: 2px solid ButtonText !important;
  }

  img {
    forced-color-adjust: auto; /* Damit Bilder nicht invertiert werden */
  }
#top .av-main-nav ul a {background: #000 !important }

.kariert {background: #1a1a1a !important } 

h1,
.iconbox .iconbox_icon,
h3, h3.iconbox_content_title,
.avia_textblock h2 {color: yellow !important }

.mark {
  background: #1a1a1a !important;
  box-shadow: none !important;
color: yellow !important
}

}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #111 !important;
    color: #eee !important;
  }

  a {
    color: #66ccff !important;
  }

  header, footer, .main_color, .container_wrap {
    background-color: #1a1a1a !important;
    color: #fff !important;
  }

  .button, input[type="submit"], .avia-button {
    background-color: #444 !important;
    color: #fff !important;
    border-color: #666 !important;
  }

  /* weitere spezifische Anwendungsbereiche */
  #main .flex_cell,
  #main .flex_column {
    background-color: #1a1a1a !important
  } 
  #top.wp-theme-enfold #header .av-main-nav > li > a,
  #top.page #header_meta,
  #header_main .av-hamburger,
  #header_main #av-burger-menu-ul,
  #header_main #av-burger-menu-ul li a{
    background-color: #1a1a1a !important
  }
  #top .widgettitle,
  #top.wp-theme-enfold .avia-menu-text,
  #main a,
  #main strong,
  #header_meta .menu-item a,
  #main .post-title.entry-title,
  #main .av-special-heading-tag,
  #header_main .av-submenu-indicator,
  #header_main #av-burger-menu-ul li a .avia-menu-text {
    color: yellow !important
  }

 .header_color #header_main .av-hamburger-box .av-hamburger-inner,
 .header_color #header_main .av-hamburger-inner::before,
 .header_color #header_main .av-hamburger-inner::after {
    background-color: yellow !important
  }
  #top.wp-theme-enfold #header_main_alternate {
    background-color: #1a1a1a !important;
    border-bottom: 1px solid yellow !important;
    }
#top .av-main-nav ul a {background: #000 !important }

.kariert {background: #1a1a1a !important } 

h1,
.iconbox .iconbox_icon,
h3, h3.iconbox_content_title,
.avia_textblock h2 {color: yellow !important }

.mark {
  background: #1a1a1a !important;
  box-shadow: none !important;
color: yellow !important
}


}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


