/* Wiesn-Formate-Übersicht */

.wiesn-formate-page {
	width: 100%;
	max-width: 100%;
	overflow-x: clip;
}

.wiesn-formate-hero__overlay {
	background:
		radial-gradient(circle at center, #fff 0%, rgba(255, 255, 255, 0.99) 26%, rgba(255, 255, 255, 0.84) 48%, rgba(255, 255, 255, 0.48) 68%, rgba(255, 255, 255, 0.18) 84%, rgba(255, 255, 255, 0) 100%),
		linear-gradient(to bottom, rgba(255, 255, 255, 0) 48%, rgba(255, 255, 255, 0.45) 72%, rgba(255, 255, 255, 0.82) 90%, #fff 100%);
}

.wiesn-formate-grid {
	padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem);
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(180deg, #ffffff 0%, #fffaf3 45%, #ffffff 100%);
}

.wiesn-formate-grid::before,
.wiesn-formate-grid::after {
	content: '';
	position: absolute;
	pointer-events: none;
	filter: blur(48px);
	z-index: 0;
}

.wiesn-formate-grid::before {
	top: 8%;
	left: -8%;
	width: clamp(14rem, 30vw, 24rem);
	height: clamp(14rem, 30vw, 24rem);
	background: radial-gradient(circle, rgba(242, 154, 48, 0.16) 0%, rgba(242, 154, 48, 0) 70%);
}

.wiesn-formate-grid::after {
	bottom: 6%;
	right: -10%;
	width: clamp(12rem, 26vw, 20rem);
	height: clamp(12rem, 26vw, 20rem);
	background: radial-gradient(circle, rgba(201, 125, 32, 0.14) 0%, rgba(201, 125, 32, 0) 72%);
}

.wiesn-formate-grid__inner {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 1.25rem;
	max-width: 72rem;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

@media (min-width: 640px) {
	.wiesn-formate-grid__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.35rem;
	}
}

@media (min-width: 1024px) {
	.wiesn-formate-grid__inner {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.65rem;
	}

	.wiesn-formate-card:nth-child(even) {
		transform: translateY(18px);
	}
}

.wiesn-formate-card {
	display: block;
	will-change: transform, opacity;
}

.wiesn-formate-card__link {
	display: block;
	height: 100%;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 1.1rem;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s ease;
}

.wiesn-formate-card__link:hover {
	transform: translateY(-8px);
	border-color: rgba(242, 154, 48, 0.34);
	box-shadow: 0 22px 42px rgba(15, 23, 42, 0.14);
}

.wiesn-formate-card__media {
	position: relative;
	padding: 0.9rem 0.9rem 0;
	line-height: 0;
}

.wiesn-formate-card__media::after {
	content: '';
	position: absolute;
	inset: 0.9rem 0.9rem 0;
	border-radius: 0.85rem;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.08) 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.wiesn-formate-card__link:hover .wiesn-formate-card__media::after {
	opacity: 1;
}

.wiesn-formate-card__img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 180px;
	margin: 0 auto;
	border: none;
	box-shadow: none;
	background: transparent;
	object-fit: contain;
	border-radius: 0.85rem;
	transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease;
}

.wiesn-formate-card__link:hover .wiesn-formate-card__img {
	transform: scale(1.03);
	filter: saturate(1.08) contrast(1.03);
}

.wiesn-formate-card__content {
	padding: 0.95rem 1rem 1.05rem;
}

.wiesn-formate-card__title {
	margin: 0;
	padding: 0;
	font-size: clamp(1rem, 1.7vw, 1.17rem);
	font-weight: 700;
	line-height: 1.28;
	letter-spacing: 0.01em;
	text-transform: none;
	color: #1f2937;
	transition: color 0.25s ease;
}

.wiesn-formate-card__accent {
	display: block;
	width: 2.15rem;
	height: 2px;
	margin-top: 0.7rem;
	background: linear-gradient(90deg, #f29a30 0%, rgba(242, 154, 48, 0) 100%);
	transition: width 0.3s ease;
}

.wiesn-formate-card__link:hover .wiesn-formate-card__title {
	color: #c97d20;
}

.wiesn-formate-card__link:hover .wiesn-formate-card__accent {
	width: 3.25rem;
}

@media (max-width: 639px) {
	.wiesn-formate-grid__inner {
		gap: 1.15rem;
	}

	.wiesn-formate-card__content {
		padding: 0.85rem 0.9rem 1rem;
	}
}
