/* Nach-oben-Knopf unten rechts (Snippet 4324). Stand 24.11.2026: Hover/Klick in Gruen. */
body button.rs-totop,
body button.rs-totop:focus {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9990;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #C61503;
	color: #FEFEFE;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s, background-color .2s ease, bottom .25s ease;
}

body button.rs-totop.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition: opacity .25s ease, transform .25s ease, visibility 0s, background-color .2s ease, bottom .25s ease;
}

/* Beim Darueberfahren und beim Klick: Gruen der Website */
body button.rs-totop:hover,
body button.rs-totop:active,
body button.rs-totop.is-clicked {
	background: #067B12;
	color: #FEFEFE;
}

body button.rs-totop:focus-visible {
	outline: 3px solid #FF9331;
	outline-offset: 3px;
}

body button.rs-totop svg {
	display: block;
	width: 24px;
	height: 24px;
}

/* Waehrend Burgermenue oder Suchfenster offen sind: ausblenden */
body:has(.elementskit-menu-offcanvas-elements.active) button.rs-totop,
body:has(.rsls__overlay:not([hidden])) button.rs-totop {
	opacity: 0;
	visibility: hidden;
}

@media (max-width: 767px) {
	body button.rs-totop,
	body button.rs-totop:focus {
		right: 16px;
		bottom: 16px;
		width: 44px;
		height: 44px;
	}

	/* Leiste mit den Suchtreffern unten in der Mitte nicht verdecken */
	body:has(.rsls-hitbar) button.rs-totop {
		bottom: 76px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body button.rs-totop,
	body button.rs-totop.is-visible {
		transition: none;
	}
}
