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

:focus-visible {
	outline: 2px solid red;
}

@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;
	gap: 15px;
	bottom: 20px;
	right: 20px;
	text-align: center;
	cursor: pointer;
	z-index: 10000;
	user-select: none;
}

#accessibility-toggle img {
	background-color: var(--color2);
	width: 60px;
	height: 60px;
	padding: 10px;
	border-radius: 100px;
	box-sizing: border-box;
}

#accessibility-toggle span {
	color: #000;
	background-color: #fff;
	border: 2px solid;
	padding: 9px 15px;
	border-radius: 100px;
}

@media (width < 768px) {
	#accessibility-toggle span {
		display: none;
	}
}

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

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

#accessibility-toolbar button:not(.button-simple) {
	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.button-simple {
  font-size: 16px;
  background-color: transparent;
  border: 0 none;
  color: #fff;
  text-decoration: underline;
  margin-top: 10px;
  cursor: pointer;
}

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

#accessibility-toolbar button:not(.button-simple):focus {
	border-color: #051f23;
}

@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 *:not(#accessibility-toggle, .fas, .fab, .fa) {
	font-family: Arial, Helvetica, sans-serif !important;
}

/* Graustufe */

body.grayscale>*:not(#accessibility-toggle, header) {
	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;
}
