/**
 * Single Event Template Styles (BEM)
 *
 * Replaces Elementor markup classes with semantic BEM structure.
 * All values extracted from computed styles via Playwright.
 */

/* ==========================================================================
   Root wrapper: Full width inside Astra's flex container
   ========================================================================== */

.ev-wrapper {
	width: 100%;
}

/* ==========================================================================
   Layout: Shared container pattern
   ========================================================================== */

.ev-section {
	display: flex;
	max-width: 100%;
	padding: 0 30px;
	position: relative;
	box-sizing: border-box;
}

.ev-section__inner {
	display: flex;
	flex-direction: row;
	max-width: min(100%, 1200px);
	width: 100%;
	margin: 0 auto;
	gap: 50px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.ev-hero {
	min-height: 500px;
	position: relative;
	overflow: hidden;
	background-color: #e0e0e0;
}

.ev-hero__bg-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
	z-index: 0;
	pointer-events: none;
}

.ev-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(0, 0, 0, 0) 0%, rgb(34, 34, 34) 100%);
	opacity: 0.89;
	pointer-events: none;
	z-index: 1;
}

.ev-hero .ev-section__inner {
	padding: 90px 0;
	align-items: flex-end;
	position: relative;
	z-index: 2;
	pointer-events: none; /* prevent hero overlay from blocking float card clicks */
}

.ev-hero__content {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	flex: 1 1 0%;
	min-width: 0;
	gap: 0px 30px;
	pointer-events: auto; /* restore for breadcrumbs, links etc. in hero content */
}

.ev-hero__sidebar {
	width: 345px;
	flex-shrink: 0;
}

.ev-hero__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-bottom: 10px;
}

.ev-hero__badge {
	display: inline-block;
	padding: 3px 9px 4px;
	background-color: rgba(255, 255, 255, 0.8);
	color: #000;
	font-size: 11px;
	font-weight: 600;
	line-height: 12px;
	border-radius: 12px;
	width: fit-content;
}

.ev-hero__title {
	color: #fff;
	font-size: 36px;
	font-family: Bitter, sans-serif;
	font-weight: 500;
	line-height: 39.6px;
	margin: 0;
	padding: 0;
}

.ev-hero__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 3px;
	margin-top: 10px;
}

.ev-hero__tag {
	display: inline-block;
	padding: 2px 8px 3px;
	background-color: rgba(244, 244, 244, 0.24);
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	line-height: 16.8px;
	border-radius: 3px;
	text-decoration: none;
}

.ev-hero__tag:hover {
	background-color: rgba(244, 244, 244, 0.4);
	color: #fff;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */

.ev-main {
	background-color: #fff;
}

.ev-main .ev-section__inner {
	padding: 60px 0 90px;
}

.ev-content {
	display: flex;
	flex-direction: column;
	flex: 1 1 0%;
	min-width: 0;
	gap: 20px;
}

.ev-sidebar {
	width: 345px;
	flex-shrink: 0;
	margin-top: -342px;
}

/* ==========================================================================
   Post Content (intro text)
   ========================================================================== */

.ev-intro {
	font-size: 18px;
	font-family: Bitter, sans-serif;
	font-weight: 500;
	line-height: 28px;
	color: #1a1a1a;
}

.ev-intro p {
	margin: 0;
}

/* ==========================================================================
   City Infos (accordion text blocks)
   ========================================================================== */

.ev-city-text {
	position: relative;
}

/* Only collapse when JS is available (progressive enhancement) */
.js .ev-city-text__content {
	max-height: 200px;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.js .ev-city-text__content.is-expanded {
	max-height: none;
}

/* Hide toggle buttons when JS is disabled (nothing to toggle) */
.ev-city-text .read-more-btn {
	display: none;
}

.js .ev-city-text .read-more-btn {
	display: inline-block;
	margin: 10px auto;
	padding: 0 18px 0 0;
	background: transparent;
	color: #000;
	font-size: 14px;
	font-weight: 600;
	line-height: 16.8px;
	border: 0 solid #95c11f;
	border-radius: 5px;
	cursor: pointer;
	position: relative;
}

.ev-city-text .read-more-btn::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%) rotate(90deg);
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 6px solid #000;
	transition: transform 0.3s ease;
}

.ev-city-text .read-more-btn.is-expanded::after {
	transform: translateY(-50%) rotate(270deg);
}

/* ==========================================================================
   Detail Bar (Dauer, Sprache, min/max Teilnehmer)
   ========================================================================== */

.ev-detail {
	display: flex;
	flex-direction: column;
	padding: 10px 0;
	margin-top: 20px;
	border-top: 1px solid #dedede;
	border-bottom: 1px solid #dedede;
}

.ev-detail__list {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0 -18px;
	padding: 0;
}

.ev-detail__item {
	display: flex;
	align-items: center;
	padding: 0;
	margin: 0 18px;
}

.ev-detail__icon {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	width: 25px;
}

.ev-detail__icon svg {
	width: 20px;
	height: 20px;
}

.ev-detail__text {
	padding-left: 5px;
	font-size: 15px;
	line-height: 21px;
	color: #1a1a1a;
}

/* ==========================================================================
   Description Section
   ========================================================================== */

.ev-desc {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ev-desc__heading {
	font-size: 30px;
	font-family: Bitter, sans-serif;
	font-weight: 500;
	line-height: 36px;
	color: #000;
	margin: 0;
}

.ev-desc__body {
	font-size: 16px;
	line-height: 24px;
	color: #1a1a1a;
}

.ev-desc__body p {
	margin: 0 0 16px;
}

.ev-desc__body p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   Info Rows (Treffpunkt, Location, Inklusive, etc.)
   ========================================================================== */

.ev-info {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.ev-info__row {
	display: flex;
	flex-direction: row;
	gap: 20px;
	padding: 20px 0;
	border-top: 1px solid #d9d9d9;
}

.ev-info__label {
	width: 196px;
	flex-shrink: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 22.4px;
	color: #000;
	margin: 0;
}

.ev-info__value {
	flex: 1;
	font-size: 16px;
	line-height: 24px;
	color: #1a1a1a;
}

.ev-info__value.tick-list ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ev-info__value.tick-list li::before {
	content: '\2713';
	color: #126a1d;
	margin-right: 8px;
	font-weight: 600;
}

.ev-info__value.disc-list ul {
	padding-left: 20px;
}

/* Partner block within info */
.ev-info__partner {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ev-info__partner-name {
	font-size: 16px;
	font-weight: 600;
	color: #000;
	margin: 0;
}

.ev-info__partner-logo img {
	max-width: 150px;
	height: auto;
}

.ev-info__partner-text {
	font-size: 16px;
	line-height: 24px;
}

/* ==========================================================================
   Float Box / Sidebar Card
   ========================================================================== */

.ev-float {
	position: sticky;
	top: 160px;
	z-index: 10 !important;
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 20px;
	background: #fff;
	border: 1px solid #d9d9d9;
	border-radius: 12px;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Price info */
.ev-float__price {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding-bottom: 20px;
	border-bottom: 1px solid #d9d9d9;
}

.ev-float__price-heading {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	align-items: center;
	font-size: 28px;
	font-family: Bitter, sans-serif;
	font-weight: 700;
	line-height: 39.2px;
	color: #000;
	margin: 0;
}

.ev-float__price-heading span {
	font-size: 16px;
	font-weight: 400;
	font-family: "Open Sans", sans-serif;
}

/* Tooltip (price info popup) */
.ev-float .tooltip-container {
	position: relative;
}

.ev-float .tooltip-box {
	position: absolute;
	background-color: #fff;
	border-radius: 9px;
	padding: 10px 15px;
	width: 254px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
	z-index: 9;
	font-size: 13px;
	line-height: 21px;
	font-weight: normal;
	right: -25px;
	margin-top: -10px;
}

.ev-float .tooltip-box.active {
	opacity: 1;
	pointer-events: auto;
}

.ev-float .tooltip-arrow {
	position: absolute;
	width: 0;
	height: 0;
	border-style: solid;
}

.ev-float .icon-info {
	display: flex;
	align-items: center;
	cursor: pointer;
	padding-left: 0;
}

.ev-float .tooltip-wrapper {
	margin-left: 10px;
}

.ev-float .price-row {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
}

.ev-float .price-value {
	font-weight: 600;
}

.ev-float .tax-info {
	font-size: 11px;
	color: #666;
	margin-top: 4px;
}

.ev-float__price-note {
	font-size: 12px;
	line-height: 16.8px;
	color: #1a1a1a;
	margin: 0;
}

/* USP Grid */
.ev-float__usp {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 20px 0;
	border-bottom: 1px solid #d9d9d9;
}

.ev-float__usp-item {
	display: flex;
	align-items: flex-start;
	gap: 5px;
}

.ev-float__usp-icon {
	flex-shrink: 0;
}

.ev-float__usp-icon svg {
	width: 26px;
	height: auto;
}

.ev-float__usp-text {
	font-size: 12px;
	font-weight: 600;
	line-height: 16.8px;
	color: #000;
	padding-left: 5px;
	text-transform: uppercase;
	align-self: center;
}

/* CTA Button */
.ev-float__cta {
	padding: 20px 0;
}

.ev-float__cta-btn {
	display: block;
	width: 100%;
	padding: 14px 28px;
	background-color: #95c11f;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 19.2px;
	text-align: center;
	text-decoration: none;
	border: 0;
	border-radius: 50px;
	cursor: pointer;
	box-sizing: border-box;
	transition: background-color 0.2s ease;
}

.ev-float__cta-btn:hover {
	background-color: #85ad1b;
	color: #fff;
}

/* Help box */
.ev-float__help {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	padding: 15px;
	background-color: #f3f9e7;
	border-radius: 9px;
}

.ev-float__help-heading {
	font-size: 15px;
	font-family: Bitter, sans-serif;
	font-weight: 600;
	line-height: 26px;
	color: #126a1d;
	margin: 0;
}

.ev-float__help-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ev-float__help-link {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 0;
	color: #95c11f;
	font-size: 14px;
	line-height: 20px;
	text-decoration: none;
}

.ev-float__help-link:hover {
	text-decoration: underline;
	color: #95c11f;
}

.ev-float__help-link svg {
	width: 13px;
	height: 9px;
	flex-shrink: 0;
}

/* ==========================================================================
   Bottom Section (FAQ + Form)
   ========================================================================== */

.ev-bottom {
	background-color: #fff;
}

.ev-bottom .ev-section__inner {
	padding: 0 0 90px;
	flex-direction: row;
	gap: 50px;
}

/* ==========================================================================
   FAQ Section — matches category page (.cp-faq-section) styling
   ========================================================================== */

.ev-faq {
	display: flex;
	flex-direction: column;
	gap: 20px;
	flex: 1 1 0%;
	min-width: 0;
}

.ev-faq__heading {
	font-size: 30px;
	font-family: Bitter, sans-serif;
	font-weight: 500;
	line-height: 36px;
	color: #000;
	margin: 0;
}

.ev-faq-box {
	background-color: transparent;
	border: 1px solid #d9d9d9;
	border-radius: 9px;
	padding: 20px;
}

.ev-faq .faq-container {
	width: 100%;
	display: block;
}

.ev-faq .faq-item {
	border-bottom: 1px solid #d9d9d9;
	padding: 15px 0;
}

.ev-faq .faq-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.ev-faq .faq-question {
	display: block;
	position: relative;
}

.ev-faq .faq-question h4 {
	font-weight: 500;
	position: relative;
	font-family: "Bitter";
	font-size: 18px;
	color: #000000;
	line-height: 24px;
	margin: 0;
}

.js .ev-faq .faq-question h4 {
	cursor: pointer;
	padding-right: 35px;
}

.js .ev-faq .faq-question.active h4 {
	color: #136a1d;
}

.js .ev-faq .faq-question::after {
	content: "";
	position: absolute;
	right: 10px;
	background: url(/wp-content/uploads/2025/03/faq-arrow.svg) no-repeat;
	width: 16px;
	height: 9px;
	top: 10px;
	transition: 0.3s ease-in-out;
}

.js .ev-faq .faq-question.active::after {
	content: "";
	transform: rotate(180deg);
}

/* Only collapse with JS (progressive enhancement) */
.js .ev-faq .acc-contents {
	height: 0;
	overflow: hidden;
	transition: all 0.5s ease 0.4s;
}

.ev-faq .faq-answer {
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 26.4px;
	color: #1a1a1a;
	transition: 0.3s ease-in-out;
	width: 100%;
	display: block;
	background: #f5f5f5;
	padding: 20px;
	border-radius: 6px;
	margin: 15px 0 10px;
	box-sizing: border-box;
}

/* ==========================================================================
   Form Section (Elementor embed)
   ========================================================================== */

.ev-form {
	width: 345px;
	flex-shrink: 0;
}

/* Override WP Custom CSS "width: 30%" on the Elementor template wrapper
   which was designed for the old full-width Elementor layout, not our
   custom PHP template where .ev-form already constrains the width. */
.ev-form > .elementor {
	width: 100% !important;
}

/* Align form heading with FAQ heading — Elementor adds 20px top padding */
.ev-bottom .ev-form .elementor-widget-heading:first-child > .elementor-widget-container {
	padding-top: 0 !important;
}

/* ==========================================================================
   Related Events Section
   ========================================================================== */

.ev-related {
	background-color: #f4f4f4;
}

.ev-related .ev-section__inner {
	flex-direction: column;
	padding: 60px 0;
	gap: 20px;
}

.ev-related__heading {
	font-size: 24px;
	font-family: Bitter, sans-serif;
	font-weight: 500;
	line-height: 26.4px;
	color: #000;
	margin: 0;
}

/* Without JS: show all cards in a wrapping grid.
   Override Swiper's .swiper { overflow: hidden } so wrapped rows are visible. */
.ev-related__slider {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding-bottom: 2px;
	overflow: visible;
}

.ev-related__slider .swiper-wrapper {
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	height: auto;
}

.ev-related__slider .swiper-slide {
	flex: 0 0 calc(25% - 18px);
	max-width: calc(25% - 18px);
	box-sizing: border-box;
}

/* With JS: Swiper takes over — restore slider behaviour */
.js .ev-related__slider {
	overflow: hidden;
}

.js .ev-related__slider .swiper-wrapper {
	flex-wrap: nowrap;
	gap: 0;
	align-items: stretch;
}

.js .ev-related__slider .swiper-slide {
	flex: none;
	max-width: none;
	height: auto;
}

/* Related event card — matches category page (.cp-event-card) styling */
.ev-related__card {
	display: flex;
	flex-direction: column;
	background-color: #fff;
	border: 1px solid #dedede;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
}

/* With JS: Swiper needs full-height cards for equal row heights */
.js .ev-related__card {
	height: 100%;
}

.ev-related__card:hover {
	color: inherit;
	box-shadow: rgba(0, 0, 0, 0.12) 0px 6px 15px 0px;
}

.ev-related__card-image {
	position: relative;
	overflow: hidden;
	min-height: 185px;
	background-color: #e8e8e8;
}

.ev-related__card-image img {
	width: 100%;
	height: 185px;
	object-fit: cover;
	display: block;
	transition: transform 0.9s;
}

.ev-related__card:hover .ev-related__card-image img {
	transform: scale(1.1);
}

.ev-related__card-badge {
	position: absolute;
	bottom: 20px;
	right: 0;
	padding: 3px 9px 4px;
	background-color: rgba(255, 255, 255, 0.8);
	color: #000;
	font-size: 11px;
	font-weight: 600;
	line-height: 12px;
	border-radius: 20px 0 0 20px;
	width: 100px;
	font-family: "Open Sans", sans-serif;
}

.ev-related__card-body {
	display: flex;
	flex-direction: column;
	padding: 20px 15px;
	gap: 0;
	flex: 1;
}

.ev-related__card-title {
	font-size: 18px;
	font-family: Bitter, sans-serif;
	font-weight: 500;
	line-height: 24px;
	color: #000;
	margin: 0 0 8px;
	order: 1;
}

.ev-related__card-meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: auto;
	margin-bottom: 0;
	order: 2;
}

.ev-related__card-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	color: #000;
}

.ev-related__card-meta-item svg {
	flex-shrink: 0;
	width: 21px;
	height: 22px;
}

.ev-related__card-meta-icon {
	display: flex;
	align-items: center;
}

.ev-related__card-meta-icon svg {
	width: 22px;
	height: auto;
}

.ev-related__card-meta-text {
	font-size: 14px;
	line-height: 21px;
	color: #000;
	padding-left: 5px;
	font-family: "Open Sans", sans-serif;
}

.ev-related__card-meta-text strong {
	font-weight: 600;
}

.ev-related__card-price {
	display: flex;
	flex-direction: column;
	padding-top: 10px;
	margin-top: 0;
	order: 3;
}

.ev-related__card-divider {
	border: none;
	border-top: 1px solid #dedede;
	margin: 0 0 10px;
	height: 0;
}

.ev-related__card-price-duration {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	color: #000;
}

.ev-related__card-price-duration svg {
	flex-shrink: 0;
	width: 21px;
	height: 22px;
}

.ev-related__card-price-text {
	font-family: "Bitter", serif;
	font-size: 18px;
	line-height: 28px;
	color: #000;
	margin: 0;
}

.ev-related__card-price-text strong {
	font-weight: 600;
	font-size: 18px;
}

.ev-related__card-price-note {
	font-family: "Open Sans", sans-serif;
	font-size: 11px;
	font-weight: 400;
	line-height: 1em;
	display: block;
	color: #1a1a1a;
}

/* Swiper navigation arrows — hidden without JS */
.ev-related__nav {
	display: none;
}

.js .ev-related__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 45px;
	height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid #c7c7c7;
	border-radius: 50%;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.js .ev-related__slider:hover .ev-related__nav {
	opacity: 1;
}

.ev-related__nav--prev {
	left: 10px;
}

.ev-related__nav--next {
	right: 10px;
}

.ev-related__nav svg {
	width: 15px;
	height: 8px;
}

/* Show all button */
.ev-related__show-all {
	text-align: center;
	margin-top: 20px;
}

.ev-related__show-all-btn {
	display: inline-block;
	padding: 14px 28px;
	background-color: #95c11f;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 19.2px;
	text-decoration: none;
	border-radius: 50px;
	transition: background-color 0.2s ease;
}

.ev-related__show-all-btn:hover {
	background-color: #85ad1b;
	color: #fff;
}

/* ==========================================================================
   City Description Section
   ========================================================================== */

.ev-city-desc {
	background-color: #fff;
}

.ev-city-desc .ev-section__inner {
	flex-direction: column;
	padding: 60px 0;
	gap: 20px;
}

/* Only collapse when JS is available (progressive enhancement) */
.js .ev-city-desc__content {
	max-height: 200px;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.js .ev-city-desc__content.is-expanded {
	max-height: none;
}

/* Hide toggle buttons when JS is disabled (nothing to toggle) */
.ev-city-desc .read-more-btn {
	display: none;
}

.js .ev-city-desc .read-more-btn {
	display: inline-block;
	margin: 10px auto;
	padding: 0 18px 0 0;
	background: transparent;
	color: #000;
	font-size: 14px;
	font-weight: 600;
	line-height: 16.8px;
	border: 0 solid #95c11f;
	border-radius: 5px;
	cursor: pointer;
	position: relative;
}

.ev-city-desc__cta {
	margin-top: 10px;
}

.ev-city-desc__cta-btn {
	display: inline-block;
	padding: 14px 28px;
	background-color: #95c11f;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 19.2px;
	text-decoration: none;
	border-radius: 50px;
	transition: background-color 0.2s ease;
}

.ev-city-desc__cta-btn:hover {
	background-color: #85ad1b;
	color: #fff;
}

/* ==========================================================================
   Mobile Float Box (after detail bar, visible only on mobile)
   ========================================================================== */

.ev-float-mobile {
	display: none;
}

/* ==========================================================================
   Mobile Sticky CTA
   ========================================================================== */

.ev-sticky {
	display: none;
}

/* ==========================================================================
   Responsive: Tablet
   ========================================================================== */

@media (max-width: 1024px) {
	.ev-section {
		padding: 0 20px;
	}

	.ev-section__inner {
		flex-direction: column;
		gap: 30px;
	}

	.ev-hero .ev-section__inner {
		padding: 60px 0;
	}

	.ev-hero__sidebar {
		display: none;
	}

	.ev-hero__title {
		font-size: 28px;
		line-height: 33.6px;
	}

	.ev-main .ev-section__inner {
		padding: 40px 0 60px;
	}

	.ev-sidebar {
		width: 100%;
		margin-top: 0;
	}

	.ev-float {
		position: static;
		width: 100%;
	}

	.ev-bottom .ev-section__inner {
		flex-direction: column;
		gap: 30px;
		padding: 0 0 60px;
	}

	.ev-form {
		width: 100%;
	}

	.ev-info__row {
		flex-direction: column;
		gap: 5px;
	}

	.ev-info__label {
		width: auto;
	}

	.ev-related .ev-section__inner {
		padding: 40px 0;
	}

	/* No-JS grid: 3 columns on tablet */
	.ev-related__slider .swiper-slide {
		flex: 0 0 calc(33.333% - 16px);
		max-width: calc(33.333% - 16px);
	}
}

/* ==========================================================================
   Responsive: Mobile
   ========================================================================== */

@media (max-width: 767px) {
	.ev-hero {
		min-height: 350px;
	}

	.ev-hero .ev-section__inner {
		padding: 40px 0;
	}

	.ev-hero__title {
		font-size: 22px;
		line-height: 28px;
	}

	.ev-hero__badge {
		font-size: 10px;
	}

	.ev-detail__list {
		flex-direction: column;
		margin: 0;
		gap: 8px;
	}

	.ev-detail__item {
		padding: 0;
		margin: 0;
	}

	.ev-desc__heading,
	.ev-faq__heading {
		font-size: 24px;
		line-height: 30px;
	}

	.ev-float__price-heading {
		font-size: 24px;
		line-height: 33.6px;
	}

	.ev-float__usp {
		grid-template-columns: 1fr;
	}

	/* Show sticky mobile CTA */
	.ev-sticky {
		display: flex;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 99;
		padding: 15px 20px;
		background: #fff;
		box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
		align-items: center;
		gap: 15px;
	}

	.ev-sticky__price {
		flex: 1;
	}

	.ev-sticky__price-heading {
		font-size: 18px;
		font-family: Bitter, sans-serif;
		font-weight: 700;
		color: #000;
		margin: 0;
	}

	.ev-sticky__price-heading span {
		font-size: 14px;
		font-weight: 400;
		font-family: "Open Sans", sans-serif;
	}

	.ev-sticky__price-note {
		font-size: 12px;
		color: #666;
		margin: 0;
	}

	.ev-sticky__btn {
		display: inline-block;
		padding: 12px 24px;
		background-color: #95c11f;
		color: #fff;
		font-size: 14px;
		font-weight: 600;
		text-decoration: none;
		border-radius: 50px;
		white-space: nowrap;
		transition: background-color 0.2s ease;
	}

	.ev-sticky__btn:hover {
		background-color: #85ad1b;
		color: #fff;
	}

	/* Hide desktop sidebar on mobile */
	.ev-sidebar {
		display: none;
	}

	/* Show mobile offer box after detail bar */
	.ev-float-mobile {
		display: block;
		margin-top: 20px;
	}

	/* Hide back-to-top behind sticky CTA on event pages */
	#ast-scroll-top {
		z-index: 9 !important;
	}

	.ev-related__heading {
		font-size: 20px;
	}

	/* No-JS grid: 2 columns on small screens, 1 below 480px */
	.ev-related__slider .swiper-slide {
		flex: 0 0 calc(50% - 8px);
		max-width: calc(50% - 8px);
	}

	.ev-related__slider .swiper-wrapper {
		gap: 16px;
	}

	.ev-city-desc .ev-section__inner {
		padding: 40px 0;
	}

	/* Push ProvenExpert seal above the sticky CTA bar (~93px) so it doesn't cover the button */
	.pe-pro-seal {
		bottom: 98px !important;
	}
}

@media (max-width: 479px) {
	/* No-JS grid: 1 column on small mobile */
	.ev-related__slider .swiper-slide {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

/* ══════════════════════════════════════════════════════════════════════════
   Event-Stadt-Seiten (Angebot A260403)

   Stadt-Abschnitt, Einstieg und Rueckverweis zur Mutterseite. Das Ausklapp-
   Bauteil (.cp-text-fade / .cp-toggle-btn) ist 1:1 aus category-page.css
   uebernommen — dort laeuft es auf den Kategorie-Stadtseiten. Absichtlich
   kopiert statt die ganze Datei nachzuladen: category-page.css enthaelt eine
   Regel fuer .guiders-faq, die das Akkordeon dieser Seite ueberschreiben wuerde.
   Das Skript (js/category-page.js) wird dagegen geteilt.
   ══════════════════════════════════════════════════════════════════════════ */

.ev-desc__intro {
	margin-bottom: 20px;
}

.ev-local {
	display: block;
}

.ev-local__heading {
	font-size: 24px;
	line-height: 1.3;
	margin: 0 0 16px;
}

/* Ausklapp-Bauteil — nur mit JavaScript einklappen (progressive enhancement).
   Intro-Einstellung: auf ALLEN Breiten eingeklappt, kein Media Query, der es
   auf dem Desktop oeffnet. Der Text steht vollstaendig im HTML. */
.js .ev-local .cp-text-fade {
	max-height: 260px;
	overflow: hidden;
	position: relative;
	transition: max-height 0.5s ease;
}

.js .ev-local .cp-text-fade::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 80px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.83) 44%, #fff 100%);
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.js .ev-local .cp-text-fade.is-expanded::after {
	opacity: 0;
}

/* Ohne JavaScript gibt es nichts zu klappen — dann auch keinen Knopf. */
.ev-local .cp-toggle-btn {
	display: none;
}

.js .ev-local button.cp-toggle-btn {
	display: inline-block;
	background: transparent;
	background-color: transparent;
	border: none;
	cursor: pointer;
	padding: 0 18px 0 0;
	margin: 20px 0 10px;
	font-family: "Open Sans", sans-serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 16.8px;
	color: #000;
	position: relative;
	border-radius: 5px;
	box-shadow: none;
	transition: 0.3s ease-in-out;
}

.ev-local button.cp-toggle-btn:hover,
.ev-local button.cp-toggle-btn:focus,
.ev-local button.cp-toggle-btn:active {
	background: transparent;
	background-color: transparent;
	color: #126A1D;
	box-shadow: none;
	outline: none;
}

.ev-local button.cp-toggle-btn::before {
	content: "";
	background: url("/wp-content/uploads/2025/03/right-dasharrow.svg") no-repeat;
	width: 15px;
	height: 8px;
	position: absolute;
	right: 0;
	top: 5px;
	transition: 0.3s ease-in-out;
}

.ev-local button.cp-toggle-btn:hover::before {
	right: -3px;
}

.ev-local button.cp-toggle-btn[aria-expanded="true"]::before {
	transform: rotate(180deg);
}

.ev-local .cp-toggle-btn__icon {
	display: none;
}

/* Rueckverweis auf die Mutterseite — ein Link im HTML, kein Canonical. */
.ev-parent-link .ev-section__inner {
	flex-direction: column;
	align-items: center;
	padding: 20px 0 40px;
}

.ev-parent-link__text {
	margin: 0;
	font-size: 15px;
}

.ev-parent-link__text a {
	color: #126A1D;
	text-decoration: underline;
}

/* ── Interne Verlinkung: Staedteblock + Querverweis (Abschnitt 2) ─────────
   Optik uebernommen von .cp-cross-links auf den Kategorieseiten. Bewusst als
   eigene Klassen kopiert statt category-page.css hier zu laden: die Datei
   enthaelt .js .guiders-faq .acc-contents und wuerde das Event-Akkordeon
   ueberschreiben. */
/* .ev-section__inner steht global auf flex-direction: row — ohne diese
   Ueberschreibung stehen Ueberschrift und Linkliste nebeneinander als zwei
   Spalten (wie bei .ev-related und .ev-city-desc). */
.ev-cross-links .ev-section__inner {
	flex-direction: column;
	padding: 60px 0;
	gap: 24px;
}

.ev-cross-links__title {
	font-size: 24px;
	line-height: 1.3;
	text-align: center;
	margin: 0;
}

.ev-cross-links__list {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 24px;
	max-width: 960px;
}

.ev-cross-links__item {
	margin: 0;
	padding: 0;
	position: relative;
}

.ev-cross-links__item:not(:last-child)::after {
	content: "·";
	position: absolute;
	right: -16px;
	top: 50%;
	transform: translateY(-50%);
	color: #9aa0a6;
	font-weight: 600;
	pointer-events: none;
}

.ev-cross-links__link {
	display: inline-block;
	color: #126A1D;
	font-size: 16px;
	line-height: 1.6;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.2s ease;
}

.ev-cross-links__link:hover,
.ev-cross-links__link:focus {
	color: #95c11f;
	text-decoration-thickness: 2px;
}

@media (max-width: 768px) {
	.ev-cross-links .ev-section__inner {
		padding: 40px 0;
	}
	.ev-cross-links__title {
		font-size: 20px;
	}
	.ev-cross-links__list {
		gap: 6px 18px;
	}
	.ev-cross-links__item:not(:last-child)::after {
		right: -12px;
	}
	.ev-cross-links__link {
		font-size: 15px;
	}
}
