/* Emmcee Card Fan */

.elementor-widget-emmcee-card-fan,
.elementor-widget-emmcee-card-fan > .elementor-widget-container {
	width: 100%;
}

.emmcee-card-fan {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 40px 20px;
	box-sizing: border-box;
}

.emmcee-card-fan * {
	box-sizing: border-box;
}

.card-fan-item {
	position: relative;
	width: 230px;
	height: 400px;
	border-radius: 16px;
	overflow: hidden;
	flex-shrink: 0;
	background-color: #2b2b2b;
	transition: transform 0.3s ease, box-shadow 0.3s ease, width 0.3s ease, height 0.3s ease;
}

/* Nur im Elementor-Editor sichtbar: markiert, welche Karte aktuell die
   Mittelkarte ist, damit man beim Bearbeiten nicht raten muss. */
body.elementor-editor-active .card-fan-item--featured::after {
	content: 'Mittelkarte';
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1000;
	background: #2b2b2b;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
	pointer-events: none;
	font-family: sans-serif;
}

.card-fan-item:hover {
	z-index: 999 !important;
}

.card-fan-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.emmcee-card-fan--zoom .card-fan-item:hover .card-fan-image {
	transform: scale(1.08);
}

/* ---------- Hover-Textfeld ---------- */
.card-fan-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	padding: 28px;
	background-color: rgba(252, 244, 235, 0.88);
	opacity: 0;
	pointer-events: none;
	transition-property: opacity;
	transition-duration: 0.3s;
	transition-timing-function: ease;
	overflow-y: auto;
}

.card-fan-item:hover .card-fan-overlay,
.card-fan-item:focus-within .card-fan-overlay {
	opacity: 1;
	pointer-events: auto;
}

.card-fan-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background-color: #a05a3c;
	margin-bottom: 14px;
	flex-shrink: 0;
}

.card-fan-badge i,
.card-fan-badge svg {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #ffffff;
}

.card-fan-title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	color: #433c38;
}

.card-fan-text {
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.6;
	color: #5a5a5a;
}

.card-fan-text p {
	margin: 0;
}

.card-fan-text strong {
	color: #433c38;
}

.card-fan-list {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.card-fan-list-item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.card-fan-list-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	flex-shrink: 0;
}

.card-fan-list-icon i,
.card-fan-list-icon svg {
	font-size: 12px;
	width: 12px;
	height: 12px;
	color: #c77761;
}

.card-fan-list-text {
	font-size: 13px;
	color: #433c38;
}

.card-fan-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: auto;
	padding: 11px 22px;
	border-radius: 999px;
	background-color: #a05a3c;
	color: #ffffff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-decoration: none;
	width: fit-content;
	transition: background-color 0.2s ease;
}

.card-fan-button:hover {
	background-color: #7c4429;
}

.card-fan-button i,
.card-fan-button svg {
	font-size: 12px;
	width: 12px;
	height: 12px;
	color: #ffffff;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.emmcee-card-fan {
		flex-wrap: wrap;
		row-gap: 24px;
	}
	.card-fan-item:not(:first-child) {
		margin-left: -20px;
	}
}

@media (max-width: 600px) {
	.emmcee-card-fan {
		flex-direction: column;
		padding: 20px;
	}
	.card-fan-item,
	.card-fan-item--featured {
		width: 100% !important;
		height: auto !important;
		margin-left: 0 !important;
		display: flex;
		flex-direction: column;
	}
	.card-fan-image {
		position: relative;
		height: 200px;
	}
	.card-fan-overlay {
		position: static;
		opacity: 1;
		pointer-events: auto;
		background-color: #fcf4eb;
		backdrop-filter: none !important;
		-webkit-backdrop-filter: none !important;
	}
}
