/*
 * Theaterstübchen design system. Shared by the frontend and the iframed editor.
 *
 * The brand is the logo: heavy condensed white type, one solid blue block and two
 * thin blue bars. Everything here is built from those three shapes: the date block
 * on every event, the bar that section titles run into, and condensed type for
 * anything that has to be read from across the room. Body text is quiet and
 * readable. No uppercase anywhere.
 */

:root {
	--bg: var(--wp--preset--color--base, #0a0c10);
	--bg-raised: var(--wp--preset--color--raised, #11141b);
	--card: var(--wp--preset--color--surface, #161a23);
	--card-hover: var(--wp--custom--color--card-hover, #1b2030);
	--line: var(--wp--custom--color--border, #262c3a);
	--line-strong: #353c4d;
	--text: var(--wp--preset--color--contrast, #f2f4f8);
	--text-2: var(--wp--preset--color--muted, #b9c0cc);
	--text-3: var(--wp--custom--color--subtle, #8a93a3);
	--blue: var(--wp--preset--color--brand, #3366cc);
	--blue-deep: var(--wp--preset--color--brand-deep, #2551a8);
	--blue-hi: var(--wp--preset--color--accent, #6f9bf2);
	--blue-soft: #d6e2ff;
	--soldout: var(--wp--custom--color--soldout, #7cc05f);
	--cancelled: var(--wp--custom--color--cancelled, #ff7a1a);

	--font-display: "Fira Sans Extra Condensed", "Arial Narrow", sans-serif;
	--font-body: "Fira Sans", system-ui, sans-serif;

	--wrap: 76rem;
	--wrap-medium: 60rem;
	--measure: 44rem;
	--gutter: clamp(1.25rem, 4vw, 3rem);
	--header-h: 6.5rem;
	--tap: 2.75rem;

	/* Type scale. Display steps are fluid; text steps are fixed so lines stay comfortable. */
	--fs-display: clamp(2.75rem, 1.6rem + 4.6vw, 5.5rem);   /* page and section titles */
	--fs-h2: clamp(2rem, 1.5rem + 2.1vw, 3.25rem);          /* claims, sub-section titles */
	--fs-h3: clamp(1.5rem, 1.3rem + 0.85vw, 2rem);          /* card and list titles */
	--fs-h4: 1.375rem;
	--fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
	--fs-body: 1.0625rem;
	--fs-small: 0.9375rem;
	--fs-meta: 0.875rem;
	--fs-label: 1.0625rem; /* condensed labels: series, filters, chips */

	/* Vertical rhythm. */
	--space-1: 0.5rem;
	--space-2: 1rem;
	--space-3: 1.5rem;
	--space-4: 2rem;
	--space-5: 3rem;
	--space-section: clamp(4rem, 2.75rem + 4.5vw, 7rem);   /* between sections */
	--space-head: clamp(1.75rem, 1.25rem + 1.8vw, 3rem);   /* section head to content */
	--space-sub: clamp(2.5rem, 2rem + 2vw, 4rem);          /* before a sub-heading in text */
	--space-page: clamp(2.5rem, 1.5rem + 3vw, 5rem);       /* header to page title */

	/* The bar: the logo's thin blue stripe. */
	--bar: clamp(0.4rem, 0.3rem + 0.3vw, 0.55rem);
	/* Bleed to the right screen edge from inside the grid. */
	--bleed: max(var(--gutter), (100vw - var(--wrap)) / 2);
}

/* ---------- Base ---------- */

:where(.wp-site-blocks, .editor-styles-wrapper) *, :where(.wp-site-blocks, .editor-styles-wrapper) *::before, :where(.wp-site-blocks, .editor-styles-wrapper) *::after { box-sizing: border-box; }
html:has(.wp-site-blocks) { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
:where(.wp-site-blocks, .editor-styles-wrapper) {
	margin: 0;
	background: var(--bg);
	color: var(--text-2);
	font: 400 var(--fs-body)/1.6 var(--font-body);
	-webkit-font-smoothing: antialiased;
	color-scheme: dark;
	overflow-x: clip;
}
:where(.wp-site-blocks, .editor-styles-wrapper) img { display: block; max-width: 100%; height: auto; }
:where(.wp-site-blocks, .editor-styles-wrapper) a { color: inherit; }
:where(.wp-site-blocks, .editor-styles-wrapper) :is(h1, h2, h3, h4) { margin: 0; color: var(--text); font-family: var(--font-display); font-weight: 800; line-height: 1; letter-spacing: 0.005em; }
:where(.wp-site-blocks, .editor-styles-wrapper) p { margin: 0; }
:where(.wp-site-blocks, .editor-styles-wrapper) :focus-visible { outline: 3px solid var(--blue-hi); outline-offset: 3px; }
:where(.wp-site-blocks, .editor-styles-wrapper) ::selection { background: var(--blue); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:where(.wp-site-blocks, .editor-styles-wrapper) .wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- Brand elements ---------- */

/* Date block: the logo's solid blue rectangle, with the day on top of the month. */
.dateblock {
	display: inline-grid;
	place-items: center;
	align-content: center;
	min-width: 4.25rem;
	padding: 0.45rem 0.6rem 0.5rem;
	background: var(--blue);
	color: #fff;
	font-family: var(--font-display);
	line-height: 0.9;
}
.dateblock b { font-size: 2.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.dateblock span { margin-top: 0.2rem; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.01em; }

/* Series and format labels: a short blue bar and condensed text. */
.eyebrow {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--blue-hi);
	font: 700 var(--fs-label)/1 var(--font-display);
	letter-spacing: 0.01em;
}
.eyebrow::before { content: ""; flex: none; width: 1.4rem; height: 0.55rem; background: var(--blue); }

/* Section head: the title runs into a bar that reaches the screen edge, as in the logo. */
.sec-head {
	display: flex;
	align-items: flex-end;
	gap: clamp(0.75rem, 2vw, 1.5rem);
	margin-bottom: var(--space-head);
}
.sec-title { font-size: var(--fs-display); line-height: 0.88; text-wrap: balance; }
.sec-bar { flex: 1; min-width: 2rem; height: var(--bar); margin-bottom: 0.4rem; margin-right: calc(-1 * var(--bleed)); background: var(--blue); }
.sec-intro { max-width: var(--measure); margin-top: calc(var(--space-head) * -0.45); margin-bottom: var(--space-head); color: var(--text-2); font-size: var(--fs-lead); line-height: 1.5; }

/* Buttons. One size for every button on the site, in the theme's own markup and in core blocks. */
.btn {
	--btn-bg: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 3rem;
	padding: 0.7rem 1.5rem 0.75rem;
	border: 2px solid var(--btn-bd, var(--btn-bg));
	background: var(--btn-bg);
	color: #fff;
	font: 700 1.125rem/1 var(--font-display);
	letter-spacing: 0.01em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn--primary { --btn-bg: var(--blue); }
.btn--primary:hover { --btn-bg: var(--blue-deep); }
.btn--ghost { --btn-bd: rgba(255, 255, 255, 0.3); }
.btn--ghost:hover { --btn-bd: #fff; }
.btn--light { --btn-bg: #fff; color: var(--blue-deep); }
.btn--light:hover { --btn-bg: var(--blue-soft); }
.btn--small { min-height: var(--tap); padding: 0.55rem 1.1rem 0.6rem; font-size: 1rem; }
.btn[aria-disabled="true"] { --btn-bg: transparent; --btn-bd: var(--line); color: var(--text-3); pointer-events: none; }

/* Status chips. */
.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.3rem 0.6rem 0.34rem;
	font: 700 0.9375rem/1 var(--font-display);
	letter-spacing: 0.01em;
	white-space: nowrap;
}
.chip--today { background: #fff; color: var(--bg); }
.chip--soldout { background: var(--soldout); color: #0b1a06; }
.chip--cancelled { background: var(--cancelled); color: #1f0d00; }
.chip--info { border: 1px solid var(--line-strong); color: var(--text-2); padding-block: 0.25rem 0.29rem; }

/* Facts: labelled prices and times. */
.facts { display: flex; flex-wrap: wrap; gap: 1rem 2.25rem; margin: 0; }
.facts div { display: grid; gap: 0.25rem; }
.facts dt { color: var(--text-3); font: 500 var(--fs-meta)/1 var(--font-body); letter-spacing: 0.01em; }
.facts dd { margin: 0; color: var(--text); font: 700 1.5rem/1.05 var(--font-display); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.facts dd small { margin-left: 0.3rem; color: var(--text-3); font: 400 0.8125rem/1 var(--font-body); letter-spacing: 0; }

/* ---------- Header ---------- */

.today-bar { background: var(--blue); color: #fff; font-size: var(--fs-small); }
.today-bar a { display: flex; align-items: center; gap: 0.75rem; min-height: 2.5rem; padding-block: 0.4rem; text-decoration: none; }
.today-bar .pulse { flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); animation: pulse 2s infinite; }
.today-bar strong { font: 700 1.05rem/1 var(--font-display); letter-spacing: 0.01em; }
.today-bar .today-bar__title { font-weight: 600; }
.today-bar .today-bar__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today-bar .today-bar__more { margin-left: auto; font: 700 1rem/1 var(--font-display); letter-spacing: 0.01em; white-space: nowrap; }
.today-bar a:hover .today-bar__more { text-decoration: underline; text-underline-offset: 4px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .today-bar .pulse { animation: none; } html:has(.wp-site-blocks) { scroll-behavior: auto; } }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
/* The translucent backdrop lives on a layer: a backdrop-filter on the header itself would make it
   the containing block of the fixed mobile menu and trap the menu inside the header bar. */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(10, 12, 16, 0.88);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.site-header__logo img { width: clamp(9.5rem, 16vw, 13.5rem); height: auto; transition: width 0.2s; }
.site-header.is-scrolled .site-header__logo img { width: clamp(8.5rem, 13vw, 11rem); }
.site-header__meta { display: none; padding-left: 1.25rem; border-left: 1px solid var(--line); color: var(--text-3); font-size: 0.8125rem; line-height: 1.4; }
@media (min-width: 1180px) { .site-header__meta { display: block; } }
@media (max-width: 960px) {
	:root { --header-h: 5.5rem; }
	.site-header__inner { gap: 1rem; }
}
/* Phones: a compact app bar, under a tenth of the screen. */
@media (max-width: 600px) {
	:root { --header-h: 4.5rem; }
	.site-header__logo img, .site-header.is-scrolled .site-header__logo img { width: 8.5rem; }
}
@media (max-width: 520px) {
	.today-bar { font-size: var(--fs-meta); }
	.today-bar a { min-height: 2.25rem; gap: 0.6rem; }
	.today-bar .today-bar__more { display: none; }
}

/* ---------- Hero video ---------- */

/* Square on phones, 2:1 on tablets, 5:2 on desktop, so the programme starts near the fold. */
.hero-video { position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: var(--bg-raised); }
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 599px) { .hero-video { aspect-ratio: 1; } }
@media (min-width: 960px) { .hero-video { aspect-ratio: 5 / 2; } }
.hero-video::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(10, 12, 16, 0) 55%, var(--bg) 100%);
}
.hero-stage { position: relative; }
.wp-site-blocks .hero-stage > .hero-stage__actions, .editor-styles-wrapper .hero-stage > .hero-stage__actions {
	position: absolute;
	inset: auto 0 clamp(1.25rem, 0.75rem + 2.5vw, 3rem);
	z-index: 1;
	gap: 0.75rem;
	margin: 0;
	padding-inline: var(--gutter);
}
.hero-stage__actions .wp-block-button:not(.is-style-hell, .ts-button-light) .wp-block-button__link:hover { background: var(--blue-deep); }
@media (min-width: 600px) {
	.hero-stage .hero-stage__actions .wp-block-button__link { min-height: 3.5rem; padding: 0.85rem 1.9rem 0.9rem; font-size: 1.3rem; }
}
@media (min-width: 2561px) {
	.hero-video { max-width: 2560px; margin-inline: auto !important; }
	.hero-video::after { background: linear-gradient(180deg, rgba(10, 12, 16, 0) 55%, var(--bg) 100%), linear-gradient(90deg, var(--bg), rgba(10, 12, 16, 0) 8%, rgba(10, 12, 16, 0) 92%, var(--bg)); }
}

/* ---------- Highlight and event head ---------- */

.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(2rem, 1.25rem + 3vw, 4.5rem) clamp(2.5rem, 1.5rem + 3.5vw, 5rem); }
.hero__glow { position: absolute; inset: -10%; z-index: -1; background: var(--img) center / cover; filter: blur(70px) saturate(130%); opacity: 0.45; }
.hero__glow::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, var(--bg) 6%, rgba(10, 12, 16, 0) 35%),
		linear-gradient(90deg, rgba(10, 12, 16, 0.35) 0%, rgba(10, 12, 16, 0.85) 55%, var(--bg) 100%),
		linear-gradient(180deg, rgba(10, 12, 16, 0) 50%, var(--bg) 94%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.hero__media { position: relative; margin: 0; }
/* The logo's block, offset behind the square image (the frame, where the event head has credits or controls below it). */
.hero__media:not(:has(.hero__frame))::before, .hero__frame::before {
	content: "";
	position: absolute;
	left: calc(-1 * clamp(1rem, 2.5vw, 2rem));
	bottom: calc(-1 * clamp(1rem, 2.5vw, 2rem));
	z-index: -1;
	width: 55%;
	height: 38%;
	background: var(--blue);
}
.hero__media img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: var(--focus, 50% 50%); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); }
.hero__media a { display: block; }
.hero__frame { position: relative; }
.hero__body { display: grid; gap: clamp(1rem, 0.8rem + 0.6vw, 1.375rem); align-content: center; }
.hero__when { display: flex; align-items: center; gap: 1.1rem; }
.hero__when .dateblock { min-width: 5.5rem; padding: 0.6rem 0.8rem; }
.hero__when .dateblock b { font-size: 3.25rem; }
.hero__when .dateblock span { font-size: 1.1rem; }
.hero__when-text { display: grid; gap: 0.3rem; }
.hero__when-text strong { color: var(--text); font: 700 clamp(1.5rem, 2.2vw, 1.9rem)/1.05 var(--font-display); letter-spacing: 0.01em; }
.hero__when-text span { color: var(--blue-hi); font: 700 clamp(1.3rem, 1.8vw, 1.5rem)/1 var(--font-display); letter-spacing: 0.01em; }
.hero__title { font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem); line-height: 0.95; overflow-wrap: break-word; hyphens: auto; text-wrap: balance; }
/* Long titles (line-ups with several names) step down one size so they stay a title, not a wall. */
.hero__title--long { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); line-height: 1; }
.hero__title a { text-decoration: none; }
.hero__title a:hover { color: inherit; }
.hero__sub { color: var(--text); font: 500 clamp(1.3rem, 2.2vw, 1.6rem)/1.25 var(--font-display); letter-spacing: 0.01em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
/* Homepage highlight and event head alike: a narrower image column, so date, title and tickets show without scrolling. */
@media (min-width: 700px) {
	.hero__title { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); }
	.hero__title--long { font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.4rem); }
}

/* Several event images: a square Swiper (drag, swipe, buttons and counter, src/stage-slider.ts).
   Before it starts, and in the editor, the track is a native scroll-snap strip. */
.stage-media__swiper { overflow: hidden; }
.stage-media__swiper:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 4px; }
.stage-media__track { display: flex; }
.stage-media__slide { position: relative; flex: 0 0 100%; width: 100%; margin: 0; }
.stage-media__swiper:not(.swiper-initialized) .stage-media__track { overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; scroll-behavior: smooth; }
.stage-media__swiper:not(.swiper-initialized) .stage-media__track::-webkit-scrollbar { display: none; }
.stage-media__swiper:not(.swiper-initialized) .stage-media__slide { scroll-snap-align: start; }
/* Below the logo block, which reaches up to 2rem under the image. */
.stage-media__controls { display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; margin-top: 0.9rem; }
.stage-media__controls[hidden] { display: none; }
.stage-media__button { display: grid; place-items: center; width: var(--tap); height: var(--tap); padding: 0; border: 0; background: var(--card); color: var(--text); cursor: pointer; }
.stage-media__button:hover { background: var(--blue); }
.stage-media__button:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 2px; }
.stage-media__button:disabled { opacity: 0.4; cursor: default; background: var(--card); }
.stage-media__count { min-width: 3.5rem; color: var(--text-2); font: 700 var(--fs-meta)/1 var(--font-display); text-align: center; font-variant-numeric: tabular-nums; }
/* The credit sits on the image, so the square frame (and the logo block behind it) keeps its shape. */
.stage-media__credit { position: absolute; right: 0; bottom: 0; max-width: 100%; margin: 0; padding: 0.3rem 0.6rem; background: rgba(10, 12, 16, 0.72); color: var(--text-2); font-size: 0.75rem; line-height: 1.3; }
@media (prefers-reduced-motion: reduce) { .stage-media__swiper:not(.swiper-initialized) .stage-media__track { scroll-behavior: auto; } }

@media (max-width: 699px) {
	.hero__grid { grid-template-columns: 1fr; gap: 2rem; }
	.hero__media { margin-left: clamp(1rem, 2.5vw, 2rem); }
	.hero__actions .btn { flex: 1; }
}

/* ---------- Programme ---------- */

.programme { padding-block: var(--space-section); }

/* Toolbar: time scope and view switch share the first row, search below; on wide screens one row. */
.toolbar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "scope view" "search search";
	align-items: center;
	gap: 0.75rem 1rem;
	margin-bottom: 1rem;
}
.toolbar > .filters { grid-area: scope; }
.toolbar > .view-switch { grid-area: view; }
.toolbar > .archive__search { grid-area: search; }
@media (min-width: 1100px) {
	.toolbar { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "scope search view"; gap: 1.5rem; }
	.toolbar > .archive__search { justify-self: end; }
}
.filters, .view-switch { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filters a, .view-switch a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--tap);
	padding: 0.5rem 1rem 0.55rem;
	border: 1px solid var(--line-strong);
	background: transparent;
	color: var(--text-2);
	font: 700 var(--fs-label)/1 var(--font-display);
	letter-spacing: 0.01em;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.filters a:hover, .view-switch a:hover { border-color: var(--text-3); color: var(--text); }
.filters a[aria-current="true"], .view-switch a[aria-current="true"] { background: #fff; border-color: #fff; color: var(--bg); }
.filters a .count { margin-left: 0.3rem; color: var(--text-3); font-weight: 600; }
.filters a[aria-current="true"] .count { color: #5b6272; }
/* Segmented controls: joined buttons. */
.toolbar > .filters, .view-switch { flex-wrap: nowrap; gap: 0; }
.toolbar > .filters a + a, .view-switch a + a { border-left: 0; }
.view-switch__icon { display: none; width: 1.1rem; height: 1.1rem; fill: currentColor; }
/* Phones: short labels and icons, so both controls fit one row. */
@media (max-width: 599px) {
	.toolbar > .filters a { flex: 1; padding-inline: 0.5rem; }
	.toolbar__more { display: none; }
	.view-switch a { width: var(--tap); padding: 0; }
	.view-switch__icon { display: block; }
	.view-switch__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Categories: one row that scrolls sideways on narrow screens. */
.archive__categories {
	flex-wrap: nowrap;
	margin: 0 calc(-1 * var(--gutter)) 1.5rem;
	padding: 0 var(--gutter) 0.25rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-padding-inline: var(--gutter);
	scrollbar-width: none;
}
.archive__categories::-webkit-scrollbar { display: none; }
.archive__categories a { flex: none; }
@media (min-width: 1100px) {
	.archive__categories { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; }
}

/* Month sections. The head stays visible while its list scrolls. */
.month { margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.month__head {
	position: sticky;
	top: var(--header-h);
	z-index: 5;
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	padding-block: 0.75rem 0.65rem;
	background: var(--bg);
	border-bottom: 1px solid var(--line-strong);
}
.month__head :is(h2, h3) { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
.month__head span { color: var(--text-3); font: 600 var(--fs-label)/1 var(--font-display); letter-spacing: 0.01em; }
.month__list { display: grid; }

/*
 * Event listing row. The square artwork leads at a generous size; beside it the date block
 * with the weekday and time sits above the title, and the format and status close the row.
 * Rows are separated by hairlines rather than boxed, so a month reads as one programme
 * sheet. The whole row is the link.
 */
.ev {
	--ev-thumb: clamp(13rem, 8rem + 8vw, 19rem);
	position: relative;
	display: grid;
	grid-template-columns: var(--ev-thumb) minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(1.25rem, 0.75rem + 1.5vw, 2.25rem);
	padding: clamp(1rem, 0.6rem + 1vw, 1.5rem) 0;
	border-bottom: 1px solid var(--line);
}
/* The hover surface bleeds a little beyond the text, like a highlighted line on a sheet. */
.ev::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--space-2)); z-index: -1; background: transparent; transition: background-color 0.15s; }
.ev:hover::before { background: var(--bg-raised); }
.ev__media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #07080b; }
.ev__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.ev__body { display: grid; gap: 0.75rem; min-width: 0; }
.ev__when { display: flex; align-items: center; gap: 0.9rem; }
.ev__when .dateblock { min-width: 3.9rem; padding: 0.4rem 0.55rem 0.45rem; }
.ev__when .dateblock b { font-size: 2.1rem; }
.ev__when .dateblock span { font-size: 0.875rem; }
.ev__datetime { display: grid; gap: 0.2rem; color: var(--text); font: 700 1.125rem/1.1 var(--font-display); letter-spacing: 0.01em; }
.ev__datetime > [aria-hidden] { display: none; } /* The " · " between date and time is for the poster card and screen readers. */
.ev__time { display: block; white-space: nowrap; color: var(--blue-hi); font-weight: 700; }
/* The date block already shows the day and month; a day range stays in the text. */
.ev__datetime:not(.ev__datetime--range) .ev__date-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ev__datetime--range .ev__date-text { font-weight: 500; color: var(--text-2); }
.ev__title { font-size: var(--fs-h3); line-height: 1; text-wrap: balance; overflow-wrap: anywhere; }
.ev__title a { text-decoration: none; transition: color 0.15s; }
.ev__title a::after { content: ""; position: absolute; inset: 0; } /* Whole row is clickable. */
.ev:hover .ev__title a { color: inherit; }
/* Subtitle: the excerpt, one or two lines under the title. */
.ev__sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 40rem; color: var(--text-2); font: 500 1.125rem/1.35 var(--font-display); letter-spacing: 0.01em; }
.ev.is-cancelled .ev__sub { color: var(--text-3); }
.ev__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ev__chips:empty { display: none; }
.ev__side { display: grid; justify-items: end; gap: 0.5rem; text-align: right; }
.ev__series { color: var(--blue-hi); font: 700 var(--fs-label)/1 var(--font-display); letter-spacing: 0.01em; white-space: nowrap; }
.ev__side .ev__series { color: var(--text-3); }

.ev.is-cancelled .ev__media img { filter: saturate(0.65); }
.ev.is-cancelled .ev__title { color: var(--text-3); }

.ev.is-cancelled .dateblock { background: var(--line); color: var(--text-3); }
.ev.is-past .dateblock { background: var(--card); color: var(--text-2); }

/* Phones: a smaller square beside the text; the format joins the chips below the title. */
@media (max-width: 699px) {
	.ev { --ev-thumb: 8rem; grid-template-columns: var(--ev-thumb) minmax(0, 1fr); gap: 1rem; align-items: start; }
	.ev::before { inset: 0 calc(-1 * var(--gutter)); }
	.ev__body { gap: 0.5rem; }
	.ev__when { gap: 0.7rem; }
	.ev__when .dateblock { min-width: 3.25rem; padding: 0.3rem 0.45rem 0.35rem; }
	.ev__when .dateblock b { font-size: 1.75rem; }
	.ev__when .dateblock span { font-size: 0.8rem; }
	.ev__datetime { font-size: 1rem; }
	.ev__title { font-size: 1.375rem; }
	.ev__sub { font-size: 1rem; }
	.ev__side { grid-column: 2; justify-items: start; text-align: left; }
	.ev__side .ev__series { display: none; }
}

/* Poster cards: the grid view and the event slider. Square artwork on top, text below. */
.programme.is-grid .month__list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: clamp(1rem, 0.75rem + 1vw, 1.75rem) clamp(1rem, 0.75rem + 0.8vw, 1.5rem); }
:is(.programme.is-grid, .ts-slider) .ev { --ev-thumb: auto; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; border: 0; background: var(--card); }
:is(.programme.is-grid, .ts-slider) .ev::before { display: none; }
:is(.programme.is-grid, .ts-slider) .ev:hover { background: var(--card-hover); }
:is(.programme.is-grid, .ts-slider) .ev__body { flex: 1; gap: 0.45rem; padding: 1.125rem 1.25rem 1.25rem; }
:is(.programme.is-grid, .ts-slider) .ev__when .dateblock { display: none; }
:is(.programme.is-grid, .ts-slider) .ev__datetime { display: block; color: var(--blue-hi); font: 700 1rem/1.2 var(--font-display); letter-spacing: 0.01em; }
:is(.programme.is-grid, .ts-slider) .ev__datetime > [aria-hidden] { display: inline; }
:is(.programme.is-grid, .ts-slider) .ev__time { display: inline; }
:is(.programme.is-grid, .ts-slider) .ev__date-text { position: static; width: auto; height: auto; clip-path: none; color: inherit; font-weight: inherit; }
:is(.programme.is-grid, .ts-slider) .ev__title { font-size: 1.5rem; }
:is(.programme.is-grid, .ts-slider) .ev__sub { font-size: 1rem; }
:is(.programme.is-grid, .ts-slider) .ev__side { justify-items: start; margin-top: auto; padding-top: 0.5rem; text-align: left; }
:is(.programme.is-grid, .ts-slider) .ev__side:not(:has(.chip)) { display: none; }
:is(.programme.is-grid, .ts-slider) .ev__side .ev__series { display: none; }

.empty { padding: clamp(1.5rem, 1rem + 2vw, 3rem); background: var(--card); color: var(--text-2); text-align: center; }

.programme__more { display: flex; justify-content: center; margin-top: var(--space-head); }

/* Homepage list below the highlight: no head, no toolbar, the first row closed by a line above. */
.programme.upcoming { padding-block: 0 var(--space-section); }
.programme.upcoming .month__list { border-top: 1px solid var(--line-strong); }
@media (max-width: 699px) { .upcoming .programme__more .btn { width: 100%; } }

/* ---------- Series (Reihen): the event categories ---------- */

.series { padding-block: var(--space-section); background: var(--bg-raised); }
/* Plates flex to fill each row, so five categories never leave a lone card in a last row. */
.series__grid { display: flex; flex-wrap: wrap; gap: clamp(1rem, 0.75rem + 0.8vw, 1.5rem); }
.series__grid > .serie { flex: 1 1 11rem; container-type: inline-size; }
@media (max-width: 699px) {
	.series__grid {
		display: flex;
		flex-wrap: nowrap;
		gap: 0.75rem;
		margin-inline: calc(-1 * var(--gutter));
		padding: 0 var(--gutter) 0.25rem;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--gutter);
		scrollbar-width: none;
	}
	.series__grid::-webkit-scrollbar { display: none; }
	.series__grid > .serie { flex: 0 0 min(78%, 18rem); scroll-snap-align: start; }
}
/* A name plate: the category's name in heavy condensed type on the logo's solid blue block,
   the count of upcoming dates at its foot; the description follows on the card below. */
.serie { display: flex; flex-direction: column; background: var(--card); color: var(--text-2); text-decoration: none; transition: background-color 0.2s; }
.serie:hover { background: var(--card-hover); }
.serie__plate { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; min-height: 11rem; padding: 1.25rem 1.25rem 1rem; background: var(--blue); color: #fff; transition: background-color 0.2s; }
.serie:hover .serie__plate { background: var(--blue-deep); }
.serie__name { font: 800 clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem)/0.92 var(--font-display); letter-spacing: 0.005em; text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; }
.serie__count { display: flex; align-items: center; gap: 0.6rem; font: 700 var(--fs-label)/1 var(--font-display); letter-spacing: 0.01em; color: var(--blue-soft); }
.serie__count::before { content: ""; width: 1.4rem; height: 0.55rem; background: #fff; }
.serie__text { padding: 1rem 1.25rem 1.25rem; font-size: var(--fs-small); line-height: 1.5; }
/* A plate that spans a row (the last of an odd count) becomes a banner: name left, count right. */
@container (min-width: 30rem) {
	.serie__plate { flex-direction: row; align-items: flex-end; justify-content: space-between; min-height: 0; padding-block: 1.25rem; }
	.serie__count { flex: none; }
}

/* ---------- Club / 30 years ---------- */

.club__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.club__media { position: relative; margin: 0; }
.club__media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.club__media::after { content: ""; position: absolute; right: calc(-1 * clamp(1rem, 2.5vw, 2rem)); top: 12%; width: var(--bar); height: 76%; background: var(--blue); }
.club__big { font-size: var(--fs-display); line-height: 0.88; }
.club__big span { display: block; color: var(--blue-hi); }
.club__body { display: grid; gap: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); }
.club__body p { max-width: 36rem; font-size: var(--fs-lead); line-height: 1.55; }
.club__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(1.5rem, 1rem + 2vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.club__facts p { margin: 0; color: var(--text-3); font-size: var(--fs-meta); }
.club__facts strong, .club__facts b { display: block; color: var(--text); font: 800 clamp(2rem, 1.6rem + 1.4vw, 2.75rem)/1 var(--font-display); }
@media (max-width: 699px) {
	.club__grid { grid-template-columns: 1fr; }
	.club__media { margin-right: clamp(1rem, 2.5vw, 2rem); }
}

/* ---------- Freundeskreis teaser (inside a brand-coloured section) ---------- */

.support__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 5vw, 6rem); align-items: end; }
.support__head { display: grid; gap: clamp(1rem, 0.8rem + 0.6vw, 1.25rem); }
.support__title { font-size: var(--fs-display); line-height: 0.9; }
.support__title span { display: block; color: var(--blue-soft); }
.support__body { display: grid; gap: 1.5rem; }
.support__body p { font-size: var(--fs-lead); line-height: 1.55; }
@media (max-width: 699px) { .support__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer { padding-block: var(--space-section) 2rem; border-top: 1px solid var(--line); font-size: var(--fs-small); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2.5rem; }
.site-footer img { width: 10.5rem; height: auto; }
.site-footer__brand { display: grid; gap: 1rem; justify-items: start; }
.site-footer__brand p { max-width: 20rem; }
.site-footer__address { color: var(--text); font: 700 1.25rem/1.15 var(--font-display); letter-spacing: 0.01em; }
.site-footer h4 { margin-bottom: 1rem; color: var(--text); font-size: var(--fs-h4); letter-spacing: 0.01em; }
.site-footer ul { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--text-3); font-size: var(--fs-meta); }
.site-footer .site-footer__social { gap: 0.25rem; margin: 0.25rem 0 0 -0.6rem; }
.site-footer .site-footer__social .wp-social-link { color: var(--text-2); }
.site-footer .site-footer__social .wp-social-link a { display: grid; place-items: center; width: var(--tap); height: var(--tap); padding: 0; }
.site-footer .site-footer__social .wp-social-link svg { width: 1.5rem; height: 1.5rem; }
.site-footer .site-footer__social .wp-social-link:hover { color: #fff; transform: none; }
@media (max-width: 960px) {
	.site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
	.site-footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
	.site-footer ul { gap: 0; }
	.site-footer li a { display: block; padding-block: 0.45rem; }
	.site-footer h4 { margin-bottom: 0.5rem; }
	.site-footer__legal { margin-top: 2rem; }
}

/* ---------- Page content helpers (paragraph, list and group classes) ---------- */

.ts-bank { padding: 1.25rem 1.5rem; border-left: var(--bar) solid var(--blue); background: var(--card); color: var(--text); font-variant-numeric: tabular-nums; }

/* Facts row for text pages: numbers with a label, like the club section. */
.ts-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, max-content)); gap: clamp(1.5rem, 1rem + 2vw, 3rem); padding-block: 1.5rem; border-block: 1px solid var(--line); }
.ts-facts p { margin: 0; color: var(--text-3); font-size: var(--fs-meta); }
.ts-facts strong { display: block; color: var(--text); font: 800 clamp(2rem, 1.6rem + 1.4vw, 2.75rem)/1 var(--font-display); }

/* Poster wall: square images with a caption, for festival line-ups and photo pages. */
.poster-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: clamp(1rem, 0.75rem + 1vw, 1.75rem) clamp(1rem, 0.75rem + 0.8vw, 1.5rem); }
.poster-wall > * { margin: 0; }
.poster-wall__item { position: relative; display: grid; gap: 0.7rem; }
.poster-wall__item .wp-block-image, .poster-wall__item figure { margin: 0; }
.poster-wall__item img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--card); }
.poster-wall__item p { color: var(--text); font: 700 1.25rem/1.1 var(--font-display); letter-spacing: 0.01em; text-wrap: balance; }
.poster-wall__item a { text-decoration: none; }
.poster-wall__item p a::after { content: ""; position: absolute; inset: 0; }
.poster-wall__item:hover p { color: var(--blue-hi); }
@media (max-width: 599px) { .poster-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 0.75rem; } .poster-wall__item p { font-size: 1.0625rem; } }

/* Festival head: the poster beside the festival's name, dates and introduction. */
.festival__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.festival__poster { position: relative; margin: 0; }
.festival__poster img { width: 100%; aspect-ratio: 1; object-fit: cover; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); }
.festival__poster::before { content: ""; position: absolute; left: calc(-1 * clamp(1rem, 2.5vw, 2rem)); bottom: calc(-1 * clamp(1rem, 2.5vw, 2rem)); z-index: -1; width: 55%; height: 38%; background: var(--blue); }
.festival__body { display: grid; gap: clamp(1rem, 0.8rem + 0.6vw, 1.5rem); }
.festival__body > * { margin: 0; }
.festival__dates { color: var(--text); font: 700 var(--fs-h3)/1.1 var(--font-display); letter-spacing: 0.01em; }
.festival__dates span { display: block; color: var(--blue-hi); }
@media (max-width: 699px) { .festival__grid { grid-template-columns: 1fr; } .festival__poster { margin-left: clamp(1rem, 2.5vw, 2rem); } }

/* ---------- Pages ---------- */

/* Page title: the same head as the programme and the homepage sections. */
.ts-main > .wp-block-post-title:not(.screen-reader-text) {
	display: flex;
	align-items: flex-end;
	gap: clamp(0.75rem, 2vw, 1.5rem);
	margin-block: 0 var(--space-head);
	font-size: var(--fs-display);
	line-height: 0.88;
	overflow-wrap: normal;
	hyphens: auto;
}
.ts-main > .wp-block-post-title:not(.screen-reader-text)::after {
	content: "";
	flex: 1;
	min-width: 2rem;
	height: var(--bar);
	margin-bottom: 0.4rem;
	margin-right: calc(-1 * max(var(--gutter), (100vw - 100%) / 2));
	background: var(--blue);
}

/* Text pages: a sub-heading opens a new part with more space above than below. */
.wp-block-post-content > :is(h2, h3) { margin-block-start: var(--space-sub); }
.wp-block-post-content > :is(h2, h3) + * { margin-block-start: 1rem; }
.wp-block-post-content > h2 { font-size: var(--fs-h2); line-height: 0.95; }
.wp-block-post-content > h3 { font-size: var(--fs-h3); }
.wp-block-post-content > * + .wp-block-buttons { margin-block-start: 1.5rem; }
.wp-block-post-content > p a, .wp-block-post-content > ul a, .wp-block-post-content > ol a { color: var(--blue-hi); text-underline-offset: 3px; }
.wp-block-post-content > :is(p, ul, ol) { max-width: var(--measure); }
.wp-block-post-content > :is(ul, ol):not(.is-style-linkliste, .ts-link-list) { padding-left: 1.25rem; }

/* Content buttons match the theme's own buttons, whatever block they sit in. Two classes
   deep, because theme.json's fluid typography would otherwise shrink them on phones. */
.wp-site-blocks .wp-block-button__link, .editor-styles-wrapper .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 3rem;
	padding: 0.7rem 1.5rem 0.75rem;
	border-radius: 0;
	font-size: 1.125rem;
	line-height: 1;
	letter-spacing: 0.01em;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
:is(.wp-site-blocks, .editor-styles-wrapper) .wp-block-button:not(.is-style-hell, .is-style-kontur, .ts-button-light, .ts-button-ghost) .wp-block-button__link:hover { background: var(--blue-deep); }
/* Phones: calls to action span the column. */
@media (max-width: 599px) {
	.wp-block-post-content .wp-block-buttons:not(.hero-stage__actions) > .wp-block-button { flex: 1 1 100%; }
	.wp-block-post-content .wp-block-buttons:not(.hero-stage__actions) .wp-block-button__link { width: 100%; }
}

/* Cancellation is a clear label on the artwork, never a crossed-out artist name. */
.hero__media > a { display: block; position: relative; }
.event-stamp { position: absolute; top: 50%; left: 50%; width: 94%; transform: translate(-50%, -50%) rotate(-12deg); padding: 0.35em 0.2em; border: 0.12em solid currentColor; color: #1f0d00; background: var(--cancelled); text-align: center; font: 800 clamp(0.8rem, 2.3vw, 1.8rem)/1.1 var(--font-display); box-shadow: 0 0.15rem 0.75rem #0005; pointer-events: none; }
.hero__subtitle { margin-block: 0.8rem; font-size: var(--fs-lead); color: var(--text-2); }
[data-ts-more][aria-disabled="true"] { opacity: 0.65; cursor: progress; }
.ts-load-status { width: 100%; text-align: center; }
.club-sponsor { padding-block: var(--space-sub); }
.club-sponsor img { display: block; width: min(100%, 18rem); height: auto; }

.festival-years { margin-bottom: var(--space-sub); }
.festival-year + .festival-year { margin-top: var(--space-section); padding-top: var(--space-sub); border-top: 1px solid var(--line); }
.festival-year__content > .wp-block-group { max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter, 1.5rem); }
