/* POHA co*pilot Events
 * Farben/Schriften als CSS-Variablen; Elementor-Stylecontrols überschreiben sie.
 * Schriften kommen aus den globalen Elementor-Typografien (keine externen Fonts).
 */

.poha-ev {
	--poha-accent: #f0501e;
	--poha-accent-text: #ffffff;
	--poha-btn-bg: var(--e-global-color-accent, #f0501e);
	--poha-btn-color: var(--e-global-color-primary, #ffffff);
	--poha-btn-hover-bg: var(--e-global-color-b601566, #c93d12);
	--poha-btn-hover-color: var(--e-global-color-primary, #ffffff);
	--poha-bg: #1c1c1c;
	--poha-surface: #262626;
	--poha-text: #ffffff;
	--poha-muted: rgba(255, 255, 255, .68);
	--poha-line: rgba(255, 255, 255, .12);
	--poha-radius: 0px;
	--poha-radius-sm: 0px;
	--poha-gap: 24px;
	--poha-cols: 3;
	--poha-head-font: var(--e-global-typography-primary-font-family, "Bebas Neue", "Oswald", "Arial Narrow", sans-serif);
	--poha-text-font: var(--e-global-typography-text-font-family, inherit);

	color: var(--poha-text);
	font-family: var(--poha-text-font);
	line-height: 1.55;
}

.poha-ev *,
.poha-ev *::before,
.poha-ev *::after { box-sizing: border-box; }

.poha-ev [hidden] { display: none !important; }
.poha-ev a { color: inherit; text-decoration: none; }
.poha-ev img { display: block; max-width: 100%; }

.poha-ev .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.poha-icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Buttons & Links ---------- */

.poha-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: 13px 25px;
	border: 0;
	border-radius: 0;
	background-color: var(--poha-btn-bg);
	color: var(--poha-btn-color) !important;
	fill: var(--poha-btn-color);
	font-family: "DM Sans", sans-serif;
	font-size: 14px; font-weight: 500; font-style: normal; line-height: 1.2;
	text-transform: none; text-decoration: none !important;
	white-space: nowrap; cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}
.poha-btn:hover,
.poha-btn:focus {
	background-color: var(--poha-btn-hover-bg);
	color: var(--poha-btn-hover-color) !important;
}
.poha-btn:focus-visible { outline: 2px solid var(--poha-text); outline-offset: 3px; }
.poha-btn--block { display: flex; width: 100%; }
.poha-btn--ghost {
	background: transparent; color: var(--poha-text) !important;
	border: 1px solid var(--poha-line);
}
.poha-btn--ghost:hover,
.poha-btn--ghost:focus { background-color: transparent; color: var(--poha-text) !important; border-color: var(--poha-text); }
.poha-btn--disabled {
	background: transparent; color: var(--poha-muted) !important;
	border: 1px solid var(--poha-line);
	cursor: default;
}
.poha-btn--disabled:hover,
.poha-btn--disabled:focus { background-color: transparent; color: var(--poha-muted) !important; }

.poha-link {
	display: inline-flex; align-items: center; gap: .55em;
	font-size: 14px; font-weight: 600;
	color: var(--poha-text);
}
.poha-link .poha-icon { width: 1.35em; height: 1.35em; transition: transform .2s ease; }
.poha-link:hover .poha-icon,
.poha-card:hover .poha-link .poha-icon { transform: translateX(3px); color: var(--poha-accent); }

.poha-chip {
	display: inline-flex; align-items: center;
	padding: .35em .85em;
	border-radius: var(--poha-radius-sm);
	background: var(--poha-accent); color: var(--poha-accent-text);
	font-size: 12px; font-weight: 600; letter-spacing: .02em; line-height: 1.2;
}
.poha-chip--muted { background: rgba(255, 255, 255, .12); color: var(--poha-text); }
.poha-chip--status { background: var(--poha-text); color: var(--poha-bg); }
.poha-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

.poha-badge {
	position: absolute; top: 16px; left: 16px; z-index: 3;
	padding: .4em .9em; border-radius: var(--poha-radius-sm);
	background: var(--poha-text); color: var(--poha-bg);
	font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}

.poha-img-placeholder {
	display: block; width: 100%; height: 100%;
	background: radial-gradient(circle at 30% 20%, rgba(240, 80, 30, .35), transparent 60%), var(--poha-surface);
}

.is-cancelled .poha-card__title,
.is-cancelled .poha-row__title { text-decoration: line-through; text-decoration-thickness: 2px; }

/* ---------- Karten (Nächste Events) ---------- */

.poha-next {
	display: grid;
	grid-template-columns: repeat(var(--poha-cols), minmax(0, 1fr));
	gap: var(--poha-gap);
}

.poha-card {
	position: relative; display: flex; flex-direction: column;
	border-radius: var(--poha-radius); overflow: hidden;
	background: var(--poha-surface);
	isolation: isolate;
}
.poha-card__figure { position: relative; }
.poha-card__media { position: relative; overflow: hidden; }
.poha-card__media .poha-img,
.poha-card__media .poha-img-placeholder {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.poha-card:hover .poha-card__media .poha-img { transform: scale(1.05); }

.poha-card__title {
	margin: 12px 0 6px;
	font-family: var(--poha-head-font);
	font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; line-height: 1.02;
	text-transform: uppercase; letter-spacing: .01em;
	color: var(--poha-text);
}
.poha-card__meta { margin: 0 0 8px; font-size: 13px; color: var(--poha-muted); }
.poha-card__teaser {
	margin: 0 0 14px; font-size: 14px; color: var(--poha-muted);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.poha-card__body > .poha-chip { align-self: flex-start; }
.poha-card__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: auto; }

.poha-stretched::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.poha-stretched:focus-visible { outline: none; }
.poha-stretched:focus-visible::after { outline: 2px solid var(--poha-accent); outline-offset: -2px; border-radius: var(--poha-radius); }
.poha-above { position: relative; z-index: 3; }

/* Overlay: Bild füllt die Karte, Text unten (wie "Unsere Fitnessclubs") */
.poha-card--overlay { aspect-ratio: 4 / 5; justify-content: flex-end; }
.poha-card--overlay .poha-card__figure { position: absolute; inset: 0; z-index: -1; }
.poha-card--overlay .poha-card__media { position: absolute; inset: 0; }
.poha-card--overlay .poha-card__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .55) 60%, rgba(0, 0, 0, .9) 100%);
}
.poha-card--overlay .poha-card__body { padding: 28px; }
.poha-card--overlay .poha-card__meta,
.poha-card--overlay .poha-card__teaser { color: rgba(255, 255, 255, .82); }

/* Card: Bild oben, Text darunter */
.poha-card--card .poha-card__media { aspect-ratio: 16 / 10; }
.poha-card--card .poha-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }

/* Form: Bild im Zuschnitt der POHA-Form (form-foto.svg), Datum bricht links unten aus */
.poha-ev {
	--poha-shape: polygon(0 25.77%, 100% 0, 100% 74.23%, 0 100%);
	--poha-shape-ratio: 996 / 1028;
	--poha-date-offset: 0px;
}
.poha-card--shape { background: transparent; overflow: visible; }
.poha-card--shape .poha-card__media {
	aspect-ratio: var(--poha-shape-ratio);
	clip-path: var(--poha-shape);
	border-radius: 0;
	background: var(--poha-surface);
}
.poha-card--shape .poha-card__date {
	position: absolute; z-index: 3;
	left: calc(var(--poha-date-offset) * -1);
	bottom: 9%;
	padding: .45em 1em;
	font-size: 14px;
}
.poha-card--shape .poha-card__badge { left: auto; right: 16px; top: 16px; }
.poha-card--shape .poha-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 0 0; }
.poha-card--shape .poha-card__title { margin-top: 0; }
.poha-card--shape .poha-stretched:focus-visible::after { border-radius: 0; }

.poha-shape .poha-row { grid-template-columns: 76px 170px minmax(0, 1fr) auto; }
.poha-shape .poha-row__media {
	aspect-ratio: var(--poha-shape-ratio);
	clip-path: var(--poha-shape);
	border-radius: 0;
}

/* Infobox in POHA-Form: Schräge folgt der Steigung des SVG (264.79 / 996.09 der Breite) */
.poha-infobox.poha-infobox--shape {
	--poha-slant: 26.58cqw;
	padding-top: calc(var(--poha-slant) + 20px);
	padding-bottom: calc(var(--poha-slant) + 20px);
	border: 0;
	clip-path: polygon(0 var(--poha-slant), 100% 0, 100% calc(100% - var(--poha-slant)), 0 100%);
}

/* Detail-Header: Bild in POHA-Form neben Titel und Daten */
.poha-ev .poha-hero.poha-hero--shape {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(32px, 4vw, 64px); align-items: center;
	min-height: 0; background: transparent; overflow: visible; border-radius: 0;
}
.poha-hero--shape .poha-hero__media {
	position: relative; inset: auto; z-index: 0; grid-row: 1; grid-column: 1;
	aspect-ratio: var(--poha-shape-ratio); clip-path: var(--poha-shape);
	background: var(--poha-surface);
}
.poha-hero--shape .poha-hero__media::after { display: none; }
.poha-hero--shape .poha-hero__content { grid-row: 1; grid-column: 2; padding: 0; }
.poha-ev .poha-hero.poha-hero--shape-right { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.poha-hero--shape-right .poha-hero__media { grid-column: 2; }
.poha-hero--shape-right .poha-hero__content { grid-column: 1; }

/* ---------- Liste ---------- */

.poha-filter {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
	margin: 0 0 18px;
}
.poha-field {
	position: relative; display: flex; align-items: center;
	min-height: 48px;
	border: 1px solid var(--poha-line); border-radius: var(--poha-radius-sm);
	background: var(--poha-surface);
	color: var(--poha-text);
	transition: border-color .2s ease;
}
.poha-field:focus-within { border-color: var(--poha-accent); }
.poha-field .poha-icon { position: absolute; pointer-events: none; color: var(--poha-muted); }
.poha-field--search { flex: 1 1 260px; }
.poha-field--search .poha-icon { left: 18px; }
.poha-field--select .poha-icon { right: 16px; }
.poha-field input,
.poha-field select {
	width: 100%; min-height: 46px; margin: 0;
	border: 0 !important; border-radius: var(--poha-radius-sm); outline: 0; box-shadow: none !important;
	background: transparent !important; color: inherit !important;
	font: inherit; font-size: 14px;
	-webkit-appearance: none; appearance: none;
}
.poha-field input { padding: 0 18px 0 46px !important; }
.poha-field select { padding: 0 44px 0 20px !important; cursor: pointer; min-width: 180px; }
.poha-field select option { background: var(--poha-surface); color: var(--poha-text); }
.poha-field input::placeholder { color: var(--poha-muted); opacity: 1; }

.poha-filter__reset {
	padding: 0 4px; border: 0; background: none; cursor: pointer;
	color: var(--poha-muted); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
}
.poha-filter__reset:hover { color: var(--poha-text); }

.poha-list__count { margin: 0 0 8px; font-size: 13px; color: var(--poha-muted); }
.poha-list__empty { margin: 32px 0; color: var(--poha-muted); }
.poha-list__more-wrap { display: flex; justify-content: center; margin-top: 32px; }

.poha-group + .poha-group { margin-top: 28px; }
.poha-group__title {
	margin: 24px 0 4px;
	font-family: var(--poha-head-font);
	font-size: clamp(26px, 2.6vw, 38px); font-weight: 700; line-height: 1;
	text-transform: uppercase;
	color: var(--poha-text);
}

.poha-row {
	display: grid;
	grid-template-columns: 76px 220px minmax(0, 1fr) auto;
	align-items: center; gap: 24px;
	padding: 22px 0;
	border-bottom: 1px solid var(--poha-line);
}
.poha-row__date { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.poha-row__day {
	font-family: var(--poha-head-font); font-size: 52px; font-weight: 700; line-height: .9;
	color: var(--poha-text);
}
.poha-row__mon { margin-top: 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--poha-accent); }
.poha-row__wd { margin-top: 4px; font-size: 12px; color: var(--poha-muted); }
.poha-row__media {
	display: block; aspect-ratio: 16 / 10; overflow: hidden;
	border-radius: calc(var(--poha-radius) * .7); background: var(--poha-surface);
}
.poha-row__media .poha-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.poha-row:hover .poha-row__media .poha-img { transform: scale(1.05); }
.poha-row__body .poha-chips { margin-bottom: 8px; }
.poha-row__title {
	margin: 0 0 6px;
	font-family: var(--poha-head-font);
	font-size: clamp(24px, 2.2vw, 34px); font-weight: 700; line-height: 1.02;
	text-transform: uppercase;
	color: var(--poha-text);
}
.poha-row__title a:hover { color: var(--poha-accent); }
.poha-row__meta { margin: 0 0 6px; font-size: 14px; color: var(--poha-muted); }
.poha-row__teaser {
	margin: 0; font-size: 14px; color: var(--poha-muted);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.poha-row__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

.poha-list--grid .poha-list__items {
	display: grid;
	grid-template-columns: repeat(var(--poha-cols), minmax(0, 1fr));
	gap: var(--poha-gap);
	margin-top: 8px;
}

/* ---------- Detail ---------- */

.poha-hero {
	position: relative; display: flex; align-items: flex-end;
	min-height: clamp(460px, 62vh, 720px);
	border-radius: var(--poha-radius); overflow: hidden;
	background: var(--poha-surface);
	isolation: isolate;
}
.poha-hero__media { position: absolute; inset: 0; z-index: -1; }
.poha-hero__media .poha-img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.poha-hero__media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, .15) 65%),
		linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .85) 100%);
}
.poha-hero--noimage { min-height: 0; background: radial-gradient(circle at 15% 0%, rgba(240, 80, 30, .35), transparent 55%), var(--poha-surface); }
.poha-hero__content { width: 100%; padding: clamp(28px, 5vw, 64px); }
.poha-hero__title {
	margin: 0;
	font-family: var(--poha-head-font);
	font-size: clamp(44px, 7vw, 104px); font-weight: 800; line-height: .92;
	text-transform: uppercase; letter-spacing: .005em;
	color: var(--poha-text);
	overflow-wrap: anywhere; hyphens: auto;
}
.poha-hero__subtitle { margin: 12px 0 0; font-size: clamp(16px, 1.6vw, 20px); color: rgba(255, 255, 255, .85); }
.poha-hero__meta {
	display: flex; flex-wrap: wrap; gap: 10px 28px;
	margin: 22px 0 0; padding: 0; list-style: none;
	font-size: 15px; color: rgba(255, 255, 255, .9);
}
.poha-hero__meta li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; }
.poha-hero__meta li span { white-space: nowrap; }
.poha-hero__meta li span + span { margin-left: 8px; }
.poha-hero__meta .poha-icon { color: var(--poha-accent); }
.poha-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 28px; }

.poha-credits { margin: 10px 4px 0; font-size: 12px; color: var(--poha-muted); text-align: right; }

.poha-detail__grid {
	display: grid; grid-template-columns: minmax(0, 1fr) 360px;
	gap: clamp(32px, 5vw, 72px);
	margin-top: clamp(32px, 5vw, 64px);
}
.poha-detail__grid--single { grid-template-columns: minmax(0, 1fr); }

.poha-prose { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.75; color: rgba(255, 255, 255, .86); }
.poha-prose p { margin: 0 0 1.1em; }
.poha-prose p:first-child { font-size: 1.15em; font-weight: 600; color: var(--poha-text); }
.poha-prose a { color: var(--poha-accent); text-decoration: underline; text-underline-offset: 3px; }
.poha-prose strong { color: var(--poha-text); }

.poha-section-title {
	margin: 48px 0 20px;
	font-family: var(--poha-head-font);
	font-size: clamp(28px, 3vw, 44px); font-weight: 700; line-height: 1;
	text-transform: uppercase; color: var(--poha-text);
}
.poha-lineup__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.poha-lineup__media { aspect-ratio: 1; overflow: hidden; border-radius: calc(var(--poha-radius) * .7); background: var(--poha-surface); }
.poha-lineup__media .poha-img { width: 100%; height: 100%; object-fit: cover; }
.poha-lineup__name {
	margin: 12px 0 2px;
	font-family: var(--poha-head-font); font-size: 22px; font-weight: 700; line-height: 1.05;
	text-transform: uppercase; color: var(--poha-text);
}
.poha-lineup__program { margin: 0; font-size: 13px; color: var(--poha-muted); }

.poha-detail__aside { position: relative; container-type: inline-size; }
.poha-infobox {
	position: sticky; top: 110px;
	padding: 28px;
	border: 1px solid var(--poha-line); border-radius: var(--poha-radius);
	background: var(--poha-surface);
}
.poha-infobox__title {
	margin: 0 0 18px;
	font-family: var(--poha-head-font); font-size: 28px; font-weight: 700; line-height: 1;
	text-transform: uppercase; color: var(--poha-text);
}
.poha-infobox__list { margin: 0 0 22px; }
.poha-infobox__list > div {
	display: grid; grid-template-columns: 90px 1fr; gap: 12px;
	padding: 11px 0; border-bottom: 1px solid var(--poha-line);
	font-size: 14px;
}
.poha-infobox__list > div:first-child { padding-top: 0; }
.poha-infobox__list dt { margin: 0; color: var(--poha-muted); }
.poha-infobox__list dd { margin: 0; font-weight: 400; color: var(--poha-text); }
.poha-infobox__note { margin-top: 20px; font-size: 13px; line-height: 1.6; color: var(--poha-muted); }
.poha-infobox__note h4 { margin: 0 0 4px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--poha-text); }
.poha-infobox__note p { margin: 0 0 .6em; }

.poha-empty p { margin: 0; color: var(--poha-muted); }

/* ---------- Integrierte Detailseite ---------- */

.poha-single-wrap {
	max-width: 1240px; margin: 0 auto;
	padding: clamp(96px, 12vw, 140px) clamp(16px, 4vw, 40px) clamp(48px, 8vw, 96px);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.poha-next { grid-template-columns: repeat(min(var(--poha-cols), 2), minmax(0, 1fr)); }
	.poha-list--grid .poha-list__items { grid-template-columns: repeat(min(var(--poha-cols), 2), minmax(0, 1fr)); }
	.poha-row { grid-template-columns: 64px 180px minmax(0, 1fr); }
	.poha-shape .poha-row { grid-template-columns: 64px 150px minmax(0, 1fr); }
	.poha-row__actions { grid-column: 3; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; }
	.poha-detail__grid { grid-template-columns: minmax(0, 1fr); }
	.poha-infobox { position: static; }
}

@media (max-width: 680px) {
	.poha-next,
	.poha-list--grid .poha-list__items { grid-template-columns: minmax(0, 1fr); }
	.poha-card--overlay { aspect-ratio: 4 / 4.6; }
	.poha-card--overlay .poha-card__body { padding: 22px; }
	.poha-field--select { flex: 1 1 calc(50% - 6px); }
	.poha-field select { min-width: 0; padding: 0 36px 0 16px !important; font-size: 13px; }
	.poha-field--select .poha-icon { right: 12px; }
	.poha-row { grid-template-columns: 56px minmax(0, 1fr); gap: 14px 16px; padding: 20px 0; }
	.poha-row__date { grid-row: 1 / span 2; align-self: start; }
	.poha-row__media { grid-column: 2; }
	.poha-shape .poha-row { grid-template-columns: 56px minmax(0, 1fr); }
	.poha-shape .poha-row__media { max-width: 220px; }
	.poha-row__body, .poha-row__actions { grid-column: 2; }
	.poha-row__day { font-size: 40px; }
	.poha-hero:not(.poha-hero--shape) { min-height: 520px; }
	.poha-hero__meta { flex-direction: column; }
	.poha-ev .poha-hero.poha-hero--shape { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.poha-hero--shape .poha-hero__media { grid-column: 1; grid-row: 1; }
	.poha-hero--shape .poha-hero__content { grid-column: 1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
	.poha-ev * { transition: none !important; }
}
