/* =========================================================
   AB Portfolio – Back Button
   Sichtbar nur mit html.abx-back-on (echte Maus). Auf Handy/Tablet
   nicht sichtbar (Entscheidung AB 04.10.2026).
   ========================================================= */

.abx-back {
	display: none;
}

html.abx-back-on .abx-back {
	display: block;
	position: fixed;
	bottom: 25px;
	left: 20px;
	z-index: 2147483500;
	width: auto;
	height: 30px; /* wird per JS an die Menüschrift angepasst */
	line-height: 0;
	mix-blend-mode: normal;
	opacity: 0;
	visibility: hidden; /* auch für Tastatur und Screenreader ausgeblendet */
	transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

html.abx-back-on .abx-back.abx-back--visible {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.4s ease, visibility 0s linear 0s;
}

html.abx-back-on .abx-back img {
	display: block;
	width: auto;
	height: 100%;
}

/* Tastaturbedienung: sichtbarer Fokusrahmen. */
html.abx-back-on .abx-back:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
	html.abx-back-on .abx-back,
	html.abx-back-on .abx-back.abx-back--visible {
		transition: none;
	}
}
