/**
 * LHHH Sprach-Umschalter 5.1.5
 * Erbt Schrift und Größe vom Avada-Header.
 *
 * Ein einzelner Link, optisch als Schalter mit zwei dauerhaft sichtbaren
 * Beschriftungen. Der Aktivzustand kommt vom Server (data-aktiv), es ist
 * kein JavaScript beteiligt.
 */
.lhhh-sprache {
	display: inline-flex;
	align-items: center;
	gap: 0.38rem;
	min-height: 44px;
	padding: 0.15rem 0.2rem;
	border-radius: 4px;
	color: inherit;
	font-size: 18px;
	line-height: 1.15;
	text-decoration: none;
}

.lhhh-sprache:hover,
.lhhh-sprache:hover .lhhh-sprache-label {
	text-decoration: none !important;
}

.lhhh-sprache:focus-visible {
	outline: 3px solid #1a1a1a;
	outline-offset: 2px;
}

.lhhh-sprache-label {
	font-weight: 500;
	color: #4a4a4a;
	line-height: 1.15;
	white-space: nowrap;
}

.lhhh-sprache-label--leicht {
	display: inline-flex;
	align-items: center;
	gap: 0.22rem;
}

/* Aktive Sprache: kräftiger und in der Markenfarbe, nicht nur per Farbe unterschieden. */
.lhhh-sprache[data-aktiv="schwer"] .lhhh-sprache-label--schwer,
.lhhh-sprache[data-aktiv="leicht"] .lhhh-sprache-label--leicht {
	color: #8B1874;
	font-weight: 700;
}

.lhhh-sprache-icon {
	width: 1.05em;
	height: 1.05em;
	flex-shrink: 0;
	fill: currentColor;
}

/* Der sichtbare Schalter ist bewusst kompakter; die umgebende Linkfläche
   bleibt mit mindestens 44 px Höhe gut per Touch bedienbar. */
.lhhh-sprache-switch {
	position: relative;
	width: 44px;
	height: 24px;
	flex-shrink: 0;
	border-radius: 12px;
	background: #8B1874;
}

.lhhh-sprache-knopf {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
	transition: transform 0.15s ease;
}

.lhhh-sprache[data-aktiv="leicht"] .lhhh-sprache-knopf {
	transform: translateX(20px);
}

.lhhh-sprache-hinweis {
	display: block;
	flex-basis: 100%;
	margin-top: 0.35em;
	color: #1a1a1a;
}

/* Tablet / schmale Header: etwas kompakter. */
@media (max-width: 900px) {
	.lhhh-sprache {
		gap: 0.3rem;
		font-size: 16px;
	}

	.lhhh-sprache-switch {
		width: 40px;
		height: 22px;
		border-radius: 11px;
	}

	.lhhh-sprache-knopf {
		top: 3px;
		left: 3px;
		width: 16px;
		height: 16px;
	}

	.lhhh-sprache[data-aktiv="leicht"] .lhhh-sprache-knopf {
		transform: translateX(18px);
	}
}

/* Smartphone: optisch klein wie im Referenzbeispiel, Klickfläche bleibt 44 px. */
@media (max-width: 600px) {
	.lhhh-sprache {
		gap: 0.25rem;
		min-height: 44px;
		padding: 0.1rem 0;
		font-size: 14px;
	}

	.lhhh-sprache-label--leicht {
		gap: 0.15rem;
	}

	.lhhh-sprache-icon {
		width: 1em;
		height: 1em;
	}

	.lhhh-sprache-switch {
		width: 36px;
		height: 20px;
		border-radius: 10px;
	}

	.lhhh-sprache-knopf {
		top: 3px;
		left: 3px;
		width: 14px;
		height: 14px;
	}

	.lhhh-sprache[data-aktiv="leicht"] .lhhh-sprache-knopf {
		transform: translateX(16px);
	}
}

@media (max-width: 380px) {
	.lhhh-sprache {
		font-size: 13px;
		gap: 0.2rem;
	}
}

@media print {
	.lhhh-sprache,
	.lhhh-sprache-hinweis {
		display: none !important;
	}
}


/* Kompakter Hinweis im Seiteninhalt, wenn Leichte Sprache gewählt ist,
   für die aktuelle Seite aber noch keine veröffentlichte LS-Version existiert. */
.lhhh-sprache-hinweisbox {
	box-sizing: border-box;
	display: block;
	width: min(calc(100% - 32px), var(--site_width, 1200px));
	margin: 1rem auto 1.25rem;
	padding: 0.55rem 1rem 0.5rem;
	border: 1px solid #d8b5cf;
	border-left: 5px solid #8B1874;
	border-radius: 7px;
	background: #fbf7fa;
	color: #1a1a1a;
	font: inherit;
	font-size: 18px;
	line-height: 1.35;
}

.lhhh-sprache-hinweisbox-text {
	min-width: 0;
}

.lhhh-sprache-hinweisbox p {
	margin: 0;
}

.lhhh-sprache-hinweisbox-titel {
	font-weight: 700;
}

.lhhh-sprache-hinweisbox-erklaerung {
	margin-top: 0.1rem !important;
}

.lhhh-sprache-hinweisbox-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.45rem 0.8rem;
	border: 2px solid #8B1874;
	border-radius: 6px;
	background: #ffffff;
	color: #8B1874 !important;
	font: inherit;
	font-size: 0.94em;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: underline !important;
	text-underline-offset: 0.13em;
	margin-top: 0.4rem;
}

.lhhh-sprache-hinweisbox-link:hover {
	background: #8B1874;
	color: #ffffff !important;
}

.lhhh-sprache-hinweisbox-link:focus-visible {
	outline: 3px solid #1a1a1a;
	outline-offset: 3px;
}

@media (max-width: 900px) {
	.lhhh-sprache-hinweisbox {
		font-size: 16px;
	}
}

@media (max-width: 600px) {
	.lhhh-sprache-hinweisbox {
		width: calc(100% - 24px);
		margin-top: 0.75rem;
		padding: 0.55rem 0.8rem 0.5rem;
		font-size: 14px;
	}

	.lhhh-sprache-hinweisbox-link {
		box-sizing: border-box;
		font-size: 1rem;
	}
}

@media print {
	.lhhh-sprache-hinweisbox {
		display: none !important;
	}
}

/* =====================================================================
 * Einstiegsdialog zur Sprachwahl
 * ===================================================================== */
html.lhhh-sprachdialog-offen,
html.lhhh-sprachdialog-offen body {
	overflow: hidden;
}

.lhhh-sprachdialog-overlay[hidden] {
	display: none !important;
}

.lhhh-sprachdialog-overlay {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	background: rgba(0, 0, 0, 0.62);
}

.lhhh-sprachdialog {
	position: relative;
	width: min(100%, 490px);
	padding: 2.4rem 3rem 2rem;
	border-radius: 9px;
	background: #ffffff;
	color: #202020;
	box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
	font: inherit;
}

.lhhh-sprachdialog-heading {
	display: flex;
	align-items: center;
	gap: 0.8rem;
}

.lhhh-sprachdialog-heading h2 {
	margin: 0;
	font-size: clamp(1.55rem, 4vw, 2rem);
	line-height: 1.2;
	font-weight: 500;
}


.lhhh-sprachdialog > p {
	margin: 1.15rem 0 1.6rem;
	font-size: 1.1rem;
}

.lhhh-sprachdialog-options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.9rem;
}

.lhhh-sprachdialog-option {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 68px;
	padding: 0.8rem 1rem;
	border: 3px solid #087dc1;
	border-radius: 9px;
	background: #ffffff;
	color: #075c8d !important;
	font-size: 1.12rem;
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
	text-decoration: none !important;
}

.lhhh-sprachdialog-option:hover {
	background: #eef7fc;
	border-color: #066ba5;
	color: #064f79 !important;
}

.lhhh-sprachdialog-option:focus-visible,
.lhhh-sprachdialog-close:focus-visible,
.lhhh-sprachdialog-skip:focus-visible {
	outline: 3px dashed #d92222;
	outline-offset: 4px;
}

.lhhh-sprachdialog-option--leicht {
	gap: 0.6rem;
	border-color: #087dc1;
	background: #087dc1;
	color: #ffffff !important;
}

.lhhh-sprachdialog-option--leicht:hover {
	background: #066ba5;
	border-color: #066ba5;
	color: #ffffff !important;
}

.lhhh-sprachdialog-lsicon {
	width: 1.35em;
	height: 1.35em;
	fill: currentColor;
	flex: 0 0 auto;
}

.lhhh-sprachdialog-close {
	position: absolute;
	top: 0.65rem;
	right: 0.75rem;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #333333;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

.lhhh-sprachdialog-skip {
	display: block;
	min-height: 44px;
	margin: 1.1rem auto 0;
	padding: 0.4rem 0.75rem;
	border: 0;
	background: transparent;
	color: #202020;
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

@media (max-width: 560px) {
	.lhhh-sprachdialog {
		padding: 2.5rem 1.25rem 1.4rem;
	}

	.lhhh-sprachdialog-options {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lhhh-sprachdialog *,
	.lhhh-sprachdialog *::before,
	.lhhh-sprachdialog *::after {
		scroll-behavior: auto !important;
		transition: none !important;
		animation: none !important;
	}
}

@media print {
	.lhhh-sprachdialog-overlay {
		display: none !important;
	}
}


/* ======================================================================
 * Navigation: Breadcrumbs (Schwere Sprache) / Start + Zurück (Leichte Sprache)
 * ====================================================================== */
.lhhh-easy-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
	margin: 0;
	padding: 0;
}

.lhhh-easy-nav__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.42rem;
	min-height: 44px;
	padding: 0.5rem 0.9rem;
	border: 1.5px solid #0878bd;
	border-radius: 7px;
	background: #ffffff;
	color: #0878bd;
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	box-shadow: none;
	transition: background-color 120ms ease, color 120ms ease;
}

.lhhh-easy-nav__button:hover {
	background: #0878bd;
	color: #ffffff;
	text-decoration: none !important;
}

.lhhh-easy-nav__button:focus-visible {
	outline: 3px solid #202020;
	outline-offset: 3px;
	background: #0878bd;
	color: #ffffff;
}

.lhhh-nav-icon {
	width: 1.05em;
	height: 1.05em;
	fill: currentColor;
	flex: 0 0 auto;
}

.lhhh-fallback-breadcrumbs {
	font: inherit;
	font-size: 0.95rem;
	line-height: 1.5;
}

.lhhh-fallback-breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.lhhh-fallback-breadcrumbs a:hover,
.lhhh-fallback-breadcrumbs a:focus-visible {
	text-decoration: underline;
}

.lhhh-fallback-breadcrumbs__sep {
	padding: 0 0.35rem;
}

@media (max-width: 600px) {
	.lhhh-easy-nav {
		gap: 0.5rem;
	}

	.lhhh-easy-nav__button {
		min-height: 44px;
		padding: 0.45rem 0.8rem;
		font-size: 0.95rem;
	}
}

@media print {
	.lhhh-easy-nav {
		display: none !important;
	}
}
