/* ==========================================================================
   Anzeige-Hilfen (eigenes Barrierefreiheits-Menü)
   ========================================================================== */
.kbm { font-family: inherit; }

.kbm-toggle {
	position: fixed;
	z-index: 100004;
	left: 16px;
	bottom: 16px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	color: #009b8e;
	background: rgba(255, 255, 255, 0.82);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	backdrop-filter: blur(16px) saturate(160%);
	cursor: pointer;
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.kbm-toggle:hover,
.kbm-toggle[aria-expanded="true"] {
	color: #fff;
	background: #009b8e;
	box-shadow: 0 12px 30px rgba(0, 155, 142, 0.35);
}
.kbm-toggle:hover { transform: translateY(-2px); }
.kbm-toggle:focus-visible { outline: 3px solid rgba(0, 155, 142, 0.55); outline-offset: 3px; }
.kbm-toggle.is-aktiv::after {
	content: "";
	position: absolute;
	top: 1px;
	right: 1px;
	width: 10px;
	height: 10px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #009b8e;
}

/* nicht über Banner, Handy-Menü, Video oder Anfragefenster */
html.kcc-open .kbm-toggle,
html.kmn-open .kbm-toggle,
html.km-video-open .kbm-toggle,
html.ket-overlay-open .kbm-toggle {
	opacity: 0;
	pointer-events: none;
}

.kbm-panel {
	position: fixed;
	z-index: 100004;
	left: 16px;
	bottom: 68px;
	width: min(330px, calc(100vw - 32px));
	max-height: calc(100vh - 100px);
	max-height: calc(100dvh - 100px);
	overflow-y: auto;
	padding: 18px 18px 14px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 20px;
	color: #fff;
	background: rgba(14, 18, 18, 0.9);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
	-webkit-backdrop-filter: blur(22px) saturate(140%);
	backdrop-filter: blur(22px) saturate(140%);
	animation: kbm-in 0.25s ease both;
}
.kbm-panel[hidden] { display: none; }
@keyframes kbm-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.kbm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.kbm-head h2 { margin: 0; color: #fff; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.kbm-close {
	display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%;
	color: #fff; background: rgba(255, 255, 255, 0.06); cursor: pointer;
}
.kbm-close:hover { background: rgba(255, 255, 255, 0.14); }

.kbm-group {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	margin-bottom: 8px; padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; background: rgba(255, 255, 255, 0.05);
}
.kbm-label { font-size: 14px; font-weight: 700; }
.kbm-size { display: flex; align-items: center; gap: 8px; }
.kbm-size-val { min-width: 48px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.8); }
.kbm-step {
	min-width: 40px; height: 34px; padding: 0 10px;
	border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 30px;
	color: #fff; background: transparent; font-size: 14px; font-weight: 800; cursor: pointer;
}
.kbm-step:hover:not(:disabled) { border-color: #009b8e; background: rgba(0, 155, 142, 0.25); }
.kbm-step:disabled { opacity: 0.35; cursor: default; }

.kbm-opt {
	display: flex; align-items: center; gap: 12px; width: 100%;
	margin: 0 0 8px; padding: 11px 14px;
	border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px;
	color: #fff; background: rgba(255, 255, 255, 0.05);
	text-align: left; cursor: pointer; font: inherit;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
.kbm-opt:hover { background: rgba(255, 255, 255, 0.1); }
.kbm-opt[aria-pressed="true"] { border-color: rgba(0, 155, 142, 0.7); background: rgba(0, 155, 142, 0.18); }
.kbm-ico { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 10px; color: #4fd1c5; background: rgba(0, 155, 142, 0.16); }
.kbm-txt { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.kbm-txt strong { font-size: 14px; font-weight: 700; }
.kbm-txt small { font-size: 12px; color: rgba(255, 255, 255, 0.65); }
.kbm-switch {
	position: relative; flex: 0 0 36px; height: 20px; border-radius: 20px;
	background: rgba(255, 255, 255, 0.2); transition: background-color 0.2s ease;
}
.kbm-switch::after {
	content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
	border-radius: 50%; background: #fff; transition: transform 0.2s ease;
}
.kbm-opt[aria-pressed="true"] .kbm-switch { background: #009b8e; }
.kbm-opt[aria-pressed="true"] .kbm-switch::after { transform: translateX(16px); }

.kbm-panel button:focus-visible,
.kbm-panel a:focus-visible { outline: 3px solid rgba(79, 209, 197, 0.7); outline-offset: 2px; }

.kbm-foot {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	margin-top: 6px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 13px;
}
.kbm-reset {
	padding: 7px 14px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 30px;
	color: #fff; background: transparent; font: inherit; font-weight: 700; cursor: pointer;
}
.kbm-reset:hover { border-color: #009b8e; }
.kbm-foot a { color: #7fe3d8; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 680px) {
	.kbm-toggle { left: 12px; bottom: 12px; width: 38px; height: 38px; }
	.kbm-panel { left: 12px; bottom: 60px; width: calc(100vw - 24px); }
}

/* ---- Wirkung der Einstellungen ---------------------------------------- */

/* Schriftgröße (vergrößert wie der Browser-Zoom, ohne seitliches Scrollen) */
html.kbm-g1 body { zoom: 1.15; }
html.kbm-g2 body { zoom: 1.3; }
html.kbm-g3 body { zoom: 1.5; }
/* das Menü selbst bleibt immer gleich groß */
html.kbm-g1 .kbm { zoom: 0.8696; }
html.kbm-g2 .kbm { zoom: 0.7692; }
html.kbm-g3 .kbm { zoom: 0.6667; }

/* Hoher Kontrast */
html.kbm-kontrast main > section,
html.kbm-kontrast main > article,
html.kbm-kontrast main > header,
html.kbm-kontrast .kf {
	filter: contrast(1.3) saturate(1.1);
}
html.kbm-kontrast * { text-shadow: none !important; }
html.kbm-kontrast .km-hero-content,
html.kbm-kontrast .ket-overlay-panel,
html.kbm-kontrast .kcc-box,
html.kbm-kontrast .kbm-panel {
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
}
html.kbm-kontrast .km-hero-content,
html.kbm-kontrast .ket-overlay-panel,
html.kbm-kontrast .kbm-panel { background: #000 !important; border-color: #fff !important; }
html.kbm-kontrast .kcc-box { background: #fff !important; border: 2px solid #000 !important; }
html.kbm-kontrast #header-outer { background: #fff !important; border-bottom: 2px solid #000; }
html.kbm-kontrast :focus-visible { outline: 3px solid #ffbf00 !important; outline-offset: 2px !important; }

/* Links unterstreichen (Buttons ausgenommen) */
html.kbm-links a:not([class*="btn"]):not(.kh-logo):not(.kbm-toggle) {
	text-decoration: underline !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 3px !important;
}

/* Bewegung stoppen */
html.kbm-ruhe *,
html.kbm-ruhe *::before,
html.kbm-ruhe *::after {
	animation-duration: 0.001ms !important;
	animation-iteration-count: 1 !important;
	transition-duration: 0.001ms !important;
	scroll-behavior: auto !important;
}
html.kbm-ruhe { scroll-behavior: auto !important; }
