/**
 * Template Part - Nach-oben-Button (Redesign 2026)
 *
 * @author MediaMEANS
**/

.h26_totop {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 40;
	display: flex;
	align-items: center;
	padding: 5px;
	border: 1px solid rgba(25, 25, 189, .12);
	border-radius: 999px;
	background: rgba(255, 255, 255, .88);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	backdrop-filter: blur(14px) saturate(160%);
	box-shadow: 0 14px 34px -16px rgba(8, 8, 62, .45), 0 1px 0 #fff inset;
	color: #1919BD;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px);
	-webkit-transition: opacity .35s, transform .45s, visibility .35s, background .3s, color .3s, border-color .3s;
	transition: opacity .35s, transform .45s, visibility .35s, background .3s, color .3s, border-color .3s;
}

.h26_totop.is-show {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.h26_totop:focus-visible {
	outline: 3px solid #FE5B4A;
	outline-offset: 3px;
}

.h26_totop .h26_totop_ico {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
}

.h26_totop .h26_totop_ring {
	position: absolute;
	top: 0;
	left: 0;
	width: 40px;
	height: 40px;
	max-width: none;
	transform: rotate(-90deg);
}

.h26_totop .h26_totop_ring circle {
	fill: none;
	stroke-width: 2;
}

.h26_totop .h26_totop_ring_bg {
	stroke: rgba(25, 25, 189, .12);
	-webkit-transition: stroke .3s;
	transition: stroke .3s;
}

/* circumference of r=18: 113.1 */
.h26_totop .h26_totop_ring_bar {
	stroke: #FE5B4A;
	stroke-linecap: round;
	stroke-dasharray: 113.1;
	stroke-dashoffset: 113.1;
	-webkit-transition: stroke-dashoffset .1s linear;
	transition: stroke-dashoffset .1s linear;
}

.h26_totop .h26_totop_rocket {
	display: block;
	width: 21px;
	height: 21px;
	transform: rotate(-45deg);
	-webkit-transition: transform .45s;
	transition: transform .45s;
}

.h26_totop .h26_totop_rocket svg,
.h26_totop .h26_totop_rocket img {
	display: block;
	width: 100%;
	height: 100%;
}

/* label slides in on hover; inner span keeps its own width so the text never wraps */
.h26_totop .h26_totop_lbl {
	max-width: 0;
	overflow: hidden;
	opacity: 0;
	font-family: Nexa-Heavy, sans-serif;
	font-weight: 400;
	font-size: .875rem;
	line-height: 1.3;
	color: inherit;
	-webkit-transition: max-width .45s, opacity .3s, margin .45s;
	transition: max-width .45s, opacity .3s, margin .45s;
}

.h26_totop .h26_totop_lbl span {
	display: block;
	width: max-content;
	padding-top: 3px;
}

.h26_totop:hover,
.h26_totop:focus-visible {
	border-color: #1919BD;
	background: #1919BD;
	color: #fff;
}

.h26_totop:hover .h26_totop_lbl,
.h26_totop:focus-visible .h26_totop_lbl {
	max-width: 110px;
	margin: 0 14px 0 4px;
	opacity: 1;
}

.h26_totop:hover .h26_totop_ring_bg {
	stroke: rgba(255, 255, 255, .2);
}

.h26_totop:hover .h26_totop_rocket {
	transform: rotate(-45deg) translate(2px, -2px);
}

/* launch: rocket flies out, then lands again */
.h26_totop.is-launch .h26_totop_rocket {
	-webkit-animation: h26_rocket_launch 1s cubic-bezier(.5, 0, .75, 0) forwards;
	animation: h26_rocket_launch 1s cubic-bezier(.5, 0, .75, 0) forwards;
}

.h26_totop.is-land .h26_totop_rocket {
	-webkit-animation: h26_rocket_land .55s;
	animation: h26_rocket_land .55s;
}

@-webkit-keyframes h26_rocket_launch {
	0% { transform: rotate(-45deg); }
	25% { transform: rotate(-45deg) translate(-2px, 2px); }
	100% { transform: rotate(-45deg) translate(38px, -38px); }
}

@keyframes h26_rocket_launch {
	0% { transform: rotate(-45deg); }
	25% { transform: rotate(-45deg) translate(-2px, 2px); }
	100% { transform: rotate(-45deg) translate(38px, -38px); }
}

@-webkit-keyframes h26_rocket_land {
	from { transform: rotate(-45deg) translate(-30px, 30px); opacity: 0; }
	to { transform: rotate(-45deg); opacity: 1; }
}

@keyframes h26_rocket_land {
	from { transform: rotate(-45deg) translate(-30px, 30px); opacity: 0; }
	to { transform: rotate(-45deg); opacity: 1; }
}

body[data-title="Kontakt"] .h26_totop {
	bottom: calc(22px + 60px);
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 1199px) {
	body.h26_has_mbar .h26_totop {
		bottom: 88px;
	}
	
	body.h26_has_mbar[data-title="Kontakt"] .h26_totop {
		bottom: calc(88px + 60px + 14px);
	}
	
	body.h26_has_mbar .grecaptcha-badge {
		bottom: calc(88px) !important;
	}
}

@media screen and (max-width: 375px) {
	.h26_totop {
		right: 12px;
	}

	body.h26_has_mbar .h26_totop {
		bottom: 80px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.h26_totop,
	.h26_totop * {
		animation-duration: .001ms !important;
		transition-duration: .001ms !important;
	}
}