/* Eine Schrift für die ganze Seite (Robert 26.11.: „überall die Schrift aus dem Header photostockbooth“): Heebo,
   selbst gehostet (assets/schrift, SIL OFL), auf PC, Android und iPhone gleich, kein Abruf bei Google. */
@font-face { font-family: "Heebo"; src: url("schrift/Heebo-Thin.ttf") format("truetype"); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: "Heebo"; src: url("schrift/Heebo-ExtraLight.ttf") format("truetype"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Heebo"; src: url("schrift/Heebo-Light.ttf") format("truetype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Heebo"; src: url("schrift/Heebo-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Heebo"; src: url("schrift/Heebo-Medium.ttf") format("truetype"); font-weight: 500 900; font-style: normal; font-display: swap; }

/*
 * photostockbooth – Liquid-Glass-Stil für alle statischen Seiten (Theme-Seiten), Robert 25.11.2026.
 * Gleiche Sprache wie die Galerie-Startseite: weißer Raum, feine Schrift, Glas mit Lichtkante und hauchzartem Schatten.
 * Flächen eckig (wie die Glastafeln der Galerie), Knöpfe und Menüleiste als Glas-Kapseln (Vorbild Apple Liquid Glass).
 * Barrierefreiheit: Text mindestens 4,5:1, Fließtext ≥ 16 px in Stärke 300, sichtbarer Fokus, Ziele ≥ 44 px,
 * prefers-reduced-transparency / -motion und forced-colors berücksichtigt. Keine Webfonts, keine Fremdaufrufe.
 */
body.psb-glas {
	--text: #1f2833;
	--leise: #4f5966;
	--schrift: "Heebo", "Segoe UI", Roboto, "Helvetica Neue", system-ui, -apple-system, sans-serif;
	--text-schrift: "Heebo", "Segoe UI", Roboto, "Helvetica Neue", system-ui, -apple-system, sans-serif;
	--glas-fuellung: linear-gradient(160deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.6) 55%, rgba(246, 249, 253, 0.66) 100%);
	--glas-kante:
		inset 0 1px 0 rgba(255, 255, 255, 1),
		inset 1px 0 0 rgba(255, 255, 255, 0.8),
		inset -1px 0 0 rgba(255, 255, 255, 0.55),
		inset 0 -1px 0 rgba(255, 255, 255, 0.6);
	--glas-schatten: 0 1px 2px rgba(30, 45, 70, 0.05), 0 22px 60px -30px rgba(30, 45, 70, 0.22);
	--glas-schatten-hoch: 0 1px 2px rgba(30, 45, 70, 0.06), 0 28px 70px -28px rgba(30, 45, 70, 0.3);
	--glas-weich: blur(22px) saturate(1.7) brightness(1.04);

	margin: 0;
	background: linear-gradient(180deg, #eaf1fa 0%, #f8fbfe 40%, #ffffff 100%) fixed;
	color: var(--text);
	font-family: var(--text-schrift);
	font-size: 17px;
	font-weight: 300;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-optical-sizing: auto;
}

body.psb-glas .site,
body.psb-glas .site-inner,
body.psb-glas .site-content-contain,
body.psb-glas .site-content,
body.psb-glas .site-header,
body.psb-glas .site-header-main { background: transparent !important; }

/* ---------- Glas-Grundbaustein ---------- */
body.psb-glas .site-header-main,
body.psb-glas .main-navigation ul ul,
body.psb-glas .search-container,
body.psb-glas #psb-fuss,
body.psb-glas .psb-platte,
body.psb-glas .entry-content:not(:has(.tiled-gallery, .wp-block-gallery, .gallery, .psb-raster)) {
	background: var(--glas-fuellung) !important;
	-webkit-backdrop-filter: var(--glas-weich);
	backdrop-filter: var(--glas-weich);
	box-shadow: var(--glas-kante), var(--glas-schatten);
	border: 0 !important;
}

/* ---------- Kopf: schwebende Glas-Kapsel ---------- */
/* Theme setzt overflow-x:hidden auf .site-inner; das macht es zum Scrollbereich und verhindert sticky. clip schneidet gleich, ohne Scrollbereich. */
body.psb-glas .site-inner { overflow: visible !important; overflow-x: clip !important; }
body.psb-glas .site-header {
	position: sticky; top: 14px; z-index: 50;
	padding: 0 14px; border: 0 !important; box-shadow: none !important;
}
body.psb-glas.admin-bar .site-header { top: 46px; }
body.psb-glas .site-header-main {
	max-width: 1180px; margin: 14px auto 0; border-radius: 999px;
	padding: 6px 10px 6px 26px; min-height: 0;
}
body.psb-glas .site-header-main > .wrapper {
	display: flex; align-items: center; justify-content: space-between; gap: 18px;
	max-width: none; padding: 0; min-height: 56px;
}
body.psb-glas .site-branding { margin: 0; padding: 0; float: none; }
body.psb-glas .site-title { margin: 0; line-height: 1.2; }
body.psb-glas .site-title a {
	color: var(--text) !important; text-decoration: none;
	font: 400 15px/1.2 var(--text-schrift); letter-spacing: 0.42em; text-transform: lowercase;
}
body.psb-glas .site-description {
	margin: 4px 0 0; color: var(--leise) !important;
	font: 400 11px/1.2 var(--text-schrift); letter-spacing: 0.32em; text-transform: lowercase;
}

/* Menüpunkte: feine Schrift; aktiver Punkt und Hover als innere Glas-Kapsel */
body.psb-glas .main-navigation a {
	display: flex; align-items: center; min-height: 44px; padding: 0 18px !important;
	border-radius: 999px; color: var(--text) !important; background: transparent;
	font: 400 13px/1 var(--text-schrift) !important; letter-spacing: 0.16em; text-transform: lowercase;
	transition: background-color .35s ease, box-shadow .35s ease;
}
body.psb-glas .main-navigation .current-menu-item > a,
body.psb-glas .main-navigation .current_page_item > a,
body.psb-glas .main-navigation a:hover {
	background: rgba(255, 255, 255, 0.7);
	box-shadow: inset 0 1px 0 #fff, 0 6px 18px -10px rgba(30, 45, 70, 0.3);
}
body.psb-glas .main-navigation ul ul {
	border-radius: 22px; padding: 8px; margin-top: 6px;
}
body.psb-glas .main-navigation ul ul a { min-height: 44px; white-space: nowrap; }
@media (min-width: 861px) {
	/* Theme klappt Untermenüs nach oben auf; unter der schwebenden Kapsel gehören sie nach unten */
	body.psb-glas .main-navigation ul ul { top: calc(100% + 10px) !important; bottom: auto !important; }
	/* Menü, Suche und Teilen auf einer Mittellinie (nur PC; am Handy steuert das Theme das Auf- und Zuklappen) */
	body.psb-glas .site-header-menu { display: flex; align-items: center; gap: 6px; }
	body.psb-glas .mobile-social-search, body.psb-glas #social-navigation { display: flex; align-items: center; gap: 6px; margin: 0; }
	/* unsichtbare Brücke zwischen Menüpunkt und Untermenü, damit es beim Hinübergleiten offen bleibt */
	body.psb-glas .main-navigation .menu-item-has-children { position: relative; }
	body.psb-glas .main-navigation .menu-item-has-children::after { content: "" !important; display: block !important; position: absolute; left: -40px; right: -40px; top: 100%; height: 16px; }
	/* Untermenü selbst steuern (Robert 26.11.: verschwand blitzschnell auf dem Weg nach unten):
	   mittig unter dem Punkt, weich ein, beim Verlassen 0,3 s Gnadenfrist */
	body.psb-glas .main-navigation > div > ul > li > ul,
	body.psb-glas .main-navigation > ul > li > ul {
		left: 50% !important; right: auto !important; top: calc(100% + 8px) !important; margin: 0 !important;
		transform: translate(-50%, 6px); opacity: 0; visibility: hidden; pointer-events: none;
		transition: opacity .22s ease .12s, transform .22s ease .12s, visibility 0s linear .34s !important;
	}
	body.psb-glas .main-navigation li:hover > ul,
	body.psb-glas .main-navigation li.focus > ul,
	body.psb-glas .main-navigation li:focus-within > ul {
		transform: translate(-50%, 0); opacity: 1; visibility: visible; pointer-events: auto;
		transition: opacity .22s ease, transform .22s ease, visibility 0s !important;
	}
}
body.psb-glas .main-navigation .menu-item-has-children > a::after,
body.psb-glas .dropdown-toggle { color: var(--leise) !important; }

/* Rundknöpfe (Suche, Teilen, nach oben, Menü am Handy) als Glas-Kapseln */
body.psb-glas .toggle-top,
body.psb-glas #scrollup,
body.psb-glas .menu-toggle,
body.psb-glas .psb-knopf,
body.psb-glas .search-submit,
body.psb-glas .entry-content .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-width: 44px; min-height: 44px; padding: 0 18px;
	border: 0 !important; border-radius: 999px !important;
	background: var(--glas-fuellung) !important;
	-webkit-backdrop-filter: var(--glas-weich); backdrop-filter: var(--glas-weich);
	box-shadow: var(--glas-kante), var(--glas-schatten) !important;
	color: var(--text) !important; text-decoration: none !important; text-transform: lowercase;
	font: 400 13px/1 var(--text-schrift) !important; letter-spacing: 0.16em;
	transition: box-shadow .35s ease, background-color .35s ease;
	cursor: pointer;
}
body.psb-glas .toggle-top, body.psb-glas #scrollup { width: 44px !important; height: 44px; padding: 0 !important; }
body.psb-glas .toggle-top:hover,
body.psb-glas #scrollup:hover,
body.psb-glas .menu-toggle:hover,
body.psb-glas .psb-knopf:hover,
body.psb-glas .search-submit:hover,
body.psb-glas .entry-content .wp-block-button__link:hover {
	box-shadow: var(--glas-kante), var(--glas-schatten-hoch) !important;
	background: linear-gradient(160deg, rgba(255,255,255,0.92), rgba(255,255,255,0.72)) !important;
}
body.psb-glas .toggle-top .icon, body.psb-glas #scrollup .icon, body.psb-glas .menu-toggle .icon { fill: var(--text); color: var(--text); }
body.psb-glas #scrollup { right: 18px; bottom: 18px; }
/* Symbole des Themes (Schriftzeichen in ::before) exakt mittig im Knopf (Robert 26.11.: Lupe/Teilen saßen zu hoch) */
body.psb-glas .toggle-top, body.psb-glas #scrollup { display: inline-flex !important; align-items: center; justify-content: center; line-height: 1 !important; }
body.psb-glas .toggle-top::before, body.psb-glas #scrollup::before {
	position: static !important; inset: auto !important; margin: 0 !important; line-height: 1 !important; font-size: 15px !important;
	transform: none !important; color: var(--text);
}

/* Lichtkante: wandert mit Maus/Finger (--mx/--my aus dem kleinen Skript), sonst oben links */
/* Nur statische Elemente brauchen eine Bezugsposition; Untermenü (absolute) und „nach oben“ (fixed) behalten ihre eigene */
body.psb-glas .site-header-main.psb-licht,
body.psb-glas #psb-fuss.psb-licht,
body.psb-glas .entry-content.psb-licht,
body.psb-glas .toggle-top.psb-licht,
body.psb-glas .menu-toggle.psb-licht,
body.psb-glas .psb-knopf.psb-licht,
body.psb-glas .search-submit.psb-licht { position: relative; }
body.psb-glas .psb-licht { isolation: isolate; }
body.psb-glas .psb-licht::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
	padding: 1px;
	background: radial-gradient(240px circle at var(--mx, 18%) var(--my, 0%), rgba(255,255,255,0.95), rgba(255,255,255,0) 60%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* ---------- Topping: echte Lichtbrechung an der Glaskante (nur Chromium, von glas.js gesetzt) ----------
   Die Milchglasfüllung liegt nur in der Mitte (unter dem Text); der schmale Rand bleibt klar,
   dort biegt die Linse das Bild dahinter mit feinem Farbsaum. */
html.psb-brechung body.psb-glas .site-header-main,
html.psb-brechung body.psb-glas .main-navigation ul ul,
html.psb-brechung body.psb-glas #psb-fuss {
	/* Rand: heller Lichtschleier, oben stärker (Licht von oben), die Brechung bleibt sichtbar */
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.26) 45%, rgba(255, 255, 255, 0.36) 100%) !important;
}
html.psb-brechung body.psb-glas .site-header-main::before,
html.psb-brechung body.psb-glas .main-navigation ul ul::before,
html.psb-brechung body.psb-glas #psb-fuss::before {
	content: ""; position: absolute; inset: var(--psb-kante, 8px); z-index: -1; pointer-events: none;
	border-radius: inherit;
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.74) 55%, rgba(246, 249, 253, 0.8) 100%);
	box-shadow: 0 0 calc(var(--psb-kante, 8px) * 0.8) calc(var(--psb-kante, 8px) * 0.25) rgba(255, 255, 255, 0.55);
}

/* Haarscharfe Lichtkante: auf hochauflösenden Bildschirmen nur einen halben Pixel stark */
@media (min-resolution: 2dppx) {
	body.psb-glas {
		--glas-kante:
			inset 0 0.5px 0 rgba(255, 255, 255, 1),
			inset 0.5px 0 0 rgba(255, 255, 255, 0.85),
			inset -0.5px 0 0 rgba(255, 255, 255, 0.6),
			inset 0 -0.5px 0 rgba(255, 255, 255, 0.7),
			inset 0 0 0 0.5px rgba(31, 40, 51, 0.06);
	}
}

/* ---------- Seitentitel und Text ---------- */
body.psb-glas .entry-header { margin: clamp(40px, 8vh, 90px) auto clamp(34px, 5vh, 56px) !important; padding: 0 !important; text-align: center; }
body.psb-glas .entry-title {
	margin: 0; color: var(--text) !important;
	font: 200 clamp(38px, 6vw, 68px)/1.1 var(--schrift) !important; letter-spacing: 0.05em;
}
body.psb-glas .entry-content:not(:has(.tiled-gallery, .wp-block-gallery, .gallery, .psb-raster)) {
	max-width: 820px; margin: 0 auto clamp(40px, 8vh, 90px) !important;
	padding: clamp(28px, 6vw, 72px) clamp(22px, 6vw, 80px) !important;
}
body.psb-glas .entry-content p,
body.psb-glas .entry-content li {
	color: var(--text); font: 300 clamp(16px, 1.15vw, 17px)/1.8 var(--text-schrift); letter-spacing: 0.005em;
}
body.psb-glas .entry-content h2,
body.psb-glas .entry-content h3 {
	color: var(--text); font-family: var(--schrift); font-weight: 300; letter-spacing: 0.04em; line-height: 1.3;
	margin: 1.9em 0 0.6em;
}
body.psb-glas .entry-content h2 { font-size: clamp(22px, 2.2vw, 28px); }
body.psb-glas .entry-content h3 { font-size: clamp(18px, 1.6vw, 21px); }
body.psb-glas .entry-content > :first-child { margin-top: 0; }
body.psb-glas .entry-content a {
	color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
body.psb-glas .entry-content a:hover { text-decoration-thickness: 2px; }
body.psb-glas .entry-content ul { padding-left: 1.2em; }
body.psb-glas .entry-content strong { font-weight: 500; }

/* Fotos: ruhig, mit dem gleichen hauchzarten, weit auslaufenden Schatten wie in der Galerie */
body.psb-glas .entry-content img { box-shadow: 0 30px 60px -36px rgba(30, 45, 70, 0.35); }
body.psb-glas .tiled-gallery { margin-bottom: clamp(40px, 8vh, 90px); }

/* ---------- Fuß ---------- */
body.psb-glas .site-footer { background: transparent !important; color: var(--leise); padding: 0 14px 28px; }
body.psb-glas #psb-fuss {
	max-width: 760px; margin: 0 auto; border-radius: 28px; padding: 16px 26px;
	color: var(--leise); font: 400 12px/1.9 var(--text-schrift); letter-spacing: 0.14em;
}
body.psb-glas #psb-fuss a {
	display: inline-flex; align-items: center; min-height: 32px;
	color: var(--leise); text-decoration: none; border-bottom: 1px solid transparent;
}
body.psb-glas #psb-fuss a:hover { color: var(--text); border-bottom-color: var(--text); }

/* ---------- Suchfeld als Glas-Feld ---------- */
body.psb-glas .search-container { border-radius: 26px; padding: 10px; }
body.psb-glas .search-form { display: flex; gap: 8px; align-items: center; margin: 0; }
body.psb-glas .search-form label { flex: 1 1 auto; display: flex; min-width: 0; margin: 0; }
body.psb-glas .site-title a { display: inline-flex; align-items: center; min-height: 28px; }
body.psb-glas .search-field {
	flex: 1; min-width: 0; min-height: 44px; padding: 0 18px; margin: 0;
	border: 0 !important; border-radius: 999px; outline: none;
	background: rgba(255, 255, 255, 0.78); box-shadow: inset 0 0 0 1px rgba(31, 40, 51, 0.22);
	color: var(--text); font: 300 16px/1.2 var(--text-schrift) !important; letter-spacing: 0.02em;
}
body.psb-glas .search-field::placeholder { color: var(--leise); opacity: 1; }
body.psb-glas .search-submit { width: 44px; padding: 0; flex: none; }
body.psb-glas .search-submit .icon { fill: var(--text); }
body.psb-glas .social-navigation a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--text) !important; }

/* ---------- Handy: keine automatische Schriftvergrößerung (Chrome „Font Boosting“) ---------- */
html:has(body.psb-glas) { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.psb-glas .site-branding, body.psb-glas .site-title { overflow: hidden; }
body.psb-glas .site-title a, body.psb-glas .site-description { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ---------- Glas-Raster (ersetzt die WordPress-Galerie) ----------
   Reihen mit gleicher Höhe, jedes Foto in seinem Seitenverhältnis (--r), Reihenfolge bleibt erhalten. */
/* Fotoseiten: Inhalt in voller Breite, ohne Textplatte */
body.psb-glas .entry-content:has(.psb-raster) { max-width: none !important; width: auto; margin: 0 !important; padding: 0 !important; }
body.psb-glas .site-main:has(.psb-raster), body.psb-glas .singular-section:has(.psb-raster), body.psb-glas .content-area:has(.psb-raster) { max-width: none !important; width: auto !important; padding-left: 0 !important; padding-right: 0 !important; }
body.psb-glas .psb-raster-liste li::before { content: none !important; }
body.psb-glas .psb-raster { max-width: 1320px; margin: 0 auto clamp(40px, 8vh, 90px); padding: 0 clamp(12px, 3vw, 32px); }
/* Raum-Übersicht wie „Mehr aus dem Raum“ (Robert 26.11.): ruhiges Raster, gleich große Kacheln 3:2, Titel darunter,
   genau mittig. Das ganze Foto zeigt die Leuchtbox. */
body.psb-glas .psb-raster-liste {
	display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 14px;
	list-style: none; margin: 0 auto !important; padding: 0 !important; width: 100%;
}
body.psb-glas .psb-raster-bild { margin: 0 !important; padding: 0 !important; min-width: 0; position: relative; }
body.psb-glas .psb-raster-knopf {
	display: block; color: var(--text); text-decoration: none !important;
	-webkit-tap-highlight-color: transparent;
}
body.psb-glas .psb-raster-knopf img {
	display: block; width: 100% !important; max-width: 100% !important; height: auto !important; aspect-ratio: 3 / 2; object-fit: cover;
	background: #eef3f9;
	box-shadow: 0 1px 2px rgba(30, 45, 70, 0.06), 0 26px 50px -34px rgba(30, 45, 70, 0.45) !important;
	transition: box-shadow .45s ease, filter .45s ease;
}
body.psb-glas .psb-raster-knopf:hover img { box-shadow: 0 1px 2px rgba(30, 45, 70, 0.08), 0 34px 60px -28px rgba(30, 45, 70, 0.6) !important; filter: brightness(1.04); }
body.psb-glas .psb-raster-titel {
	display: block !important; position: static; padding: 9px 2px 0;
	color: var(--text); font: 300 15px/1.4 var(--text-schrift); letter-spacing: 0.01em;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.psb-glas .psb-raster-knopf:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
@media (max-width: 1000px) { body.psb-glas .psb-raster-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
	body.psb-glas .psb-raster-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 8px; }
	body.psb-glas .psb-raster { padding: 0 16px !important; margin-left: auto !important; margin-right: auto !important; width: auto !important; box-sizing: border-box; }
	body.psb-glas .psb-raster-titel { font-size: 13px; padding-top: 7px; }
}
}

/* ---------- Leuchtbox: Foto groß auf hellem Milchglas ---------- */
html.psb-leuchte-offen { overflow: hidden; }
body.psb-glas .psb-leuchte {
	position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
	margin: 0; padding: 0; border: 0; background: transparent; color: var(--text);
	overflow: hidden; overscroll-behavior: contain;
}
body.psb-glas .psb-leuchte::backdrop {
	background: rgba(244, 247, 251, 0.9);
	-webkit-backdrop-filter: blur(30px) saturate(1.2); backdrop-filter: blur(30px) saturate(1.2);
}
body.psb-glas .psb-leuchte[open] { display: block; animation: psbAuf .45s ease; }
@keyframes psbAuf { from { opacity: 0; } }
body.psb-glas .psb-l-buehne {
	position: absolute; inset: 0; bottom: var(--psb-info-h, 150px);
	display: flex; align-items: center; justify-content: center;
	padding: clamp(64px, 9vh, 90px) clamp(12px, 8vw, 110px) 16px; touch-action: pan-y pinch-zoom;
}
body.psb-glas .psb-l-bild {
	max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
	box-shadow: 0 2px 4px rgba(30, 45, 70, 0.08), 0 50px 110px -40px rgba(30, 45, 70, 0.5) !important;
	cursor: zoom-in; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
	transition: transform .55s cubic-bezier(0.2, 0.7, 0.2, 1), opacity .35s ease;
}
body.psb-glas .psb-l-bild.zoom { transform: scale(2.4); cursor: zoom-out; transition: transform .45s cubic-bezier(0.2, 0.7, 0.2, 1); }
body.psb-glas .psb-l-buehne.laedt .psb-l-bild { opacity: 0.35; }
body.psb-glas .psb-leuchte .psb-knopf { position: absolute; z-index: 3; width: 48px; height: 48px; padding: 0 !important; font-size: 26px !important; font-weight: 200 !important; line-height: 1 !important; letter-spacing: 0; }
body.psb-glas .psb-l-zu { top: max(16px, env(safe-area-inset-top)); right: 16px; }
body.psb-glas .psb-l-zurueck, body.psb-glas .psb-l-weiter { top: calc((100% - var(--psb-info-h, 150px)) / 2); margin-top: -24px; font-size: 32px !important; }
body.psb-glas .psb-l-zurueck { left: clamp(10px, 2vw, 28px); }
body.psb-glas .psb-l-weiter { right: clamp(10px, 2vw, 28px); }
body.psb-glas .psb-l-zurueck[hidden], body.psb-glas .psb-l-weiter[hidden] { display: none; }
body.psb-glas .psb-l-info {
	position: absolute; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%);
	width: min(760px, calc(100% - 24px)); max-height: min(34vh, 260px); overflow: auto;
	margin: 0 !important; padding: 16px 24px 14px !important; border-radius: 26px;
}
body.psb-glas .psb-l-raum { margin: 0 0 2px; color: var(--leise); font: 400 11px/1.4 var(--text-schrift); letter-spacing: 0.28em; text-transform: lowercase; }
body.psb-glas .psb-l-titel { margin: 0 0 6px; color: var(--text); font: 300 clamp(19px, 2.2vw, 24px)/1.3 var(--schrift); letter-spacing: 0.03em; }
body.psb-glas .psb-l-schlag { margin: -2px 0 8px; color: var(--leise); font: 400 12px/1.6 var(--text-schrift); letter-spacing: 0.06em; }
body.psb-glas .psb-l-schlag[hidden], body.psb-glas .psb-l-text[hidden], body.psb-glas .psb-l-raum[hidden] { display: none; }
body.psb-glas .psb-l-text { margin: 0 0 8px; color: var(--text); font: 300 15px/1.65 var(--text-schrift); }
body.psb-glas .psb-l-fuss { margin: 0; color: var(--leise); font: 400 11px/1.5 var(--text-schrift); letter-spacing: 0.12em; }
body.psb-glas .psb-leuchte.ruhig, body.psb-glas .psb-leuchte.ruhig * { animation: none !important; transition: none !important; }
@media (max-width: 600px) {
	body.psb-glas .psb-l-buehne { padding: 70px 8px 10px; }
	body.psb-glas .psb-l-zurueck, body.psb-glas .psb-l-weiter { top: auto; bottom: calc(var(--psb-info-h, 150px) + 6px); margin: 0; width: 44px; height: 44px; }
	body.psb-glas .psb-l-info { padding: 12px 18px 10px !important; border-radius: 22px; max-height: 30vh; }
	body.psb-glas .psb-l-text { font-size: 14px; }
}

/* ---------- Suche ---------- */
body.psb-glas .psb-suche { max-width: 1320px; margin: 0 auto; padding: 0 0 clamp(40px, 8vh, 90px); }
body.psb-glas .psb-such-form {
	display: flex; gap: 10px; align-items: center; max-width: 640px; margin: 0 auto 18px; padding: 0 16px;
}
body.psb-glas .psb-such-form .search-field { flex: 1; min-height: 52px; font-size: 17px !important; padding: 0 22px; }
body.psb-glas .psb-such-los { min-height: 52px; padding: 0 24px; }
body.psb-glas .psb-such-meldung { text-align: center; color: var(--leise); font: 400 14px/1.6 var(--text-schrift); letter-spacing: 0.04em; margin: 0 16px 34px; }
body.psb-glas .psb-such-abschnitt {
	text-align: center; margin: 0 0 22px; color: var(--leise);
	font: 400 12px/1.4 var(--text-schrift); letter-spacing: 0.34em; text-transform: lowercase;
}
body.psb-glas .psb-such-seiten { list-style: none; margin: 0 auto 40px; padding: 0 16px; max-width: 820px; display: grid; gap: 14px; }
body.psb-glas .psb-such-seiten li { margin: 0; padding: 0 !important; border-radius: 22px; }
body.psb-glas .psb-such-seiten a { display: block; padding: 18px 24px; color: var(--text); text-decoration: none; }
body.psb-glas .psb-such-titel { display: block; font: 300 20px/1.3 var(--schrift); letter-spacing: 0.03em; margin-bottom: 4px; }
body.psb-glas .psb-such-auszug { display: block; color: var(--leise); font: 300 14px/1.6 var(--text-schrift); }
body.psb-glas .psb-such-raeume { list-style: none; margin: 0 auto 40px; padding: 0 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
body.psb-glas .psb-such-raeume li { margin: 0; }

/* ---------- Leuchtbox: Link zur Fotoseite, Lizenzanfrage ---------- */
body.psb-glas .psb-l-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 10px 0 0; }
body.psb-glas .psb-l-links[hidden], body.psb-glas .psb-l-links a[hidden] { display: none; }
body.psb-glas .psb-l-seite { color: var(--text); font: 400 13px/1.5 var(--text-schrift); letter-spacing: 0.04em; text-underline-offset: 3px; }
body.psb-glas .psb-l-nutzen { min-height: 40px; padding: 0 18px; font-size: 13px !important; text-decoration: none; }

/* ---------- Fotoseite /foto/… (Robert 26.11.: jedes Foto eine eigene Seite) ---------- */
body.psb-fotoseite .psb-foto { max-width: 1180px; margin: 0 auto; padding: 8px 16px clamp(40px, 8vh, 90px); }
body.psb-fotoseite .psb-foto-pfad { display: flex; gap: 10px; justify-content: center; align-items: center; margin: 0 0 18px; color: var(--leise); font: 400 12px/1.5 var(--text-schrift); letter-spacing: 0.24em; text-transform: lowercase; }
body.psb-fotoseite .psb-foto-pfad a { color: var(--leise); text-decoration: none; }
body.psb-fotoseite .psb-foto-pfad a:hover, body.psb-fotoseite .psb-foto-pfad a:focus-visible { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
body.psb-fotoseite .psb-foto-bild { margin: 0 auto 22px; text-align: center; }
body.psb-fotoseite .psb-foto-bild img { display: block; margin: 0 auto; width: auto; max-width: 100%; height: auto; max-height: min(80vh, 1100px); box-shadow: 0 30px 70px -36px rgba(20, 30, 50, 0.55); }
body.psb-fotoseite .psb-foto-unterschrift { margin: 12px 0 0; text-align: center; color: var(--leise); font: 300 13px/1.5 var(--text-schrift); letter-spacing: 0.06em; }
body.psb-fotoseite .psb-foto-text { max-width: 760px; margin: 0 auto 26px !important; padding: 24px 30px 20px !important; }
body.psb-fotoseite .psb-foto-raum { margin: 0 0 4px; color: var(--leise); font: 400 11px/1.4 var(--text-schrift); letter-spacing: 0.28em; text-transform: lowercase; }
body.psb-fotoseite .psb-foto-titel { margin: 0 0 8px; color: var(--text); font: 300 clamp(26px, 3.4vw, 38px)/1.2 var(--schrift); letter-spacing: 0.02em; }
body.psb-fotoseite .psb-foto-schlag { margin: 0 0 12px; color: var(--leise); font: 400 13px/1.6 var(--text-schrift); letter-spacing: 0.06em; }
body.psb-fotoseite .psb-foto-geschichte { margin: 0 0 14px; color: var(--text); font: 300 17px/1.7 var(--text-schrift); }
body.psb-fotoseite .psb-foto-fuss { margin: 0; color: var(--leise); font: 400 11px/1.5 var(--text-schrift); letter-spacing: 0.12em; }
body.psb-fotoseite .psb-foto-lizenz { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 16px 0 0; }
body.psb-fotoseite .psb-foto-nutzen { min-height: 46px; padding: 0 22px; text-decoration: none; }
body.psb-fotoseite .psb-foto-bedingungen { color: var(--text); font: 400 13px/1.5 var(--text-schrift); text-underline-offset: 3px; }
body.psb-fotoseite .psb-foto-blaettern { display: flex; justify-content: space-between; gap: 12px; max-width: 760px; margin: 0 auto 40px; }
/* Knöpfe der Fotoseite: Schrift immer genau mittig, auch bei großer Handyschrift (Robert 26.11.: „Schriften in den Buttons verrutscht“) */
body.psb-fotoseite a.psb-knopf { display: inline-flex !important; align-items: center !important; justify-content: center !important; box-sizing: border-box;
	min-height: 46px; height: auto !important; padding: 11px 22px !important; line-height: 1.35 !important; text-align: center; white-space: normal !important; text-decoration: none; }
body.psb-fotoseite .psb-foto-blaettern a.psb-knopf { max-width: 48%; gap: 8px; }
body.psb-fotoseite .psb-foto-mehr h2 { text-align: center; margin: 0 0 20px; color: var(--leise); font: 400 12px/1.4 var(--text-schrift); letter-spacing: 0.34em; text-transform: lowercase; }
body.psb-fotoseite .psb-foto-mehr ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
body.psb-fotoseite .psb-foto-mehr li { margin: 0; min-width: 0; overflow: hidden; }
body.psb-fotoseite .psb-foto-mehr a { display: block; color: var(--text); text-decoration: none; }
body.psb-fotoseite .psb-foto-mehr img { display: block; width: 100% !important; max-width: 100% !important; height: auto !important; aspect-ratio: 3 / 2; object-fit: cover; }
body.psb-fotoseite .psb-foto-mehr span { display: block; padding: 8px 2px 0; font: 300 14px/1.4 var(--text-schrift); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.psb-fotoseite .psb-foto-mehr p { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; }
body.psb-fotoseite .psb-foto-mehr p { align-items: center; }
@media (max-width: 600px) {
	body.psb-fotoseite .psb-foto-text { padding: 18px 18px 16px !important; }
	body.psb-fotoseite .psb-foto-geschichte { font-size: 16px; }
	body.psb-fotoseite .psb-foto-blaettern { flex-direction: column; }
	body.psb-fotoseite .psb-foto-blaettern a.psb-knopf { max-width: 100%; }
	body.psb-fotoseite .psb-foto-mehr p a.psb-knopf { width: 100%; }
	body.psb-fotoseite .psb-foto-mehr ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	body.psb-fotoseite .psb-foto-mehr span { font-size: 13px; }
	body.psb-fotoseite .psb-foto { overflow-x: clip; }
}

/* ---------- Kopfleiste: gleichmäßige Abstände, exakt mittig (Robert 26.11.) ---------- */
@media (min-width: 861px) {
	body.psb-glas .site-header-main { padding: 8px 8px 8px 28px; }
	body.psb-glas .site-header-menu, body.psb-glas .main-navigation, body.psb-glas #site-navigation { margin: 0 !important; }
	body.psb-glas #primary-menu { display: flex !important; align-items: center; gap: 6px; margin: 0; padding: 0; font-size: 0; }
	body.psb-glas #primary-menu > li { margin: 0 !important; float: none; }
	body.psb-glas .mobile-social-search { margin-left: 14px !important; gap: 6px; }
	body.psb-glas .main-navigation li.psb-offen > ul {
		transform: translate(-50%, 0); opacity: 1; visibility: visible; pointer-events: auto;
		transition: opacity .22s ease, transform .22s ease, visibility 0s !important;
	}
}

/* ---------- Vergleich eckig (Robert 26.11.: passen runde Kanten zu eckigen Bildern?) ----------
   Aktiv mit ?psb_ecken=eckig an der Adresse oder Option psb_seiten_eckig = 1. */
body.psb-glas.psb-eckig *, body.psb-glas.psb-eckig *::before, body.psb-glas.psb-eckig *::after { border-radius: 0 !important; }

/* ---------- Fokus (Tastatur) gut sichtbar ---------- */
body.psb-glas a:focus-visible,
body.psb-glas button:focus-visible,
body.psb-glas input:focus-visible {
	outline: 2px solid var(--text) !important; outline-offset: 3px !important;
}

/* ---------- Handy ---------- */
@media (max-width: 860px) {
	body.psb-glas .site-header { top: 10px; padding: 0 12px; }
	body.psb-glas.admin-bar .site-header { top: 56px; }
	body.psb-glas .site-header-main { border-radius: 28px; padding: 6px 6px 6px 20px; margin-top: 10px; }
	body.psb-glas .site-header-main > .wrapper { flex-wrap: wrap; justify-content: space-between; min-height: 48px; gap: 0 10px; }
	body.psb-glas .site-branding { flex: 1 1 0; text-align: left; min-width: 0; }
	body.psb-glas .site-title a { white-space: nowrap; }
	body.psb-glas .site-title a { font-size: 13px; letter-spacing: 0.3em; }
	body.psb-glas .site-description { font-size: 10px; letter-spacing: 0.26em; }
	body.psb-glas .menu-toggle-wrapper { margin: 0 0 0 auto; padding: 0; float: none; }
	body.psb-glas .menu-toggle { margin: 0; }
	body.psb-glas .site-header-menu { flex-basis: 100%; }
	body.psb-glas .site-header-menu:not(.toggled-on) .mobile-social-search { display: none; }
	body.psb-glas .site-header-menu.toggled-on .mobile-social-search { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 100%; }
	body.psb-glas .mobile-social-search .search-container { display: block; position: static; width: 100%; padding: 6px 0; background: transparent !important; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
	body.psb-glas .mobile-social-search .search-form { flex-wrap: nowrap; width: 100%; }
	body.psb-glas .mobile-social-search #social-navigation { display: flex; flex-direction: column; align-items: stretch; width: 100%; }
	body.psb-glas .mobile-social-search #header-menu-social,
	body.psb-glas .mobile-social-search #header-menu-social .social-navigation { display: block; position: static; width: 100%; background: transparent !important; box-shadow: none; }
	body.psb-glas .mobile-social-search #header-menu-social ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
	body.psb-glas .entry-header { padding: 0 16px !important; }
	body.psb-glas .entry-title { font-size: clamp(30px, 8.6vw, 40px) !important; letter-spacing: 0.03em; overflow-wrap: anywhere; hyphens: auto; }
	body.psb-glas .site-header-menu.toggled-on { padding: 6px 0 10px; }
	body.psb-glas .main-navigation ul ul { background: transparent !important; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
	/* Textplatte passt genau in die Breite (vorher 100 % + 2 × 12 px → rechts 12 px über den Rand, Prüfung 26.11.) */
	body.psb-glas .entry-content:not(:has(.tiled-gallery, .wp-block-gallery, .gallery, .psb-raster)) { margin-left: 12px !important; margin-right: 12px !important; width: auto !important; max-width: calc(100% - 24px) !important; box-sizing: border-box; }
	body.psb-glas #psb-fuss { border-radius: 22px; padding: 12px 16px; }
}

/* ---------- Wünsche aus den Systemeinstellungen ---------- */
@media (prefers-reduced-transparency: reduce) {
	body.psb-glas .site-header-main,
	body.psb-glas .main-navigation ul ul,
	body.psb-glas .search-container,
	body.psb-glas #psb-fuss,
	body.psb-glas .entry-content,
	body.psb-glas .toggle-top,
	body.psb-glas #scrollup,
	body.psb-glas .menu-toggle,
	body.psb-glas .psb-knopf { background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
@media (prefers-reduced-motion: reduce) {
	body.psb-glas * { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
	body.psb-glas .site-header-main,
	body.psb-glas #psb-fuss,
	body.psb-glas .entry-content,
	body.psb-glas .toggle-top,
	body.psb-glas #scrollup,
	body.psb-glas .menu-toggle,
	body.psb-glas .psb-knopf { border: 1px solid CanvasText !important; }
	body.psb-glas .psb-licht::after { display: none; }
}

/* Alles in Kleinschrift und in derselben Schrift, Kopf bis Fuß, auch Cookie-Banner (Robert 26.11.).
   Nur die Darstellung ist klein: im Seitentext bleibt die richtige Schreibweise für Vorlesegeräte und Suchmaschinen. */
body.psb-glas, body.psb-glas *:not(.fa):not([class^="fa-"]):not([class*=" fa-"]):not([class^="fa "]):not(.dashicons):not([class*="dashicons-"]), body.psb-glas input::placeholder, body.psb-glas textarea::placeholder {
	text-transform: lowercase !important; font-family: var(--text-schrift) !important;
}

/* =====================================================================
 * Dunkle Seite (Robert 26.11.: Hell/Dunkel auf der ganzen Seite). Dunkles Glas, helle Schrift, Fotos unverändert.
 * Kontrast: #e8edf3 auf #0e1116 ca. 16:1, leise #a9b4c0 ca. 8,5:1.
 * ===================================================================== */
html.psb-dunkel body.psb-glas {
	--text: #e8edf3;
	--leise: #a9b4c0;
	--glas-fuellung: linear-gradient(160deg, rgba(42, 48, 58, 0.74) 0%, rgba(26, 30, 37, 0.66) 55%, rgba(20, 23, 29, 0.7) 100%);
	--glas-kante: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 1px 0 0 rgba(255, 255, 255, 0.07), inset -1px 0 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
	--glas-schatten: 0 1px 2px rgba(0, 0, 0, 0.35), 0 22px 60px -30px rgba(0, 0, 0, 0.75);
	--glas-schatten-hoch: 0 1px 2px rgba(0, 0, 0, 0.4), 0 28px 70px -28px rgba(0, 0, 0, 0.85);
	--glas-weich: blur(22px) saturate(1.3) brightness(0.92);
	background: linear-gradient(180deg, #11151b 0%, #0b0d11 45%, #07080a 100%) fixed;
	color: var(--text);
}
html.psb-dunkel body.psb-glas,
html.psb-dunkel body.psb-glas p, html.psb-dunkel body.psb-glas li, html.psb-dunkel body.psb-glas td, html.psb-dunkel body.psb-glas th,
html.psb-dunkel body.psb-glas h1, html.psb-dunkel body.psb-glas h2, html.psb-dunkel body.psb-glas h3, html.psb-dunkel body.psb-glas h4,
html.psb-dunkel body.psb-glas .entry-title, html.psb-dunkel body.psb-glas .site-title a, html.psb-dunkel body.psb-glas .site-description,
html.psb-dunkel body.psb-glas .main-navigation a, html.psb-dunkel body.psb-glas .entry-content a, html.psb-dunkel body.psb-glas #psb-fuss,
html.psb-dunkel body.psb-glas #psb-fuss a, html.psb-dunkel body.psb-glas .menu-toggle, html.psb-dunkel body.psb-glas .toggle-top,
html.psb-dunkel body.psb-glas .psb-knopf, html.psb-dunkel body.psb-glas label, html.psb-dunkel body.psb-glas figcaption { color: var(--text) !important; }
html.psb-dunkel body.psb-glas .site-description, html.psb-dunkel body.psb-glas .psb-foto-fuss, html.psb-dunkel body.psb-glas .psb-foto-raum,
html.psb-dunkel body.psb-glas .psb-foto-pfad a, html.psb-dunkel body.psb-glas .psb-foto-unterschrift, html.psb-dunkel body.psb-glas .psb-such-meldung { color: var(--leise) !important; }
html.psb-dunkel body.psb-glas .search-field, html.psb-dunkel body.psb-glas input, html.psb-dunkel body.psb-glas textarea, html.psb-dunkel body.psb-glas select {
	background: rgba(20, 23, 29, 0.85) !important; color: var(--text) !important; border-color: rgba(255, 255, 255, 0.16) !important;
}
html.psb-dunkel body.psb-glas ::placeholder { color: #8994a1 !important; }
html.psb-dunkel body.psb-glas .psb-raster-knopf img, html.psb-dunkel body.psb-glas .psb-foto-mehr img { background: #1a1e24; }
html.psb-dunkel body.psb-glas .psb-leuchte { background: rgba(8, 10, 13, 0.82) !important; }
html.psb-dunkel body.psb-glas .psb-leuchte .psb-l-titel, html.psb-dunkel body.psb-glas .psb-leuchte .psb-l-text { color: var(--text) !important; }
html.psb-dunkel body.psb-glas hr, html.psb-dunkel body.psb-glas .wp-block-separator { border-color: rgba(255, 255, 255, 0.14) !important; }
html.psb-dunkel body.psb-glas :focus-visible { outline-color: #ffffff !important; }
/* sanfter Wechsel, nur beim Umschalten (sonst kein Aufblitzen beim Laden) */
html.psb-licht-wechsel body.psb-glas, html.psb-licht-wechsel body.psb-glas * { transition: background-color .9s ease, color .9s ease, border-color .9s ease, box-shadow .9s ease !important; }

/* Mond/Sonne unten rechts: runder Nebel wie in der Galerie */
#psb-licht-knopf {
	position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 64px); z-index: 99;
	display: grid; place-items: center; width: 46px; height: 46px; padding: 0; margin: 0; cursor: pointer;
	border: 0 !important; border-radius: 50% !important; color: rgba(31, 40, 51, 0.8);
	background: radial-gradient(circle closest-side, rgba(150,170,196,0.30) 0%, rgba(165,184,208,0.18) 42%, rgba(180,196,216,0.06) 72%, rgba(180,196,216,0) 100%);
	box-shadow: none !important; -webkit-tap-highlight-color: transparent; transition: background .4s ease, color .4s ease;
}
#psb-licht-knopf svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.25; }
#psb-licht-knopf .sonne { display: none; }
html.psb-dunkel #psb-licht-knopf .sonne { display: block; }
html.psb-dunkel #psb-licht-knopf .mond { display: none; }
html.psb-dunkel #psb-licht-knopf { color: rgba(238, 242, 247, 0.85); background: radial-gradient(circle closest-side, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.08) 42%, rgba(255,255,255,0.02) 72%, rgba(255,255,255,0) 100%); }
#psb-licht-knopf:focus-visible { outline: 1.5px solid currentColor; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html.psb-licht-wechsel body.psb-glas, html.psb-licht-wechsel body.psb-glas * { transition: none !important; } }

/* Dunkel: Kopfleiste, Untermenü, Fußzeile (Lichtbrechung hat eigene weiße Füllungen), aktiver Menüpunkt, Hover */
html.psb-dunkel.psb-brechung body.psb-glas .site-header-main,
html.psb-dunkel.psb-brechung body.psb-glas .main-navigation ul ul,
html.psb-dunkel.psb-brechung body.psb-glas #psb-fuss {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.06) 100%) !important;
}
html.psb-dunkel.psb-brechung body.psb-glas .site-header-main::before,
html.psb-dunkel.psb-brechung body.psb-glas .main-navigation ul ul::before,
html.psb-dunkel.psb-brechung body.psb-glas #psb-fuss::before {
	background: linear-gradient(160deg, rgba(36, 41, 50, 0.92) 0%, rgba(24, 28, 34, 0.88) 55%, rgba(18, 21, 26, 0.9) 100%);
	box-shadow: 0 0 calc(var(--psb-kante, 8px) * 0.8) calc(var(--psb-kante, 8px) * 0.25) rgba(0, 0, 0, 0.45);
}
html.psb-dunkel body.psb-glas .site-header-main,
html.psb-dunkel body.psb-glas .main-navigation ul ul,
html.psb-dunkel body.psb-glas #psb-fuss,
html.psb-dunkel body.psb-glas .search-container { background-color: rgba(22, 26, 32, 0.82); }
html.psb-dunkel body.psb-glas .main-navigation .current-menu-item > a,
html.psb-dunkel body.psb-glas .main-navigation .current_page_item > a,
html.psb-dunkel body.psb-glas .main-navigation a:hover {
	background: rgba(255, 255, 255, 0.1) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 18px -10px rgba(0, 0, 0, 0.6) !important;
}
html.psb-dunkel body.psb-glas .psb-knopf:hover,
html.psb-dunkel body.psb-glas .search-submit:hover,
html.psb-dunkel body.psb-glas .entry-content .wp-block-button__link:hover {
	background: linear-gradient(160deg, rgba(60, 68, 80, 0.9), rgba(36, 41, 50, 0.85)) !important;
}
html.psb-dunkel body.psb-glas .psb-licht::after { background: radial-gradient(240px circle at var(--mx, 18%) var(--my, 0%), rgba(255,255,255,0.28), rgba(255,255,255,0) 60%); }
html.psb-dunkel body.psb-glas .toggle-top .icon, html.psb-dunkel body.psb-glas #scrollup .icon, html.psb-dunkel body.psb-glas .menu-toggle .icon { fill: var(--text); color: var(--text); }
html.psb-dunkel body.psb-glas .search-field { background: rgba(20, 23, 29, 0.85) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18) !important; }
html.psb-dunkel body.psb-glas .toggle-top, html.psb-dunkel body.psb-glas #scrollup, html.psb-dunkel body.psb-glas .menu-toggle, html.psb-dunkel body.psb-glas .psb-knopf { color: var(--text) !important; }

/* Handy: „nach oben“-Pfeil weg (es wird ohnehin gewischt), Mond/Sonne an seinen Platz (Robert 26.11.) */
@media (max-width: 782px) {
	body:has(#psb-licht-knopf) #scrollup { display: none !important; }
	#psb-licht-knopf { bottom: max(16px, env(safe-area-inset-bottom)); }
}

/* =====================================================================
 * Funkelnde Kanten wie die Bilderrahmen der Galerie (Robert 26.11.: „ohne dicke breite Rahmen, mit diesem kleinen
 * Blitzen an den Seiten“). Kopfleiste, Untermenü, Textplatten, Fußzeile: haarfeine Kante, ein Funke wandert langsam
 * entlang, das Licht unter der Maus bleibt. Aktiv mit html.psb-funken (Test ?psb_seiten=test bzw. Option psb_seiten_funken).
 * ===================================================================== */
@property --psb-funke { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes psbFunke { to { --psb-funke: 360deg; } }

/* breiten Brechungsrand weg: Füllung bis an die Kante */
html.psb-funken.psb-brechung body.psb-glas .site-header-main,
html.psb-funken.psb-brechung body.psb-glas .main-navigation ul ul,
html.psb-funken.psb-brechung body.psb-glas #psb-fuss { background: transparent !important; }
html.psb-funken.psb-brechung body.psb-glas .site-header-main::before,
html.psb-funken.psb-brechung body.psb-glas .main-navigation ul ul::before,
html.psb-funken.psb-brechung body.psb-glas #psb-fuss::before { inset: 0 !important; box-shadow: none !important; }

/* feine Kante + wandernder Funke + Licht unter der Maus */
html.psb-funken body.psb-glas .site-header-main.psb-licht::after,
html.psb-funken body.psb-glas .main-navigation ul ul.psb-licht::after,
html.psb-funken body.psb-glas #psb-fuss.psb-licht::after,
html.psb-funken body.psb-glas .entry-content.psb-licht::after,
html.psb-funken body.psb-glas .psb-platte.psb-licht::after {
	padding: 1px;
	background:
		conic-gradient(from var(--psb-funke), rgba(120,160,214,0) 0deg, rgba(120,160,214,0) 322deg, rgba(120,160,214,0.55) 341deg, #5f93d1 349deg, #ffffff 351deg, rgba(120,160,214,0.55) 356deg, rgba(120,160,214,0) 360deg),
		radial-gradient(200px circle at var(--mx, 18%) var(--my, 0%), rgba(140,175,220,0.55), rgba(140,175,220,0) 60%),
		linear-gradient(rgba(31,40,51,0.13), rgba(31,40,51,0.13));
	animation: psbFunke 17s linear infinite;
	filter: drop-shadow(0 0 2px rgba(95,147,209,0.55));
}
html.psb-funken body.psb-glas .site-header-main.psb-licht::after { animation-duration: 13s; }
html.psb-funken body.psb-glas #psb-fuss.psb-licht::after { animation-duration: 21s; animation-direction: reverse; }
html.psb-funken body.psb-glas .psb-platte.psb-licht::after { animation-duration: 19s; }

/* im Dunkeln: Kante zarter, Funke bleibt hell */
html.psb-funken.psb-dunkel body.psb-glas .site-header-main.psb-licht::after,
html.psb-funken.psb-dunkel body.psb-glas .main-navigation ul ul.psb-licht::after,
html.psb-funken.psb-dunkel body.psb-glas #psb-fuss.psb-licht::after,
html.psb-funken.psb-dunkel body.psb-glas .entry-content.psb-licht::after,
html.psb-funken.psb-dunkel body.psb-glas .psb-platte.psb-licht::after {
	background:
		conic-gradient(from var(--psb-funke), rgba(255,255,255,0) 0deg, rgba(255,255,255,0) 318deg, rgba(255,255,255,0.35) 340deg, #ffffff 350deg, rgba(255,255,255,0.35) 355deg, rgba(255,255,255,0) 360deg),
		radial-gradient(200px circle at var(--mx, 18%) var(--my, 0%), rgba(255,255,255,0.3), rgba(255,255,255,0) 60%),
		linear-gradient(rgba(255,255,255,0.14), rgba(255,255,255,0.14));
	filter: drop-shadow(0 0 2px rgba(255,255,255,0.8));
}
@media (prefers-reduced-motion: reduce) {
	html.psb-funken body.psb-glas .psb-licht::after { animation: none !important; --psb-funke: 300deg; }
}

/* Pixelfehler oben links an der Textplatte (Robert 26.11.): Das Theme setzt ::after als display:table (Clearfix),
   dadurch schrumpfte das Kantenlicht auf 2 x 2 px. Jetzt über die ganze Fläche gespannt. */
body.psb-glas .psb-licht::after { display: block !important; }
body.psb-glas .entry-content.psb-licht { position: relative; }

/* Theme-Link „Edit …“ unter dem Seitentext (nur für Angemeldete) ausblenden, Bearbeiten geht über die Admin-Leiste (Robert 26.11.) */
body.psb-glas .edit-link { display: none !important; }

/* Schließen-X überall nur als Zeichen, ohne Knopfhintergrund (Robert 26.11.: „nur das x stehen“) */
body.psb-glas .psb-leuchte .psb-l-zu, body.psb-glas .psb-leuchte .psb-l-zu:hover, body.psb-glas .psb-leuchte .psb-l-zu:active { background: none !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; color: #1f2833 !important; font-size: 34px !important; transform: none !important; }
body.psb-glas .psb-leuchte .psb-l-zu::before, body.psb-glas .psb-leuchte .psb-l-zu::after { display: none !important; }
body.psb-glas .psb-leuchte .psb-l-zu:focus { outline: none !important; }
body.psb-glas .psb-leuchte .psb-l-zu:focus-visible { outline: none !important; text-decoration: underline; text-underline-offset: 6px; }
html.psb-dunkel body.psb-glas .psb-leuchte .psb-l-zu { color: #eef2f7 !important; }

/* Großansicht der Raumseiten (Robert 27.11.): im Dunkeln schwarz statt grau, Pfeile ohne Kasten wie das X */
html.psb-dunkel body.psb-glas .psb-leuchte::backdrop { background: rgba(6, 7, 9, 0.94); }
body.psb-glas .psb-leuchte .psb-l-zurueck, body.psb-glas .psb-leuchte .psb-l-zurueck:hover, body.psb-glas .psb-leuchte .psb-l-zurueck:active, body.psb-glas .psb-leuchte .psb-l-weiter, body.psb-glas .psb-leuchte .psb-l-weiter:hover, body.psb-glas .psb-leuchte .psb-l-weiter:active { background: none !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; color: #1f2833 !important; transform: none !important; }
body.psb-glas .psb-leuchte .psb-l-zurueck::before, body.psb-glas .psb-leuchte .psb-l-zurueck::after, body.psb-glas .psb-leuchte .psb-l-weiter::before, body.psb-glas .psb-leuchte .psb-l-weiter::after { display: none !important; }
body.psb-glas .psb-leuchte .psb-l-zurueck:focus, body.psb-glas .psb-leuchte .psb-l-weiter:focus { outline: none !important; }
body.psb-glas .psb-leuchte .psb-l-zurueck:focus-visible, body.psb-glas .psb-leuchte .psb-l-weiter:focus-visible { outline: none !important; text-decoration: underline; text-underline-offset: 6px; }
html.psb-dunkel body.psb-glas .psb-leuchte .psb-l-zurueck, html.psb-dunkel body.psb-glas .psb-leuchte .psb-l-weiter { color: #eef2f7 !important; }
@media (max-width: 782px) { body.psb-glas .psb-leuchte #psb-licht-knopf { top: max(17px, env(safe-area-inset-top)); left: max(14px, env(safe-area-inset-left)); right: auto; bottom: auto; } }

/* Logo rb-Ligatur in der Kopfzeile (Robert 27.11., nur mit html.psb-logo): Zeichen in Schriftfarbe, hell schwarz, dunkel weiß */
html.psb-logo body.psb-glas .site-branding { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
html.psb-logo body.psb-glas .site-branding::before { content: ""; grid-row: 1 / span 2; width: 30px; height: 30px; background: var(--text, #1f2833); -webkit-mask: url("../assets/logo/zeichen.svg") center / contain no-repeat; mask: url("../assets/logo/zeichen.svg") center / contain no-repeat; }
html.psb-logo body.psb-glas .site-branding > * { grid-column: 2; }
@media (max-width: 782px) { html.psb-logo body.psb-glas .site-branding { column-gap: 9px; } html.psb-logo body.psb-glas .site-branding::before { width: 22px; height: 22px; } html.psb-logo body.psb-glas .site-title a { letter-spacing: 0.22em !important; } }
@media (max-width: 430px) { html.psb-logo body.psb-glas .site-branding { column-gap: 8px; } html.psb-logo body.psb-glas .site-branding::before { width: 20px; height: 20px; } html.psb-logo body.psb-glas .site-title a { letter-spacing: 0.15em !important; } }
@media (max-width: 374px) { html.psb-logo body.psb-glas .site-title a { letter-spacing: 0.08em !important; } }
/* Zeichen mittig zwischen Rand und Schrift (Robert 27.11.: Rand links größer als Abstand zur Schrift); Schrift bleibt an ihrer Stelle */
html.psb-logo body.psb-glas .site-branding { column-gap: 21px; }
html.psb-logo body.psb-glas .site-branding::before { margin-left: -7px; }
@media (max-width: 782px) { html.psb-logo body.psb-glas .site-branding { column-gap: 15px; } html.psb-logo body.psb-glas .site-branding::before { margin-left: -6px; } }
@media (max-width: 430px) { html.psb-logo body.psb-glas .site-branding { column-gap: 14px; } html.psb-logo body.psb-glas .site-branding::before { margin-left: -6px; } }
/* Korrektur: nicht das Zeichen verschieben (wurde vom overflow der Branding-Box links abgeschnitten), sondern die ganze Box */
html.psb-logo body.psb-glas .site-branding::before { margin-left: 0 !important; }
html.psb-logo body.psb-glas .site-branding { margin-left: -7px !important; }
@media (max-width: 782px) { html.psb-logo body.psb-glas .site-branding { margin-left: -6px !important; } }
