:root {
	/*
	 * Buttonfarbe zentral ändern:
	 * Den Wert unten durch den exakten Grünton der Website-Buttons ersetzen.
	 */
	--fah-scroll-top-color: #5f7f61;
	--fah-scroll-top-focus-color: #ffffff;
}

.fah-scroll-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9999;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--fah-scroll-top-color);
	color: #ffffff;
	box-shadow: 0 4px 14px rgb(0 0 0 / 22%);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition:
		opacity 180ms ease,
		visibility 180ms ease,
		transform 180ms ease,
		filter 180ms ease;
	pointer-events: none;
}

.fah-scroll-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.fah-scroll-top:hover {
	filter: brightness(0.92);
	transform: translateY(-2px);
}

.fah-scroll-top:focus-visible {
	outline: 3px solid var(--fah-scroll-top-focus-color);
	outline-offset: 3px;
}

.fah-scroll-top svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (max-width: 767px) {
	.fah-scroll-top {
		right: 14px;
		bottom: 14px;
		width: 44px;
		height: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fah-scroll-top {
		transition: none;
	}
}
