/* TSV Bärenstein – globaler Footer-CTA */
.tsv-footer-cta {
	--tsv-footer-green: #00532f;
	box-sizing: border-box;
	width: 100%;
	color: #fff;
	background-color: var(--tsv-footer-green);
	position: relative;
	isolation: isolate;
	overflow: visible;
}

.tsv-footer-cta * {
	box-sizing: border-box;
}

.tsv-footer-cta__inner {
	width: min(100% - 36px, 1440px);
	min-height: 170px;
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-block: 28px;
}

.tsv-footer-cta__content {
	width: 100%;
	text-align: center;
}

.tsv-footer-cta h2 {
	color: #f7f8f9;
	font-size: clamp(1.6rem, 3vw, 2.65rem);
	line-height: 1.15;
	margin: 0 0 0.35em;
	text-shadow: 0 2px 6px rgb(0 0 0 / 80%), 0 2px 12px rgb(0 0 0 / 80%);
}

.tsv-footer-cta p {
	color: #f7f8f9;
	font-size: clamp(1rem, 1.6vw, 1.35rem);
	line-height: 1.4;
	margin: 0 0 1em;
	text-shadow: 0 2px 6px rgb(0 0 0 / 85%), 0 0 12px rgb(0 0 0 / 45%);
}

.tsv-footer-cta__button {
	display: inline-flex;
	align-items: center;
	gap: 0.65em;
	min-height: 46px;
	padding: 0.65em 1.2em;
	border: 2px solid #fff;
	border-radius: 10px;
	color: #fff;
	background: rgb(0 65 37 / 76%);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease;
}

.tsv-footer-cta__button:hover,
.tsv-footer-cta__button:focus-visible {
	color: var(--tsv-footer-green);
	background: #fff;
	text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
	.tsv-footer-cta__button {
		transition: none;
	}
}

/* Landschaft und Grundwerte für die schmale Desktop-Ansicht */
@media (min-width: 1024px) {
	.tsv-footer-cta {
		--tsv-footer-rise: clamp(80px, 8vw, 150px);
		--tsv-sportler-width: 186px;
		--tsv-sportler-bottom: 40px;
		--tsv-sportler-x: 155px;
		--tsv-text-bottom: 45px;
		background-color: transparent;
		background-image: none;
		z-index: 1;
	}

	.tsv-footer-cta::before {
		content: "";
		position: absolute;
		inset-inline: 0;
		top: calc(-1 * var(--tsv-footer-rise));
		bottom: -1px;
		z-index: 0;
		pointer-events: none;
		background-image:
			url("/wp-content/uploads/2026/11/tsv_footer_bg.webp"),
			linear-gradient(var(--tsv-footer-green), var(--tsv-footer-green));
		background-repeat: no-repeat, no-repeat;
		background-position: center bottom, left bottom;
		background-size: 100% auto, 100% 1.35vw;
	}

	.tsv-footer-cta::after {
		content: "";
		position: absolute;
		z-index: 1;
		left: calc(max((100% - 1250px) / 2, 24px) + var(--tsv-sportler-x));
		bottom: var(--tsv-sportler-bottom);
		width: var(--tsv-sportler-width);
		aspect-ratio: 2 / 1;
		transform: rotate(-10deg);
		transform-origin: left bottom;
		background: url("/wp-content/uploads/2026/11/sportler.webp")
			left bottom / contain no-repeat;
		pointer-events: none;
	}

	.tsv-footer-cta__inner {
		width: 100%;
		min-height: calc(
			max(clamp(250px, 19vw, 388px), 15.15625vw) - var(--tsv-footer-rise)
		);
		position: static;
		z-index: 1;
		padding: 0;
	}

	.tsv-footer-cta__content {
		position: absolute;
		z-index: 1;
		left: 50%;
		right: auto;
		bottom: var(--tsv-text-bottom);
		width: min(1220px, calc(100vw - 48px));
		transform: translateX(calc(-50% - 30px + var(--tsv-text-x, 0px)));
		padding: 0;
		text-align: right;
		background: none;
		border-radius: 0;
	}

	.tsv-footer-cta h2 {
		font-size: clamp(1.5rem, 2.6vw, 2.65rem);
		white-space: nowrap;
	}

	.tsv-footer-cta p {
		white-space: nowrap;
	}
}

/* Position und Größe nach Viewport-Breite */
@media (min-width: 1280px) {
	.tsv-footer-cta {
		--tsv-sportler-width: 186px;
		--tsv-sportler-bottom: 55px;
		--tsv-sportler-x: 204px;
		--tsv-text-bottom: 67px;
	}
}

@media (min-width: 1340px) {
	.tsv-footer-cta {
		--tsv-sportler-width: 240px;
		--tsv-sportler-bottom: 57px;
		--tsv-sportler-x: 185px;
		--tsv-text-bottom: 30px;
		--tsv-text-x: 60px;
	}
}

@media (min-width: 1440px) {
	.tsv-footer-cta {
		--tsv-sportler-width: 257px;
		--tsv-sportler-bottom: 61px;
		--tsv-sportler-x: 153px;
		--tsv-text-bottom: 39px;
		--tsv-text-x: 100px;
	}
}

@media (min-width: 1536px) {
	.tsv-footer-cta {
		--tsv-sportler-width: 274px;
		--tsv-sportler-bottom: 65px;
		--tsv-sportler-x: 122px;
		--tsv-text-bottom: 41px;
		--tsv-text-x: 100px;
	}
}

@media (min-width: 1600px) {
	.tsv-footer-cta {
		--tsv-sportler-width: 285px;
		--tsv-sportler-bottom: 67px;
		--tsv-sportler-x: 102px;
		--tsv-text-bottom: 45px;
		--tsv-text-x: 100px;
	}
}

@media (min-width: 1920px) {
	.tsv-footer-cta {
		--tsv-sportler-width: 340px;
		--tsv-sportler-bottom: 80px;
		--tsv-sportler-x: 0px;
		--tsv-text-bottom: 80px;
		--tsv-text-x: 100px;
	}
}

@media (width > 2560px) {
	.tsv-footer-cta {
		--tsv-sportler-width: 450px;
		--tsv-sportler-bottom: 105px;
		--tsv-sportler-x: -204px;
		--tsv-text-bottom: 130px;
		--tsv-text-x: 140px;

	}

	.tsv-footer-cta__inner {
		min-height: calc(388px - var(--tsv-footer-rise));
	}

	.tsv-footer-cta::before {
		background-size: 100% auto, 100% 34.56px;
	}
}

/* Gemeinsamer Bogen über Landschaft und Linkleiste */
@media (width > 2560px) {
	.tsv-footer-visual,
	.site-footer:has(.tsv-footer-cta):not(.tsv-footer-visual *) {
		max-width: 2560px;
		margin-inline: auto;
mask-image: radial-gradient(
	ellipse 50% 210% at 50% 120%,
	black 88%,
	rgb(0 0 0 / 65%) 93%,
	rgb(0 0 0 / 20%) 97%,
	transparent 100%
);
		mask-size: 100% calc(100% + 150px);
		mask-position: center bottom;
		mask-repeat: no-repeat;
		mask-clip: no-clip;
	}
}