/* Collegium Vocale Blieskastel – colours taken from the choir logo (aubergine #682868) */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif";
  src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif";
  src: url("../fonts/source-serif-4-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif";
  src: url("../fonts/source-serif-4-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --plum: #682868;          /* logo */
  --plum-dark: #4a1b4a;
  --plum-tint: #f5eff5;
  --lavender: #b8a8b8;      /* logo, secondary */
  --ink: #241c27;
  --ink-soft: #4f4654;
  --muted: #776e7b;
  --paper: #fbfaf8;         /* warm off-white page background */
  --card: #ffffff;
  --line: #e8e2e8;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif", Georgia, serif;
  --measure: 42rem;
  --wide: 66rem;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(36, 28, 39, .06), 0 8px 24px rgba(36, 28, 39, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--plum-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; border-radius: 2px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 20; }
.skip-link:focus { left: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout helpers ---------- */

main { flex: 1 0 auto; }   /* pushes the footer to the bottom on short pages */

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1rem; }
.wrap--narrow { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section + .section { padding-top: 0; }

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: .6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.topbar__brand { display: block; flex-shrink: 0; }
.topbar__brand img { height: 76px; width: auto; }
.topbar__nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.topbar__nav a {
  display: block;
  padding: .5rem .8rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.topbar__nav a:hover { color: var(--plum); background: var(--plum-tint); }
.topbar__nav a[aria-current] { color: #fff; background: var(--plum); }

/* Desktop: logo as a white card hanging below the bar; tucks in after scrolling (js/header.js) */
@media (min-width: 46.01rem) {
  .topbar__inner { min-height: 64px; padding-top: 0; padding-bottom: 0; }
  .topbar__brand {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    margin-bottom: -48px;
    padding: .8rem 1rem 1rem;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 28px rgba(36, 28, 39, .14);
    transition: margin .25s ease, padding .25s ease, box-shadow .25s ease;
  }
  .topbar__brand img { height: 88px; transition: height .25s ease; }
  .is-scrolled .topbar__brand { margin-bottom: 0; padding: .45rem .25rem; box-shadow: none; }
  .is-scrolled .topbar__brand img { height: 46px; }
}
@media (min-width: 46.01rem) and (prefers-reduced-motion: reduce) {
  .topbar__brand, .topbar__brand img { transition: none; }
}

@media (max-width: 46rem) {
  .topbar__inner { flex-direction: column; align-items: stretch; gap: .25rem; padding: .4rem 0 .35rem; }
  .topbar__brand { align-self: center; }
  .topbar__brand img { height: 44px; }
  /* Items wrap onto a second line on very narrow phones instead of being cut off */
  .topbar__nav ul { flex-wrap: wrap; justify-content: center; padding: 0 .25rem; gap: .1rem 0; }
  .topbar__nav a { padding: .4rem .45rem; font-size: .8rem; }
}

/* Very narrow phones (e.g. 320 px): two balanced rows, 3 + 2 */
@media (max-width: 23rem) {
  .topbar__nav ul { max-width: 17rem; margin: 0 auto; }
}

/* ---------- Hero (home page) ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(20rem, 62vh, 36rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--plum-dark);
  color: #fff;
}
.hero__image, .hero > picture { position: absolute; inset: 0; z-index: -2; }
.hero__image, .hero > picture img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(36, 18, 36, 0) 30%, rgba(36, 18, 36, .78) 100%);
}
.hero__text { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 2rem 1rem clamp(2rem, 5vw, 3.5rem); }
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.hero p { margin: .6rem 0 0; font-family: var(--sans); font-size: clamp(.95rem, 2.4vw, 1.15rem); font-weight: 500; opacity: .95; }

/* ---------- Typography ---------- */

h1, h2, h3, h4 { font-family: var(--sans); color: var(--ink); line-height: 1.25; font-weight: 700; margin: 2em 0 .6em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
.page-title {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.label, .eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--plum);
}
.label { margin: 2.5rem 0 1rem; }
.eyebrow { margin: 0 0 .5rem; }

p, ul, ol, blockquote, figure, dl { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.3em; }
.prose li + li { margin-top: .25em; }
strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
mark { background: var(--plum-tint); color: var(--plum-dark); padding: 0 .2em; border-radius: 3px; }

.prose blockquote {
  margin-left: 0;
  padding: .25rem 0 .25rem 1.4rem;
  border-left: 3px solid var(--lavender);
  color: var(--ink-soft);
  font-style: italic;
}
.prose blockquote p:last-child { font-style: normal; font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.prose img { border-radius: var(--radius); margin: 1.5rem auto; }

/* Article pages: photos and galleries are wider than the text column */
.prose--article p:has(> picture:only-child, > img:only-child),
.prose--article > figure,
.prose--article .gallery {
  width: min(58rem, calc(100vw - 2rem));
  margin: 2.25rem 0 2.25rem calc(50% - min(29rem, 50vw - 1rem));
}
.prose--article p:has(> picture:only-child, > img:only-child) img,
.prose--article > figure img { width: 100%; margin: 0; }
figcaption { font-family: var(--sans); font-size: .85rem; color: var(--muted); margin-top: .4rem; }

.page__image, .wrap > picture img {
  width: 100%;
  max-height: 30rem;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 auto 2.5rem;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  padding: .7rem 1.25rem;
  border: 2px solid var(--plum);
  border-radius: 999px;
  background: var(--plum);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.2;
  text-decoration: none;
}
.button:hover { background: var(--plum-dark); border-color: var(--plum-dark); color: #fff; }
.button--outline { background: transparent; color: var(--plum); }
.button--outline:hover { background: var(--plum-tint); color: var(--plum-dark); border-color: var(--plum); }
.buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0 0; }

.more { margin: 1.25rem 0 0; font-family: var(--sans); font-weight: 600; font-size: .95rem; }
.more a { text-decoration: none; }
.note {
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
}

/* ---------- Next concert ---------- */

.featured {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.featured__image { display: block; min-height: 18rem; }
.featured__image img, .featured__image picture { width: 100%; height: 100%; object-fit: cover; }
.featured__body { padding: clamp(1.5rem, 4vw, 2.5rem); align-self: center; }
.featured__title { margin: 0 0 .8rem; font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 3.6vw, 2.2rem); line-height: 1.15; }
.featured__title a { color: var(--ink); text-decoration: none; }
.featured__title a:hover { color: var(--plum); }
.featured__when { margin: 0 0 .3rem; font-family: var(--sans); font-weight: 600; font-size: 1.02rem; }
.featured__where, .featured__price { margin: 0; font-family: var(--sans); font-size: .95rem; color: var(--ink-soft); }
@media (max-width: 46rem) {
  .featured { grid-template-columns: 1fr; }
  .featured__image { min-height: 0; aspect-ratio: 16 / 10; }
}

.subscribe { margin: 1.25rem 0 0; font-family: var(--sans); font-size: .9rem; color: var(--muted); }
.subscribe a { font-weight: 600; }

/* ---------- Konzerte page: section headings ---------- */

.abschnitt { margin: 0 0 .35rem; font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 4vw, 2.15rem); }
.upcoming .abschnitt { margin: 2rem 0 1.4rem; }
.abschnitt__unter { margin: 0 0 1rem; font-family: var(--sans); font-size: .92rem; color: var(--muted); }
.rueckblick { margin-top: clamp(4rem, 9vw, 6rem); }

/* ---------- Upcoming: full-width cards with a coloured date block (like the tickets' stub) ---------- */

.termine-karten { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.termin-karte a {
  display: flex;
  align-items: stretch;
  min-height: 5.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.termin-karte a:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--f, var(--plum)) 35%, #fff); color: var(--ink); }
.termin-karte__datum {
  flex: 0 0 5.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .6rem .3rem;
  /* faint diagonal hatching as a texture */
  background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(255, 255, 255, .07) 6px 7px), var(--f, var(--plum));
  color: #fff;
  font-family: var(--sans);
  line-height: 1.1;
  text-align: center;
}
.termin-karte__wochentag, .termin-karte__monat { font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.termin-karte__tag { margin: .1rem 0; font-family: var(--serif); font-size: 1.9rem; font-weight: 600; line-height: 1; }
.termin-karte__text { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: .15rem; padding: .8rem 1.25rem; }
.termin-karte__art { font-family: var(--sans); font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--f, var(--plum)); }
.termin-karte__titel { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; line-height: 1.25; hyphens: auto; -webkit-hyphens: auto; }
.termin-karte__meta { font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); }
/* Arrow: the card leads to the concert page */
.termin-karte__pfeil {
  flex: 0 0 3.25rem;
  display: grid;
  place-items: center;
  color: var(--f, var(--plum));
  transition: background .35s ease, color .35s ease;
}
.termin-karte__pfeil::before {
  content: "";
  width: 1.35rem;
  height: 1.35rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 5.5l6.5 6.5-6.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 5.5l6.5 6.5-6.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .35s ease;
}
.termin-karte a:hover .termin-karte__pfeil { background: color-mix(in srgb, var(--f, var(--plum)) 9%, #fff); }
.termin-karte a:hover .termin-karte__pfeil::before { transform: translateX(3px); }
@media (max-width: 30rem) {
  .termin-karte__datum { flex-basis: 4.4rem; }
  .termin-karte__tag { font-size: 1.6rem; }
  .termin-karte__text { padding: .75rem .9rem; }
  .termin-karte__titel { font-size: 1.05rem; }
  .termin-karte__pfeil { flex-basis: 2.25rem; }
  .termin-karte__pfeil::before { width: 1.1rem; height: 1.1rem; }
}

/* ---------- Concert tickets (review) ---------- */

.ticket {
  position: relative;
  filter: drop-shadow(0 3px 8px rgba(36, 28, 39, .12));
  transition: transform .4s ease, filter .4s ease;
}
.ticket:hover { transform: translateY(-3px); filter: drop-shadow(0 10px 16px rgba(36, 28, 39, .15)); }
.ticket__karte {
  --abschnitt: 5.25rem;
  --kerbe-x: calc(100% - var(--abschnitt));   /* where the perforation is */
  position: relative;
  display: flex;
  height: 100%;
  min-height: 7.5rem;
  font-family: var(--sans);
  /* notches at the top and bottom of the perforation */
  -webkit-mask:
    radial-gradient(circle at var(--kerbe-x) 0, transparent .6rem, #000 .63rem) top / 100% 51% no-repeat,
    radial-gradient(circle at var(--kerbe-x) 100%, transparent .6rem, #000 .63rem) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle at var(--kerbe-x) 0, transparent .6rem, #000 .63rem) top / 100% 51% no-repeat,
    radial-gradient(circle at var(--kerbe-x) 100%, transparent .6rem, #000 .63rem) bottom / 100% 51% no-repeat;
}
.ticket__haupt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .2rem;
  padding: 1rem 1.3rem 1rem 1.4rem;
  border-radius: 16px 0 0 16px;
  /* fine security-print pattern and a thin inner frame */
  background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(104, 40, 104, .028) 6px 7px), #fffdf7;
  box-shadow: inset 0 0 0 .4rem #fffdf7, inset 0 0 0 calc(.4rem + 1px) color-mix(in srgb, var(--f) 28%, transparent);
}
.ticket__art { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--f); }
.ticket__titel { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; line-height: 1.25; color: var(--ink); text-decoration: none; }
.ticket__titel::after { content: ""; position: absolute; inset: 0; }   /* the whole ticket is clickable */
.ticket:hover .ticket__titel { color: var(--plum); }
.ticket__ort { font-size: .85rem; color: var(--ink-soft); }
.ticket__programm { font-size: .8rem; line-height: 1.4; color: var(--muted); }
.ticket__tag--monat { font-size: 1.35rem; }
/* Older concerts without a page: no lift, nothing to click */
.ticket--ohne-link:hover { transform: none; filter: drop-shadow(0 3px 8px rgba(36, 28, 39, .12)); }
.ticket__presse { position: relative; z-index: 1; align-self: flex-start; margin-top: .15rem; font-size: .78rem; font-weight: 600; }
.ticket__abschnitt {
  flex: 0 0 var(--abschnitt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .75rem .4rem;
  background: var(--f);
  color: #fff;
  border-left: 2px dotted rgba(255, 255, 255, .6);
  border-radius: 0 16px 16px 0;
  line-height: 1.1;
  text-align: center;
}
.ticket__wochentag, .ticket__monat { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ticket__tag { margin: .1rem 0; font-family: var(--serif); font-size: 2.2rem; font-weight: 600; line-height: 1; }
.ticket__zeit { margin-top: .4rem; font-size: .72rem; opacity: .85; }
.ticket__stempel {
  position: absolute;
  right: calc(var(--abschnitt) + 1rem);
  bottom: .9rem;
  padding: .15rem .55rem;
  border: 2px solid #b3261e;
  border-radius: 4px;
  color: #b3261e;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  transform: rotate(-10deg);
  opacity: .8;
}
.ticket--abgesagt .ticket__titel { color: var(--muted); }

/* Review tickets right of the line: stub on the left, towards the line */
.tickets .ticket:nth-child(even of .ticket:not([hidden])) .ticket__karte { --kerbe-x: var(--abschnitt); flex-direction: row-reverse; }
.tickets .ticket:nth-child(even of .ticket:not([hidden])) .ticket__haupt { border-radius: 0 16px 16px 0; }
.tickets .ticket:nth-child(even of .ticket:not([hidden])) .ticket__abschnitt { border-left: 0; border-right: 2px dotted rgba(255, 255, 255, .6); border-radius: 16px 0 0 16px; }
.tickets .ticket:nth-child(even of .ticket:not([hidden])) .ticket__stempel { right: 1rem; }

/* Home page: the latest tickets side by side */
.tickets-reihe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; }

/* Glide in while scrolling (js/einblenden.js sets the classes) */
.einblenden .ticket.sichtbar .ticket__karte { transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .3, 1); }   /* hiding is instant, only showing animates */
.einblenden .ticket:not(.sichtbar) .ticket__karte { opacity: 0; transform: translate(var(--von, 0), 1.5rem); }

/* ---------- Review: tickets along a winding timeline, one colour per year ---------- */

.zeitstrahl { position: relative; padding-bottom: 2rem; }
.zeitstrahl::before {   /* the winding line */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 12px);
  width: 24px;
  background: var(--lavender);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='160'%3E%3Cpath d='M12 0C22 40 2 120 12 160' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") repeat-y;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='160'%3E%3Cpath d='M12 0C22 40 2 120 12 160' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") repeat-y;
  opacity: .7;
}
.archiv__zahl { position: relative; display: flex; justify-content: center; margin: 3rem 0 1.75rem; }
.archiv__zahl span {
  padding: .1em .55em .2em;
  background: var(--paper);   /* interrupts the line */
  color: var(--f);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  line-height: 1.2;
  text-decoration: underline wavy color-mix(in srgb, var(--f) 45%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: .28em;
}

/* Button that opens the older years (concerts from the old website's chronicle) */
.zeitstrahl__aelter > summary { position: relative; display: flex; justify-content: center; margin: 3rem 0 1rem; list-style: none; cursor: pointer; }
.zeitstrahl__aelter > summary::-webkit-details-marker { display: none; }
.zeitstrahl__aelter > summary span {
  padding: .65rem 1.3rem;
  background: var(--paper);
  border: 1.5px solid var(--lavender);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 600;
  color: var(--plum);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.zeitstrahl__aelter > summary:hover span, .zeitstrahl__aelter > summary:focus-visible span { background: var(--plum); border-color: var(--plum); color: #fff; }
.zeitstrahl__aelter[open] > summary { display: none; }

/* Tickets hang alternately left and right of the line and interlock */
.tickets { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tickets .ticket { width: calc(50% - 2.5rem); align-self: flex-start; --von: -.75rem; }   /* small enough to stay inside the page margin */
.tickets .ticket:nth-child(even of .ticket:not([hidden])) { align-self: flex-end; --von: .75rem; }
.tickets .ticket:not([hidden]) ~ .ticket { margin-top: -2.75rem; }   /* every visible ticket after the first */
.tickets .ticket::before {   /* dot on the line */
  content: "";
  position: absolute;
  top: calc(50% - 8px);
  right: calc(-2.5rem - 8px);
  width: 16px;
  height: 16px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--f);
}
.tickets .ticket:nth-child(even of .ticket:not([hidden]))::before { right: auto; left: calc(-2.5rem - 8px); }

/* Phones: the line runs down the left edge, tickets follow it and glide in from below */
@media (max-width: 46rem) {
  .zeitstrahl::before { left: .25rem; }
  .archiv__zahl { justify-content: flex-start; }
  .zeitstrahl__aelter > summary { justify-content: flex-start; padding-left: 1.6rem; }
  .tickets .ticket, .tickets .ticket:nth-child(even of .ticket:not([hidden])) { width: auto; align-self: stretch; margin-left: 2.4rem; --von: 0; }
  .tickets .ticket:not([hidden]) ~ .ticket { margin-top: 1rem; }
  .tickets .ticket::before, .tickets .ticket:nth-child(even of .ticket:not([hidden]))::before { left: calc(-2.4rem + 8px); right: auto; }
  /* all stubs towards the line on the left */
  .tickets .ticket .ticket__karte { --kerbe-x: var(--abschnitt); flex-direction: row-reverse; }
  .tickets .ticket .ticket__haupt { border-radius: 0 16px 16px 0; }
  .tickets .ticket .ticket__abschnitt { border-left: 0; border-right: 2px dotted rgba(255, 255, 255, .6); border-radius: 16px 0 0 16px; }
  .tickets .ticket .ticket__stempel { right: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ticket, .termin-karte a, .termin-karte__pfeil, .termin-karte__pfeil::before { transition: none; }
}

/* ---------- Quote ---------- */

.quote { text-align: center; }
.quote figure { max-width: 50rem; }
.quote blockquote {
  margin: 0 auto 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  line-height: 1.4;
  color: var(--plum-dark);
}
.quote figcaption { font-size: .85rem; letter-spacing: .02em; }

/* ---------- Intro & join ---------- */

.intro .prose h2 { margin-top: 0; font-family: var(--serif); font-weight: 600; font-size: 1.8rem; }
.join__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: clamp(1.25rem, 4vw, 2.5rem);
  padding-bottom: clamp(1.25rem, 4vw, 2.5rem);
  background: var(--plum-tint);
  border-radius: var(--radius);
}
.join__image, .join__inner > picture img { width: 100%; border-radius: var(--radius); }
.join__text h2 { margin: 0 0 .8rem; font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 3.6vw, 2.1rem); }
.join__facts { font-family: var(--sans); font-weight: 600; color: var(--plum-dark); }
@media (max-width: 46rem) { .join__inner { grid-template-columns: 1fr; } }
@media (min-width: 66rem) { .join__inner { padding-left: 2.5rem; padding-right: 2.5rem; } }

/* ---------- Concert page ---------- */

.vorbei { display: inline-block; margin: -.4rem 0 1.25rem; padding: .3rem .85rem; background: var(--plum-tint); border-radius: 999px; font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); }
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
  padding: 1.15rem 1.35rem;
  margin: 0 0 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.facts dt { font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: .1rem 0 0; font-family: var(--sans); font-weight: 600; font-size: .98rem; }
.facts__link { display: inline-block; margin-top: .2rem; font-weight: 500; font-size: .85rem; }
@media (max-width: 30rem) { .facts { grid-template-columns: 1fr; gap: .8rem; } }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0 0 2.25rem; }
.actions__share { font-family: var(--sans); font-size: .88rem; color: var(--muted); }
.actions__share a { margin-left: .5rem; font-weight: 600; }
.back { margin-top: 3rem; font-family: var(--sans); font-size: .9rem; }

/* ---------- Press page: material box beside the quotes ---------- */

.pressekasten {
  margin: 0 0 2rem;
  padding: 1.25rem 1.3rem 1.3rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  font-family: var(--sans);
  font-size: .9rem;
  line-height: 1.5;
}
.prose .pressekasten h2 { margin: 0 0 .5rem; font-size: 1.1rem; }
.prose .pressekasten p { margin: 0 0 1rem; }
.pressekasten__fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; margin: 0 0 1.1rem; }
.pressekasten__fotos a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; }
.pressekasten__fotos img, .pressekasten__fotos picture { width: 100%; height: 100%; margin: 0; object-fit: cover; border-radius: 0; transition: transform .35s ease; }
.pressekasten__fotos a:hover img { transform: scale(1.06); }
.pressekasten .button { display: block; text-align: center; }
.prose .pressekasten p.pressekasten__kontakt { margin: 0; font-size: .82rem; color: var(--muted); }
/* Wide screens: float to the right, reaching into the page margin */
@media (min-width: 68rem) {
  .pressekasten { float: right; width: 18rem; margin: .4rem -11rem 1.5rem 2rem; }
}

/* ---------- Gallery & audio ---------- */

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .75rem; margin: 1.5rem 0; }
.gallery a { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); }
.gallery img, .gallery picture { width: 100%; height: 100%; margin: 0; object-fit: cover; border-radius: 0; }

.audio-list { display: grid; gap: .75rem; margin: 1.5rem 0 2rem; }
.track { margin: 0; padding: .8rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.track figcaption { margin: 0 0 .5rem; font-weight: 600; color: var(--ink); }
.track audio { width: 100%; height: 2.5rem; }

/* ---------- Repertoire (Über uns) ---------- */

/* One colour per composer (slot computed at build time), dark enough for white text */
.farbe-0 { --f: #682868; } .farbe-1 { --f: #a35069; } .farbe-2 { --f: #5b7a5e; } .farbe-3 { --f: #9a6524; }
.farbe-4 { --f: #4f6d8f; } .farbe-5 { --f: #2f6f6d; } .farbe-6 { --f: #8c2f39; } .farbe-7 { --f: #3d3346; }

.repertoire { margin: 2rem 0 0; }
.repertoire ul { list-style: none; margin: 0; padding: 0; }
.prose .repertoire li + li { margin-top: 0; }

/* Composer cloud: bubble size follows how often a composer appears, the biggest in the middle */
.wolke { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .55rem .45rem; margin: 0 0 1rem !important; }
.wolke__blase {
  padding: .35em .85em;
  border-radius: 999px;
  background: color-mix(in srgb, var(--f) 12%, #fff);
  color: var(--f);
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}
.wolke__blase.s1 { font-size: .8rem; }
.wolke__blase.s2 { font-size: 1rem; }
.wolke__blase.s3 { font-size: 1.3rem; }
.wolke__blase.s4 { font-size: 1.75rem; background: var(--f); color: #fff; }
.wolke__blase.s5 { font-size: 2.6rem; padding: .3em .7em; background: var(--f); color: #fff; }

/* Tickets: coloured stub, perforation, notched edges, pinned slightly askew */
.prose .karten__jahr { margin: 2rem 0 .8rem; font-family: var(--serif); font-weight: 600; font-size: 1.35rem; color: var(--plum); }
.karten { display: flex; flex-wrap: wrap; gap: .9rem 1rem; }
.karte {
  position: relative;
  display: flex;
  width: min(100%, 19.5rem);
  min-height: 5.25rem;
  font-family: var(--sans);
  filter: drop-shadow(0 2px 3px rgba(36, 28, 39, .14));
  transition: transform .2s ease;
}
.karte:nth-child(3n + 1) { transform: rotate(-1.1deg); }
.karte:nth-child(3n + 2) { transform: rotate(.7deg); }
.karte:nth-child(3n) { transform: rotate(-.3deg); }
.karte:has(.karte__titel[href]):hover { transform: rotate(0) scale(1.03); }
.karte__abriss, .karte__haupt {
  -webkit-mask: radial-gradient(circle at var(--x) 50%, transparent .55rem, #000 .58rem);
  mask: radial-gradient(circle at var(--x) 50%, transparent .55rem, #000 .58rem);
}
.karte__abriss {
  --x: 100%;   /* the stub is rotated, so its outer edge is on the right */
  display: grid;
  place-items: center;
  flex: 0 0 2.5rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: var(--f);
  color: #fff;
  border-radius: 0 6px 6px 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.karte__haupt {
  --x: 100%;
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: .65rem 1.4rem .65rem 1rem;
  background: #fffdf7;
  border-left: 2px dashed #e3d6c6;
  border-radius: 0 6px 6px 0;
}
.karte--reise .karte__haupt { background: #f3f7fa; }
.karte small { font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--f); }
.karte__titel { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; font-family: var(--serif); font-weight: 600; font-size: 1rem; line-height: 1.25; color: var(--ink); text-decoration: none; }
a.karte__titel::after { content: ""; position: absolute; inset: 0; }   /* the whole ticket is clickable */
a.karte__titel:hover { color: var(--plum); }
.karte__extra { position: relative; z-index: 1; align-self: flex-start; margin-top: .2rem; font-size: .75rem; font-weight: 600; }
.karten__leer { font-style: italic; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { .karte { transition: none; } }

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

.site-footer::before {   /* soft wave instead of a hard edge */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  height: clamp(1.5rem, 4vw, 3rem);
  background: var(--plum-dark);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='48' preserveAspectRatio='none'%3E%3Cpath d='M0 30C240 4 420 4 720 24S1200 46 1440 18V48H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='48' preserveAspectRatio='none'%3E%3Cpath d='M0 30C240 4 420 4 720 24S1200 46 1440 18V48H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}

.site-footer { position: relative; margin-top: 5rem; background: var(--plum-dark); color: #eadfea; font-family: var(--sans); font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.75rem 1rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.5rem 2rem;
}
.site-footer h2 { margin: 0 0 .6rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lavender); }
.site-footer p { margin: 0 0 .4rem; }
.site-footer .site-footer__legal { max-width: calc(var(--wide) - 2rem); margin: 0 auto; padding: 1rem 0 2rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .8rem; color: #cbbccb; }

@media (prefers-reduced-motion: reduce) {
  .termin a { transition: none; }
}
@media (max-width: 66rem) { .site-footer .site-footer__legal { margin: 0 1rem; } }
