/* Design angelehnt an www.liedertafelbasel.ch (Clubdesk-Auftritt):
   Source Sans Pro, Beerenrot #C02353, Beige-Kacheln #E5E0D1, Footer #F2EFE7 */
:root {
  --accent: #c02353;
  --accent-dark: #9b1c43;
  --fg: #000;
  --text: #333;
  --tile: #e5e0d1;
  --footer: #f2efe7;
  --line: #999;
  --max: 1000px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans Pro", "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Kopfzeile wie auf der Hauptseite */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
header.site .bar {
  max-width: 1200px; margin: 0 auto; padding: 8px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
header.site .brand {
  color: var(--fg); font-weight: 700; font-size: 24px; text-decoration: none; line-height: 1.2;
}
header.site .nav { display: flex; align-items: center; gap: 16px; }
header.site .nav a.menu { color: var(--accent); font-weight: 700; font-size: 18px; text-decoration: none; }
.btn-login, .btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1.4;
  padding: 5px 20px; border: 2px solid var(--accent); border-radius: 2px;
  color: var(--accent); background: transparent; text-transform: uppercase; letter-spacing: .02em;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn:hover, .btn-login:hover { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

h1 { color: var(--fg); font-weight: 700; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.1; margin: 0 0 .3em; }
h2 { color: #333; font-weight: 700; font-size: clamp(1.5rem, 3.5vw, 2.1rem); line-height: 1.2; margin: 2.2em 0 .6em; }
.sub { font-size: 1.1rem; margin: 0 0 1.2em; }
a { color: var(--accent); font-weight: 700; }
a:hover { color: var(--accent-dark); }
.note { font-size: 16px; }
.hidden { display: none !important; }
main .wrap { padding-top: 48px; }

/* Kacheln wie die Konzertliste */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 28px; }
.card { display: block; text-decoration: none; color: inherit; background: var(--tile); font-weight: 400; }
.card:hover { outline: 3px solid var(--accent); }
.card .cover { aspect-ratio: 1; }
.card .body { padding: 12px 16px 16px; }
.card .body strong { display: block; color: var(--fg); font-size: 1.15rem; }
.card .body span { font-size: 16px; }

.cover {
  background: var(--band, var(--accent)); color: #fff; font-weight: 700; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px;
}
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.hero .cover { width: 240px; height: 240px; flex: none; overflow: hidden; }
.hero .text { flex: 1; min-width: 260px; }

audio { width: 100%; margin: 8px 0 14px; }
ol.tracks { list-style: none; counter-reset: t; padding: 0; margin: 0; display: grid; gap: 8px; }
ol.tracks li {
  counter-increment: t; display: flex; gap: 14px; align-items: center;
  padding: 10px 16px; background: var(--tile); color: var(--fg); font-weight: 700; cursor: pointer;
}
ol.tracks li::before { content: counter(t); min-width: 1.4em; font-weight: 400; }
ol.tracks li:hover { outline: 3px solid var(--accent); }
ol.tracks li.active { background: var(--accent); color: #fff; }
ol.tracks .dur { margin-left: auto; margin-right: 0; font-weight: 400; font-size: 16px; font-variant-numeric: tabular-nums; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Fusszeile */
footer.site { margin-top: 72px; background: var(--footer); padding: 36px 0 28px; }
footer.site .cols { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
footer.site h3 { margin: 0 0 6px; color: var(--fg); font-size: 24px; font-weight: 700; }
footer.site a { display: block; color: var(--fg); font-weight: 400; font-size: 20px; text-decoration: none; }
footer.site a:hover { color: var(--accent); }
footer.site .legal { max-width: 1200px; margin: 28px auto 0; padding: 0 20px; font-size: 16px; }
footer.site .legal a { display: inline; font-size: 16px; text-decoration: underline; }

@media (max-width: 576px) {
  body { font-size: 18px; }
  header.site .brand { font-size: 18px; }
  .hero .cover { width: 100%; height: auto; aspect-ratio: 1; }
}

/* Titelzeile mit Textautor/Komponist und Liedtext */
ol.tracks li .t { display: flex; flex-direction: column; }
ol.tracks li .t small { font-weight: 400; font-size: 15px; opacity: .85; }
ol.tracks li:focus-visible { outline: 3px solid var(--accent); }
.lyrics { background: var(--footer); padding: 8px 20px 20px; margin-top: 20px; }
.lyrics h2 { margin-top: .8em; }
.lyrics pre { font: inherit; white-space: pre-wrap; margin: 0; }

/* Einzel-Download pro Titel */
ol.tracks .dl { margin-left: 8px; padding: 2px 10px; border: 2px solid currentColor; border-radius: 2px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--accent); background: #fff; white-space: nowrap; }
ol.tracks li.active .dl { color: var(--accent); }
ol.tracks .dl:hover { background: var(--accent); color: #fff; }

/* Sektions-Abzeichen, Filter, Trefferliste */
.badges { margin: 0 0 .4em; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 15px; font-weight: 700; color: #fff; background: var(--band, var(--accent)); text-shadow: 0 0 1px rgba(0,0,0,.35); }

.filters { display: grid; gap: 14px; margin: 24px 0 8px; }
.filters .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.filters input[type=search], .filters select {
  font: inherit; font-size: 18px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 2px; background: #fff; color: var(--fg);
}
.filters input[type=search] { flex: 1 1 280px; min-width: 0; }
.filters input:focus, .filters select:focus { outline: 3px solid var(--accent); border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; padding: 4px 14px; border-radius: 999px;
  border: 2px solid var(--c, var(--accent)); color: var(--c, var(--accent)); background: #fff;
}
.chip[aria-pressed=true] { background: var(--c, var(--accent)); color: #fff; }
.chip:focus-visible { outline: 3px solid var(--fg); outline-offset: 2px; }

.card { border-top: 6px solid var(--band, var(--accent)); }
.card:hover { outline-color: var(--accent); }
.card .body span { display: block; }
.card .hits { margin: 8px 0 0; padding: 0; list-style: none; font-size: 15px; }
.card .hits li::before { content: "♪ "; color: var(--accent); }
mark { background: #fff2a8; color: inherit; padding: 0 1px; }

/* ===== Bühne: Bilderverlauf statt Cover, vergrösserbar ===== */
.hero { transition: gap .3s; }
.stage { position: relative; width: 240px; height: 240px; flex: none; overflow: hidden; background: var(--band, var(--accent)); color: #fff; }
.stage .layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; font-size: 1.4rem; padding: 10px; }
.stage .layer.on { opacity: 1; }
.stage .layer img, .stage .layer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.stage.playing .layer.on.motion img { animation: drift 16s ease-in-out both; }
@keyframes drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.09) translate(-1.2%, -1%); } }
@media (prefers-reduced-motion: reduce) { .stage.playing .layer.on.motion img { animation: none; } .stage .layer { transition-duration: .01s; } }
.stage .ctl { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; z-index: 3; }
.stage .ctl button { width: 38px; height: 38px; border: 0; border-radius: 2px; background: rgba(0,0,0,.55); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.stage .ctl button:hover, .stage .ctl button:focus-visible { background: rgba(0,0,0,.85); outline: 2px solid #fff; }
.stage .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 56px 8px 10px; font-size: 13px; line-height: 1.3; z-index: 2; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transition: opacity .6s; pointer-events: none; }
.stage.has-cap .cap { opacity: 1; }
.stage .dots { position: absolute; left: 10px; top: 10px; display: flex; gap: 5px; z-index: 3; }
.stage .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); }
.stage .dots i.on { background: #fff; }
.hero.expanded { flex-direction: column; align-items: stretch; }
.hero.expanded .stage { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 80vh; }
.stage:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; max-height: none; background: #000; }
.stage:fullscreen .layer img, .stage:fullscreen .layer video { object-fit: contain; }
@media (max-width: 576px) { .stage { width: 100%; height: auto; aspect-ratio: 1; } .hero.expanded .stage { aspect-ratio: 4 / 3; } }

.links-row { margin-top: 10px; }
.state { padding: 30px 0; }
