/**
 * yunion Festival Page - Sticky Submenu & Blind-Booking-Leiste
 * Brand tokens: Petrol #06343C, Dark #06191D, Creme #E6F3F5 / #F1FBFB, Accent #F9AF32, Teal #0A8F9F
 */

:root {
	--yfs-sticky-offset: 108px;
}

html {
	scroll-padding-top: var(--yfs-sticky-offset, 108px);
}

[id] {
	scroll-margin-top: var(--yfs-sticky-offset, 108px);
}

/* ==========================================================================
   Header & Sticky Container
   ========================================================================== */

/* Divi Theme Builder Header sticky docking on festival pages */
header.et-l--header {
	position: static !important;
	z-index: 99995;
	background-color: #ffffff;
}

body.admin-bar header.et-l--header {
	position: static !important;
	z-index: 99995;
	background-color: #ffffff;
}

@media screen and (max-width: 782px) {
	body.admin-bar header.et-l--header {
	position: static !important;
	z-index: 99995;
	background-color: #ffffff;
}
}

@media screen and (max-width: 600px) {
	body.admin-bar header.et-l--header {
	position: static !important;
	z-index: 99995;
	background-color: #ffffff;
}
}

/* On desktop (>= 981px), sticky docking under the header */
@media screen and (min-width: 981px) {
	.yfs-sticky-block {
		position: -webkit-sticky !important;
		position: sticky !important;
		top: var(--yfs-block-top, 0px) !important;
		left: 0;
		right: 0;
		z-index: 99990;
		width: 100%;
		box-shadow: 0 4px 16px rgba(6, 25, 29, 0.08);
		transition: top 0.15s ease;
		background: #E6F3F5;
	}

	/* Fallback offsets before JS executes */
	body.admin-bar .yfs-sticky-block {
		top: var(--yfs-block-top, 108px);
	}
}

/* On mobile (< 981px), NO sticky: sits statically under the Hero and scrolls away */
@media screen and (max-width: 980px) {
	.yfs-sticky-block {
		position: static !important;
		top: auto !important;
		box-shadow: none !important;
		background: #E6F3F5;
		width: 100%;
	}
}

/* ==========================================================================
   1. Submenü (.yfs-subnav)
   ========================================================================== */

.yfs-subnav {
	background-color: #E6F3F5;
	border-bottom: 1px solid rgba(6, 52, 60, 0.1);
	position: relative;
	width: 100%;
}

.yfs-subnav__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
	box-sizing: border-box;
}

/* Mobile Header Row (Hidden on Desktop) */
.yfs-subnav__mobile-header {
	display: none;
}

/* Desktop List */
.yfs-subnav__list {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 2px 14px;
	list-style: none;
	margin: 0;
	padding: 0;
	min-height: 46px;
}

.yfs-subnav__item {
	list-style: none;
	margin: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
}

.yfs-subnav__link {
	font-family: var(--et_global_body_font, 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: #06343C !important;
	text-decoration: none;
	padding: 8px 6px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	border-bottom: 2px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.yfs-subnav__link:hover,
.yfs-subnav__link:focus {
	color: #0A8F9F !important;
	text-decoration: none;
}

.yfs-subnav__link--active {
	color: #0A8F9F !important;
	font-weight: 800 !important;
	border-bottom-color: #0A8F9F !important;
}

/* ==========================================================================
   2. Blind-Booking-Leiste (.yfs-booking-bar)
   ========================================================================== */

.yfs-booking-bar {
	background-color: #06343C;
	color: #F1FBFB;
	min-height: 44px;
	display: flex;
	align-items: center;
	width: 100%;
}

.yfs-booking-bar__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 6px 16px;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	box-sizing: border-box;
}

.yfs-booking-bar__info {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--et_global_body_font, 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
	font-size: 14px;
	color: #F1FBFB;
	flex-wrap: wrap;
}

.yfs-booking-bar__stage {
	font-weight: 600;
	color: #D4E7EA;
}

.yfs-booking-bar__sep {
	color: #5A8088;
	user-select: none;
}

.yfs-booking-bar__pricing {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
}

.yfs-booking-bar__price {
	font-size: 16px;
	font-weight: 800;
	color: #FFFFFF;
}

.yfs-booking-bar__old-price {
	font-size: 13px;
	font-weight: 400;
	color: #9BB6BC;
	text-decoration: line-through;
	opacity: 0.8;
}

.yfs-booking-bar__deadline {
	font-size: 14px;
	color: #D4E7EA;
}

.yfs-deadline-short {
	display: none;
}

.yfs-booking-bar__action {
	flex-shrink: 0;
}

.yfs-booking-bar__btn {
	background-color: #F9AF32;
	color: #3C2906 !important;
	font-family: var(--et_global_body_font, 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
	font-size: 16px;
	font-weight: 800;
	text-transform: none;
	letter-spacing: normal;
	padding: 0 28px 0 36px;
	border-radius: 8px;
	border: none;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	white-space: nowrap;
	position: relative;
	background-image: none;
	box-shadow: 0 1px 0 rgba(60,41,6,.18), 0 6px 16px -8px rgba(249,175,50,.7);
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, height 0.2s ease;
}

.yfs-booking-bar__btn::before {
	content: '';
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 3px;
	height: 16px;
	border-radius: 2px;
	background: #3C2906;
	transition: height 0.2s ease;
}

.yfs-booking-bar__btn:hover::before,
.yfs-booking-bar__btn:focus-visible::before {
	height: 26px;
}

.yfs-booking-bar__btn:hover,
.yfs-booking-bar__btn:focus {
	background-color: #F9CA76;
	color: #3C2906 !important;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 1px 0 rgba(60,41,6,.18), 0 10px 22px -8px rgba(249,175,50,.85);
}

.yfs-booking-bar__btn:active {
	background-color: #F0A21C;
	transform: translateY(1px);
}

.yfs-booking-bar__btn:focus-visible {
	box-shadow: 0 0 0 3px #06343C, 0 0 0 6px #C3E5E5;
}

.yfs-booking-bar__btn-short {
	display: none;
}

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

@media screen and (max-width: 767px) {
	/* Hide mobile burger toggle button */
	.yfs-subnav__mobile-header {
		display: none !important;
	}

	/* Keep drawer open as static inline container */
	.yfs-subnav__drawer {
		display: block !important;
		position: static !important;
		box-shadow: none !important;
		border: none !important;
		max-height: none !important;
		overflow: visible !important;
		background: transparent !important;
	}

	/* Stack menu items inline in exactly two clean lines (4 items each) */
	.yfs-subnav__list {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: wrap !important;
		align-items: center !important;
		justify-content: center !important;
		padding: 4px 0 !important;
		margin: 0 !important;
		gap: 0 !important;
		min-height: auto !important;
	}

	.yfs-subnav__item {
		display: inline-flex !important;
		flex: 0 0 25% !important;
		max-width: 25% !important;
		box-sizing: border-box !important;
		justify-content: center !important;
	}

	.yfs-subnav__link {
		display: inline-flex !important;
		width: 100% !important;
		justify-content: center !important;
		text-align: center !important;
		padding: 4px 1px !important;
		font-size: 11px !important;
		font-weight: 700 !important;
		letter-spacing: 0.2px !important;
		min-height: 26px !important;
		box-sizing: border-box !important;
		white-space: nowrap !important;
		border-bottom: 2px solid transparent !important;
	}

	.yfs-subnav__link--active {
		color: #0A8F9F !important;
		border-bottom-color: #0A8F9F !important;
		background-color: transparent !important;
	}

	@media screen and (max-width: 340px) {
		.yfs-subnav__link {
			font-size: 10px !important;
			letter-spacing: 0.1px !important;
			padding: 3px 1px !important;
		}
	}

	/* Booking Bar Mobile: Strict single line, compact */
	.yfs-booking-bar {
		min-height: 56px;
	}

	.yfs-booking-bar__container {
		padding: 4px 12px;
		justify-content: center;
		gap: 8px;
	}

	.yfs-booking-bar__info {
		gap: 6px;
		font-size: 13px;
	}

	/* Hide stage name and old price on mobile for clean single-line fit */
	.yfs-booking-bar__stage,
	.yfs-booking-bar__sep--desktop,
	.yfs-booking-bar__old-price {
		display: none;
	}

	.yfs-booking-bar__price {
		font-size: 14px;
	}

	.yfs-booking-bar__deadline {
		font-size: 13px;
	}

	.yfs-deadline-full {
		display: none;
	}

	.yfs-deadline-short {
		display: inline;
	}

	.yfs-booking-bar__btn {
		font-size: 16px;
		padding: 0 28px 0 36px;
		min-height: 48px;
	}

	.yfs-booking-bar__btn-full {
		display: none;
	}

	.yfs-booking-bar__btn-short {
		display: inline;
	}
}

/* ==========================================================================
   3. Wegweiser / Subpage Navigation Cards (.yfs-ww-*)
   ========================================================================== */

.yfs-ww-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: #10201F;
	text-align: center;
	transition: transform 0.15s ease;
	width: 100%;
}

.yfs-ww-card:hover {
	transform: translateY(-2px);
}

.yfs-ww-img {
	width: 100%;
	max-width: 320px;
	aspect-ratio: 4/3;
	object-fit: cover;
	border-radius: 16px;
	margin-bottom: 14px;
	box-shadow: 0 4px 12px rgba(6, 52, 60, 0.08);
}

.yfs-ww-title {
	font-size: 24px;
	font-weight: 800;
	margin: 0 0 12px 0;
	color: #06343C;
}

.yfs-ww-sub {
	font-size: 16px;
	font-weight: 600;
	margin: 0;
	color: #10201F;
}

@media screen and (max-width: 980px) {
	div.yfs-ww-row.et_pb_row,
	.yfs-ww-row {
		display: flex !important;
		flex-direction: column !important;
		gap: 12px !important;
	}

	div.yfs-ww-row > div.et_pb_column,
	.yfs-ww-row > .et_pb_column {
		width: 100% !important;
		max-width: 100% !important;
		flex: 1 1 100% !important;
		margin: 0 0 12px 0 !important;
	}

	.yfs-ww-card {
		flex-direction: row !important;
		align-items: center !important;
		text-align: left !important;
		background: #FFFFFF !important;
		border: 1px solid #C3E5E5 !important;
		border-radius: 16px !important;
		padding: 12px 16px !important;
		gap: 16px !important;
		box-sizing: border-box !important;
		width: 100% !important;
		box-shadow: 0 4px 12px rgba(6, 52, 60, 0.05) !important;
	}

	.yfs-ww-img {
		width: 96px !important;
		height: 72px !important;
		max-width: 96px !important;
		aspect-ratio: 4/3 !important;
		margin-bottom: 0 !important;
		border-radius: 10px !important;
		flex-shrink: 0 !important;
		object-fit: cover !important;
	}

	.yfs-ww-text {
		display: flex !important;
		flex-direction: column !important;
		gap: 4px !important;
		flex: 1 1 auto !important;
	}

	.yfs-ww-title {
		font-size: 18px !important;
		margin: 0 !important;
		color: #06343C !important;
		text-align: left !important;
	}

	.yfs-ww-sub {
		font-size: 14px !important;
		color: #5A8088 !important;
		text-align: left !important;
	}
}

/* ==========================================================================
   Full Width Page Layout for all Festival Pages
   ========================================================================== */
body.yunion-festival-page #main-content .container,
body.yunion-festival-page #main-content #left-area,
body.yunion-festival-page #page-container #main-content .container,
body.yunion-festival-page .et_pb_section {
	width: 100% !important;
	max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

body.yunion-festival-page #main-content .container:before,
body.yunion-festival-page #main-content .container:after {
	display: none !important;
}

body.yunion-festival-page #sidebar {
	display: none !important;
}


/* Force all Divi header sections to be static */
header.et-l--header, header.et-l--header .et_pb_section, header.et-l--header .et_builder_inner_content, header.et-l--header .et_pb_sticky_module { position: static !important; top: auto !important; height: auto !important; }
