/* UAP Footer – frontend.
 *
 * Typography is never set: font, size and colors that are not chosen inherit
 * from the theme / Custom CSS. The minimum height is a min-height, so a taller
 * content always makes the footer taller.
 */

.uap-ft-footer {
	box-sizing: border-box;
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: var(--uap-ft-min-height, 0);
	padding: var(--uap-ft-padding-y, 40px) var(--uap-ft-padding-x, 24px);
	background-color: var(--uap-ft-bg, transparent);
	clear: both;
}

.uap-ft-footer.uap-ft-has-bg-image {
	background-image: var(--uap-ft-bg-image);
	background-size: var(--uap-ft-bg-size, cover);
	background-position: var(--uap-ft-bg-position, center center);
	background-repeat: var(--uap-ft-bg-repeat, no-repeat);
}

/* Area overlays (since 0.8.0, replace the image overlay of the footer): two color areas, separated at the top edge of
 * the copyright line (where the divider line stands or would stand). They lie above the background (image and color),
 * below the content, take no pointer events and also act without an image.
 * - Content (.uap-ft-inner) forms the stacking context; the overlays are the pseudo elements ::before (upper area, ends
 *   at the line) and ::after (lower area, starts at the line) of the copyright line, behind its content (z-index -1).
 *   They are part of the moving content, so the fade-in movement (24 px) never shifts them against the line.
 * - They reach beyond the line block to the edges of the footer (padding included); the footer clips them. 100000px is
 *   only a bound (the footer cuts it), -100vw / 100vw reach the side edges also with a maximum content width.
 * - Without a copyright line block (class uap-ft-ov-whole) the upper overlay covers the whole footer (::before of the footer). */
.uap-ft-footer.uap-ft-has-ov {
	overflow: hidden;
	overflow: clip;
}

.uap-ft-footer.uap-ft-has-ov > .uap-ft-inner {
	position: relative;
	z-index: 1;
}

.uap-ft-footer.uap-ft-has-ov .uap-ft-legal {
	position: relative;
	--uap-ft-legal-bw: 0px;
}

.uap-ft-footer.uap-ft-has-ov .uap-ft-legal.uap-ft-legal-divider {
	--uap-ft-legal-bw: 1px;
}

.uap-ft-footer.uap-ft-has-ov-top .uap-ft-legal::before,
.uap-ft-footer.uap-ft-has-ov-bottom .uap-ft-legal::after {
	content: "";
	position: absolute;
	left: -100vw;
	right: -100vw;
	z-index: -1;
	pointer-events: none;
}

.uap-ft-footer.uap-ft-has-ov-top .uap-ft-legal::before {
	top: -100000px;
	bottom: calc(100% + var(--uap-ft-legal-bw));
	background: var(--uap-ft-ov-top);
}

.uap-ft-footer.uap-ft-has-ov-bottom .uap-ft-legal::after {
	top: calc(-1 * var(--uap-ft-legal-bw));
	bottom: -100000px;
	background: var(--uap-ft-ov-bottom);
}

.uap-ft-footer.uap-ft-ov-whole.uap-ft-has-ov-top::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: var(--uap-ft-ov-top);
	pointer-events: none;
}

.uap-ft-footer.uap-ft-has-color {
	color: var(--uap-ft-color);
}

.uap-ft-footer *,
.uap-ft-footer *::before,
.uap-ft-footer *::after {
	box-sizing: border-box;
}

.uap-ft-valign-top { justify-content: flex-start; }
.uap-ft-valign-center { justify-content: center; }
.uap-ft-valign-bottom { justify-content: flex-end; }

.uap-ft-inner {
	width: 100%;
	max-width: var(--uap-ft-max-width, none);
	margin-left: auto;
	margin-right: auto;
}

.uap-ft-groups {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--uap-ft-group-gap, 32px);
}

.uap-ft-group {
	flex: 1 1 0;
	min-width: 0;
}

/* Stacked groups below the chosen width (frontend.js sets the class from
 * data-uap-ft-stack, because the breakpoint is a setting). */
.uap-ft-footer.uap-ft-stacked .uap-ft-groups {
	flex-direction: column;
}

.uap-ft-align-left { text-align: left; }
.uap-ft-align-center { text-align: center; }
.uap-ft-align-right { text-align: right; }

.uap-ft-rich > :first-child { margin-top: 0; }
.uap-ft-rich > :last-child { margin-bottom: 0; }

.uap-ft-rich img {
	max-width: 100%;
	height: auto;
}

.uap-ft-social {
	margin: 12px 0;
}

/* Since 0.4.0: a Social Box at the top of its group starts at the same height
 * as the text of the other groups (measured 0.3.0: box text 28 px lower =
 * 12 px of this margin + 16 px padding of the box). */
.uap-ft-group > .uap-ft-social:first-child {
	margin-top: 0;
}

.uap-ft-group > .uap-ft-social:last-child {
	margin-bottom: 0;
}

/* Event list of UAP Calendar (area "Event Kalender Einbindung", in a group or the
 * copyright line). Only the distance is set; the list itself (lines, date, name)
 * is styled by UAP Calendar. */
.uap-ft-events {
	margin: 12px 0;
}

.uap-ft-group > .uap-ft-events:first-child {
	margin-top: 0;
}

.uap-ft-group > .uap-ft-events:last-child {
	margin-bottom: 0;
}

.uap-ft-align-center .uap-ft-social .uap-sb-box { margin-left: auto; margin-right: auto; }
.uap-ft-align-right .uap-ft-social .uap-sb-box { margin-left: auto; }

/* Link presentation of a group. The anchor id raises the specificity above
 * the link rules of the Custom CSS of the target website, like the anchor of
 * UAP Social Box (:not(#uap-sb-specificity-anchor)). */
.uap-ft-footer .uap-ft-rich.uap-ft-links-custom-color a:not(#uap-ft-specificity-anchor),
.uap-ft-footer .uap-ft-events.uap-ft-links-custom-color a:not(#uap-ft-specificity-anchor) {
	color: var(--uap-ft-link-color) !important;
}

.uap-ft-footer .uap-ft-rich.uap-ft-links-custom-hover a:not(#uap-ft-specificity-anchor):hover,
.uap-ft-footer .uap-ft-rich.uap-ft-links-custom-hover a:not(#uap-ft-specificity-anchor):focus,
.uap-ft-footer .uap-ft-events.uap-ft-links-custom-hover a:not(#uap-ft-specificity-anchor):hover,
.uap-ft-footer .uap-ft-events.uap-ft-links-custom-hover a:not(#uap-ft-specificity-anchor):focus {
	color: var(--uap-ft-link-hover-color) !important;
}

.uap-ft-footer .uap-ft-rich.uap-ft-links-underlined a:not(#uap-ft-specificity-anchor),
.uap-ft-footer .uap-ft-events.uap-ft-links-underlined a:not(#uap-ft-specificity-anchor) {
	text-decoration: underline !important;
}

.uap-ft-footer .uap-ft-rich.uap-ft-links-not-underlined a:not(#uap-ft-specificity-anchor),
.uap-ft-footer .uap-ft-events.uap-ft-links-not-underlined a:not(#uap-ft-specificity-anchor) {
	text-decoration: none !important;
}

/* Copyright / Impressum / Datenschutz line across the full width. */
.uap-ft-legal {
	margin-top: var(--uap-ft-legal-gap, 24px);
}

.uap-ft-legal.uap-ft-legal-divider {
	padding-top: var(--uap-ft-legal-gap, 24px);
	border-top: 1px solid var(--uap-ft-divider-color, currentColor);
}

/* Full-width divider line (0.9.0): the line stays the border-top of the copyright line (same vertical position, moves
 * with the content when fading in); a border image with an outset of 100vw to both sides draws it from edge to edge
 * of the footer (padding included, independent of the maximum content width). It uses no pseudo element (those belong
 * to the area overlays). The footer clips the outset (class uap-ft-has-divider-full), so there is no horizontal overflow
 * also without overlay or fade-in. */
.uap-ft-footer.uap-ft-has-divider-full {
	overflow: hidden;
	overflow: clip;
}

.uap-ft-legal.uap-ft-legal-divider.uap-ft-legal-divider-full {
	border-image: linear-gradient(var(--uap-ft-divider-color, currentColor), var(--uap-ft-divider-color, currentColor)) 1 / 1px 0 0 0 / 0 100vw 0 100vw;
}

/* Since 0.3.0: the copyright stands at the left edge; the links keep the
 * chosen alignment over the full width (centered: the empty third column
 * mirrors the copyright column, so the links stay in the middle). */
.uap-ft-legal-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 0.4em 1.2em;
}

/* Left / right: two columns only (an empty third column would add the gap
 * and keep right-aligned links 1.2em away from the edge, measured 0.3.0). */
.uap-ft-legal.uap-ft-align-left .uap-ft-legal-row,
.uap-ft-legal.uap-ft-align-right .uap-ft-legal-row {
	grid-template-columns: auto minmax(0, 1fr);
}

.uap-ft-legal.uap-ft-align-left .uap-ft-legal-end,
.uap-ft-legal.uap-ft-align-right .uap-ft-legal-end {
	display: none;
}

.uap-ft-legal-start {
	justify-self: start;
	text-align: left;
}

.uap-ft-legal-end {
	min-width: 0;
}

.uap-ft-legal-items {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 0.6em;
}

.uap-ft-legal.uap-ft-align-left .uap-ft-legal-items { justify-content: flex-start; }
.uap-ft-legal.uap-ft-align-center .uap-ft-legal-items { justify-content: center; }
.uap-ft-legal.uap-ft-align-right .uap-ft-legal-items { justify-content: flex-end; }

/* Narrow footer: copyright above the links. */
.uap-ft-footer.uap-ft-stacked .uap-ft-legal-row {
	grid-template-columns: minmax(0, 1fr);
}

.uap-ft-footer.uap-ft-stacked .uap-ft-legal-end {
	display: none;
}

/* Fade in. Only hidden once frontend.js is running (class uap-ft-fade-ready),
 * so without JavaScript the footer stays visible. The transition only starts
 * with uap-ft-fade-armed (set one frame later), so hiding on page load is
 * immediate and not itself animated (measured in 0.1.0: visible footer faded
 * out after load). Since 0.4.0 the upward movement belongs to the content
 * (.uap-ft-inner) inside the clipped footer: a translated footer itself made
 * the page 24 px higher until it was visible, so the page jumped back at its
 * end (measured 0.3.0: 6831 -> 6807 px). */
.uap-ft-footer.uap-ft-fade {
	overflow: hidden;
	overflow: clip;
}

.uap-ft-footer.uap-ft-fade.uap-ft-fade-ready {
	opacity: 0;
}

.uap-ft-footer.uap-ft-fade.uap-ft-fade-ready .uap-ft-inner {
	transform: translateY(24px);
}

.uap-ft-footer.uap-ft-fade.uap-ft-fade-ready.uap-ft-fade-armed {
	transition: opacity var(--uap-ft-fade-duration, 800ms) ease;
}

.uap-ft-footer.uap-ft-fade.uap-ft-fade-ready.uap-ft-fade-armed .uap-ft-inner {
	transition: transform var(--uap-ft-fade-duration, 800ms) ease;
}

.uap-ft-footer.uap-ft-fade.uap-ft-fade-ready.uap-ft-visible {
	opacity: 1;
}

.uap-ft-footer.uap-ft-fade.uap-ft-fade-ready.uap-ft-visible .uap-ft-inner {
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.uap-ft-footer.uap-ft-fade.uap-ft-fade-ready .uap-ft-inner {
		transform: none;
		transition: none;
	}
}

/* Fade in, options of 0.14.0 (the default markup carries neither class: behavior as before).
 * - uap-ft-fade-bg-static ("Hintergrund mit einblenden" off): only what lay on the <footer> itself in 0.13.0 stays visible at
 *   once: background color, background image and the overlay on the footer (::before). Everything that belonged to the content
 *   (.uap-ft-inner: groups, copyright line with divider line and the area overlays of the line) fades and moves up by 24 px as
 *   before, with the same duration; only the opacity moves from the footer to .uap-ft-inner.
 * - uap-ft-fade-bg-move ("Hintergrund mitbewegen"): the background moves up by the same 24 px with the same duration. It is
 *   drawn by ::after of the footer (z-index -1 in the isolated footer, below overlay and content); the footer itself has no
 *   background then. The footer clips (overflow, see above), so the page height never changes (0.4.0 finding). With the
 *   background fading too, the 24 px strip at the top is faint; without fading it is visible until the background has arrived.
 * Specificity: class selectors only (0,3,0) to (0,7,0); the Custom CSS of the target website has no rule on these elements. */
.uap-ft-footer.uap-ft-fade.uap-ft-fade-ready.uap-ft-fade-bg-static,
.uap-ft-footer.uap-ft-fade.uap-ft-fade-ready.uap-ft-fade-bg-static.uap-ft-fade-armed {
	opacity: 1;
	transition: none;
}

.uap-ft-footer.uap-ft-fade.uap-ft-fade-ready.uap-ft-fade-bg-static .uap-ft-inner {
	opacity: 0;
}

.uap-ft-footer.uap-ft-fade.uap-ft-fade-ready.uap-ft-fade-armed.uap-ft-fade-bg-static .uap-ft-inner {
	transition: opacity var(--uap-ft-fade-duration, 800ms) ease, transform var(--uap-ft-fade-duration, 800ms) ease;
}

.uap-ft-footer.uap-ft-fade.uap-ft-fade-ready.uap-ft-visible.uap-ft-fade-bg-static .uap-ft-inner {
	opacity: 1;
}

.uap-ft-footer.uap-ft-fade.uap-ft-fade-bg-move {
	isolation: isolate;
	background-color: transparent;
	background-image: none;
}

.uap-ft-footer.uap-ft-fade.uap-ft-fade-bg-move::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: -1;
	pointer-events: none;
	background-color: var(--uap-ft-bg, transparent);
}

.uap-ft-footer.uap-ft-fade.uap-ft-fade-bg-move.uap-ft-has-bg-image::after {
	background-image: var(--uap-ft-bg-image);
	background-size: var(--uap-ft-bg-size, cover);
	background-position: var(--uap-ft-bg-position, center center);
	background-repeat: var(--uap-ft-bg-repeat, no-repeat);
}

.uap-ft-footer.uap-ft-fade.uap-ft-fade-ready.uap-ft-fade-bg-move::after {
	transform: translateY(24px);
}

.uap-ft-footer.uap-ft-fade.uap-ft-fade-ready.uap-ft-fade-armed.uap-ft-fade-bg-move::after {
	transition: transform var(--uap-ft-fade-duration, 800ms) ease;
}

.uap-ft-footer.uap-ft-fade.uap-ft-fade-ready.uap-ft-visible.uap-ft-fade-bg-move::after {
	transform: none;
}

/* 0.15.0: with bg-move the background (::after) starts 24 px higher up, so the top 24 px strip has no background yet. The area
 * overlay (.uap-ft-legal::before, or footer::before with uap-ft-ov-whole) still covered the strip and lay over the page behind
 * the footer (white body -> neutral grey for a moment). The footer is therefore clipped by the same 24 px at the top and the
 * clip opens with the same duration and curve as the transform of ::after, so the cut edge runs exactly along the top edge of
 * the moving background. The strip shows only what lies behind the footer (as without overlays). The end state is unchanged.
 * clip-path only (no height, no layout change); with bg-static the opacity stays 1, so only the clip-path transitions there. */
.uap-ft-footer.uap-ft-fade.uap-ft-fade-ready.uap-ft-fade-bg-move {
	clip-path: inset(24px 0 0 0);
}

.uap-ft-footer.uap-ft-fade.uap-ft-fade-ready.uap-ft-fade-armed.uap-ft-fade-bg-move {
	transition: opacity var(--uap-ft-fade-duration, 800ms) ease, clip-path var(--uap-ft-fade-duration, 800ms) ease;
}

.uap-ft-footer.uap-ft-fade.uap-ft-fade-ready.uap-ft-fade-armed.uap-ft-fade-bg-move.uap-ft-fade-bg-static {
	transition: clip-path var(--uap-ft-fade-duration, 800ms) ease;
}

.uap-ft-footer.uap-ft-fade.uap-ft-fade-ready.uap-ft-visible.uap-ft-fade-bg-move {
	clip-path: inset(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
	.uap-ft-footer.uap-ft-fade.uap-ft-fade-ready.uap-ft-fade-bg-move::after,
	.uap-ft-footer.uap-ft-fade.uap-ft-fade-ready.uap-ft-fade-armed.uap-ft-fade-bg-move::after {
		transform: none;
		transition: none;
	}

	.uap-ft-footer.uap-ft-fade.uap-ft-fade-ready.uap-ft-fade-armed.uap-ft-fade-bg-static .uap-ft-inner {
		transition: opacity var(--uap-ft-fade-duration, 800ms) ease;
	}

	.uap-ft-footer.uap-ft-fade.uap-ft-fade-ready.uap-ft-fade-bg-move,
	.uap-ft-footer.uap-ft-fade.uap-ft-fade-ready.uap-ft-visible.uap-ft-fade-bg-move {
		clip-path: none;
	}

	.uap-ft-footer.uap-ft-fade.uap-ft-fade-ready.uap-ft-fade-armed.uap-ft-fade-bg-move {
		transition: opacity var(--uap-ft-fade-duration, 800ms) ease;
	}

	.uap-ft-footer.uap-ft-fade.uap-ft-fade-ready.uap-ft-fade-armed.uap-ft-fade-bg-move.uap-ft-fade-bg-static {
		transition: none;
	}
}

.uap-ft-preview-page #uap-ft-preview-slot {
	width: 100%;
}

/* Event list in the copyright line (since 0.6.0): distance to the line above. */
.uap-ft-legal > .uap-ft-events {
	margin: 12px 0 0;
}

.uap-ft-legal > .uap-ft-events:first-child {
	margin-top: 0;
}

/* ===================================================================
 * Hamburger menu (since 0.6.0). Everything has its own prefix
 * (uap-ft-menu-); no theme class (.navbar-toggle, .side-nav ...) is used,
 * because the Custom CSS of the target website styles those heavily.
 * The button is a <button>, which the Custom CSS styles with !important
 * (position, display, margin, padding, border, background ...): the rules of
 * the button therefore carry the anchor :not(#uap-ft-specificity-anchor)
 * (one ID = higher specificity than any number of classes) and !important.
 * =================================================================== */

html.uap-ft-menu-lock,
html.uap-ft-menu-lock body {
	overflow: hidden !important;
}

button.uap-ft-menu-toggle:not(#uap-ft-specificity-anchor) {
	--uap-ft-menu-bar-h: max(2px, calc(var(--uap-ft-menu-btn-size, 22px) / 11));
	--uap-ft-menu-bar-gap: calc(var(--uap-ft-menu-btn-size, 22px) * 0.23);
	box-sizing: border-box !important;
	position: fixed !important;
	top: var(--uap-ft-menu-btn-y, 20px);
	z-index: 10000;
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--uap-ft-menu-bar-gap);
	width: calc(var(--uap-ft-menu-btn-size, 22px) + 18px) !important;
	height: calc(var(--uap-ft-menu-btn-size, 22px) + 18px) !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	background-image: none !important;
	box-shadow: none !important;
	mix-blend-mode: normal !important;
	color: var(--uap-ft-menu-btn-color, currentColor) !important;
	cursor: pointer !important;
	font-size: 0 !important;
	line-height: 0 !important;
	text-decoration: none;
	text-transform: none;
	-webkit-appearance: none;
	appearance: none;
}

button.uap-ft-menu-toggle.uap-ft-menu-btn-top-right:not(#uap-ft-specificity-anchor):not(.uap-ft-menu-toggle-inline) {
	right: var(--uap-ft-menu-btn-x, 20px);
}

button.uap-ft-menu-toggle.uap-ft-menu-btn-top-left:not(#uap-ft-specificity-anchor):not(.uap-ft-menu-toggle-inline) {
	left: var(--uap-ft-menu-btn-x, 20px);
}

body.admin-bar button.uap-ft-menu-toggle:not(#uap-ft-specificity-anchor):not(.uap-ft-menu-toggle-inline) {
	top: calc(var(--uap-ft-menu-btn-y, 20px) + 32px);
}

@media (max-width: 782px) {
	body.admin-bar button.uap-ft-menu-toggle:not(#uap-ft-specificity-anchor):not(.uap-ft-menu-toggle-inline) {
		top: calc(var(--uap-ft-menu-btn-y, 20px) + 46px);
	}
}

/* Moved to the place of the theme button: in the flow, not fixed. */
button.uap-ft-menu-toggle.uap-ft-menu-toggle-inline:not(#uap-ft-specificity-anchor) {
	position: relative !important;
	top: auto;
	z-index: auto;
	flex: none;
}

/* Hidden until frontend.js has placed it (no jump from the fixed corner to the theme place). */
button.uap-ft-menu-toggle:not(.uap-ft-menu-ready):not(#uap-ft-specificity-anchor) {
	visibility: hidden;
}

/* Bars (spans). The colors carry no anchor and no !important (since 0.6.1): a rule of the Custom CSS
 * of the target website that names these bars wins; the Custom CSS styles the button, not its spans. */
button.uap-ft-menu-toggle .uap-ft-menu-bar:not(#uap-ft-specificity-anchor) {
	display: block !important;
	flex: none;
	width: var(--uap-ft-menu-btn-size, 22px);
	height: var(--uap-ft-menu-bar-h);
	margin: 0 !important;
	padding: 0;
	border: 0;
	border-radius: 0;
	transition: transform 0.13s ease-out, opacity 0.13s ease-out, background-color 0.2s ease, width 0.13s ease-out;
}

button.uap-ft-menu-toggle .uap-ft-menu-bar {
	background-color: var(--uap-ft-menu-btn-color, currentColor);
}

button.uap-ft-menu-toggle:not(.uap-ft-menu-is-open):hover .uap-ft-menu-bar,
button.uap-ft-menu-toggle:not(.uap-ft-menu-is-open):focus-visible .uap-ft-menu-bar {
	background-color: var(--uap-ft-menu-btn-hover, currentColor);
}

/* Design "two bars": a full bar and a shorter one below it, flush right. */
button.uap-ft-menu-toggle.uap-ft-menu-design-two .uap-ft-menu-bar:nth-child(2):not(#uap-ft-specificity-anchor) {
	display: none !important;
}

button.uap-ft-menu-toggle.uap-ft-menu-design-two .uap-ft-menu-bar:nth-child(3):not(#uap-ft-specificity-anchor) {
	width: calc(var(--uap-ft-menu-btn-size, 22px) * 0.62);
	/* flush right with the long bar: shift by half of the length difference */
	transform: translateX(calc(var(--uap-ft-menu-btn-size, 22px) * 0.19));
}

/* Hover FX (closed button only): apart / tighter / the bars turn into "TLN". */
button.uap-ft-menu-toggle:not(#uap-ft-specificity-anchor) {
	transition: gap 0.15s ease !important;
}

button.uap-ft-menu-toggle.uap-ft-menu-fx-apart:not(.uap-ft-menu-is-open):hover:not(#uap-ft-specificity-anchor),
button.uap-ft-menu-toggle.uap-ft-menu-fx-apart:not(.uap-ft-menu-is-open):focus-visible:not(#uap-ft-specificity-anchor) {
	gap: calc(var(--uap-ft-menu-btn-size, 22px) * 0.42);
}

button.uap-ft-menu-toggle.uap-ft-menu-fx-tight:not(.uap-ft-menu-is-open):hover:not(#uap-ft-specificity-anchor),
button.uap-ft-menu-toggle.uap-ft-menu-fx-tight:not(.uap-ft-menu-is-open):focus-visible:not(#uap-ft-specificity-anchor) {
	gap: calc(var(--uap-ft-menu-btn-size, 22px) * 0.06);
}

button.uap-ft-menu-toggle .uap-ft-menu-tln {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: calc(var(--uap-ft-menu-btn-size, 22px) * 0.72);
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	color: var(--uap-ft-menu-btn-hover, currentColor);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

button.uap-ft-menu-toggle.uap-ft-menu-fx-custom.uap-ft-menu-has-text:not(.uap-ft-menu-is-open):hover .uap-ft-menu-bar,
button.uap-ft-menu-toggle.uap-ft-menu-fx-custom.uap-ft-menu-has-text:not(.uap-ft-menu-is-open):focus-visible .uap-ft-menu-bar {
	opacity: 0;
}

button.uap-ft-menu-toggle.uap-ft-menu-fx-custom:not(.uap-ft-menu-is-open):hover .uap-ft-menu-tln,
button.uap-ft-menu-toggle.uap-ft-menu-fx-custom:not(.uap-ft-menu-is-open):focus-visible .uap-ft-menu-tln {
	opacity: 1;
}

/* Open: the bars become an X in the X color (hover: X hover color). */
button.uap-ft-menu-toggle.uap-ft-menu-is-open .uap-ft-menu-bar {
	background-color: var(--uap-ft-menu-x-color, #000);
}

button.uap-ft-menu-toggle.uap-ft-menu-is-open:hover .uap-ft-menu-bar,
button.uap-ft-menu-toggle.uap-ft-menu-is-open:focus-visible .uap-ft-menu-bar {
	background-color: var(--uap-ft-menu-x-hover, #666);
}

button.uap-ft-menu-toggle.uap-ft-menu-is-open .uap-ft-menu-bar:nth-child(1):not(#uap-ft-specificity-anchor) {
	transform: translateY(calc(var(--uap-ft-menu-bar-h) + var(--uap-ft-menu-bar-gap))) rotate(45deg);
}

button.uap-ft-menu-toggle.uap-ft-menu-is-open .uap-ft-menu-bar:nth-child(2):not(#uap-ft-specificity-anchor) {
	opacity: 0;
}

button.uap-ft-menu-toggle.uap-ft-menu-is-open .uap-ft-menu-bar:nth-child(3):not(#uap-ft-specificity-anchor) {
	transform: translateY(calc((var(--uap-ft-menu-bar-h) + var(--uap-ft-menu-bar-gap)) * -1)) rotate(-45deg);
}

/* Two-bar design as X: only two bars, they meet in the middle. */
button.uap-ft-menu-toggle.uap-ft-menu-design-two.uap-ft-menu-is-open {
	align-items: center;
}

button.uap-ft-menu-toggle.uap-ft-menu-design-two.uap-ft-menu-is-open .uap-ft-menu-bar:nth-child(1):not(#uap-ft-specificity-anchor) {
	transform: translateY(calc((var(--uap-ft-menu-bar-h) + var(--uap-ft-menu-bar-gap)) / 2)) rotate(45deg);
}

button.uap-ft-menu-toggle.uap-ft-menu-design-two.uap-ft-menu-is-open .uap-ft-menu-bar:nth-child(3):not(#uap-ft-specificity-anchor) {
	width: var(--uap-ft-menu-btn-size, 22px);
	transform: translateY(calc((var(--uap-ft-menu-bar-h) + var(--uap-ft-menu-bar-gap)) / -2)) rotate(-45deg);
}

.uap-ft-menu *,
.uap-ft-menu *::before,
.uap-ft-menu *::after {
	box-sizing: border-box;
}

.uap-ft-menu .uap-ft-menu-overlay {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9998;
	background: var(--uap-ft-menu-overlay, rgba(0, 0, 0, 0.5));
	opacity: 0;
	visibility: hidden;
	cursor: pointer;
	transition: opacity 0.18s ease, visibility 0s linear 0.18s;
}

.uap-ft-menu.uap-ft-menu-open .uap-ft-menu-overlay {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.18s ease;
}

.uap-ft-menu .uap-ft-menu-panel {
	position: fixed;
	top: 0;
	height: var(--uap-ft-menu-height, 100%);
	max-height: 100%;
	z-index: 9999;
	width: var(--uap-ft-menu-width, 320px);
	max-width: 100%;
	overflow: hidden;
	background-color: var(--uap-ft-menu-bg-color, #fff);
	color: var(--uap-ft-menu-color, #000);
	visibility: hidden;
	outline: 0;
	transition: transform 0.18s ease, visibility 0s linear 0.18s;
}

.uap-ft-menu.uap-ft-menu-has-bg-image .uap-ft-menu-panel {
	background-image: var(--uap-ft-menu-bg-image);
	background-size: var(--uap-ft-menu-bg-size, cover);
	background-position: var(--uap-ft-menu-bg-position, center center);
	background-repeat: var(--uap-ft-menu-bg-repeat, no-repeat);
}

.uap-ft-menu.uap-ft-menu-side-right .uap-ft-menu-panel {
	right: 0;
	transform: translateX(100%);
}

.uap-ft-menu.uap-ft-menu-side-left .uap-ft-menu-panel {
	left: 0;
	transform: translateX(-100%);
}

.uap-ft-menu.uap-ft-menu-open .uap-ft-menu-panel {
	transform: none;
	visibility: visible;
	transition: transform 0.18s ease;
}

.uap-ft-menu.uap-ft-menu-has-bg-overlay .uap-ft-menu-panel::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: var(--uap-ft-menu-bg-overlay);
	pointer-events: none;
}

.uap-ft-menu.uap-ft-menu-has-bg-overlay .uap-ft-menu-scroll {
	position: relative;
	z-index: 1;
}

.uap-ft-menu .uap-ft-menu-scroll {
	height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.uap-ft-menu .uap-ft-menu-wrap {
	padding: var(--uap-ft-menu-pad-top, 92px) var(--uap-ft-menu-pad-x, 30px) var(--uap-ft-menu-pad-bottom, 60px);
}

/* X inside the panel (when no fixed button lies over it). */
button.uap-ft-menu-close:not(#uap-ft-specificity-anchor) {
	position: absolute !important;
	top: 18px;
	z-index: 2;
	display: block !important;
	width: 44px !important;
	height: 44px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	background-image: none !important;
	box-shadow: none !important;
	mix-blend-mode: normal !important;
	cursor: pointer !important;
	-webkit-appearance: none;
	appearance: none;
}

.uap-ft-menu.uap-ft-menu-side-right button.uap-ft-menu-close:not(#uap-ft-specificity-anchor) {
	right: 16px;
}

.uap-ft-menu.uap-ft-menu-side-left button.uap-ft-menu-close:not(#uap-ft-specificity-anchor) {
	left: 16px;
}

button.uap-ft-menu-close::before,
button.uap-ft-menu-close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 26px;
	height: 2px;
	background: var(--uap-ft-menu-x-color, #000);
	transition: background-color 0.2s ease;
}

button.uap-ft-menu-close:hover::before,
button.uap-ft-menu-close:hover::after,
button.uap-ft-menu-close:focus-visible::before,
button.uap-ft-menu-close:focus-visible::after {
	background: var(--uap-ft-menu-x-hover, #666);
}

button.uap-ft-menu-close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

button.uap-ft-menu-close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.uap-ft-menu.uap-ft-menu-over button.uap-ft-menu-close:not(#uap-ft-specificity-anchor) {
	visibility: hidden;
}

/* Content of the panel. Typography of the text is inherited from the theme; only the section
 * title has its own values (measured on the Inspiro side panel of tooloon.com, 2026-11-09). */
.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-nav {
	margin: 0 0 40px;
}

.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-list,
.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-list ul {
	margin: 0.5em 0 0 20px;
}

.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-list li {
	margin: 0 0 0.5em;
	padding: 0;
}

.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-section {
	margin: 0 0 40px;
}

.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-section:last-child,
.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-nav:last-child {
	margin-bottom: 0;
}

.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-title {
	margin: 0 0 20px;
	color: var(--uap-ft-menu-title, #000);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.96px;
	text-transform: uppercase;
}

.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-rich :where(p, li, div, span, h1, h2, h3, h4, h5, h6) {
	color: inherit;
}

.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-rich > :first-child {
	margin-top: 0;
}

.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-rich > :last-child {
	margin-bottom: 0;
}

.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-rich img {
	max-width: 100%;
	height: auto;
}

/* Link colors (since 0.6.1): no anchor and no !important, so the link rules of the Custom CSS of the target
 * website (a:not(.site-header)... (0,9,1), hover (0,10,1), all !important) always win. */
.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-rich a,
.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-nav a,
.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-events a {
	color: var(--uap-ft-menu-link, #000);
	transition: color 0.2s ease;
}

.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-rich a:hover,
.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-rich a:focus,
.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-nav a:hover,
.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-nav a:focus,
.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-events a:hover,
.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-events a:focus {
	color: var(--uap-ft-menu-link-hover, #666);
}

/* The floating popups of UAP Social Box (.uap-sb-popup, also the QR popup inside it) step aside while the
 * panel is open (body class set by frontend.js), at once: transition none, no fade (the base rule of the
 * Social Box fades; the hidden state here has none, so there is no intermediate opacity).
 * (1,2,1) beats the base rule of the Social Box (1,1,0); nothing in UAP Social Box is changed. */
body.uap-ft-menu-panel-open .uap-sb-popup:not(#uap-sb-specificity-anchor) {
	opacity: 0 !important;
	visibility: hidden !important;
	transition: none !important;
}

/* The button in the theme's place and a fixed button on the side opposite to the panel are hidden while the
 * panel is open (the X of the panel is the only X); a fixed button on the panel's side lies over the panel and
 * is the X itself (the panel's own X is hidden then). */
button.uap-ft-menu-toggle.uap-ft-menu-toggle-swap.uap-ft-menu-is-open:not(#uap-ft-specificity-anchor) {
	visibility: hidden;
}

.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-events {
	margin: 0;
}

@media (prefers-reduced-motion: reduce) {
	.uap-ft-menu .uap-ft-menu-overlay,
	.uap-ft-menu .uap-ft-menu-panel,
	button.uap-ft-menu-toggle .uap-ft-menu-bar,
	button.uap-ft-menu-toggle .uap-ft-menu-tln {
		transition: none !important;
	}

	/* No movement: the hover FX "apart" / "tighter" stay still (colors still change). */
	button.uap-ft-menu-toggle.uap-ft-menu-fx-apart:not(.uap-ft-menu-is-open):hover:not(#uap-ft-specificity-anchor),
	button.uap-ft-menu-toggle.uap-ft-menu-fx-tight:not(.uap-ft-menu-is-open):hover:not(#uap-ft-specificity-anchor),
	button.uap-ft-menu-toggle.uap-ft-menu-fx-apart:not(.uap-ft-menu-is-open):focus-visible:not(#uap-ft-specificity-anchor),
	button.uap-ft-menu-toggle.uap-ft-menu-fx-tight:not(.uap-ft-menu-is-open):focus-visible:not(#uap-ft-specificity-anchor) {
		gap: var(--uap-ft-menu-bar-gap);
	}

	button.uap-ft-menu-toggle:not(#uap-ft-specificity-anchor) {
		transition: none !important;
	}
}

/* Social Box of the footer and of the menu panel below 768 px while the page shows a Social Box through its shortcode
 * (0.9.0; the classes are set on the server, the media query makes it hold on resize / rotate without script).
 * A group or the copyright line that holds nothing but the Social Box disappears with it. The copyright line then keeps
 * a block of height 0 (no margin, padding, border), so the area overlays still have their anchor: the upper overlay covers
 * the whole footer, the lower one is off (as with class uap-ft-ov-whole, which the server sets without a copyright line). */
@media (max-width: 767.98px) {
	.uap-ft-footer.uap-ft-sc-social .uap-ft-social {
		display: none;
	}

	.uap-ft-footer.uap-ft-sc-social .uap-ft-group.uap-ft-group-only-social {
		display: none;
	}

	.uap-ft-footer.uap-ft-sc-social .uap-ft-legal.uap-ft-legal-only-social {
		margin-top: 0;
		padding-top: 0;
		border-top: 0;
		border-image: none;
	}

	.uap-ft-footer.uap-ft-sc-social.uap-ft-has-ov-top .uap-ft-legal.uap-ft-legal-only-social::before {
		bottom: -100000px;
	}

	.uap-ft-footer.uap-ft-sc-social.uap-ft-has-ov-bottom .uap-ft-legal.uap-ft-legal-only-social::after {
		display: none;
	}

	.uap-ft-menu.uap-ft-menu-sc-social .uap-ft-menu-panel .uap-ft-menu-section-social {
		display: none;
	}

	.uap-ft-menu.uap-ft-menu-sc-social .uap-ft-menu-panel .uap-ft-menu-last-mobile {
		margin-bottom: 0;
	}
}

/* Footer shrinks to the divider line below 768 px (0.10.0): the upper area (groups) is empty because the Social Box is hidden
 * (class set on the server only together with uap-ft-sc-social). The footer top edge is the divider line: no padding above,
 * no group gap, no minimum height; the copyright line keeps its padding below the line. Without a line the text keeps the
 * padding of the footer. Nothing left in the copyright line: the footer is not shown. The area overlays keep their anchor
 * (the upper one is empty, the lower one starts at the line). */
@media (max-width: 767.98px) {
	.uap-ft-footer.uap-ft-top-empty-mobile {
		min-height: 0;
	}

	.uap-ft-footer.uap-ft-top-empty-mobile .uap-ft-groups {
		display: none;
	}

	.uap-ft-footer.uap-ft-top-empty-mobile .uap-ft-legal {
		margin-top: 0;
	}

	.uap-ft-footer.uap-ft-top-empty-mobile.uap-ft-top-empty-line {
		padding-top: 0;
	}

	.uap-ft-footer.uap-ft-top-empty-mobile.uap-ft-empty-mobile {
		display: none;
	}
}

/* Hamburger menu switched off on a desktop device (0.10.2: classes only set by the server on a desktop device, any window width):
 * no button (the class sits on the button itself, which may have moved into the theme), no panel, no overlay: not visible,
 * not focusable, cannot be opened (frontend.js also refuses). */
button.uap-ft-menu-toggle.uap-ft-menu-desktop-off:not(#uap-ft-specificity-anchor) {
	display: none !important;
}

.uap-ft-menu.uap-ft-menu-desktop-off .uap-ft-menu-overlay,
.uap-ft-menu.uap-ft-menu-desktop-off .uap-ft-menu-panel {
	display: none !important;
}

/* Social Box sections of the panel while the page shows a Social Box popup (class set by frontend.js, desktop and mobile). */
.uap-ft-menu.uap-ft-menu-popup-social .uap-ft-menu-panel .uap-ft-menu-section-social {
	display: none;
}

.uap-ft-menu.uap-ft-menu-popup-social .uap-ft-menu-panel .uap-ft-menu-last-mobile {
	margin-bottom: 0;
}

/* ===================================================================
 * Header (since 0.11.0). Prefix uap-ft-hd-; no theme class is used. The values are the ones measured on the
 * Inspiro header (Inspiro 2.3.1, WP 7.1.4; rules read in Inspiro 2.2.3 style.css section "12.0 Navigation" and
 * "13.1 Header"): header fixed at the top (z-index 1000), bar with padding 18 px and a transition of
 * 0.5 s ease-in-out, inner width 1200 px, links 16 px / 500 with padding .3125em 0 .1875em and a 1 px bottom
 * line, items 15 px apart, dropdown 220 px wide with a 2 px accent line. The Custom CSS of the target website
 * styles every <a> outside .site-header and every <button> with !important: the rules of the links and buttons
 * below carry the anchor :not(#uap-ft-specificity-anchor) (one ID outweighs any number of classes) and !important.
 * =================================================================== */

.uap-ft-hd-wrap {
	margin: 0;
	padding: 0;
}

.uap-ft-hd-spacer {
	display: block;
	width: 100%;
	pointer-events: none;
}

.uap-ft-hd,
.uap-ft-hd *,
.uap-ft-hd *::before,
.uap-ft-hd *::after {
	box-sizing: border-box;
}

.uap-ft-hd {
	/* Inspiro "angle-down" icon (inc/classes/class-inspiro-svg-icons.php, viewBox 21x32), drawn in the text color. */
	--uap-ft-hd-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 32'%3E%3Cpath d='M19.196 13.143q0 0.232-0.179 0.411l-8.321 8.321q-0.179 0.179-0.411 0.179t-0.411-0.179l-8.321-8.321q-0.179-0.179-0.179-0.411t0.179-0.411l0.893-0.893q0.179-0.179 0.411-0.179t0.411 0.179l7.018 7.018 7.018-7.018q0.179-0.179 0.411-0.179t0.411 0.179l0.893 0.893q0.179 0.179 0.179 0.411z'/%3E%3C/svg%3E");
	width: 100%;
	margin: 0;
	padding: 0;
	color: var(--uap-ft-hd-color, #000);
	font-family: var(--uap-ft-hd-font, inherit);
}

.uap-ft-hd.uap-ft-hd-sticky {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
}

/* Admin bar (Inspiro: top 32 px, 46 px up to 782 px; up to 600 px the admin bar scrolls away, so the scrolled bar goes to 0). */
body.admin-bar .uap-ft-hd.uap-ft-hd-sticky {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .uap-ft-hd.uap-ft-hd-sticky {
		top: 46px;
	}
}

@media (max-width: 600px) {
	body.admin-bar .uap-ft-hd.uap-ft-hd-sticky.uap-ft-hd--not-top {
		top: 0;
	}
}

.uap-ft-hd:not(.uap-ft-hd-sticky) {
	position: relative;
	z-index: 200;
}

.uap-ft-hd.uap-ft-hd-shadow.uap-ft-hd--not-top {
	box-shadow: 0 0 18px 1px rgba(0, 0, 0, 0.1);
}

/* Option "hide on scrolling down": Headroom unpinned = out of the window (Inspiro has no such rule). */
.uap-ft-hd.uap-ft-hd-hides {
	transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

.uap-ft-hd.uap-ft-hd-hides.uap-ft-hd--unpinned {
	transform: translateY(-100%);
	box-shadow: none;
}

.uap-ft-hd .uap-ft-hd-bar {
	position: relative;
	z-index: 200;
	padding: var(--uap-ft-hd-pad-y, 18px) 0;
	background-color: var(--uap-ft-hd-bg, #fff);
	color: var(--uap-ft-hd-color, #000);
	transition: all 0.5s ease-in-out;
}

.uap-ft-hd.uap-ft-hd--not-top .uap-ft-hd-bar {
	padding: var(--uap-ft-hd-pad-y-scrolled, 12px) 0;
	background-color: var(--uap-ft-hd-bg-scrolled, #fff);
}

.uap-ft-hd.uap-ft-hd-has-bg-image .uap-ft-hd-bar {
	background-image: var(--uap-ft-hd-bg-image);
	background-size: var(--uap-ft-hd-bg-size, cover);
	background-position: var(--uap-ft-hd-bg-position, center center);
	background-repeat: var(--uap-ft-hd-bg-repeat, no-repeat);
}

.uap-ft-hd.uap-ft-hd-has-bg-overlay .uap-ft-hd-bar::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: var(--uap-ft-hd-bg-overlay);
	pointer-events: none;
}

.uap-ft-hd .uap-ft-hd-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	margin: 0 auto;
}

.uap-ft-hd .uap-ft-hd-layout {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: var(--uap-ft-hd-row, 50px);
}

.uap-ft-hd .uap-ft-hd-layout.uap-ft-hd-has-center {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.uap-ft-hd .uap-ft-hd-zone {
	display: flex;
	align-items: center;
	min-width: 0;
}

.uap-ft-hd .uap-ft-hd-zone-left {
	justify-content: flex-start;
	max-width: 50%;
}

.uap-ft-hd .uap-ft-hd-has-center .uap-ft-hd-zone-left {
	max-width: none;
}

.uap-ft-hd .uap-ft-hd-zone-center {
	justify-content: center;
}

.uap-ft-hd .uap-ft-hd-zone-right {
	flex: 1;
	justify-content: flex-end;
}

.uap-ft-hd .uap-ft-hd-has-center .uap-ft-hd-zone-right {
	flex: none;
	justify-self: end;
}

.uap-ft-hd .uap-ft-hd-el {
	display: flex;
	align-items: center;
	min-width: 0;
}

/* Logo (Inspiro: text 26 px, bold, capitals, max. 350 px wide; image up to 80 px high). Since 0.12.0 fixed: the size does not
 * change when the bar turns dark (Inspiro shrinks the image to 70 px, style.css:2170: removed), and the logo is centered
 * vertically in the row like Inspiro `.navbar .header-logo-wrapper` (style.css:1639-1644: display flex, align-items center). */
.uap-ft-hd .uap-ft-hd-logo {
	display: flex;
	align-items: center;
	max-width: 350px;
	padding: 0;
	vertical-align: middle;
}

a.uap-ft-hd-logo:not(#uap-ft-specificity-anchor) {
	color: inherit !important;
	text-decoration: none !important;
	border: 0 !important;
}

.uap-ft-hd .uap-ft-hd-logo-text {
	font-size: var(--uap-ft-hd-text-size, 26px);
	font-weight: var(--uap-ft-hd-text-weight, 700);
}

.uap-ft-hd .uap-ft-hd-layout-mobile .uap-ft-hd-logo-text {
	font-size: var(--uap-ft-hd-text-size-m, 20px);
}

/* Inspiro: with the search hidden the logo may take 70 % of the row up to 64em. */
.uap-ft-hd .uap-ft-hd-layout-mobile .uap-ft-hd-zone-left {
	max-width: 70%;
}

.uap-ft-hd.uap-ft-hd-logo-upper .uap-ft-hd-logo-text {
	text-transform: uppercase;
}

.uap-ft-hd .uap-ft-hd-logo img {
	display: block;
	width: auto;
	max-height: var(--uap-ft-hd-logo-h, 80px);
}

.uap-ft-hd .uap-ft-hd-pic {
	display: block;
	flex: none;
	max-width: 100%;
	background-image: var(--uap-ft-hd-pic-image);
	background-size: var(--uap-ft-hd-pic-size, cover);
	background-position: var(--uap-ft-hd-pic-position, center center);
	background-repeat: var(--uap-ft-hd-pic-repeat, no-repeat);
}

/* Menu parts (1 = WordPress menu, 2 = entries that open panels). */
.uap-ft-hd .uap-ft-hd-nav {
	display: flex;
	align-items: center;
	min-width: 0;
}

.uap-ft-hd .uap-ft-hd-menu,
.uap-ft-hd .uap-ft-hd-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.uap-ft-hd .uap-ft-hd-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.uap-ft-hd .uap-ft-hd-menu li {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.uap-ft-hd .uap-ft-hd-menu > li {
	margin: 0 var(--uap-ft-hd-m-gap, 15px);
}

.uap-ft-hd .uap-ft-hd-menu a,
button.uap-ft-hd-entry:not(#uap-ft-specificity-anchor) {
	display: block;
	position: relative;
	padding: 0.3125em 0 0.1875em;
	border-bottom: 1px solid transparent;
	font-family: var(--uap-ft-hd-m-font, inherit);
	font-size: var(--uap-ft-hd-m-size, 16px);
	font-weight: var(--uap-ft-hd-m-weight, 500);
	letter-spacing: var(--uap-ft-hd-m-ls, normal);
	text-transform: var(--uap-ft-hd-m-tt, none);
	text-decoration: none;
	transition: 0.2s ease border-color, 0.2s ease color;
}

.uap-ft-hd .uap-ft-hd-menu > li > a:hover,
.uap-ft-hd .uap-ft-hd-menu > li > a:focus-visible,
.uap-ft-hd .uap-ft-hd-menu > li > button.uap-ft-hd-entry:hover,
.uap-ft-hd .uap-ft-hd-menu > li > button.uap-ft-hd-entry:focus-visible {
	/* Measured on Inspiro 2.3.1 (hover forced, 2026-11-12): opacity 0.72, the bottom line stays transparent (the 2.2.3 source says
	 * .8 and a line, `style.css:1772-1777`: the installed version differs). */
	opacity: 0.72;
}

.uap-ft-hd .uap-ft-hd-menu > li.current-menu-item > a,
.uap-ft-hd .uap-ft-hd-menu > li.current_page_item > a,
.uap-ft-hd .uap-ft-hd-menu > li.current-menu-parent > a,
.uap-ft-hd .uap-ft-hd-menu > li > button.uap-ft-hd-entry.uap-ft-hd-entry-open {
	border-bottom-color: rgba(255, 255, 255, 0.3);
	border-bottom-color: var(--uap-ft-hd-m-line, color-mix(in srgb, currentColor 30%, transparent));
}

/* Hover on the active item (Inspiro `.navbar-nav > li.current-menu-item > a:hover`): its own hover line; other items have no line. */
.uap-ft-hd .uap-ft-hd-menu > li.current-menu-item > a:hover,
.uap-ft-hd .uap-ft-hd-menu > li.current_page_item > a:hover,
.uap-ft-hd .uap-ft-hd-menu > li.current-menu-parent > a:hover,
.uap-ft-hd .uap-ft-hd-menu > li > button.uap-ft-hd-entry.uap-ft-hd-entry-open:hover {
	border-bottom-color: var(--uap-ft-hd-m-line-hover, color-mix(in srgb, currentColor 30%, transparent));
}

/* Link and button colors: the Custom CSS of the target website colors every <a> outside .site-header
 * (a:not(.site-header):not(.site-header *) ... !important, specificity (0,7,1)) and every <button>; anchor + !important
 * (1,x,x) keeps the header the way the theme shows it (white, hover from the header settings). */
.uap-ft-hd .uap-ft-hd-menu a:not(#uap-ft-specificity-anchor) {
	color: var(--uap-ft-hd-m-color, inherit) !important;
}

.uap-ft-hd .uap-ft-hd-menu a:not(#uap-ft-specificity-anchor):hover,
.uap-ft-hd .uap-ft-hd-menu a:not(#uap-ft-specificity-anchor):focus {
	color: var(--uap-ft-hd-m-hover, var(--uap-ft-hd-m-color, inherit)) !important;
}

button.uap-ft-hd-entry:not(#uap-ft-specificity-anchor) {
	position: relative !important;
	display: block !important;
	margin: 0 !important;
	padding: 0.3125em 0 0.1875em !important;
	border-top: 0 !important;
	border-right: 0 !important;
	border-left: 0 !important;
	border-bottom-width: 1px !important;
	border-bottom-style: solid !important;
	border-bottom-color: transparent !important;
	border-radius: 0 !important;
	background: none !important;
	background-image: none !important;
	box-shadow: none !important;
	mix-blend-mode: normal !important;
	color: var(--uap-ft-hd-m-color, inherit) !important;
	cursor: pointer !important;
	font-family: var(--uap-ft-hd-m-font, inherit) !important;
	font-size: var(--uap-ft-hd-m-size, 16px) !important;
	font-weight: var(--uap-ft-hd-m-weight, 500) !important;
	letter-spacing: var(--uap-ft-hd-m-ls, normal) !important;
	line-height: inherit !important;
	text-align: left !important;
	text-decoration: none !important;
	text-transform: var(--uap-ft-hd-m-tt, none) !important;
	-webkit-appearance: none;
	appearance: none;
}

button.uap-ft-hd-entry:not(#uap-ft-specificity-anchor):hover,
button.uap-ft-hd-entry:not(#uap-ft-specificity-anchor):focus-visible {
	background: none !important;
	background-image: none !important;
	color: var(--uap-ft-hd-m-hover, var(--uap-ft-hd-m-color, inherit)) !important;
}

button.uap-ft-hd-entry.uap-ft-hd-entry-open:not(#uap-ft-specificity-anchor) {
	border-bottom-color: rgba(255, 255, 255, 0.3) !important;
	border-bottom-color: var(--uap-ft-hd-m-line, color-mix(in srgb, currentColor 30%, transparent)) !important;
}

button.uap-ft-hd-entry.uap-ft-hd-entry-open:not(#uap-ft-specificity-anchor):hover,
button.uap-ft-hd-entry.uap-ft-hd-entry-open:not(#uap-ft-specificity-anchor):focus-visible {
	border-bottom-color: var(--uap-ft-hd-m-line-hover, color-mix(in srgb, currentColor 30%, transparent)) !important;
}


/* Arrow of an item with a submenu (Inspiro: 18 px icon, .25em from the text; in a submenu it points to the right). */
.uap-ft-hd .uap-ft-hd-menu .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 18px;
	height: 18px;
	margin-left: 0.25em;
	vertical-align: text-top;
	background-color: currentColor;
	-webkit-mask: var(--uap-ft-hd-chevron) center / contain no-repeat;
	mask: var(--uap-ft-hd-chevron) center / contain no-repeat;
}

.uap-ft-hd .uap-ft-hd-menu .sub-menu .menu-item-has-children > a::after {
	position: absolute;
	top: 50%;
	right: 0.625em;
	margin: 0;
	transform: rotate(-90deg) translateX(50%);
}

/* Dropdown (Inspiro, wide windows: 220 px, 15 px below the item, 2 px accent line, arrow above it). */
.uap-ft-hd .uap-ft-hd-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 50%;
	z-index: 99;
	width: 220px;
	margin: 15px 0 0;
	border-top: 2px solid var(--uap-ft-hd-accent, #000);
	background: #101010;
	transform: translate(-50%, 0);
}

.uap-ft-hd .uap-ft-hd-menu li:hover > .sub-menu,
.uap-ft-hd .uap-ft-hd-menu li:focus-within > .sub-menu {
	display: block;
}

.uap-ft-hd .uap-ft-hd-menu > li > .sub-menu::before {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 50%;
	width: 0;
	height: 0;
	margin-left: -8px;
	border-right: 8px solid transparent;
	border-bottom: 8px solid var(--uap-ft-hd-accent, #000);
	border-left: 8px solid transparent;
}

.uap-ft-hd .uap-ft-hd-menu .sub-menu li {
	border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.uap-ft-hd .uap-ft-hd-menu .sub-menu a {
	padding: 8px 15px;
	border-bottom: 0;
	font-size: inherit;
}

.uap-ft-hd .uap-ft-hd-menu .sub-menu a:not(#uap-ft-specificity-anchor) {
	color: #b0b0b0 !important;
}

.uap-ft-hd .uap-ft-hd-menu .sub-menu a:not(#uap-ft-specificity-anchor):hover,
.uap-ft-hd .uap-ft-hd-menu .sub-menu a:not(#uap-ft-specificity-anchor):focus,
.uap-ft-hd .uap-ft-hd-menu .sub-menu .current-menu-item > a:not(#uap-ft-specificity-anchor) {
	color: #fff !important;
}

.uap-ft-hd .uap-ft-hd-menu .sub-menu .sub-menu {
	top: 0;
	right: 100%;
	left: auto;
	margin-top: -3px;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.uap-ft-hd .uap-ft-hd-bar,
	.uap-ft-hd.uap-ft-hd-hides,
	.uap-ft-hd .uap-ft-hd-logo img,
	.uap-ft-hd .uap-ft-hd-menu a,
	button.uap-ft-hd-entry:not(#uap-ft-specificity-anchor) {
		transition: none !important;
	}
}

/* Links of the header menu parts inside the hamburger panel (header on, "to the hamburger"): same look as the panel links. */
.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-hdnav {
	margin: 0 0 40px;
}

.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-hdnav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-hdnav ul ul {
	margin: 0.5em 0 0 20px;
}

.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-hdnav li {
	margin: 0 0 0.5em;
	padding: 0;
}

.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-hdnav:last-child {
	margin-bottom: 0;
}

.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-hdnav a {
	color: var(--uap-ft-menu-link, #000);
	transition: color 0.2s ease;
}

.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-hdnav a:hover,
.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-hdnav a:focus {
	color: var(--uap-ft-menu-link-hover, #666);
}

.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-hdnav button.uap-ft-hd-entry:not(#uap-ft-specificity-anchor) {
	display: inline !important;
	padding: 0 !important;
	border: 0 !important;
	color: var(--uap-ft-menu-link, #000) !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	text-align: left !important;
}

.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-hdnav button.uap-ft-hd-entry:not(#uap-ft-specificity-anchor):hover,
.uap-ft-menu .uap-ft-menu-panel .uap-ft-menu-hdnav button.uap-ft-hd-entry:not(#uap-ft-specificity-anchor):focus-visible {
	color: var(--uap-ft-menu-link-hover, #666) !important;
}
