/* Bühne – theme for a cultural programme (extension Kultur). The accent color comes from the settings as --accent;
   every working group colors itself and its events through the class g-<color> (--g). The fonts are system fonts:
   nothing is loaded from other servers. */

:root {
  --accent: #ab1e32;
  --bg: #f8f5f0;
  --surface: #ffffff;
  --surface-2: #f0ebe3;
  --ink: #18151b;
  --ink-2: #3b363f;
  --muted: #6a6470;
  --line: #e3dcd2;
  --on-dark: #f6f2ee;
  --accent-ink: color-mix(in srgb, var(--accent) 90%, #000);
  --accent-soft: color-mix(in srgb, var(--accent) 9%, var(--surface));
  --radius: 20px;
  --radius-s: 12px;
  --shadow: 0 1px 2px rgb(24 21 27 / 0.05), 0 12px 32px rgb(24 21 27 / 0.08);
  --header-h: 4.5rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --g: var(--accent);
  color-scheme: light;
}

/* The colors of the working groups: readable as text on the page and with white text on them. */
.g-red {
  --g: #b3202c;
}
.g-orange {
  --g: #b4520c;
}
.g-ochre {
  --g: #876600;
}
.g-green {
  --g: #2c7a4b;
}
.g-teal {
  --g: #0e6b73;
}
.g-blue {
  --g: #2f53b3;
}
.g-violet {
  --g: #6a3dbf;
}
.g-pink {
  --g: #ad2868;
}
.g-none {
  --g: var(--accent);
}
[class*="g-"] {
  --g-soft: color-mix(in srgb, var(--g) 11%, var(--surface));
  --g-text: color-mix(in srgb, var(--g) 92%, #000);
}

/* Dark scheme: chosen in the settings or (with "auto") by the system setting */
[data-scheme="dark"] {
  --bg: #111014;
  --surface: #1b1a20;
  --surface-2: #232129;
  --ink: #f1edf3;
  --ink-2: #d5d0d9;
  --muted: #a29ca8;
  --line: #302d36;
  --accent-ink: color-mix(in srgb, var(--accent) 50%, #fff);
  --accent-soft: color-mix(in srgb, var(--accent) 18%, var(--surface));
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px rgb(0 0 0 / 0.35);
  color-scheme: dark;
}
[data-scheme="dark"] [class*="g-"] {
  --g-soft: color-mix(in srgb, var(--g) 22%, var(--surface));
  --g-text: color-mix(in srgb, var(--g) 45%, #fff);
}
@media (prefers-color-scheme: dark) {
  [data-scheme="auto"] {
    --bg: #111014;
    --surface: #1b1a20;
    --surface-2: #232129;
    --ink: #f1edf3;
    --ink-2: #d5d0d9;
    --muted: #a29ca8;
    --line: #302d36;
    --accent-ink: color-mix(in srgb, var(--accent) 50%, #fff);
    --accent-soft: color-mix(in srgb, var(--accent) 18%, var(--surface));
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px rgb(0 0 0 / 0.35);
    color-scheme: dark;
  }
  [data-scheme="auto"] [class*="g-"] {
    --g-soft: color-mix(in srgb, var(--g) 22%, var(--surface));
    --g-text: color-mix(in srgb, var(--g) 45%, #fff);
  }
}

/* Basics */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
picture {
  display: contents;
}
a {
  color: var(--accent-ink);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}
a:hover {
  text-decoration-thickness: 0.14em;
}
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 65%, transparent);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  font-weight: 800;
}
h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}
h3 {
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}
p {
  margin: 0;
}
.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}
.section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 44rem;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
}
.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}
.empty {
  color: var(--muted);
  padding-block: 1.5rem;
}
.notice {
  background: color-mix(in srgb, #e9b949 18%, var(--surface));
  border-radius: var(--radius-s);
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
}

/* Buttons, chips, badges */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition:
    transform 0.15s,
    background 0.15s;
}
.button:hover {
  background: var(--accent-ink);
  transform: translateY(-1px);
}
.button.small {
  min-height: 2.4rem;
  padding: 0.45rem 1.05rem;
  font-size: 0.9rem;
}
.button.block {
  width: 100%;
}
.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: currentColor;
}
.button.ghost:hover {
  background: var(--surface-2);
}
.button.light {
  background: #fff;
  color: #18151b;
}
.button.light:hover {
  background: #ece7e1;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: var(--g-soft);
  color: var(--g-text);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.chip::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--g);
}
a.chip:hover {
  background: color-mix(in srgb, var(--g) 20%, var(--surface));
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--ink-2);
}
.badge.live {
  background: color-mix(in srgb, #1f9d55 14%, var(--surface));
  color: color-mix(in srgb, #1f9d55 80%, var(--ink));
}
.badge.live::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #1f9d55;
  animation: pulse 1.6s infinite;
}
.badge.sold-out {
  background: var(--ink);
  color: var(--bg);
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled {
  border-color: var(--line);
}
.bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand-logo {
  height: 2.75rem;
  width: auto;
}
.foot-name .brand-logo {
  height: 2.4rem;
}
.only-dark,
[data-scheme="dark"] .only-light {
  display: none;
}
[data-scheme="dark"] .only-dark {
  display: block;
}
/* The mark: two overlapping circles, like two spotlights on a stage, drawn in CSS. */
.brand-mark {
  flex: none;
  position: relative;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  background: var(--accent);
  overflow: hidden;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 46%;
  aspect-ratio: 1;
  translate: 0 -50%;
  border-radius: 50%;
  background: #fff;
}
.brand-mark::before {
  left: 16%;
}
.brand-mark::after {
  right: 16%;
  opacity: 0.55;
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav-item {
  position: relative;
}
.nav-item > a,
.nav-label {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
}
.nav-item > a:hover,
.nav-item:focus-within > a {
  background: var(--surface-2);
}
.nav-item > a[aria-current="page"] {
  color: var(--accent-ink);
}
.has-sub > a::after,
.has-sub > .nav-label::after {
  content: "";
  display: inline-block;
  width: 0.38rem;
  height: 0.38rem;
  margin-left: 0.45rem;
  translate: 0 -0.18rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  rotate: 45deg;
  opacity: 0.6;
}
.nav-sub {
  list-style: none;
  margin: 0;
  padding: 0.45rem;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  translate: 0 0.35rem;
  transition:
    opacity 0.15s,
    translate 0.15s,
    visibility 0.15s;
}
.has-sub:hover > .nav-sub,
.has-sub:focus-within > .nav-sub {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}
.nav-sub a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.nav-sub a:hover,
.nav-sub a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
/* Languages of a site with more than one: the version of the page in each, the current one marked */
.languages {
  display: flex;
  gap: 0.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.languages a,
.languages span {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}
.languages a:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.languages [aria-current] {
  color: var(--accent-ink);
}
/* Order in the bar: name, navigation, switch (and on a phone: name, switch, menu button, then the opened menu below) */
.nav {
  order: 2;
}
.scheme-toggle {
  order: 3;
}
.menu-toggle {
  order: 4;
}
.scheme-toggle {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.scheme-toggle:hover {
  background: var(--surface-2);
}
.scheme-toggle .icon-sun,
[data-scheme="dark"] .scheme-toggle .icon-moon {
  display: none;
}
[data-scheme="dark"] .scheme-toggle .icon-sun {
  display: block;
}
html:not(.js) .scheme-toggle {
  display: none;
}
.menu-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 1.05rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition:
    rotate 0.2s,
    translate 0.2s,
    opacity 0.2s;
}
.menu-icon {
  position: relative;
}
.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-icon::before {
  top: -6px;
}
.menu-icon::after {
  top: 6px;
}
.is-open .menu-icon {
  background: transparent;
}
.is-open .menu-icon::before {
  translate: 0 6px;
  rotate: 45deg;
}
.is-open .menu-icon::after {
  translate: 0 -6px;
  rotate: -45deg;
}

@media (max-width: 62rem) {
  .bar {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .js .menu-toggle {
    display: inline-flex;
    margin-left: 0.5rem;
  }
  .scheme-toggle {
    order: 1;
    margin-left: auto;
  }
  .menu-toggle {
    order: 2;
  }
  .nav {
    order: 5;
  }
  .nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding-bottom: 1rem;
  }
  .js .nav {
    display: none;
  }
  .js .is-open .nav {
    display: flex;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-item > a,
  .nav-label {
    padding: 0.7rem 0.5rem;
    font-size: 1.1rem;
    border-radius: 10px;
  }
  .has-sub > a::after,
  .has-sub > .nav-label::after {
    display: none;
  }
  .nav-sub {
    position: static;
    opacity: 1;
    visibility: visible;
    translate: none;
    border: 0;
    box-shadow: none;
    background: none;
    padding: 0 0 0.4rem 0.9rem;
    min-width: 0;
  }
  .nav-sub a {
    color: var(--ink-2);
  }
}
@media (max-width: 30rem) {
  .brand {
    font-size: 0.98rem;
    gap: 0.55rem;
  }
  .brand-mark {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 9px;
  }
  .brand-logo {
    height: 2.3rem;
  }
  .menu-toggle {
    padding: 0.55rem 0.7rem;
  }
  .menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* Page head and path */
.page-head {
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 4vw, 2.5rem);
}
.page-head h1 {
  margin-bottom: 0.9rem;
}
.page-head .lead {
  margin-top: 0.25rem;
}
.page-head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.crumbs ol {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.crumbs li + li::before {
  content: "›";
  margin-right: 0.35rem;
  opacity: 0.55;
}
.crumbs a {
  color: inherit;
  text-decoration: none;
  opacity: 0.75;
}
.crumbs a:hover {
  opacity: 1;
  text-decoration: underline;
}
.group-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.group-filter .chip {
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
}
.cover {
  margin-block: 0 2.5rem;
}
.cover img {
  width: auto;
  max-width: 100%;
  max-height: 34rem;
  margin-inline: auto;
  border-radius: var(--radius);
} /* never wider than the picture is */
/* the credit of a picture (files.meta credit), below it or after its caption */
.credit {
  color: var(--muted);
  font-size: 0.8rem;
}
figcaption.credit {
  margin-top: 0.4rem;
  text-align: center;
}
figcaption .credit {
  display: block; /* a line of its own below the caption */
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.section-head .more {
  font-weight: 700;
  text-decoration: none;
}

/* Running text */
.prose {
  max-width: 68ch;
  font-size: 1.075rem;
  line-height: 1.72;
}
.prose > * + * {
  margin-top: 1.1em;
}
.prose h2 {
  font-size: 1.5rem;
  margin-top: 2em;
}
.prose h3 {
  font-size: 1.2rem;
  margin-top: 1.6em;
}
.prose ul {
  padding-left: 1.2em;
}
.prose li + li {
  margin-top: 0.35em;
}
.prose a {
  overflow-wrap: anywhere;
} /* long web addresses in the text (autolink) wrap instead of widening the page */
.prose blockquote {
  margin: 1.5em 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 4px solid var(--accent);
  font-size: 1.15em;
  color: var(--ink-2);
}

/* Programme: rows by month */
.listing {
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
.period + .period {
  margin-top: 2.5rem;
}
.period-head {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  padding-block: 0.8rem;
  margin-bottom: 0.25rem;
  background: var(--bg);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  border-bottom: 2px solid var(--ink);
}
.period-head span {
  color: var(--muted);
  font-weight: 600;
}
.rows {
  display: grid;
}
.ev-row {
  position: relative;
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.35rem 1rem;
  margin-inline: -1rem;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-s);
  transition: background 0.15s;
}
.ev-row:hover {
  background: var(--surface);
}
.date-tile {
  display: grid;
  justify-items: center;
  align-content: center;
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 16px;
  background: var(--g-soft);
  color: var(--g-text);
  line-height: 1;
}
.dt-day {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.dt-month {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}
.dt-weekday {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.75;
  margin-top: 0.15rem;
}
.ev-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin-bottom: 0.35rem;
  min-height: 1.4rem;
}
.ev-category {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.ev-title {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
}
.ev-title a {
  color: inherit;
  text-decoration: none;
}
.ev-row .ev-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.ev-row .chip,
.ev-row .ev-action > * {
  position: relative;
  z-index: 1;
}
.ev-row:hover .ev-title a {
  color: var(--g-text);
}
/* Facts in one line, separated by a dot that stays at the end of a line when the facts wrap. */
.ev-meta {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.15rem;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.93rem;
}
.ev-meta > :not(:last-child)::after,
.ev-line-meta > :not(:last-child)::after {
  content: "·";
  margin-inline: 0.6rem;
  opacity: 0.6;
}
.ev-price {
  color: var(--ink-2);
  font-weight: 600;
}
.ev-row.is-past {
  opacity: 0.6;
}
@media (max-width: 40rem) {
  .ev-row {
    grid-template-columns: 3.9rem minmax(0, 1fr);
    gap: 1rem;
    padding: 1.1rem 0.5rem;
    margin-inline: -0.5rem;
    align-items: start;
  }
  .ev-row .date-tile {
    width: 3.9rem;
    height: 4.2rem;
    border-radius: 12px;
  }
  .ev-row .dt-day {
    font-size: 1.5rem;
  }
  .ev-action {
    grid-column: 2;
  }
  .ev-action:empty {
    display: none;
  }
}

/* Archive: compact rows by year */
.lines {
  display: grid;
}
.ev-line {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.ev-line-date {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.95rem;
}
.ev-line-date .dt-weekday {
  font-size: inherit;
  opacity: 1;
  margin: 0;
}
.ev-line-title {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ev-line-title a {
  color: inherit;
  text-decoration: none;
}
.ev-line-title a:hover {
  color: var(--g-text);
  text-decoration: underline;
}
.ev-line-meta {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}
@media (max-width: 40rem) {
  .ev-line {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .ev-line .chip {
    justify-self: start;
    margin-top: 0.3rem;
  }
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
  gap: 1.5rem;
}
.ev-more .card-grid > :nth-child(n + 4) {
  display: none;
}
.ev-card,
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.ev-card:hover,
.card:hover {
  transform: translateY(-3px);
}
.ev-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--g), color-mix(in srgb, var(--g) 55%, #000));
}
.ev-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ev-card-media .date-tile {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.18);
}
.ev-card-body,
.card-body {
  padding: 1.15rem 1.25rem 1.4rem;
  display: grid;
  gap: 0.3rem;
}
.card {
  padding: 0;
}
.card > h3,
.card > p {
  padding-inline: 1.25rem;
}
.card > h3 {
  padding-top: 1.25rem;
}
.card > p:last-child {
  padding-bottom: 1.25rem;
}
.ev-card .ev-title {
  font-size: 1.2rem;
}
.ev-card .ev-title a::after,
.card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.card h3 a {
  color: inherit;
  text-decoration: none;
}
.card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.ev-card.is-past {
  opacity: 0.7;
}

/* Highlight: from edge to edge. Light: the text beside the image on the light color of the working group; dark: the
   image fills the band, the text lies on it. */
.bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.hl {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--g-soft);
  color: var(--ink);
}
.hl-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5rem);
}
.hl-media img {
  width: auto;
  max-width: 100%;
  max-height: 34rem;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgb(24 21 27 / 0.18);
}
.hl-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--g-text);
}
.hl-eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 3px;
  border-radius: 2px;
  background: var(--g);
}
.hl-date {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-top: 1.4rem;
  line-height: 0.85;
  color: var(--g-text);
}
.hl-day {
  font-size: clamp(4.5rem, 11vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.06em;
}
.hl-month {
  font-size: clamp(1.4rem, 3.2vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hl-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  max-width: 16ch;
  margin-top: 1.1rem;
}
.hl-title a {
  color: inherit;
  text-decoration: none;
}
.hl-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
}
.hl-teaser {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  max-width: 38rem;
  margin-top: 1rem;
  color: var(--ink-2);
}
.hl-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin: 1.6rem 0 0;
}
.hl-facts dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hl-facts dd {
  margin: 0.2rem 0 0;
  font-weight: 600;
  max-width: 24rem;
}
.hl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hl-more {
  background: var(--ink);
  color: var(--bg);
}
.hl-more:hover {
  background: var(--ink-2);
}
.hl .badge.sold-out {
  min-height: 2.9rem;
  padding-inline: 1.3rem;
  font-size: 0.95rem;
}
.hl-empty {
  background: var(--accent-soft);
}
.hl-empty .hl-grid {
  grid-template-columns: 1fr;
}
@media (max-width: 52rem) {
  .hl-grid {
    grid-template-columns: 1fr;
  }
  .hl-media {
    order: -1;
  }
}

[data-scheme="dark"] .hl {
  display: flex;
  align-items: flex-end;
  min-height: clamp(30rem, 78vh, 46rem);
  background: #141117;
  color: #fff;
}
[data-scheme="dark"] .hl-grid {
  display: block;
  position: static;
  width: 100%;
}
[data-scheme="dark"] .hl-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
[data-scheme="dark"] .hl-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}
[data-scheme="dark"] .hl::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(14 11 16 / 0.92) 0%, rgb(14 11 16 / 0.72) 42%, rgb(14 11 16 / 0.1) 100%),
    linear-gradient(0deg, rgb(14 11 16 / 0.55), transparent 45%);
}
[data-scheme="dark"] .hl-eyebrow,
[data-scheme="dark"] .hl-facts dt {
  color: rgb(255 255 255 / 0.72);
}
[data-scheme="dark"] .hl-eyebrow::before {
  background: var(--accent);
}
[data-scheme="dark"] .hl-date {
  color: #fff;
}
[data-scheme="dark"] .hl-month {
  color: rgb(255 255 255 / 0.85);
}
[data-scheme="dark"] .hl-teaser {
  color: rgb(255 255 255 / 0.88);
}
[data-scheme="dark"] .hl-more {
  background: #fff;
  color: #18151b;
}
[data-scheme="dark"] .hl-more:hover {
  background: #ece7e1;
}
[data-scheme="dark"] .hl .badge.sold-out {
  background: #fff;
  color: #18151b;
}
[data-scheme="dark"] .hl-empty {
  min-height: 18rem;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #000));
}

/* Home page made of elements */
.landing > .el,
.elements > .el {
  margin-block-end: clamp(2.5rem, 6vw, 4.5rem);
}
.landing > .el-highlight {
  margin-block-end: clamp(2.5rem, 6vw, 4rem);
}
.el-col > .el {
  margin-block-end: 1.25rem !important;
}
.el-col > .el:last-child {
  margin-block-end: 0 !important;
}
.el-columns {
  gap: clamp(1.5rem, 4vw, 3rem) !important;
}
.el-text.prose {
  max-width: 68ch;
}

/* Images and downloads below a text: images side by side as a gallery, everything else across the full width */
.elements.ev-elements,
.elements.group-elements,
.page .elements {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: 1rem;
  align-items: start;
}
.ev-elements,
.group-elements {
  margin-top: 2.5rem;
}
.elements > .el:not(.el-image) {
  grid-column: 1 / -1;
  margin-block-end: 0.25rem;
}
.elements > .el-image {
  margin: 0;
}
.el-image img {
  width: 100%;
  border-radius: var(--radius-s);
  box-shadow: var(--shadow);
}
.el-image-link {
  display: block;
}
.el-image-link:hover img {
  outline: 3px solid var(--g);
  outline-offset: 2px;
}
.el-image figcaption {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.el-download {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.el-download:hover {
  border-color: var(--g);
  background: var(--g-soft);
}
.dl-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--g-soft);
  color: var(--g-text);
}
.dl-text {
  display: grid;
}
.dl-title {
  font-weight: 700;
}
.dl-note {
  font-size: 0.85rem;
  color: var(--muted);
}
.contact-photo-wrap {
  display: block;
}
.elements > figure.el-image:only-of-type {
  grid-column: 1 / -1;
  max-width: 42rem;
} /* a single photo, e.g. of a group, at a readable size */
/* The team (extension Verein): portraits in a grid */
.el-team-list .el-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)) !important;
  gap: 1.75rem 1.25rem !important;
}
.el-team-list > h2 {
  margin-bottom: 1.25rem;
}
.person {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.2rem;
}
.person-photo {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow);
}
.person-none {
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--muted);
}
.person-name {
  font-size: 1.02rem;
}
.person-name a {
  color: inherit;
  text-decoration: none;
}
.person-name a:hover {
  text-decoration: underline;
}
.person-role {
  color: var(--muted);
  font-size: 0.9rem;
}
.person-mail {
  font-size: 0.88rem;
  font-weight: 600;
}
.contact-photo {
  width: 6.5rem;
  height: 6.5rem;
  object-fit: cover;
  border-radius: 50%;
}

/* Info box */
.el-callout {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.75rem;
  box-shadow: var(--shadow);
}
.callout-title {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.el-callout .prose {
  font-size: 0.98rem;
  line-height: 1.6;
}
.el-callout .prose > * + * {
  margin-top: 0.7em;
}
.callout-action {
  margin-top: 1.1rem;
}
.tone-accent {
  background: var(--accent);
  color: #fff;
}
.tone-accent a:not(.button) {
  color: #fff;
}
.tone-accent .button {
  background: #fff;
  color: var(--accent-ink);
}
.tone-dark {
  background: #18151b;
  color: var(--on-dark);
}
.tone-dark a:not(.button) {
  color: #fff;
}
.tone-dark .button {
  background: var(--accent);
}

/* Working groups */
.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 1.5rem;
}
.group-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.group-card:hover {
  transform: translateY(-3px);
}
.group-card-media {
  aspect-ratio: 16 / 9;
  background: var(--g);
}
.group-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.group-card-body {
  display: grid;
  gap: 0.5rem;
  padding: 1.2rem 1.3rem 1.4rem;
  flex: 1;
  align-content: start;
}
.group-card h3 a {
  color: inherit;
  text-decoration: none;
}
.group-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.group-card p {
  color: var(--ink-2);
  font-size: 0.95rem;
}
.group-card-count {
  margin-top: auto;
  padding-top: 0.3rem;
  color: var(--g-text) !important;
  font-weight: 700;
}

.group-hero {
  background: var(--g);
  color: #fff;
  padding-block: clamp(2.5rem, 7vw, 5rem);
}
.group-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.group-hero .eyebrow {
  color: rgb(255 255 255 / 0.8);
  margin-bottom: 0.6rem;
}
.group-hero .lead {
  color: rgb(255 255 255 / 0.92);
  margin-top: 1rem;
}
.group-hero .crumbs {
  color: #fff;
}
.group-hero-media img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.25);
}
.group-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-bottom: clamp(1rem, 3vw, 2rem);
}
.contact-card {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: grid;
  gap: 0.8rem;
  justify-items: start;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--g);
}
.contact-name {
  font-weight: 700;
  font-size: 1.1rem;
}
.group-page .ev-row .chip,
.group-page .ev-line .chip {
  display: none;
} /* on the page of the group itself, the chip would only repeat it */
@media (max-width: 52rem) {
  .group-hero-grid,
  .group-about {
    grid-template-columns: 1fr;
  }
  .contact-card {
    position: static;
  }
}

/* Event */
.ev-hero {
  background: var(--g-soft);
  padding-block: clamp(2rem, 6vw, 4rem);
}
.ev-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.ev-hero h1 {
  margin-top: 0.4rem;
}
.ev-hero .lead {
  margin-top: 1.1rem;
}
.ev-hero-when {
  margin-top: 1.4rem;
  font-weight: 700;
  color: var(--g-text);
}
.ev-hero-media img {
  width: auto;
  max-width: 100%;
  max-height: 32rem;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
} /* posters whole, landscape photos at full width */
.ev-main-col {
  min-width: 0;
}
.ev-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.ev-facts {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--g);
}
.ev-facts dl {
  margin: 0;
  display: grid;
  gap: 1rem;
}
.ev-facts dt {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.ev-facts dd {
  margin: 0.2rem 0 0;
  font-weight: 600;
}
.ev-facts .route {
  font-size: 0.9rem;
  font-weight: 600;
}
.ev-facts-actions {
  margin-top: 1.4rem;
}
.ev-facts-actions .badge {
  width: 100%;
  justify-content: center;
  min-height: 2.9rem;
  font-size: 0.95rem;
}
.ev-facts .notice {
  margin-top: 1.25rem;
}
.ev-ics {
  margin-top: 1rem;
  font-size: 0.92rem;
  text-align: center;
}
.ev-more {
  border-top: 1px solid var(--line);
}
@media (max-width: 56rem) {
  .ev-hero-grid,
  .ev-layout {
    grid-template-columns: 1fr;
  }
  .ev-facts {
    position: static;
    order: -1;
  }
}

/* Pages */
.page .prose {
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.elements {
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* Paging */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
}
.pager-link {
  font-weight: 700;
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border: 2px solid currentColor;
  border-radius: 999px;
}
.pager-link.is-off {
  opacity: 0.3;
}
.pager-count {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Footer: light on warm grey, almost black in the dark scheme */
.site-footer {
  --foot-bg: var(--surface-2);
  --foot-ink: var(--ink);
  --foot-text: var(--ink-2);
  --foot-muted: var(--muted);
  --foot-line: var(--line);
  background: var(--foot-bg);
  color: var(--foot-text);
  margin-top: clamp(2rem, 6vw, 4rem);
  padding-top: clamp(3rem, 7vw, 4.5rem);
}
[data-scheme="dark"] .site-footer {
  --foot-bg: #0b0a0d;
  --foot-ink: #fff;
  --foot-text: #cfc8d4;
  --foot-muted: #9b93a1;
  --foot-line: #2e2a33;
}
.site-footer a {
  color: var(--foot-ink);
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(10rem, 1fr));
  gap: 2.5rem;
}
.foot-name {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--foot-ink);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.foot-tagline {
  margin-top: 0.8rem;
  color: var(--foot-ink);
}
.foot-text {
  margin-top: 0.6rem;
  font-size: 0.93rem;
}
.foot-social {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
}
.foot-head {
  color: var(--foot-ink);
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.foot-col ul,
.foot-legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
}
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--foot-line);
  font-size: 0.88rem;
  color: var(--foot-muted);
}
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .site-header,
  .site-footer,
  .pager,
  .ev-action,
  .hl-actions,
  .ev-facts-actions {
    display: none;
  }
  body {
    background: #fff;
  }
}
