/* brauseboys.de, »Spielplan«: the welcome, then the dates. Black ink on white (white on near-black in dark), big
   condensed dates, the guests as the headline, a fizzy lime only as the ground behind ticket links and the current
   menu entry; a Terminleiste beside every other page. DESIGN.md says why. Starts light; visitors switch in the foot (scheme.js).

   Fonts, both SIL Open Font License 1.1, no Reserved Font Name, subset to German Latin (fonts.md › Serving):
   League Gothic (The League Gothic Project Authors), variable width 75–100, for dates, names and headings;
   Hanken Grotesk (The Hanken Grotesk Project Authors), variable weight 400–700, for text. */
@layer tokens, base, compositions, components, utilities;

@font-face {
  font-family: "League Gothic";
  src: url("/design/league-gothic-96df50d9.woff2") format("woff2");
  font-weight: 400;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "League Gothic Fallback";
  src: local("Arial"), local("ArialMT");
  ascent-override: 163.3759%;
  descent-override: 39.2609%;
  line-gap-override: 0%;
  size-adjust: 59.2193%;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/design/hanken-grotesk-d2df7e63.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk Fallback";
  src: local("Arial"), local("ArialMT");
  ascent-override: 99.0668%;
  descent-override: 30.0173%;
  line-gap-override: 0%;
  size-adjust: 100.9419%;
}

@layer tokens {
:root {
  color-scheme: light;
  /* colour: roles, light and dark (contrast numbers in DESIGN.md › Colour) */
  --ground: light-dark(#ffffff, #121211);
  --text: light-dark(#111111, #f1f1ec);
  --text-muted: light-dark(#4f4f4b, #a9a9a2);
  --line: light-dark(#111111, #f1f1ec);
  --line-quiet: light-dark(#d4d4cd, #3a3a37);
  --band: light-dark(#111111, #1e1e1c);
  --on-band: #f1f1ec;
  --on-band-muted: #b9b9b1;
  --signal: #b6f03c;
  --on-signal: #111111;
  --ring: light-dark(#111111, #b6f03c);

  /* type */
  --display: "League Gothic", "League Gothic Fallback", "Arial Narrow", sans-serif;
  --sans: "Hanken Grotesk", "Hanken Grotesk Fallback", Arial, sans-serif;
  --text-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --small: 0.9375rem;
  --tiny: 0.8125rem;
  --h3: clamp(1.9rem, 4.5vw, 2.5rem);
  --leading: 1.55;

  /* space */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s6: 1.5rem;
  --s8: 2rem;
  --s12: 3rem;
  --s16: 4rem;
  --s24: 6rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --frame: 90rem;
  --measure: 42rem;
  --target: 44px;
  --heavy: 6px;
}
:root[data-scheme="light"],
:root:has(input[name="scheme"][value="light"]:checked) {
  color-scheme: light;
}
:root[data-scheme="dark"],
:root:has(input[name="scheme"][value="dark"]:checked) {
  color-scheme: dark;
}
}

@layer base {
*,
::before,
::after {
  box-sizing: border-box;
}
:root {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--text);
  font: 400 var(--text-size) / var(--leading) var(--sans);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure, fieldset {
  margin: 0;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 3px;
}
strong, b {
  font-weight: 700;
}
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
}

@layer compositions {
.rahmen {
  width: min(var(--frame), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
body > main {
  flex: 1;
}
}

@layer components {
/* small uppercase labels over a block: »Als Nächstes«, »Danach«, »Jahresrückblick« */
.kicker {
  font-family: var(--sans);
  font-size: var(--tiny);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
/* a link that leads on: bold capitals with an arrow */
.pfeil {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: var(--target);
  white-space: nowrap;
  font-size: var(--small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.pfeil::after {
  content: "→";
  letter-spacing: 0;
}
.skip {
  position: absolute;
  z-index: 3;
  top: -100px;
  left: var(--gutter);
  padding: var(--s2) var(--s4);
  background: var(--signal);
  color: var(--on-signal);
  font-weight: 700;
}
.skip:focus {
  top: var(--s2);
}

/* the head: a black info strip (the weekly fact), then the name and the menu over a heavy rule */
.kopf-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 var(--s3);
  padding: 0.4rem var(--gutter);
  background: var(--band);
  color: var(--on-band);
  font-size: var(--tiny);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.kopf-info span + span::before {
  content: "·";
  margin-right: var(--s3);
}
.kopf-info .seit,
.kopf-info .zusatz {
  display: none;
}
.kopf-info span span::before {
  content: none;
}
@media (width < 40rem) {
  .kopf-info {
    letter-spacing: 0.04em;
  }
}
@media (width >= 40rem) {
  .kopf-info {
    justify-content: flex-start;
  }
  .kopf-info .zusatz {
    display: inline;
  }
  .kopf-info .seit {
    display: inline;
    margin-left: auto;
  }
  .kopf-info .seit::before {
    content: none;
  }
}
.kopf-zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  width: min(var(--frame), 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-block: var(--s3);
  border-bottom: var(--heavy) solid var(--line);
}
.marke {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s2);
  color: var(--text);
  text-decoration: none;
}
.marke-art {
  font-size: var(--tiny);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.marke-name {
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* the navigation: capitals in one row on wide screens; on narrow ones behind the menu button as a popover panel
   (no script; Esc and a tap beside it close it). A browser without popover shows the list, so the button shows only
   where :popover-open is known. 76rem follows the nine entries' length beside the name. */
.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s1);
  padding: 0;
  list-style: none;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  padding-inline: var(--s3);
  color: var(--text);
  font-size: var(--tiny);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav a:hover {
  text-decoration: underline 3px;
  text-underline-offset: 0.4em;
}
.nav a[aria-current="page"] {
  background: var(--signal);
  color: var(--on-signal);
}
:is(.menu-open, .menu-close) {
  display: none;
  align-items: center;
  gap: var(--s2);
  min-height: var(--target);
  padding: 0 var(--s3);
  border: 2px solid var(--line);
  background: none;
  color: var(--text);
  font: 700 var(--tiny) / 1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
:is(.menu-open, .menu-close) svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}
@supports selector(:popover-open) {
  @media (width < 76rem) {
    .menu-open {
      display: inline-flex;
    }
    .nav:popover-open {
      inset: 0 0 auto;
      width: auto;
      height: auto;
      max-height: calc(100dvh - 3.5rem);
      margin: 0;
      padding: max(var(--s4), env(safe-area-inset-top)) var(--gutter) var(--s8);
      border: 0;
      border-bottom: var(--heavy) solid var(--line);
      background: var(--ground);
      color: var(--text);
      overflow-y: auto;
    }
    .nav:popover-open .menu-close {
      display: inline-flex;
      margin-left: auto;
    }
    .nav:popover-open ul {
      flex-direction: column;
      gap: 0;
      margin-top: var(--s6);
      border-top: var(--heavy) solid var(--line);
    }
    .nav:popover-open li {
      border-bottom: 1px solid var(--line-quiet);
    }
    .nav:popover-open a {
      display: flex;
      padding: 0.35rem var(--s2);
      font-family: var(--display);
      font-size: 2.2rem;
      font-weight: 400;
      line-height: 1;
      letter-spacing: 0.01em;
    }
    .nav::backdrop {
      background: rgb(0 0 0 / 0.5);
    }
  }
}
@media (width >= 76rem) {
  .nav[popover] {
    display: block;
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: visible;
    background: none;
    color: inherit;
  }
}

/* ---------- the home page: the welcome, the stage (next evening), the season band, who we are ---------- */
/* the welcome: the page's title as a word and its text up to the first rule; short on a phone, so the next evening
   stays in the first screen */
.willkommen {
  display: grid;
  gap: var(--s2);
  padding-block: var(--s4) var(--s4);
  border-bottom: 1px solid var(--line-quiet);
}
.willkommen-wort {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 9vw, 9rem);
  line-height: 0.85;
  text-transform: uppercase;
}
.willkommen-text {
  max-width: 46rem;
}
.willkommen-text > * + * {
  margin-top: var(--s2);
}
.willkommen-text :is(h2, h3) {
  font-size: clamp(1.1875rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}
.willkommen-text :is(h2, h3) strong {
  font-weight: 700;
}
.willkommen-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}
@media (width >= 60rem) {
  .willkommen {
    /* the same two columns as »Wer wir sind« below, so both texts start on one line */
    grid-template-columns: minmax(12rem, 1fr) minmax(0, 3fr);
    align-items: center;
    column-gap: var(--s12);
    padding-block: var(--s6);
  }
  .willkommen-text p {
    font-size: var(--text-size);
  }
}
.buehne {
  display: grid;
  padding-block: var(--s4) var(--s8);
}
.abend,
.abend-leer {
  grid-area: 1 / 1;
}
/* the way to the whole programme, in the stage's first line beside its label */
.buehne-alle {
  grid-area: 1 / 1;
  z-index: 1;
  justify-self: end;
  align-self: start;
  margin-top: -0.8rem;
}
/* candidates for the stage: only the first not yet passed shows (termine.js marks passed ones); with none left the
   standing line »Jeden Donnerstag 20 Uhr« holds the stage */
.abend[data-vergangen],
.abend:not([data-vergangen]) ~ .abend,
.buehne:has(.abend:not([data-vergangen])) .abend-leer {
  display: none;
}
.abend-leer {
  display: grid;
  gap: var(--s3);
}
.abend-leer-titel {
  font-family: var(--display);
  font-size: clamp(4.5rem, 21vw, 12rem);
  line-height: 0.85;
  text-transform: uppercase;
}
.abend-leer-titel span {
  display: block;
}
.abend-titel {
  font-family: var(--display);
  font-size: clamp(1.8rem, 6vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
}
.abend {
  display: grid;
  gap: var(--s3);
}
.abend-datum {
  margin-left: -0.03em;
  font-family: var(--display);
  font-size: clamp(4.5rem, 20vw, 9rem);
  line-height: 0.8;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.abend-datum .wt {
  margin-right: 0.04em;
}
.abend-text {
  display: grid;
  gap: var(--s3);
  align-content: end;
}
.abend-gaeste {
  font-family: var(--display);
  font-size: clamp(2.2rem, 9vw, 4rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.abend-gaeste p {
  margin: 0;
}
.abend-gaeste a {
  text-decoration-thickness: 0.04em;
  text-underline-offset: 0.08em;
}
.abend-ort {
  font-size: 1.125rem;
  font-weight: 600;
}
.abend-aktion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3) var(--s6);
  margin-top: var(--s2);
}
.abend-aktion .karten {
  min-height: 3.25rem;
  padding-inline: var(--s6);
  font-size: 1.0625rem;
}
@media (width >= 60rem) {
  .buehne {
    padding-block: var(--s8) var(--s12);
  }
  .abend {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: clamp(2rem, 4vw, 4.5rem);
    row-gap: var(--s4);
  }
  .abend > .kicker {
    grid-column: 1 / -1;
  }
  .abend-datum {
    font-size: clamp(7rem, 10vw, 10rem);
  }
  .abend-text {
    padding-bottom: 0.4rem;
  }
  .abend-gaeste {
    font-size: clamp(2.75rem, 3.6vw, 4rem);
  }
}

/* ticket state, in words; lime only behind a link that sells */
.karten {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: var(--target);
  padding: 0 var(--s4);
  font-size: var(--tiny);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
a.karten {
  background: var(--signal);
  color: var(--on-signal);
}
a.karten::after {
  content: "→";
  letter-spacing: 0;
}
a.karten:hover {
  text-decoration: underline 2px;
  text-underline-offset: 0.25em;
}
a.karten[data-status="wenige"] {
  box-shadow: inset 0 0 0 2px var(--on-signal);
}
span.karten {
  border: 2px solid var(--text-muted);
  color: var(--text-muted);
}

/* the season: the Jahresrückblick as a black band, its poster carrying the orange */
.saison[data-vergangen] {
  display: none;
}
.saison {
  --ring: var(--signal);
  background: var(--band);
  color: var(--on-band);
}
.saison-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s6);
  padding-block: var(--s6);
}
.saison-text {
  display: grid;
  gap: var(--s2);
  justify-items: start;
}
.saison-titel {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 9vw, 6.5rem);
  line-height: 0.92;
  text-transform: uppercase;
  text-wrap: balance;
}
.saison-titel a {
  color: inherit;
  text-decoration: none;
}
.saison-titel a:hover {
  text-decoration: underline 0.05em;
}
.saison-datum {
  font-family: var(--display);
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.saison-body {
  color: var(--on-band-muted);
  font-size: var(--small);
}
.saison-body p {
  margin: 0;
}
.saison .pfeil {
  color: var(--on-band);
}
/* the season's next show with its ticket: the first candidate not passed */
.saison-show[data-vergangen],
.saison-show:not([data-vergangen]) ~ .saison-show {
  display: none;
}
.saison-show {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1) var(--s4);
  margin-block: var(--s2);
  padding-top: var(--s3);
  border-top: 1px solid var(--on-band-muted);
}
.saison-show-was {
  flex-basis: 100%;
  color: var(--on-band-muted);
  font-size: var(--tiny);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.saison-show-wann {
  font-weight: 700;
}
.saison-plakat {
  width: clamp(6.5rem, 26vw, 19rem);
}
.saison-plakat img {
  width: 100%;
  rotate: 2deg;
  box-shadow: 0 0 0 3px var(--on-band);
}
@media (width >= 60rem) {
  .saison {
    margin-top: var(--s16);
  }
  .saison-raster {
    gap: var(--s12);
    padding-block: var(--s8);
  }
  .saison-plakat {
    margin-block: calc(-1 * var(--s16)) calc(-1 * var(--s12));
  }
}

/* the programme's rows (/termine, the season's page): date | guests and place | ticket; stacked while the column is
   narrow */
.termine {
  padding: 0;
  list-style: none;
}
.termin[data-vergangen] {
  display: none;
}
.termin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "datum karten"
    "was was";
  gap: var(--s1) var(--s4);
  align-items: center;
  padding-block: var(--s4);
  border-top: 1px solid var(--line-quiet);
}
.termin:first-child {
  border-top: 0;
}
.termin-datum {
  grid-area: datum;
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.termin-datum .bis {
  margin-left: 0.2em;
}
.termin-was {
  grid-area: was;
  display: grid;
  gap: 0.1rem;
}
.termin-gaeste,
.termin-titel {
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
}
.termin-gaeste p {
  margin: 0;
}
.termin-offen {
  color: var(--text-muted);
  font-weight: 400;
}
.termin-ort {
  color: var(--text-muted);
  font-size: var(--small);
}
.termin-hinweis {
  color: var(--text);
  font-weight: 600;
}
/* a Jahresrückblick show in the full programme: its title as a small kicker above the place */
.termin[data-reihe="saison"] .termin-titel {
  font-size: var(--small);
  letter-spacing: 0.02em;
}
.liste-titel {
  margin-top: var(--s16);
  padding-bottom: var(--s2);
  border-bottom: var(--heavy) solid var(--line);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  clear: both;
}
.liste-leer {
  color: var(--text-muted);
}
.spielplan:has(.termin:not([data-vergangen])) .liste-leer {
  display: none;
}
.termin-karten {
  grid-area: karten;
  justify-self: end;
}
@container (width >= 44rem) {
  .termin {
    grid-template-columns: 11rem minmax(0, 1fr) auto;
    grid-template-areas: "datum was karten";
    gap: var(--s6);
  }
  .termin-datum {
    font-size: 2.75rem;
  }
  .termin-gaeste,
  .termin-titel {
    font-size: 1.375rem;
  }
}

/* who we are: the rest of the page's text (after its first rule), late and quiet */
.ahoi {
  display: grid;
  gap: var(--s6);
  padding-block: var(--s8) var(--s16);
  border-top: var(--heavy) solid var(--line);
}
/* right after the black band the band is the rule */
.saison + .ahoi {
  border-top: 0;
}
@media (width >= 60rem) {
  .ahoi {
    grid-template-columns: minmax(12rem, 1fr) minmax(0, 3fr);
    gap: var(--s12);
    padding-top: var(--s12);
  }
}

/* ---------- every other page: a poster title over a heavy rule, then the text and the Terminleiste ---------- */
.seite {
  padding-block: var(--s8) var(--s16);
}
/* the text column is the container the rows and the floats measure, so both follow the room beside the Leiste */
.inhalt {
  container-type: inline-size;
  min-width: 0;
}
@media (width >= 64rem) {
  .mit-leiste {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18rem;
    column-gap: clamp(2.5rem, 4vw, 4.5rem);
    align-items: start;
  }
  .mit-leiste > .titel {
    grid-column: 1 / -1;
  }
}

/* the Terminleiste: the next dates in short, beside the text on wide screens (it stays in view while the text
   scrolls, if the window is tall enough), a short block after it on narrow ones */
.leiste {
  display: grid;
  gap: var(--s3);
  justify-items: start;
  margin-top: var(--s16);
  padding-top: var(--s3);
  border-top: var(--heavy) solid var(--line);
}
.leiste > * {
  min-width: 0;
}
.leiste-titel {
  font-family: var(--display);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
}
.leiste-liste {
  justify-self: stretch;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  column-gap: var(--s8);
  padding: 0;
  list-style: none;
}
.kurz {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--s3);
  padding-block: var(--s2) var(--s3);
  border-top: 1px solid var(--line-quiet);
}
.kurz > * {
  grid-column: 1 / -1;
}
/* four dates, three on a phone: counted among those termine.js has not marked passed */
.kurz[data-vergangen],
.kurz:nth-child(n + 4 of :not([data-vergangen])) {
  display: none;
}
.leiste:has(.kurz:not([data-vergangen])) .leiste-leer,
.leiste-saison[data-vergangen] {
  display: none;
}
.kurz-datum {
  grid-column: 1;
  font-family: var(--display);
  font-size: 1.9rem;
  line-height: 1.1;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.kurz-was {
  font-size: var(--small);
  font-weight: 700;
  line-height: 1.35;
}
.kurz-was p {
  margin: 0;
}
.kurz-offen {
  color: var(--text-muted);
  font-weight: 400;
}
.kurz-ort,
.leiste-leer {
  color: var(--text-muted);
  font-size: var(--tiny);
}
/* the ticket word beside the date: a small lime chip with a full-size target */
.kurz-karten {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.kurz-karten > * {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  padding-inline: var(--s2);
  border-block: 8px solid transparent;
  background-clip: padding-box;
}
.kurz-karten a {
  background-color: var(--signal);
  color: var(--on-signal);
  text-decoration: none;
}
.kurz-karten a::after {
  content: "→";
  margin-left: var(--s1);
}
.kurz-karten a:hover {
  text-decoration: underline 2px;
  text-underline-offset: 0.25em;
}
.kurz-karten span {
  padding-inline: 0;
  color: var(--text-muted);
}
/* the season as one line on the black band */
.leiste-saison {
  justify-self: stretch;
}
.leiste-saison a {
  --ring: var(--signal);
  display: grid;
  gap: 0.15rem;
  padding: var(--s3) var(--s4);
  background: var(--band);
  color: var(--on-band);
  font-size: var(--tiny);
  text-decoration: none;
}
.leiste-saison a:focus-visible {
  outline-offset: -5px;
}
.leiste-saison strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1;
  text-transform: uppercase;
}
.leiste-saison a:hover strong {
  text-decoration: underline 2px;
  text-underline-offset: 0.12em;
}
.leiste-saison .kicker {
  font-size: 0.6875rem;
}
.leiste-saison span:last-child {
  color: var(--on-band-muted);
}
@media (width >= 64rem) {
  .leiste {
    margin-top: 0;
  }
  .kurz:nth-child(n + 4 of :not([data-vergangen])) {
    display: grid;
  }
  .kurz:nth-child(n + 5 of :not([data-vergangen])) {
    display: none;
  }
  .kurz:first-child {
    border-top: 0;
  }
}
@media (width >= 64rem) and (height >= 56rem) {
  .leiste {
    position: sticky;
    top: var(--s4);
  }
}

/* the paid ad: the word »Anzeige« and the banner on its own white card (the banner is drawn on white); in the
   Leiste on wide screens, else in a strip above the foot */
.anzeige {
  display: grid;
  gap: var(--s1);
  width: min(100%, 20rem);
}
.anzeige-wort {
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.anzeige a {
  display: block;
  padding: var(--s2);
  border: 1px solid var(--text-muted);
  background: #fff;
}
.anzeige a:hover {
  outline: 2px solid var(--line);
}
.anzeige img {
  width: 100%;
}
.leiste .anzeige {
  display: none;
}
.anzeige-band {
  padding-block: var(--s8);
  border-top: 1px solid var(--line-quiet);
}
.anzeige-band .anzeige {
  margin-inline: auto;
}
@media (width >= 64rem) {
  .leiste .anzeige {
    display: grid;
    margin-top: var(--s8);
  }
  body:has(.leiste) > .anzeige-band {
    display: none;
  }
}
.titel {
  margin-bottom: var(--s8);
  padding-bottom: var(--s3);
  border-bottom: var(--heavy) solid var(--line);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.75rem, 17vw, 11rem);
  line-height: 0.85;
  text-transform: uppercase;
  hyphens: auto;
  overflow-wrap: anywhere;
}
@media (width >= 60rem) {
  .seite {
    padding-block: var(--s12) var(--s24);
  }
  .titel {
    margin-bottom: var(--s12);
  }
  .inhalt > .prose {
    max-width: 68rem;
  }
}

/* the programme on /termine, by month */
.spielplan {
  display: grid;
  gap: var(--s12);
  margin-top: var(--s12);
}
.monat-titel {
  padding-bottom: var(--s2);
  border-bottom: 3px solid var(--line);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 7vw, 3.5rem);
  line-height: 1;
  text-transform: uppercase;
}
.monat:not(:has(.termin:not([data-vergangen]))) {
  display: none;
}

/* ---------- prose: Markdown by structure ---------- */
.prose {
  min-width: 0;
}
.prose > * {
  max-width: var(--measure);
}
.prose > * + * {
  margin-top: var(--s4);
}
.prose h2 {
  margin-top: var(--s12);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.25rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-wrap: balance;
}
.prose h2:has(+ h3) {
  padding-bottom: var(--s2);
  border-bottom: 3px solid var(--line);
}
.prose h3 {
  margin-top: var(--s12);
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--h3);
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
}
/* a section starts below the image of the one before, whatever the lengths of text and image */
.prose :is(h2, h3) {
  clear: both;
}
.prose > :first-child {
  margin-top: 0;
}
.prose > :is(h2, h3) + * {
  margin-top: var(--s3);
}
.prose h2 strong {
  font-weight: 400;
}
.prose p,
.prose li {
  hyphens: auto;
}
.prose a {
  hyphens: manual;
}
.prose ul,
.prose ol {
  padding-left: 1.2em;
}
.prose li + li {
  margin-top: var(--s2);
}
.prose hr {
  clear: both;
  width: 100%;
  max-width: var(--measure);
  height: 0;
  margin-block: var(--s12);
  margin-inline: 0;
  border: 0;
  border-top: 3px solid var(--line);
}
/* a list of dates written by hand (the Jahresrückblick's shows): ruled rows, the bold date in display type */
.prose ul:has(> li > strong:first-child) {
  padding: 0;
  list-style: none;
  border-top: 3px solid var(--line);
}
.prose li:has(> strong:first-child) {
  margin: 0;
  padding-block: var(--s3);
  border-bottom: 1px solid var(--line-quiet);
  hyphens: manual;
}
.prose li > strong:first-child {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
/* images. A picture is a paragraph that holds only an image (or a linked one), with or without its caption: the
   line right under the image in *asterisks* (»Foto: …«). The first block of a page floats right beside the text when
   the column is wide (poster, press photo); one right after a heading floats right small (covers, portraits); every
   other one stays in the column. Any ratio fits: the width is set, the height follows. A photo comes as <picture>
   (AVIF sizes around the JPEG); it counts as the image and lends its box to the <img> inside. The width comes from
   the image's width attribute or the rules below, never from the file: a lazy photo is laid out before its file is
   known (sizes="auto"). A tall one stays under 80vh by drawing it smaller inside its box (object-fit). */
.prose img {
  max-height: 80vh;
  object-fit: contain;
  object-position: left top;
}
.prose picture {
  display: contents;
}
.prose > p:is(:has(> :is(img, picture):only-child), :has(> a:only-child > :is(img, picture):only-child), :has(> :is(img, picture, a:has(> :is(img, picture):only-child)):first-child + em:last-child)) {
  max-width: min(100%, 48rem);
}
.prose p > :is(img, picture, a:has(> :is(img, picture):only-child)):first-child + em:last-child {
  display: block;
  margin-top: var(--s1);
  color: var(--text-muted);
  font-size: var(--tiny);
  font-style: normal;
  line-height: 1.35;
  hyphens: manual;
}
.prose > :is(h2, h3) + p:is(:has(> :is(img, picture):only-child), :has(> a:only-child > :is(img, picture):only-child), :has(> :is(img, picture, a:has(> :is(img, picture):only-child)):first-child + em:last-child)) {
  float: right;
  width: clamp(6.5rem, 30%, 13rem);
  max-width: none;
  margin: var(--s1) 0 var(--s4) var(--s4);
}
.prose > :is(h2, h3) + p > img:first-child:only-of-type,
.prose > :is(h2, h3) + p > picture:first-child:only-of-type > img,
.prose > :is(h2, h3) + p > a:first-child > img:only-child,
.prose > :is(h2, h3) + p > a:first-child > picture:only-child > img {
  width: 100%;
  max-height: none;
}
@container (width >= 44rem) {
  .prose > p:first-child:is(:has(> :is(img, picture):only-child), :has(> a:only-child > :is(img, picture):only-child), :has(> :is(img, picture, a:has(> :is(img, picture):only-child)):first-child + em:last-child)) {
    float: right;
    width: min(34%, 22rem);
    max-width: none;
    margin: 0 0 var(--s8) var(--s8);
  }
  .prose > p:first-child > img:first-child:only-of-type,
  .prose > p:first-child > picture:first-child:only-of-type > img,
  .prose > p:first-child > a:first-child > img:only-child,
  .prose > p:first-child > a:first-child > picture:only-child > img {
    width: 100%;
    max-height: none;
  }
  .prose > :is(h2, h3) + p:is(:has(> :is(img, picture):only-child), :has(> a:only-child > :is(img, picture):only-child), :has(> :is(img, picture, a:has(> :is(img, picture):only-child)):first-child + em:last-child)) {
    width: min(30%, 15rem);
    margin-left: var(--s8);
  }
}
/* »Foto folgt«: the placeholder picture media/foto-folgt.png (a grey »B« on nothing) on a quiet ground, so a
   missing portrait reads as a reserved place */
.prose img[src*="/foto-folgt-"] {
  background: var(--line-quiet);
}
/* a video: a self-hosted thumbnail linked to YouTube, labelled, never an iframe */
.prose a:has(> :is(img, picture)):is([href^="https://www.youtube.com/"], [href^="https://youtu.be/"]) {
  position: relative;
  display: block;
  max-width: 40rem;
  text-decoration: none;
}
.prose a:is([href^="https://www.youtube.com/"], [href^="https://youtu.be/"]) > img,
.prose a:is([href^="https://www.youtube.com/"], [href^="https://youtu.be/"]) > picture > img {
  width: 100%;
}
.prose a:has(> :is(img, picture)):is([href^="https://www.youtube.com/"], [href^="https://youtu.be/"])::after {
  content: "▶ Auf YouTube ansehen";
  position: absolute;
  left: 0;
  bottom: 0;
  padding: var(--s2) var(--s4);
  background: var(--band);
  color: var(--on-band);
  font-size: var(--tiny);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.prose > :is(h2, h3) + p:has(> a:is([href^="https://www.youtube.com/"], [href^="https://youtu.be/"]) > :is(img, picture)) {
  float: none;
  width: auto;
  max-width: 40rem;
  margin-left: 0;
}

/* ---------- the foot: the newsletter, the evening, elsewhere, legal, scheme ---------- */
.fuss {
  --ring: var(--signal);
  background: var(--band);
  color: var(--on-band);
}
.fuss a {
  color: var(--on-band);
}
.fuss-raster {
  display: grid;
  gap: var(--s8);
  padding-block: var(--s12) var(--s6);
}
.fuss h2 {
  margin-bottom: var(--s2);
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 1;
  text-transform: uppercase;
}
.fuss-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s6);
  padding: 0;
  list-style: none;
}
.fuss-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  font-weight: 700;
}
.fuss-ende {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--s8);
  padding-top: var(--s4);
  border-top: 1px solid var(--on-band-muted);
  color: var(--on-band-muted);
  font-size: var(--small);
}
@media (width >= 60rem) {
  .fuss-raster {
    grid-template-columns: 1.4fr 1fr auto;
    column-gap: var(--s12);
  }
  .fuss-raster > .fuss-links {
    flex-direction: column;
  }
  .fuss-ende {
    grid-column: 1 / -1;
  }
}

/* the visitor's switch, small and quiet */
.scheme {
  display: flex;
  align-items: center;
  gap: 0 var(--s3);
  margin-left: auto;
  padding: 0;
  border: 0;
  font-size: var(--tiny);
}
.scheme legend {
  float: left;
  padding: 0;
}
.scheme label {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  cursor: pointer;
}
.scheme input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.scheme label:has(:checked) {
  color: var(--on-band);
  text-decoration: underline 2px var(--signal);
  text-underline-offset: 0.35em;
}
.scheme label:has(:focus-visible) {
  outline: 3px solid var(--ring);
  outline-offset: 1px;
}

/* the Vorschau only */
.draft-note {
  margin-top: var(--s4);
  padding: var(--s2) var(--s3);
  border: 2px dashed var(--line);
  font-size: var(--small);
}
.draft {
  color: var(--text-muted);
  font-size: var(--tiny);
  font-weight: 700;
  text-transform: uppercase;
}

@media (forced-colors: active) {
  a.karten,
  .nav a[aria-current="page"] {
    border: 2px solid LinkText;
  }
}
}

/* a gallery: several images in one paragraph (Frank's Gästegalerie on /termine) form one row that scrolls sideways;
   every photo has the same height, so the weekly guest shots line up whatever their width. galerie.js shuffles the
   order; without it the order is the page's. */
@layer components {
  .prose > p:has(> :is(img, picture) + :is(img, picture)) {
    display: flex;
    gap: var(--s2);
    max-width: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    padding-bottom: var(--s2);
  }
  .prose > p:has(> :is(img, picture) + :is(img, picture)) > img,
  .prose > p:has(> :is(img, picture) + :is(img, picture)) > picture > img {
    flex: none;
    width: auto;
    height: clamp(9rem, 30vw, 14rem);
    max-height: none;
    scroll-snap-align: start;
  }
}
