/* ==========================================================================
   FHG Event Card – v1.4.0
   Figma: Event_Kachel (Desktop 1720 × 392, Mobile 350 × 1021)
   Mobile: Single-Column Vertical Stack
   ========================================================================== */

.fhg-ecard {
	display: grid;
	grid-template-columns: auto 289px 1fr 340px;
	align-items: start;
	gap: 47px;
	background-color: #F3F4EB;
	border-radius: 16px;
	padding: 50px 54px;
	color: #0D2102;
	border-left: 6px solid #F4EE8F;
}

/* ---------- Date Block ---------- */

.fhg-ecard__date {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 120px;
	padding-top: 4px;
}

.fhg-ecard__date-numbers {
	position: relative;
	display: flex;
	flex-direction: column;
}

.fhg-ecard__date-number {
	font-family: 'SangBleu Kingdom', Georgia, serif;
	font-weight: 500;
	font-size: 60px;
	line-height: 60px;
	letter-spacing: -0.03em;
}

.fhg-ecard__date-month {
	padding-left: 62px;
}

.fhg-ecard__date-line {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 138px;
	height: 1.5px;
	background-color: #0D2102;
	transform: translate(-50%, -50%) rotate(-44deg);
	transform-origin: center;
}

.fhg-ecard__date-info {
	display: flex;
	flex-direction: column;
	margin-top: 16px;
}

.fhg-ecard__date-meta {
	font-family: 'Poppins', sans-serif;
	font-weight: 400;
	font-size: 20px;
	line-height: 28px;
}

/* ---------- Image ---------- */

.fhg-ecard__image-wrap {
	position: relative;
	width: 289px;
	aspect-ratio: 1 / 1;
	border-radius: 15px;
	overflow: hidden;
	flex-shrink: 0;
}

.fhg-ecard__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	display: block;
}

/* ---------- Content ---------- */

.fhg-ecard__content {
	display: flex;
	flex-direction: column;
	gap: 15px;
	max-width: 437px;
}

.fhg-ecard__title {
	font-family: 'Poppins', sans-serif;
	font-weight: 500;
	font-size: 26px;
	line-height: 30px;
	letter-spacing: -0.01em;
	margin: 0;
}

.fhg-ecard__title strong {
	font-weight: 500;
}

.fhg-ecard__title em,
.fhg-ecard__title i {
	font-style: italic;
}

.fhg-ecard__desc {
	font-family: 'Poppins', sans-serif;
	font-weight: 400;
	font-size: 20px;
	line-height: 28px;
	letter-spacing: 0;
	margin: 0;
}

/* ---------- Booking Column ---------- */

.fhg-ecard__booking {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	min-width: 200px;
	position: relative;
	align-self: stretch;
}

/* ---------- Divider Line with Diamond Ends ---------- */

.fhg-ecard__divider-line {
	position: absolute;
	left: -32px;
	top: -50px;
	bottom: -50px;
	width: 1px;
	background-color: #E8E3C6;
}

.fhg-ecard__divider-line::before,
.fhg-ecard__divider-line::after {
	content: '';
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
}

/* Oberes Dreieck: zeigt nach unten ▼ */
.fhg-ecard__divider-line::before {
	top: 0;
	border-top: 6px solid #E8E3C6;
}

/* Unteres Dreieck: zeigt nach oben ▲ */
.fhg-ecard__divider-line::after {
	bottom: 0;
	border-bottom: 6px solid #E8E3C6;
}

.fhg-ecard__booking-row {
	width: 100%;
	padding: 9px 0;
	border-bottom: 1px solid rgba(222, 215, 174, 0.7);
}

.fhg-ecard__price {
	font-family: 'Poppins', sans-serif;
	font-weight: 400;
	font-size: 20px;
	line-height: 28px;
}

.fhg-ecard__availability {
	display: flex;
	align-items: center;
	gap: 9px;
	font-family: 'Poppins', sans-serif;
	font-weight: 400;
	font-size: 20px;
	line-height: 28px;
}

.fhg-ecard__dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	flex-shrink: 0;
}

.fhg-ecard__dot--available {
	background-color: #5DB77E;
}

.fhg-ecard__dot--few {
	background-color: #D4A017;
}

.fhg-ecard__dot--sold_out {
	background-color: #C0392B;
}

/* ---------- Button ---------- */

.fhg-ecard__btn {
	display: inline-flex;
	align-items: center;
	gap: 15px;
	background-color: #FFFFFF;
	border: none;
	border-radius: 63px;
	padding: 3px 20px;
	font-family: 'Poppins', sans-serif;
	font-weight: 500;
	font-size: 16px;
	line-height: 28px;
	letter-spacing: -0.01em;
	color: #0D2102 !important;
	text-decoration: none !important;
	margin-top: 12px;
	transition: background-color 0.3s ease;
	cursor: pointer;
}

.fhg-ecard__btn:visited {
	background-color: #FFFFFF;
	color: #0D2102 !important;
	text-decoration: none !important;
}

.fhg-ecard__btn:hover,
.fhg-ecard__btn:focus {
	background-color: #F4EE8F;
	color: #0D2102 !important;
	text-decoration: none !important;
}

.fhg-ecard__btn:hover .fhg-ecard__btn-arrow {
	transform: translateX(4px);
}

.fhg-ecard__btn--disabled {
	opacity: 0.5;
	cursor: default;
	pointer-events: none;
}

.fhg-ecard__btn--loading {
	opacity: 0.6;
	pointer-events: none;
}

.fhg-ecard__btn-arrow {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	width: 22px;
	color: #0D2102;
	transition: transform 0.3s ease;
}

.fhg-ecard__btn-arrow svg {
	width: 100%;
	height: 100%;
}

/* ---------- Quantity Selector ---------- */

.fhg-ecard__qty {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.4s cubic-bezier(0.33, 0, 0.2, 1),
	            opacity 0.3s ease,
	            margin-top 0.4s cubic-bezier(0.33, 0, 0.2, 1);
	margin-top: 0;
}

.fhg-ecard__qty.is-open {
	max-height: 80px;
	opacity: 1;
	margin-top: 14px;
}

.fhg-ecard__qty-label {
	font-family: 'Poppins', sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	letter-spacing: -0.01em;
	color: rgba(13, 33, 2, 0.6);
}

.fhg-ecard__qty-controls {
	display: flex;
	align-items: center;
	gap: 16px;
}

.fhg-ecard__qty-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1.5px solid #0D2102;
	background: transparent;
	color: #0D2102;
	font-family: 'Poppins', sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
	padding: 0;
	flex-shrink: 0;
	-webkit-user-select: none;
	user-select: none;
}

.fhg-ecard__qty-btn:hover {
	background-color: #DED7AE;
}

.fhg-ecard__qty-btn:active,
.fhg-ecard__qty-btn:focus {
	background-color: #DED7AE;
	outline: none;
}

.fhg-ecard__qty-value {
	font-family: 'Poppins', sans-serif;
	font-weight: 500;
	font-size: 20px;
	line-height: 28px;
	min-width: 24px;
	text-align: center;
}

/* ==========================================================================
   Tablet (< 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
	.fhg-ecard {
		grid-template-columns: auto 240px 1fr;
		gap: 24px;
		padding: 36px;
	}

	.fhg-ecard__image-wrap {
		width: 240px;
		height: 200px;
	}

	.fhg-ecard__content {
		max-width: none;
	}

	.fhg-ecard__booking {
		grid-column: 1 / -1;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 16px;
		padding-top: 20px;
		border-top: 1px solid rgba(222, 215, 174, 0.7);
	}

	.fhg-ecard__booking-row {
		border-bottom: none;
		padding: 0;
		width: auto;
	}

	.fhg-ecard__divider-line {
		display: none;
	}

	.fhg-ecard__btn {
		margin-top: 0;
		margin-left: auto;
	}

	.fhg-ecard__qty {
		width: 100%;
		order: 10;
	}

	.fhg-ecard__qty-controls {
		justify-content: flex-start;
	}
}

/* ==========================================================================
   Mobile (< 768px)
   ========================================================================== */

@media (max-width: 767px) {
	.fhg-ecard {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 28px 24px;
	}

	/* ---------- Date ---------- */

	.fhg-ecard__date-number {
		font-size: 60px;
		line-height: 60px;
	}

	.fhg-ecard__date-month {
		padding-left: 40px;
	}

	.fhg-ecard__date-line {
		width: 110px;
	}

	.fhg-ecard__date-meta {
		font-size: 18px;
		line-height: 24px;
	}

	/* ---------- Image ---------- */

	.fhg-ecard__image-wrap {
		width: 100%;
		height: auto;
		aspect-ratio: 4 / 3;
	}

	/* ---------- Content ---------- */

	.fhg-ecard__content {
		max-width: none;
	}

	.fhg-ecard__title {
		font-size: 20px;
		line-height: 26px;
	}

	.fhg-ecard__desc {
		font-size: 16px;
		line-height: 24px;
	}

	/* ---------- Booking ---------- */

	.fhg-ecard__booking {
		flex-direction: column;
		align-items: flex-start;
		border-top: 1px solid rgba(222, 215, 174, 0.7);
		padding-top: 16px;
		gap: 0;
	}

	.fhg-ecard__divider-line {
		display: none;
	}

	.fhg-ecard__booking-row {
		width: 100%;
		padding: 10px 0;
		border-bottom: 1px solid rgba(222, 215, 174, 0.7);
	}

	.fhg-ecard__btn {
		margin-left: 0;
		margin-top: 16px;
		width: auto;
		justify-content: flex-start;
	}

	.fhg-ecard__qty {
		width: 100%;
	}

	.fhg-ecard__qty-controls {
		justify-content: flex-start;
	}

	.fhg-ecard__price,
	.fhg-ecard__availability {
		font-size: 16px;
		line-height: 24px;
	}
}
