@font-face {
	font-family: 'Josefin Sans';
	src: url('../fonts/JosefinSans-SemiBold.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Josefin Sans';
	src: url('../fonts/JosefinSans-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Mulish';
	src: url('../fonts/Mulish-Light.woff2') format('woff2');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

.vfelc-carousel-wrapper {
	margin-top: 2rem;
	margin-bottom: 2rem;
	--vfelc-heading-font: 'Josefin Sans', sans-serif;
	--vfelc-body-font: 'Mulish', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--vfelc-linkedin-blue: #0a66c2;
	--vfelc-text: #242424;
	--vfelc-muted: #6a6a66;
	--vfelc-body-text: #3d3d3b;
	--vfelc-border: #ececea;
	--vfelc-accent: #248043;
	--vfelc-accent-dark: #1a4a32;
	--vfelc-accent-bright: #3dbd6a;
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	padding: 48px 5vw;
	box-sizing: border-box;
	background: #f6f6f5;
}

.vfelc-carousel-wrapper *,
.vfelc-carousel-wrapper *::before,
.vfelc-carousel-wrapper *::after {
	box-sizing: border-box;
}

.vfelc-empty {
	opacity: 0.7;
	font-style: italic;
	font-family: var(--vfelc-body-font);
	text-align: center;
}

/* Stage: viewport with the focus track inside */
.vfelc-stage {
	position: relative;
}

.vfelc-viewport {
	overflow: hidden;
	padding: 26px 0;
}

.vfelc-track {
	display: flex;
	align-items: center;
	gap: 32px;
	will-change: transform;
	transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Card wrapper: handles scale / opacity / blur of neighbours (Fokus-Modus) */
.vfelc-card-wrap {
	flex: 0 0 380px;
	width: 380px;
	transform-origin: center;
	transform: scale(0.8);
	opacity: 0.5;
	filter: blur(2.5px);
	transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.5s ease, filter 0.5s ease;
	pointer-events: none;
}

.vfelc-card-wrap.is-active {
	transform: scale(1);
	opacity: 1;
	filter: none;
	pointer-events: auto;
}

/* Alle Karten gleich hoch; überlanger Text wird im Textbereich abgeschnitten bzw. gescrollt */
.vfelc-card {
	display: flex;
	flex-direction: column;
	height: var(--vfelc-card-height, 580px);
	background: #fff;
	border-radius: 24px;
	overflow: hidden;
	border: 1px solid var(--vfelc-border);
	box-shadow: 0 8px 24px rgba(26, 74, 50, 0.1);
	transition: box-shadow 0.5s ease, height 0.5s ease;
	font-family: var(--vfelc-body-font);
}

.vfelc-card-wrap.is-active .vfelc-card {
	box-shadow: 0 18px 48px rgba(26, 74, 50, 0.18);
}

.vfelc-card-wrap:not(.is-active) .vfelc-card {
	-webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
}

/* Header: Logo, Firmenname, Zeit, LinkedIn-Icon */
.vfelc-card__header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 20px 22px 12px;
}

.vfelc-card__logo {
	width: 46px;
	height: 46px;
	border-radius: 999px;
	object-fit: cover;
	flex: 0 0 auto;
}

.vfelc-card__logo--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-family: var(--vfelc-heading-font);
	font-weight: 600;
	font-size: 17px;
}

.vfelc-card__identity {
	flex: 1 1 auto;
	min-width: 0;
	line-height: 1.2;
}

.vfelc-card__company {
	font-family: var(--vfelc-heading-font);
	font-weight: 600;
	font-size: 16px;
	color: var(--vfelc-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vfelc-card__meta {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 12.5px;
	color: var(--vfelc-muted);
	margin-top: 2px;
}

.vfelc-card__globe {
	color: var(--vfelc-muted);
}

.vfelc-card__linkedin-badge {
	width: 24px;
	height: 24px;
	border-radius: 5px;
	background: var(--vfelc-linkedin-blue);
	color: #fff;
	font-family: var(--vfelc-heading-font);
	font-weight: 700;
	font-size: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

/* Post-Text */
.vfelc-card__text {
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
	padding: 16px 22px 0;
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--vfelc-body-text);
	font-weight: 300;
}

.vfelc-card--no-media .vfelc-card__text {
	font-size: 18px;
}

.vfelc-card__text.is-overflowing:not(.is-expanded) {
	-webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}

.vfelc-card__text.is-expanded {
	overflow-y: auto;
	overscroll-behavior: contain;
}

.vfelc-hashtag,
.vfelc-mention {
	color: var(--vfelc-accent);
	font-weight: 600;
}

.vfelc-card__toggle {
	align-self: flex-start;
	margin: 6px 22px 0;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
	font-family: var(--vfelc-heading-font);
	font-weight: 600;
	font-size: 13px;
	color: var(--vfelc-accent);
}

.vfelc-card__toggle:hover {
	color: var(--vfelc-accent-dark);
	text-decoration: underline;
}

/* visibility statt display, damit sich die Textfläche beim Fokuswechsel nicht verschiebt */
.vfelc-card-wrap:not(.is-active) .vfelc-card__toggle {
	visibility: hidden;
}

/* Medien: Originalseitenverhältnis, nie beschnitten. Hohe Bilder werden auf
   --vfelc-media-max-height begrenzt und mittig mit seitlichem Rand dargestellt. */
.vfelc-card__media {
	position: relative;
	overflow: hidden;
	background: #f3f3f1;
	flex: 0 0 auto;
}

.vfelc-card__media img {
	width: 100%;
	height: auto;
	max-height: var(--vfelc-media-max-height, 240px);
	object-fit: contain;
	display: block;
}

/* Footer */
.vfelc-card__footer {
	margin-top: 18px;
	border-top: 1px solid var(--vfelc-border);
	padding: 14px 22px 20px;
	flex: 0 0 auto;
}

.vfelc-card--no-media .vfelc-card__footer {
	margin-top: auto;
}

.vfelc-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--vfelc-heading-font);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--vfelc-linkedin-blue);
	text-decoration: none;
}

.vfelc-card__link:hover {
	text-decoration: underline;
}

/* Pfeile */
.vfelc-arrow {
	position: absolute;
	top: 46%;
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--vfelc-border);
	box-shadow: 0 8px 24px rgba(26, 74, 50, 0.14);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 5;
	padding: 0;
}

.vfelc-arrow svg {
	stroke: var(--vfelc-accent);
}

.vfelc-arrow:hover svg {
	stroke: var(--vfelc-accent-dark);
}

.vfelc-arrow--prev {
	left: 8px;
}

.vfelc-arrow--next {
	right: 8px;
}

/* Dots */
.vfelc-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
}

.vfelc-dot {
	width: 9px;
	height: 9px;
	border-radius: 999px;
	border: none;
	padding: 0;
	cursor: pointer;
	background: #d0d0cc;
	transition: all 0.35s ease;
}

.vfelc-dot.is-active {
	width: 26px;
	background: var(--vfelc-accent-bright);
}

/* Smartphone: genau ein Post in voller Breite, Nachbarn ausgeblendet, Blättern per Wischen oder Punkte */
@media (max-width: 600px) {
	.vfelc-carousel-wrapper {
		padding: 32px 16px;
		--vfelc-card-height: 520px;
		--vfelc-media-max-height: 220px;
	}

	.vfelc-viewport {
		padding: 8px 0 20px;
	}

	.vfelc-track {
		gap: 16px;
	}

	.vfelc-card-wrap {
		flex: 0 0 100%;
		width: 100%;
		transform: none;
		filter: none;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.4s ease, visibility 0.4s;
	}

	.vfelc-card-wrap.is-active {
		opacity: 1;
		visibility: visible;
	}

	.vfelc-card__header {
		padding: 16px 18px 10px;
	}

	.vfelc-card__text {
		padding: 12px 18px 0;
	}

	.vfelc-card--no-media .vfelc-card__text {
		font-size: 16.5px;
	}

	.vfelc-card__toggle {
		margin: 6px 18px 0;
	}

	.vfelc-card__footer {
		padding: 12px 18px 16px;
	}

	/* Pfeile würden den Text überdecken */
	.vfelc-arrow {
		display: none;
	}

	.vfelc-dots {
		flex-wrap: wrap;
		margin-top: 4px;
	}

	/* Größere Tippfläche für die Punkte */
	.vfelc-dot {
		width: 10px;
		height: 10px;
		margin: 4px 2px;
	}

	.vfelc-dot.is-active {
		width: 26px;
	}
}
