:root {
  --color1: #38909B;
  --color1-dark: #134d55;
  --color2: #FF0091;
}

@media (prefers-contrast: more) {
	body {
		--color-background: #000;
		--color-text: #fff;
		--color-accent: #ff0;
	}
}

body.high-contrast-light {
	--color-background: #fff;
	--color-text: #000;
	--color-accent: #0000FF;
	--e-global-color-accent: var(--color-accent);
}

body.high-contrast-dark {
	--color-background: #000;
	--color-text: #fff;
	--color-accent: #ff0;
	--e-global-color-accent: var(--color-accent);
}
  
#accessibility-toggle {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: 10px;
  right: 10px;
  background: var(--color2);
  width: 60px;
  height: 60px;
  text-align: center;
  border-radius: 100px;
  cursor: pointer;
  z-index: 10000;
  user-select: none;
}

#accessibility-toggle img {
    width: 35px;
}

#accessibility-toolbar {
  position: fixed;
  bottom: 80px;
  right: 10px;
  background: var(--color1);
  padding: 20px;
  border: 2px solid var(--color1-dark);
  border-radius: 20px;
  z-index: 9999;
}

#accessibility-toolbar[hidden] {
  display: none !important;
}

#accessibility-toolbar button {
  font-size: 18px;
  font-weight: 600;
  color: var(--color1-dark);
  display: block;
  margin: 5px 0;
  padding: 10px;
  background-color: #fff;
  border-radius: 100px;
  border: 2px solid var(--color1-dark);
  width: 100%;
  cursor: pointer;
}

#accessibility-toolbar button:hover,
#accessibility-toolbar button.active,
#accessibility-toolbar button:active {
    background-color: #134d55;
    border-color: #134d55;
    color: #fff;
}

#accessibility-toolbar button:focus {
  outline: 1px solid red;
  border-color: red;
}

@media (prefers-contrast: more) {
	body {
	  --e-global-color-accent: var(--color-accent) !important;
	  background-color: var(--color-background) !important;
	  color: var(--color-text) !important;
	}
	body a {
	  color: var(--color-accent) !important;
	}
}

/*  Hoher Kontrast DUNKEL */

body.high-contrast-dark {
	background-color: var(--color-background) !important;
	color: var(--color-text) !important;
}
body.high-contrast-dark > *:not(a, #accessibility-toggle) {
  color: var(--color-text) !important;
}
body.high-contrast-dark > *:not(#accessibility-toggle) a {
  color: var(--color-accent) !important;
}

/* Hoher Kontrast HELL */

body.high-contrast-light {
	background-color: var(--color-background) !important;
	color: var(--color-text) !important;
}
body.high-contrast-light > *:not(a, #accessibility-toggle) {
  color: var(--color-text) !important;
}
body.high-contrast-light > *:not(#accessibility-toggle) a {
  color: var(--color-accent) !important;
}

/* Skalierbare Schrift */

body.font-scaled {
  font-size: 1.5em !important;
}

/* Lesbare Schrift */

body.readable-font {
  font-family: Arial, Helvetica, sans-serif !important;
}

/* Graustufe */

body.grayscale > *:not(#accessibility-toggle) {
  filter: grayscale(100%) !important;
}

/* Links hervorheben */

body.highlight-links a {
  outline: 3px solid red;
}

/* Bilder ausblenden */

body.hide-images > *:not(#accessibility-toggle) img {
  display: none !important;
}

/* Seitenstruktur */

#page-structure-panel {
  position: fixed;
  top: 20px;
  left: 20px;
  background: var(--color1);
  padding: 20px;
  border: 2px solid var(--color1-dark);
  border-radius: 20px;
  max-height: 80vh;
  overflow-y: auto;
  width: 100%;
	max-width: 400px;
  z-index: 10000;
  font-size: 16px;
}

#page-structure-panel ul {
  list-style: none;
  padding-left: 0;
}

#page-structure-panel li {
  margin-bottom: 5px;
}

a.heading-link {
  color: #fff;
  text-decoration: none;
}

a.heading-link:hover {
	color: #fff;
  text-decoration: underline;
}

.heading-link.level-h1 { font-weight: bold; }
.heading-link.level-h2 { padding-left: 10px; }
.heading-link.level-h3 { padding-left: 20px; }
.heading-link.level-h4 { padding-left: 30px; }
.heading-link.level-h5 { padding-left: 40px; }
.heading-link.level-h6 { padding-left: 50px; }

body.high-contrast-dark #page-structure-panel,
body.high-contrast-light #page-structure-panel {
  background: var(--color-background);
  border-color: var(--color-accent);
}

/* Animationen ausschalten */

.disable-animations *,
.disable-animations *::before,
.disable-animations *::after {
  transition: none !important;
  animation: none !important;
  scroll-behavior: auto !important;
}

.disable-animations .elementor-invisible,
.disable-animations [class*="elementor-animation"] {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
