/**
 * VfL Spieler-Carousel – Styles
 * Alle Regeln sind unter .vflq-module gescopet, um Konflikte
 * mit Avada/Theme-Styles zu vermeiden.
 */

.vflq-module {
	--vflq-blue-dark: #0b1f4b;   /* dunkles VfL-Blau */
	--vflq-blue: #123a7d;        /* VfL-Blau */
	--vflq-blue-light: #2a5cb8;  /* helleres Blau für Verlauf */
	--vflq-gap: 20px;
	--vflq-visible: 5;           /* volle Karten auf Desktop */
	--vflq-peek: 0.35;           /* angeschnittener Anteil der nächsten Karte */

	display: block;
	padding: 56px 0 48px;
	overflow: hidden;
	font-family: inherit; /* nutzt die Avada/Theme-Schrift */
}

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

.vflq-module .vflq-inner {
	max-width: 1560px;
	margin: 0 auto;
	padding: 0 32px;
}

/* ---------- Kopfbereich ---------- */

.vflq-module .vflq-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 36px;
	flex-wrap: wrap;
}

.vflq-module .vflq-title {
	margin: 0;
	color: #1d1d1f;
	font-family: var(--vflq-font-titel, inherit);
	font-size: clamp(32px, 4.6vw, 64px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.01em;
}

.vflq-module .vflq-head-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 18px;
}

.vflq-module .vflq-team-btn {
	display: inline-block;
	padding: 14px 28px;
	border: 1px solid var(--vflq-btn-border, #1d1d1f);
	border-radius: 0;
	color: var(--vflq-btn-text, #1d1d1f);
	background: var(--vflq-btn-bg, transparent);
	text-decoration: none;
	font-size: 17px;
	font-weight: 500;
	transition: background .2s, color .2s;
}

.vflq-module .vflq-team-btn:hover {
	background: var(--vflq-btn-hover-bg, #1d1d1f);
	color: var(--vflq-btn-hover-text, #fff);
	text-decoration: none;
}

.vflq-module .vflq-dots { display: flex; gap: 10px; }

.vflq-module .vflq-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	background: #b9bcc1;
	transition: background .2s, transform .2s;
}

.vflq-module .vflq-dot.vflq-active {
	background: var(--vflq-blue);
	transform: scale(1.2);
}

/* ---------- Track ---------- */

.vflq-module .vflq-viewport { overflow: hidden; }

.vflq-module .vflq-track {
	display: flex;
	gap: var(--vflq-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	cursor: grab;
	padding-bottom: 4px;
}

.vflq-module .vflq-track::-webkit-scrollbar { display: none; }

.vflq-module .vflq-track.vflq-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	scroll-behavior: auto;
}

.vflq-module .vflq-track.vflq-dragging .vflq-card { pointer-events: none; }

/* ---------- Karte ---------- */

.vflq-module .vflq-card {
	flex: 0 0 calc((100% - (var(--vflq-visible) + var(--vflq-peek) - 1) * var(--vflq-gap)) / (var(--vflq-visible) + var(--vflq-peek)));
	scroll-snap-align: start;
	position: relative;
	aspect-ratio: 27 / 40;
	overflow: hidden;
	background: linear-gradient(160deg, var(--vflq-blue-light) 0%, var(--vflq-blue) 45%, var(--vflq-blue-dark) 100%);
	user-select: none;
	-webkit-user-select: none;
}

.vflq-module .vflq-card--staff {
	background: linear-gradient(160deg, #3c4250 0%, #23272f 55%, #101318 100%);
}

.vflq-module .vflq-watermark {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	pointer-events: none;
	font-weight: 800;
	line-height: .82;
	letter-spacing: .02em;
	color: rgba(255, 255, 255, .07);
	font-size: 5.2em;
	text-transform: uppercase;
	padding-left: 4%;
}

.vflq-module .vflq-number {
	position: absolute;
	top: 4%;
	right: 7%;
	color: #fff;
	font-family: var(--vflq-font-nr, inherit);
	font-size: 3.4em;
	font-weight: 700;
	line-height: 1;
	z-index: 2;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

/* Spielerfoto: füllt die Karte vollflächig (Fotos 1500x2000px,
   3:4). Die Karte ist etwas schmaler (27:40), daher wird links/
   rechts minimal beschnitten – oben bleibt alles sichtbar. */
.vflq-module .vflq-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;  /* Avada setzt img { max-width: 100% } */
	max-height: none;
	object-fit: cover;
	object-position: top center;
	z-index: 1;
	-webkit-user-drag: none;
}

/* Silhouetten-Platzhalter (kein Foto hinterlegt): kleiner,
   unten über der Infofläche verankert */
.vflq-module .vflq-photo--placeholder {
	inset: auto;
	left: 50%;
	bottom: 26%;
	transform: translateX(-50%);
	width: 78%;
	height: 60%;
	object-fit: contain;
	object-position: bottom center;
}

.vflq-module .vflq-info {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 26%;
	background: rgba(8, 16, 38, .72);
	backdrop-filter: blur(2px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 4% 7%;
	z-index: 2;
}

.vflq-module .vflq-card--staff .vflq-info { background: rgba(0, 0, 0, .5); }

.vflq-module .vflq-name {
	color: #fff;
	font-family: var(--vflq-font-name, inherit);
	font-weight: 700;
	font-size: 1.05em;
	line-height: 1.2;
	margin: 0 0 .35em;
	padding: 0;
}

.vflq-module .vflq-quote {
	color: rgba(255, 255, 255, .88);
	font-family: var(--vflq-font-quote, inherit);
	font-style: italic;
	font-weight: 400;
	font-size: .8em;
	line-height: 1.35;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

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

@media (max-width: 1280px) { .vflq-module { --vflq-visible: 4; } }
@media (max-width: 1024px) { .vflq-module { --vflq-visible: 3; } }

@media (max-width: 760px) {
	.vflq-module { --vflq-visible: 2; --vflq-gap: 14px; }
	.vflq-module .vflq-head-right { align-items: flex-start; }
}

@media (max-width: 480px) {
	.vflq-module { --vflq-visible: 1; --vflq-peek: 0.3; }
}
