/* Scaliento Barrierefreiheit: menu in the style of the Scaliento Consent dialog (Schutzteam brand), plus the page effects.
   The page effects hang on classes at <html> (set by the head script) and never touch the menu itself (.stb-ui). */

@font-face {
	font-family: "STB Atkinson Hyperlegible";
	src: url("../fonts/atkinson-hyperlegible-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "STB Atkinson Hyperlegible";
	src: url("../fonts/atkinson-hyperlegible-700.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* ---------- Menu ---------- */

.stb-ui {
	--stb-navy: #131f64;
	--stb-navy-hover: #0c1548;
	--stb-accent: #f08119;
	--stb-surface: #ffffff;
	--stb-tint: #eaeef1;
	--stb-soft: #f3f5f8;
	--stb-text: #2b3150;
	--stb-muted: #5c6079;
	--stb-line: rgba(19, 31, 100, 0.08);
	--stb-radius: 24px;
	--stb-inner-radius: 16px;
	--stb-ease: cubic-bezier(0.22, 0.85, 0.28, 1);
	--stb-shadow: 0 2px 8px rgba(19, 31, 100, 0.06), 0 44px 88px -38px rgba(19, 31, 100, 0.45);
	font-family: "Nunito Sans", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--stb-text);
	letter-spacing: normal;
	word-spacing: normal;
	text-align: left;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}

.stb-ui *,
.stb-ui *::before,
.stb-ui *::after {
	box-sizing: inherit;
	font-family: inherit;
	letter-spacing: inherit;
	word-spacing: inherit;
}

.stb-ui svg {
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.stb-ui :focus-visible {
	outline: 3px solid var(--stb-accent);
	outline-offset: 2px;
}

/* Below the cookie dialog (2147483001) and its widget (2147482999). */
.stb-btn {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 2147482990;
	width: 56px;
	height: 56px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--stb-navy);
	color: #ffffff;
	box-shadow: 0 6px 18px -4px rgba(19, 31, 100, 0.5), 0 0 0 3px #ffffff;
	cursor: pointer;
	transition: background-color 0.25s var(--stb-ease);
}

.stb-btn:hover {
	background: var(--stb-navy-hover);
}

.stb-btn svg {
	width: 30px;
	height: 30px;
	stroke-width: 1.9;
}

.stb-panel {
	position: fixed;
	top: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 2147482991;
	width: min(392px, calc(100vw - 32px));
	display: flex;
	flex-direction: column;
	background: var(--stb-surface);
	border-radius: var(--stb-radius);
	box-shadow: var(--stb-shadow);
	overflow: hidden;
	transform: translateX(calc(100% + 32px));
	visibility: hidden;
	transition: transform 0.4s var(--stb-ease), visibility 0s linear 0.4s;
}

.stb-panel.is-open {
	transform: none;
	visibility: visible;
	transition: transform 0.4s var(--stb-ease), visibility 0s;
}

.stb-head {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 24px 24px 16px;
}

.stb-title {
	margin: 0;
	font-size: 21px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--stb-navy);
}

.stb-intro {
	margin: 6px 0 0;
	font-size: 14px;
	color: var(--stb-muted);
}

.stb-close {
	flex: none;
	width: 40px;
	height: 40px;
	margin: -4px -6px 0 auto;
	padding: 0;
	border: 0;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--stb-soft);
	color: var(--stb-navy);
	cursor: pointer;
	transition: background-color 0.25s var(--stb-ease);
}

.stb-close:hover {
	background: var(--stb-tint);
}

.stb-close svg {
	width: 18px;
	height: 18px;
	stroke-width: 2.2;
}

.stb-body {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 4px 24px 16px;
}

/* Every row as tall as the tallest tile, so all tiles share one size. */
.stb-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-auto-rows: 1fr;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.stb-grid > li {
	display: flex;
	margin: 0;
	padding: 0;
}

.stb-tile {
	width: 100%;
	height: 100%;
	min-height: 118px;
	margin: 0;
	padding: 16px 10px 12px;
	border: 1.5px solid transparent;
	border-radius: var(--stb-inner-radius);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--stb-soft);
	color: var(--stb-navy);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.25s var(--stb-ease), border-color 0.25s var(--stb-ease), color 0.25s var(--stb-ease);
}

.stb-tile:hover {
	background: var(--stb-tint);
	border-color: var(--stb-line);
}

.stb-tile svg {
	width: 28px;
	height: 28px;
	flex: none;
}

/* Empty lines take no space, so icon and label sit in the true centre of the tile. */
.stb-tile-state {
	display: block;
	margin-top: -4px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--stb-muted);
}

.stb-tile-state:empty,
.stb-dots:empty {
	display: none;
}

.stb-dots {
	display: flex;
	gap: 5px;
}

.stb-dots span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.22;
}

.stb-tile.is-on {
	background: var(--stb-navy);
	border-color: var(--stb-navy);
	color: #ffffff;
}

.stb-tile.is-on .stb-tile-state {
	color: rgba(255, 255, 255, 0.82);
}

.stb-dots span.is-on {
	opacity: 1;
}

.stb-foot {
	display: grid;
	gap: 6px;
	padding: 14px 24px 20px;
	border-top: 1px solid var(--stb-line);
}

.stb-reset {
	min-height: 48px;
	margin: 0;
	padding: 10px 18px;
	border: 1.5px solid var(--stb-navy);
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: transparent;
	color: var(--stb-navy);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.25s var(--stb-ease), color 0.25s var(--stb-ease);
}

.stb-reset:hover:not(:disabled) {
	background: var(--stb-navy);
	color: #ffffff;
}

.stb-reset:disabled {
	opacity: 0.4;
	cursor: default;
}

.stb-reset svg {
	width: 18px;
	height: 18px;
	stroke-width: 2;
}

.stb-hide {
	justify-self: center;
	margin: 0;
	padding: 6px 8px;
	border: 0;
	background: none;
	color: var(--stb-muted);
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.stb-hide:hover {
	color: var(--stb-navy);
}

.stb-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.stb-tip {
	position: fixed;
	z-index: 2147482992;
	max-width: 280px;
	padding: 8px 12px;
	border-radius: 10px;
	background: var(--stb-navy);
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	box-shadow: 0 8px 24px -8px rgba(19, 31, 100, 0.55);
	pointer-events: none;
}

.stb-alt {
	display: inline-block;
	margin: 2px 0;
	padding: 4px 10px;
	border: 1.5px dashed currentColor;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.35;
}

@media (max-width: 520px) {
	.stb-btn {
		right: 14px;
		bottom: 14px;
		width: 52px;
		height: 52px;
	}

	.stb-panel {
		top: 8px;
		right: 8px;
		bottom: 8px;
		width: calc(100vw - 16px);
	}

	.stb-head {
		padding: 20px 18px 12px;
	}

	.stb-body {
		padding: 4px 18px 12px;
	}

	.stb-foot {
		padding: 12px 18px 16px;
	}

	.stb-tile {
		min-height: 108px;
		font-size: 13.5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.stb-panel,
	.stb-panel.is-open {
		transition: none;
	}
}

/* ---------- Page effects ---------- */

/* Kontrast Dunkel/Invertiert and Sättigung share the filter on <html>; the root keeps fixed elements working. */
html.stb-filter {
	filter: var(--stb-fc, hue-rotate(0deg)) var(--stb-fs, saturate(1));
}

html.stb-contrast-1,
html.stb-contrast-3 {
	background-color: #ffffff;
}

html.stb-contrast-1 {
	--stb-fc: invert(1) hue-rotate(180deg);
}

/* Dunkel keeps photos, videos and the menu in their real colours. */
html.stb-contrast-1 :is(img, video, iframe, canvas, [style*="background-image"]),
html.stb-contrast-1 .stb-ui {
	filter: invert(1) hue-rotate(180deg);
}

html.stb-contrast-3 {
	--stb-fc: invert(1);
}

html.stb-contrast-3 .stb-ui {
	filter: invert(1);
}

/* The site header stays as it is: it is already navy on white text, and its white logo would vanish on white. */
html.stb-contrast-2 body,
html.stb-contrast-2 body *:not(.stb-ui, .stb-ui *, img, video, iframe, svg, svg *, header, header *, [role="banner"], [role="banner"] *, .l-header, .l-header *) {
	background-color: #ffffff !important;
	color: #000000 !important;
	border-color: #000000 !important;
	text-shadow: none !important;
	box-shadow: none !important;
}

html.stb-contrast-2 body a:not(.stb-ui *, header *, [role="banner"] *, .l-header *),
html.stb-contrast-2 body a:not(.stb-ui *, header *, [role="banner"] *, .l-header *) * {
	color: #0032a0 !important;
}

html.stb-saturation-1 {
	--stb-fs: saturate(0.5);
}

html.stb-saturation-2 {
	--stb-fs: saturate(2);
}

html.stb-saturation-3 {
	--stb-fs: grayscale(1);
}

html.stb-links body a:not(.stb-ui *) {
	text-decoration: underline !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 3px !important;
	outline: 2px solid currentColor !important;
	outline-offset: 2px !important;
}

/* WCAG 1.4.12 text spacing: letters 0.12em, words 0.16em. */
html.stb-spacing body *:not(.stb-ui, .stb-ui *) {
	letter-spacing: 0.12em !important;
	word-spacing: 0.16em !important;
}

html.stb-lineheight body :is(p, li, dd, dt, blockquote, td, th, label, h1, h2, h3, h4, h5, h6, a, span):not(.stb-ui *) {
	line-height: 1.8 !important;
}

html.stb-align body :is(p, li, dd, dt, blockquote, td, th, h1, h2, h3, h4, h5, h6, div, span):not(.stb-ui, .stb-ui *) {
	text-align: left !important;
}

html.stb-motion *,
html.stb-motion *::before,
html.stb-motion *::after {
	animation-duration: 0.001ms !important;
	animation-delay: 0s !important;
	animation-iteration-count: 1 !important;
	transition-duration: 0s !important;
	transition-delay: 0s !important;
	scroll-behavior: auto !important;
}

html.stb-images body :is(img, picture, video):not(.stb-ui *) {
	visibility: hidden !important;
}

html.stb-images body *:not(.stb-ui, .stb-ui *) {
	background-image: none !important;
}

/* Icon fonts keep their own family, otherwise symbols turn into letters. */
html.stb-font body *:not(.stb-ui, .stb-ui *, i, [class*="fa-"], [class*="icon"], [class*="Icon"], [class*="dashicons"]) {
	font-family: "STB Atkinson Hyperlegible", Verdana, Arial, sans-serif !important;
}

html.stb-cursor,
html.stb-cursor * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M8 4l30 19-13 3.5-6.5 13z' fill='%23000' stroke='%23fff' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 8 4, auto !important;
}

html.stb-cursor :is(a, button, [role="button"], label, summary, select),
html.stb-cursor :is(a, button, [role="button"], label, summary, select) * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M8 4l30 19-13 3.5-6.5 13z' fill='%23f08119' stroke='%23fff' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 8 4, pointer !important;
}
