/* =========================================================
   Vereinsguide Hero Slider
   ========================================================= */

.vghs {
	--vghs-speed: 1300ms;
	--vghs-interval: 7000ms;
	--vghs-accent: #FF6600;
	--vghs-ov1: rgba(0, 33, 77, 0.92);
	--vghs-ov2: rgba(0, 47, 103, 0.12);
	--vghs-ova: 100deg;
	--vghs-shape: #FFFFFF;
	--vghs-shape-h: 0px;
	--vghs-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--vghs-fade: cubic-bezier(0.45, 0, 0.2, 1);
	--vghs-td: calc(var(--vghs-speed) * 0.35);
	--vghs-mx: 0;
	--vghs-my: 0;

	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 86vh;
	overflow: hidden;
	isolation: isolate;
	background: #002F67;
	color: #FFFFFF;
	font-family: inherit;
}

.vghs *,
.vghs *::before,
.vghs *::after {
	box-sizing: border-box;
}

.vghs--shape {
	--vghs-shape-h: clamp(26px, 4.6vw, 72px);
}

/* ---------- Slides ---------- */

.vghs-track {
	position: relative;
	display: grid;
	flex: 1 1 auto;
}

.vghs-slide {
	grid-area: 1 / 1;
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	z-index: 1;
	transition: opacity var(--vghs-speed) var(--vghs-fade), visibility 0s linear var(--vghs-speed);
}

.vghs-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 3;
	transition: opacity var(--vghs-speed) var(--vghs-fade), visibility 0s;
}

.vghs-slide.is-leaving {
	opacity: 1;
	visibility: visible;
	z-index: 2;
	transition: none;
}

.vghs.is-intro .vghs-slide {
	transition: none !important;
}

/* ---------- Bild ---------- */

.vghs-media {
	position: absolute;
	inset: -24px;
	z-index: 0;
	overflow: hidden;
	transform: translate3d(calc(var(--vghs-mx) * -14px), calc(var(--vghs-my) * -10px), 0);
	transition: transform 1.4s var(--vghs-ease);
}

.vghs-media .vghs-img,
.vghs-media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transform: scale(1.06);
}

.vghs-slide.is-active .vghs-img,
.vghs-slide.is-leaving .vghs-img {
	animation: vghs-kenburns calc(var(--vghs-interval) + var(--vghs-speed) * 2) linear both;
}

.vghs--no-kb .vghs-slide .vghs-img {
	animation: none;
	transform: scale(1.02);
}

@keyframes vghs-kenburns {
	from { transform: scale(1.14) translate3d(0, 0, 0); }
	to   { transform: scale(1.03) translate3d(-1.2%, -0.8%, 0); }
}

/* ---------- Übergang: Vorhang ---------- */

.vghs--fx-wipe .vghs-slide {
	opacity: 1;
	clip-path: inset(0 0 0 100%);
	transition: clip-path var(--vghs-speed) cubic-bezier(0.77, 0, 0.18, 1), visibility 0s linear var(--vghs-speed);
}

.vghs--fx-wipe[data-dir="prev"] .vghs-slide {
	clip-path: inset(0 100% 0 0);
}

.vghs--fx-wipe .vghs-slide.is-active {
	clip-path: inset(0 0 0 0);
	transition: clip-path var(--vghs-speed) cubic-bezier(0.77, 0, 0.18, 1), visibility 0s;
}

.vghs--fx-wipe .vghs-slide.is-leaving {
	clip-path: inset(0 0 0 0);
	transition: none;
}

.vghs--fx-wipe .vghs-slide.is-leaving .vghs-media {
	transform: translate3d(-7%, 0, 0);
	transition: transform var(--vghs-speed) cubic-bezier(0.77, 0, 0.18, 1);
}

.vghs--fx-wipe[data-dir="prev"] .vghs-slide.is-leaving .vghs-media {
	transform: translate3d(7%, 0, 0);
}

/* ---------- Übergang: Zoom ---------- */

.vghs--fx-zoom .vghs-slide {
	transform: scale(1.07);
	transition: opacity var(--vghs-speed) var(--vghs-fade), transform calc(var(--vghs-speed) * 1.4) var(--vghs-ease), visibility 0s linear var(--vghs-speed);
}

.vghs--fx-zoom .vghs-slide.is-active {
	transform: none;
	transition: opacity var(--vghs-speed) var(--vghs-fade), transform calc(var(--vghs-speed) * 1.4) var(--vghs-ease), visibility 0s;
}

.vghs--fx-zoom .vghs-slide.is-leaving {
	transform: scale(0.97);
	transition: transform var(--vghs-speed) var(--vghs-fade);
}

/* ---------- Overlay ---------- */

.vghs-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(var(--vghs-ova), var(--vghs-ov1) 0%, var(--vghs-ov2) 100%);
}

.vghs-overlay::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(0, 20, 50, 0.5) 0%, rgba(0, 20, 50, 0) 38%);
}

/* ---------- Inhalt ---------- */

.vghs-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--vghs-maxw, 1200px);
	margin: 0 auto;
	padding: clamp(4.5rem, 9vh, 7rem) 2rem calc(var(--vghs-shape-h) + 6.5rem);
	transform: translate3d(calc(var(--vghs-mx) * 6px), calc(var(--vghs-my) * 4px), 0);
	transition: transform 1.4s var(--vghs-ease);
}

.vghs-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.15rem;
	max-width: var(--vghs-cw, 760px);
}

.vghs--align-center .vghs-content {
	align-items: center;
	margin: 0 auto;
	text-align: center;
}

.vghs .vghs-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	margin: 0;
	color: var(--vghs-kicker, #BFD8F7);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.vghs .vghs-kicker::before {
	content: "";
	flex: none;
	width: 34px;
	height: 2px;
	background: var(--vghs-accent);
	transform-origin: left center;
}

.vghs .vghs-title {
	margin: 0;
	padding: 0;
	color: var(--vghs-title, #FFFFFF);
	font-size: clamp(2.1rem, 4.3vw, 4rem);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.015em;
	overflow-wrap: break-word;
	hyphens: manual;
	text-wrap: balance;
}

.vghs-w {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
	padding: 0 0.03em 0.14em;
	margin: 0 -0.03em -0.14em;
}

.vghs-wi {
	display: inline-block;
}

.vghs-hl .vghs-wi {
	color: var(--vghs-accent);
}

.vghs .vghs-sub {
	max-width: 640px;
	margin: 0;
	color: var(--vghs-sub, rgba(255, 255, 255, 0.88));
	font-size: clamp(1rem, 1.25vw, 1.2rem);
	font-weight: 300;
	line-height: 1.65;
}

.vghs--align-center .vghs-sub {
	margin: 0 auto;
}

.vghs-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 0.6rem;
}

.vghs--align-center .vghs-btns {
	justify-content: center;
}

.vghs .vghs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 15px 28px;
	border: 1px solid transparent;
	border-radius: 2px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--vghs-ease);
}

.vghs .vghs-btn--primary {
	background: var(--vghs-accent);
	border-color: var(--vghs-accent);
	color: #FFFFFF;
}

.vghs .vghs-btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.6);
	color: #FFFFFF;
}

.vghs .vghs-btn:hover,
.vghs .vghs-btn:focus-visible {
	background: #FFFFFF;
	border-color: #FFFFFF;
	color: #002F67;
}

.vghs-btn-arrow {
	display: inline-block;
	transition: transform 0.3s var(--vghs-ease);
}

.vghs-btn:hover .vghs-btn-arrow {
	transform: translateX(4px);
}

/* ---------- Text-Animation (nur mit JavaScript) ---------- */

.vghs.is-ready .vghs-wi {
	transform: translate3d(0, 110%, 0);
	transition: transform 0.5s cubic-bezier(0.55, 0, 0.75, 0);
}

.vghs.is-ready .vghs-slide.is-active .vghs-wi {
	transform: none;
	transition: transform 1.05s var(--vghs-ease) calc(var(--vghs-td) + var(--i, 0) * 55ms);
}

.vghs.is-ready .vghs-kicker,
.vghs.is-ready .vghs-sub,
.vghs.is-ready .vghs-btns {
	opacity: 0;
	filter: blur(6px);
	transform: translate3d(0, 16px, 0);
	transition: opacity 0.45s ease, filter 0.45s ease, transform 0.45s ease;
}

.vghs.is-ready .vghs-slide.is-active .vghs-kicker {
	opacity: 1;
	filter: none;
	transform: none;
	transition: opacity 0.9s ease var(--vghs-td), filter 0.9s ease var(--vghs-td), transform 1s var(--vghs-ease) var(--vghs-td);
}

.vghs.is-ready .vghs-slide.is-active .vghs-sub {
	opacity: 1;
	filter: none;
	transform: none;
	transition: opacity 1s ease calc(var(--vghs-td) + 0.4s), filter 1s ease calc(var(--vghs-td) + 0.4s), transform 1.1s var(--vghs-ease) calc(var(--vghs-td) + 0.4s);
}

.vghs.is-ready .vghs-slide.is-active .vghs-btns {
	opacity: 1;
	filter: none;
	transform: none;
	transition: opacity 1s ease calc(var(--vghs-td) + 0.6s), filter 1s ease calc(var(--vghs-td) + 0.6s), transform 1.1s var(--vghs-ease) calc(var(--vghs-td) + 0.6s);
}

.vghs.is-ready .vghs-kicker::before {
	transform: scaleX(0);
	transition: transform 0.4s ease;
}

.vghs.is-ready .vghs-slide.is-active .vghs-kicker::before {
	transform: scaleX(1);
	transition: transform 1.1s var(--vghs-ease) calc(var(--vghs-td) + 0.15s);
}

/* ---------- Navigation ---------- */

.vghs-ui {
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(var(--vghs-shape-h) + 1.25rem);
	z-index: 6;
	pointer-events: none;
}

.vghs-ui-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	max-width: var(--vghs-maxw, 1200px);
	margin: 0 auto;
	padding: 0 2rem;
}

.vghs-dots,
.vghs-nav {
	display: flex;
	align-items: center;
	pointer-events: auto;
}

.vghs-dots {
	gap: 16px;
}

.vghs-nav {
	gap: 10px;
}

.vghs button.vghs-dot,
.vghs button.vghs-dot:hover,
.vghs button.vghs-dot:focus {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 12px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #FFFFFF;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.08em;
	box-shadow: none;
	cursor: pointer;
}

.vghs button.vghs-dot {
	opacity: 0.55;
	transition: opacity 0.3s;
}

.vghs button.vghs-dot:hover,
.vghs button.vghs-dot.is-active {
	opacity: 1;
}

.vghs-dot-line {
	position: relative;
	display: block;
	width: 34px;
	height: 2px;
	overflow: hidden;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.3);
	transition: width 0.7s var(--vghs-ease);
}

.vghs-dot.is-active .vghs-dot-line {
	width: 72px;
}

.vghs-dot-fill {
	position: absolute;
	inset: 0;
	background: var(--vghs-accent);
	transform: scaleX(0);
	transform-origin: left center;
}

.vghs:not(.is-autoplay) .vghs-dot.is-active .vghs-dot-fill {
	transform: scaleX(1) !important;
}

.vghs button.vghs-arrow,
.vghs button.vghs-pause {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.04);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #FFFFFF;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.vghs button.vghs-pause {
	width: 40px;
	height: 40px;
	margin-right: 4px;
}

.vghs button.vghs-arrow:hover,
.vghs button.vghs-pause:hover {
	border-color: #FFFFFF;
	background: #FFFFFF;
	color: #002F67;
}

.vghs button.vghs-arrow:focus,
.vghs button.vghs-pause:focus {
	color: #FFFFFF;
	background: rgba(255, 255, 255, 0.04);
}

.vghs button.vghs-arrow:hover:focus,
.vghs button.vghs-pause:hover:focus {
	color: #002F67;
	background: #FFFFFF;
}

.vghs-arrow svg,
.vghs-pause svg {
	display: block;
	width: 18px;
	height: 18px;
	transition: transform 0.3s var(--vghs-ease);
}

.vghs-pause svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.vghs-prev:hover svg { transform: translateX(-2px); }
.vghs-next:hover svg { transform: translateX(2px); }

.vghs-pause .vghs-i-play { display: none; }
.vghs-pause.is-paused .vghs-i-play { display: block; }
.vghs-pause.is-paused .vghs-i-pause { display: none; }

.vghs button:focus-visible,
.vghs a:focus-visible {
	outline: 2px solid var(--vghs-accent);
	outline-offset: 3px;
}

/* ---------- Scroll-Hinweis ---------- */

.vghs button.vghs-scroll,
.vghs button.vghs-scroll:hover,
.vghs button.vghs-scroll:focus {
	position: absolute;
	left: 50%;
	bottom: calc(var(--vghs-shape-h) + 1.4rem);
	z-index: 6;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.75);
	font-family: inherit;
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	box-shadow: none;
	transform: translateX(-50%);
	cursor: pointer;
}

.vghs button.vghs-scroll:hover {
	color: #FFFFFF;
}

.vghs-scroll-line {
	position: relative;
	display: block;
	width: 1px;
	height: 42px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.25);
}

.vghs-scroll-line::after {
	content: "";
	position: absolute;
	left: 0;
	top: -40%;
	width: 100%;
	height: 40%;
	background: #FFFFFF;
	animation: vghs-scroll 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes vghs-scroll {
	from { top: -40%; }
	to   { top: 100%; }
}

/* ---------- Unterkante ---------- */

.vghs-shape {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	z-index: 5;
	height: var(--vghs-shape-h);
	line-height: 0;
	pointer-events: none;
}

.vghs-shape svg {
	display: block;
	width: 100%;
	height: 100%;
}

.vghs-shape-fill {
	fill: var(--vghs-shape);
}

.vghs-shape-line {
	fill: none;
	stroke: var(--vghs-accent);
	stroke-width: 3;
	vector-effect: non-scaling-stroke;
}

.vghs.is-ready .vghs-shape-line {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: vghs-draw 2.2s var(--vghs-ease) 0.4s forwards;
}

@keyframes vghs-draw {
	to { stroke-dashoffset: 0; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.vghs button.vghs-scroll {
		display: none;
	}
}

@media (max-width: 767px) {
	.vghs-overlay::before {
		content: "";
		position: absolute;
		inset: 0;
		background: rgba(0, 28, 66, 0.42);
	}

	.vghs-inner {
		padding: 3.5rem 1.25rem calc(var(--vghs-shape-h) + 6rem);
	}

	.vghs .vghs-title {
		hyphens: auto;
	}

	.vghs .vghs-kicker {
		font-size: 11.5px;
		letter-spacing: 0.12em;
	}

	.vghs-btns {
		width: 100%;
	}

	.vghs .vghs-btn {
		flex: 1 1 100%;
	}

	.vghs-ui-inner {
		padding: 0 1.25rem;
	}

	.vghs-dots {
		gap: 10px;
	}

	.vghs-dot-num {
		display: none;
	}

	.vghs-dot-line {
		width: 22px;
	}

	.vghs-dot.is-active .vghs-dot-line {
		width: 46px;
	}

	.vghs button.vghs-arrow {
		width: 42px;
		height: 42px;
	}
}

/* ---------- Reduzierte Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
	.vghs *,
	.vghs *::before,
	.vghs *::after {
		animation: none !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
	}

	.vghs-media,
	.vghs-inner {
		transform: none !important;
	}

	.vghs.is-ready .vghs-shape-line {
		stroke-dashoffset: 0;
	}
}
