/* 365art Barrierefreiheit – Bedienhilfe */

/* ---------- Knopf und Feld (gegen Theme-Stile abgeschirmt) ---------- */
#a365bf {
	--a365bf-farbe: #0E7C70;
	--a365bf-unten: 20px;
	--a365bf-gr: 56px;
	position: fixed;
	right: 20px;
	bottom: var(--a365bf-unten);
	z-index: 2147483000;
	font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: #1d2327;
}
#a365bf[data-position="links"] { right: auto; left: 20px; }
#a365bf[data-groesse="klein"] { --a365bf-gr: 46px; }
#a365bf[data-groesse="gross"] { --a365bf-gr: 66px; }
#a365bf, #a365bf * {
	box-sizing: border-box;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	letter-spacing: normal;
	word-spacing: normal;
	text-transform: none;
	text-shadow: none;
}
#a365bf button {
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	-webkit-tap-highlight-color: transparent;
}
#a365bf button:focus-visible, #a365bf a:focus-visible {
	outline: 3px solid #ffbf00;
	outline-offset: 3px;
}
#a365bf svg { display: block; flex: none; }

#a365bf .a365bf__knopf {
	position: relative;
	display: grid;
	place-items: center;
	width: var(--a365bf-gr);
	height: var(--a365bf-gr);
	border-radius: 50%;
	background: var(--a365bf-farbe);
	color: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
	transition: transform .15s ease;
}
#a365bf .a365bf__knopf:hover { transform: scale(1.06); }
#a365bf .a365bf__knopf svg { width: calc(var(--a365bf-gr) * .54); height: calc(var(--a365bf-gr) * .54); }
#a365bf.a365bf--aktiv .a365bf__knopf::after {
	content: "";
	position: absolute;
	top: 2px;
	right: 2px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #ffbf00;
	border: 2px solid #fff;
}

#a365bf .a365bf__panel {
	position: absolute;
	right: 0;
	bottom: calc(var(--a365bf-gr) + 12px);
	width: min(360px, calc(100vw - 32px));
	max-height: calc(100vh - var(--a365bf-unten) - var(--a365bf-gr) - 30px);
	overscroll-behavior: contain;
	overflow-y: auto;
	padding: 16px;
	background: #fff;
	color: #1d2327;
	border-radius: 16px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
	text-align: left;
}
#a365bf[data-position="links"] .a365bf__panel { right: auto; left: 0; }
#a365bf .a365bf__panel[hidden] { display: none; }

#a365bf .a365bf__kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
#a365bf .a365bf__titel { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.2; color: #1d2327; }
#a365bf .a365bf__zu {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #f0f0f1;
	color: #1d2327;
}
#a365bf .a365bf__zu:hover { background: #dcdcde; }
#a365bf .a365bf__zu svg { width: 20px; height: 20px; }

#a365bf .a365bf__label {
	margin: 4px 0 8px;
	font-size: 14px;
	font-weight: 700;
	color: #50575e;
}
#a365bf .a365bf__stufen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
#a365bf .a365bf__label { margin-top: 14px; }
#a365bf .a365bf__haupt > .a365bf__label:first-child { margin-top: 4px; }
#a365bf .a365bf__haupt[hidden], #a365bf .a365bf__struktur[hidden], #a365bf button[hidden] { display: none !important; }
#a365bf .a365bf__profile { display: flex; flex-wrap: wrap; gap: 6px; }
#a365bf .a365bf__profile button {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 6px 12px;
	border: 2px solid #dcdcde;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
	background: #fff;
}
#a365bf .a365bf__profile button:hover { border-color: var(--a365bf-farbe); }
#a365bf .a365bf__weiter {
	display: flex !important;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 48px;
	margin-top: 14px;
	padding: 8px 12px;
	border: 2px solid #dcdcde;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
	background: #fff;
}
#a365bf .a365bf__weiter:hover { border-color: var(--a365bf-farbe); }
#a365bf .a365bf__zurueck { margin-top: 0; }
#a365bf .a365bf__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
#a365bf .a365bf__liste button {
	display: block;
	width: 100%;
	min-height: 44px;
	padding: 10px;
	border-radius: 8px;
	font-size: 15px;
	line-height: 1.35;
	color: #1d2327;
	text-decoration: underline;
	text-underline-offset: 3px;
}
#a365bf .a365bf__liste button:hover { background: #f0f0f1; }
#a365bf .a365bf__liste button[data-ebene="1"] { font-weight: 700; }
#a365bf .a365bf__leer { padding: 6px 10px; font-size: 14px; color: #50575e; }
#a365bf .a365bf__stufen button {
	display: grid;
	place-items: center;
	min-height: 46px;
	border: 2px solid #dcdcde;
	border-radius: 10px;
	font-weight: 700;
	font-size: 16px;
	color: #1d2327;
	background: #fff;
}
#a365bf .a365bf__stufen button[data-schrift="1"] { font-size: 19px; }
#a365bf .a365bf__stufen button[data-schrift="2"] { font-size: 22px; }

#a365bf .a365bf__schalter { display: grid; gap: 6px; }
#a365bf .a365bf__schalter button {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 8px 12px;
	border: 2px solid #dcdcde;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
	background: #fff;
}
#a365bf .a365bf__schalter button span { flex: 1; }
#a365bf .a365bf__schalter button::after {
	content: "Aus";
	font-size: 13px;
	font-weight: 700;
	color: #50575e;
}
#a365bf .a365bf__schalter button[aria-pressed="true"]::after { content: "An"; color: #fff; }
#a365bf .a365bf__stufen button:hover,
#a365bf .a365bf__schalter button:hover { border-color: var(--a365bf-farbe); }
#a365bf button[aria-pressed="true"] {
	border-color: var(--a365bf-farbe);
	background: var(--a365bf-farbe);
	color: #fff;
}

#a365bf .a365bf__zuruecksetzen {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	margin-top: 12px;
	border-radius: 10px;
	background: #f0f0f1;
	font-weight: 600;
	color: #1d2327;
}
#a365bf .a365bf__zuruecksetzen:hover { background: #dcdcde; }
#a365bf .a365bf__hinweis { margin: 10px 0 0; font-size: 13px; color: #50575e; }
#a365bf .a365bf__fuss {
	display: grid;
	gap: 4px;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid #dcdcde;
	font-size: 15px;
}
#a365bf .a365bf__fuss a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 6px 0;
	color: #1d2327 !important;
	background: none !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}
#a365bf .a365bf__sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
}
@media (max-width: 480px) {
	#a365bf { right: 12px; --a365bf-gr: 50px; }
	#a365bf[data-groesse="gross"] { --a365bf-gr: 58px; }
	#a365bf[data-position="links"] { left: 12px; }
	#a365bf[data-mobil="aus"] { display: none !important; }
}
@media print { #a365bf { display: none !important; } }

/* ---------- Hoher Kontrast ---------- */
html.a365bf-kontrast { background: #000 !important; }
html.a365bf-kontrast body,
html.a365bf-kontrast body :where(*:not(.a365bf):not(.a365bf *):not(img):not(svg):not(svg *):not(video):not(picture):not(iframe):not(canvas)) {
	background-color: #000 !important;
	background-image: none !important;
	color: #fff !important;
	border-color: #fff !important;
	text-shadow: none !important;
	box-shadow: none !important;
}
html.a365bf-kontrast body a:not(.a365bf *),
html.a365bf-kontrast body a:not(.a365bf *) *:not(svg):not(svg *) {
	color: #ffeb3b !important;
}
html.a365bf-kontrast body :is(button, input, select, textarea):not(.a365bf *) {
	border: 2px solid #fff !important;
}

/* ---------- Links hervorheben ---------- */
html.a365bf-links body a:not(.a365bf *) {
	text-decoration: underline !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 3px !important;
	background-color: #ffeb3b !important;
	color: #000 !important;
	outline: 2px solid #000 !important;
	outline-offset: 1px !important;
}
html.a365bf-links body a:not(.a365bf *) *:not(svg):not(svg *) {
	color: #000 !important;
}

/* ---------- Gut lesbare Schrift (Symbolschriften ausgenommen) ---------- */
html.a365bf-lesbar body *:not(.a365bf):not(.a365bf *):not(i):not([class*="icon"]):not([class*="fa-"]):not([class^="fa"]):not(svg):not(svg *) {
	font-family: Verdana, Tahoma, "Segoe UI", Arial, sans-serif !important;
	letter-spacing: .03em !important;
	word-spacing: .1em !important;
}
html.a365bf-lesbar body :is(p, li, dd, td, blockquote):not(.a365bf *) {
	line-height: 1.7 !important;
}

/* ---------- Animationen stoppen ---------- */
html.a365bf-ruhig *,
html.a365bf-ruhig *::before,
html.a365bf-ruhig *::after {
	animation-duration: .001s !important;
	animation-delay: 0s !important;
	animation-iteration-count: 1 !important;
	transition-duration: .001s !important;
	transition-delay: 0s !important;
	scroll-behavior: auto !important;
}
html.a365bf-ruhig .elementor-motion-effects-element,
html.a365bf-ruhig .elementor-motion-effects-layer,
html.a365bf-ruhig [data-sm-auf] {
	opacity: 1 !important;
	transform: none !important;
	translate: none !important;
}
html.a365bf-ruhig .elementor-invisible {
	visibility: visible !important;
	opacity: 1 !important;
}

/* ---------- Großer Mauszeiger ---------- */
html.a365bf-zeiger,
html.a365bf-zeiger * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 8.4-6.4 1.7L9.4 19z' fill='%23000' stroke='%23fff' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") 8 4, auto !important;
}

/* ---------- Heller Kontrast (0.2.0): schwarz auf weiß ---------- */
html.a365bf-hell { background: #fff !important; }
html.a365bf-hell body,
html.a365bf-hell body :where(*:not(.a365bf):not(.a365bf *):not(img):not(svg):not(svg *):not(video):not(picture):not(iframe):not(canvas)) {
	background-color: #fff !important;
	background-image: none !important;
	color: #000 !important;
	border-color: #000 !important;
	text-shadow: none !important;
	box-shadow: none !important;
}
html.a365bf-hell body a:not(.a365bf *),
html.a365bf-hell body a:not(.a365bf *) *:not(svg):not(svg *) {
	color: #0000c8 !important;
	text-decoration: underline !important;
}
html.a365bf-hell body :is(button, input, select, textarea):not(.a365bf *) {
	border: 2px solid #000 !important;
}

/* ---------- Graustufen (Filter am <html> verschiebt keine fest positionierten Elemente) ---------- */
html.a365bf-grau { filter: grayscale(1); }

/* ---------- Mehr Abstand im Text (Werte aus WCAG 1.4.12) ---------- */
html.a365bf-abstand body :is(p, li, dd, dt, td, th, blockquote, figcaption, span, a, h1, h2, h3, h4, h5, h6):not(.a365bf *) {
	line-height: 1.8 !important;
	letter-spacing: .12em !important;
	word-spacing: .16em !important;
}
html.a365bf-abstand body :is(p, li, blockquote):not(.a365bf *) { margin-bottom: 1.5em !important; }

/* ---------- Text linksbündig (Blocksatz und Zentrierung sind für viele schwer lesbar) ---------- */
html.a365bf-ausrichten body :is(p, li, dd, td, th, blockquote, figcaption, h1, h2, h3, h4, h5, h6, .elementor-widget-container):not(.a365bf *) {
	text-align: left !important;
}

/* ---------- Überschriften hervorheben ---------- */
html.a365bf-titel body :is(h1, h2, h3, h4, h5, h6):not(.a365bf *) {
	outline: 3px solid var(--a365bf-titel, #0E7C70) !important;
	outline-offset: 4px !important;
	background-color: #fff8c5 !important;
	color: #000 !important;
}
html.a365bf-titel body :is(h1, h2, h3, h4, h5, h6):not(.a365bf *) * { color: #000 !important; }

/* ---------- Bilder ausblenden (Bildbeschreibungen bleiben für Bildschirmleser erhalten) ---------- */
html.a365bf-bilder body :is(img, picture, video, figure svg:not([aria-hidden="true"])):not(.a365bf *) { opacity: 0 !important; }
html.a365bf-bilder body *:not(.a365bf):not(.a365bf *) { background-image: none !important; }

/* ---------- Fokus hervorheben ---------- */
html.a365bf-fokus body :focus:not(.a365bf *) {
	outline: 4px solid #ffbf00 !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 3px #000 !important;
}

/* ---------- Leselineal ---------- */
.a365bf-lineal-teil {   /* nicht .a365bf-lineal: so heißt die Schalter-Klasse am <html> */
	position: fixed;
	left: 0;
	right: 0;
	z-index: 2147482990;
	background: rgba(0, 0, 0, .55);
	pointer-events: none;
}
.a365bf-lineal-teil--oben { top: 0; height: 0; }
.a365bf-lineal-teil--unten { top: 100vh; bottom: 0; }
@media print { .a365bf-lineal-teil { display: none !important; } }

/* ---------- Vorlesen: der gerade gelesene Absatz ---------- */
html.a365bf-vorlesen body :is(p, li, h1, h2, h3, h4, h5, h6, td, th, dd, dt, blockquote, figcaption):not(.a365bf *) { cursor: pointer; }
.a365bf-liest { outline: 3px solid #ffbf00 !important; outline-offset: 3px !important; background-color: #fff8c5 !important; color: #000 !important; }
