/* Gilt in beiden Layouts (LMN_LUSAKA an oder aus): Intranet-Leiste und Initialen-Kacheln. */

:root {
	--lmn-flaeche: #f5f5f5;
}

/* Intranet-Leiste (includes/intranet-leiste): für Intranet-Rollen überall, ersetzt die alten schwarzen Leisten. */
.lmn-leiste {
	box-sizing: border-box;
	/* bleibt beim Scrollen oben; left hält sie auch bei seitlich breiten Tabellen im Bild */
	position: sticky;
	top: 0;
	left: 0;
	z-index: 110;
	display: flex;
	align-items: center;
	gap: 0.375rem;
	width: 100%;
	min-height: 3.75rem;
	padding: 0.375rem clamp(1rem, 2vw, 1.75rem);
	/* helles Orangegelb: hebt sich von Admin-Leiste und Titelbild ab */
	background: #fbeac6;
	border-bottom: 3px solid #eeab45;
	color: var(--bricks-color-andfua);
	font-size: 1.1875rem;
	line-height: 1.4;
	white-space: nowrap;
}

.lmn-leiste strong {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-right: 0.75rem;
	padding-right: 1.25rem;
	border-right: 1px solid #c9a55f;
}

.lmn-leiste__inhalt {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
	min-width: 0;
}

/* Ohne Skript bricht die Zeile um; mit Skript wird gemessen und bei Platzmangel zum Menü gewechselt. */
.lmn-leiste--js .lmn-leiste__inhalt {
	flex-wrap: nowrap;
}

.lmn-leiste--js.lmn-leiste--zweizeilig .lmn-leiste__inhalt {
	flex-wrap: wrap;
}

.lmn-leiste__inhalt > * {
	flex-shrink: 0;
}

.lmn-leiste ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

body .lmn-leiste li {
	margin: 0;
	font-size: inherit;
}

body .lmn-leiste a {
	display: block;
	padding: 0.625rem 0.875rem;
	border-radius: 4px;
	color: var(--bricks-color-andfua);
	text-decoration: none;
}

body .lmn-leiste a:hover {
	background: #f5d68f;
	color: var(--bricks-color-andfua);
}

body .lmn-leiste a:focus-visible {
	outline: 2px solid var(--bricks-color-andfua);
	outline-offset: -2px;
}

body .lmn-leiste a[aria-current="page"] {
	background: var(--bricks-color-andfua);
	color: #fff;
	font-weight: 700;
}

body .lmn-leiste a[aria-current="page"]:focus-visible {
	outline-color: #fff;
}

body .lmn-leiste .lmn-leiste__web {
	margin-left: 0.5rem;
	border: 1px solid #8a6d2f;
}

/* Ohne Suchfeld rückt „Zur öffentlichen Website“ nach rechts. */
body .lmn-leiste:not(:has(.lmn-leiste__suche), .lmn-leiste--offen) .lmn-leiste__web {
	margin-left: auto;
}

.lmn-leiste__suche {
	display: flex;
	margin: 0 0 0 auto;
}

.lmn-leiste__suche input {
	width: 12rem;
	height: 2.75rem;
	padding: 0 0.75rem;
	border: 1px solid #8a6d2f;
	border-radius: 4px 0 0 4px;
	background: #fff;
	color: var(--bricks-color-andfua);
	font-size: 1rem;
}

.lmn-leiste__suche button {
	height: 2.75rem;
	padding: 0 0.875rem;
	border: 1px solid #8a6d2f;
	border-left: 0;
	border-radius: 0 4px 4px 0;
	background: #f5d68f;
	color: var(--bricks-color-andfua);
	font-size: 1rem;
	cursor: pointer;
}

.lmn-leiste__suche button:hover {
	background: #eeab45;
}

.lmn-leiste__suche :is(input, button):focus-visible {
	outline: 2px solid var(--bricks-color-andfua);
	outline-offset: 2px;
}

.lmn-leiste .lmn-leiste__knopf {
	display: none;
	min-height: 2.75rem;
	margin-left: auto;
	padding: 0 1rem;
	border: 2px solid var(--bricks-color-andfua);
	border-radius: 4px;
	background: #fff;
	color: var(--bricks-color-andfua);
	font-size: inherit;
	font-weight: 700;
	cursor: pointer;
}

.lmn-leiste .lmn-leiste__knopf::before {
	content: "☰";
	margin-right: 0.5rem;
}

.lmn-leiste .lmn-leiste__knopf[aria-expanded="true"]::before {
	content: "✕";
}

.lmn-leiste .lmn-leiste__knopf:focus-visible {
	outline: 2px solid var(--bricks-color-andfua);
	outline-offset: 2px;
}

.lmn-leiste--kompakt .lmn-leiste__knopf {
	display: block;
}

/* Schmale Handys: Beschriftung darf umbrechen, damit der Knopf ganz sichtbar bleibt. */
.lmn-leiste--kompakt {
	padding-left: 0.75rem;
	padding-right: 0.75rem;
}

.lmn-leiste--kompakt strong {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	white-space: normal;
	line-height: 1.2;
}

.lmn-leiste .lmn-leiste__knopf {
	flex-shrink: 0;
	padding: 0 0.75rem;
}

/* Unsichtbar statt display:none, damit die Breite weiter messbar bleibt. */
.lmn-leiste--kompakt .lmn-leiste__inhalt {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	visibility: hidden;
	height: 0;
	overflow: hidden;
}

.lmn-leiste--kompakt.lmn-leiste--offen .lmn-leiste__inhalt {
	visibility: visible;
	height: auto;
	max-height: calc(100vh - 7rem);
	overflow-y: auto;
	flex-direction: column;
	align-items: stretch;
	padding: 0.5rem 1rem 1rem;
	border-bottom: 3px solid #eeab45;
	background: #fbeac6;
	box-shadow: 0 8px 16px rgb(0 0 0 / 20%);
}

.lmn-leiste--offen ul {
	flex-direction: column;
}

body .lmn-leiste--offen li a {
	padding: 0.875rem;
}

.lmn-leiste--offen .lmn-leiste__suche {
	width: 100%;
	margin: 0.5rem 0;
}

body .lmn-leiste--offen .lmn-leiste__suche input {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
}

body .lmn-leiste--offen .lmn-leiste__web {
	margin-left: 0;
	text-align: center;
}

@media (max-width: 400px) {
	.lmn-leiste {
		font-size: 1.0625rem;
	}
}

/* Unter der Admin-Leiste von WordPress; am Handy scrollt diese weg. */
body.admin-bar .lmn-leiste {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {
	body.admin-bar .lmn-leiste {
		top: 0;
	}
}

/* Der transparente Startseiten-Header liegt absolut und muss unter die Leiste rücken. */
body:has(.lmn-leiste):has(.lmn-hero-overlay) #brx-header {
	top: var(--lmn-leiste-hoehe, 3.75rem);
}

body.admin-bar:has(.lmn-leiste):has(.lmn-hero-overlay) #brx-header {
	top: calc(var(--wp-admin--admin-bar--height, 32px) + var(--lmn-leiste-hoehe, 3.75rem));
}

html:has(.lmn-leiste) {
	scroll-padding-top: 4.5rem;
}

@media print {
	.lmn-leiste {
		display: none;
	}
}

/* Initialen statt Silhouette (includes/theme/monogramm.php) */
.lmn-monogramm,
.lmn-monogramm a {
	display: block;
	width: 100%;
	text-decoration: none;
}

.lmn-monogramm__feld {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	width: 100%;
	aspect-ratio: 4 / 5;
	background: var(--lmn-flaeche);
	color: var(--bricks-color-hkxjkc);
	font-family: inherit;
	font-size: clamp(2rem, 3.5vw, 3.5rem);
	font-weight: 300;
	letter-spacing: 0.06em;
	line-height: 1;
}

.lmn-monogramm__feld::before,
.lmn-monogramm__feld::after {
	content: "";
	width: 40%;
	height: 0.6rem;
	border-block: 1px solid #b9c0c6;
}

body.lmn-oeffentlich .lmn-stip-foto.lmn-monogramm {
	width: clamp(12rem, 22vw, 16rem);
	margin-inline: auto;
}

body.lmn-oeffentlich .lmn-musiker-card .lmn-monogramm__feld {
	width: 10rem;
	margin-inline: auto;
	font-size: 2.25rem;
}
