/* Farben: helles Papier, Weinrot der Plattenhülle als Akzent. */
:root {
  color-scheme: light;
  --paper: #f6f1ea;
  --surface: #ede5da;
  --raised: #efe7dc;
  --ink: #2a1f22;
  --muted: #65555a;
  --accent: #7a2c3c;
  --rule: #d8cbbd;
  --rule-strong: #772b3b;
  --wine: #772b3b;
  --wine-hover: #8d3547;
  --on-wine: #fbf3ea;
  --footer: #772b3b;
  --footer-ink: #fbf3ea;
  --footer-muted: #f0dcd6;
  --footer-rule: #a35464;
  --shadow: #3a1c2433;
  --vinyl-edge: #2a2326;
  --vinyl-groove: #ffffff14;

  --display: Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1.15rem, 5vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 var(--body);
}

main { flex: 1; }

h1, h2, h3 { margin: 0; line-height: 1.15; }
h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.015em;
}
h3 {
  font-family: var(--body);
  font-weight: 650;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); overflow-wrap: anywhere; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); text-wrap: balance; }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); }
p { margin: 0 0 1rem; }
figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
address { font-style: normal; }
a { color: var(--accent); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
::selection { background: var(--wine); color: var(--on-wine); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.shell {
  width: min(100% - 2 * var(--gutter), 74rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: .75rem;
  left: var(--gutter);
  padding: .6rem .9rem;
  background: var(--surface);
  transform: translateY(calc(-100% - 1.5rem));
}
.skip-link:focus { transform: none; }

/* Kopfzeile */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.header-row, .header-end, .brand, .nav-list, .actions {
  display: flex;
  align-items: center;
}

.header-row { justify-content: space-between; gap: .5rem 2rem; }
.header-end { gap: clamp(.5rem, 2.3vw, 1.8rem); }
.brand {
  gap: .8rem;
  min-height: 5.25rem;
  color: var(--ink);
  line-height: 1.15;
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand img { width: 2.35rem; flex: none; clip-path: inset(1% 1% 1% round 0 0 47% 47%); }
.brand-name { display: block; font: bold 1.25rem/1.1 var(--display); }
.brand-place { display: block; margin-top: .25rem; color: var(--muted); font-size: .8rem; }

.nav-list, .plain-list, .link-list, .timeline, .event-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list { flex-wrap: wrap; gap: 0 clamp(.5rem, 2.3vw, 1.8rem); }
.nav-list a, .subnav a {
  display: inline-flex;
  align-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}
.nav-list a:hover, .nav-list a[aria-current], .subnav a:hover, .subnav a[aria-current] {
  border-color: var(--accent);
  color: var(--accent);
}

/* Startseite */
.hero {
  padding-block: clamp(2.5rem, 5.5vw, 5rem);
  border-bottom: 1px solid var(--rule);
  background: var(--raised);
}

.hero-layout, .two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 4.5rem);
  align-items: start;
}
.hero-layout { align-items: center; }

.eyebrow {
  margin-bottom: .9rem;
  color: var(--accent);
  font-size: .875rem;
  font-weight: 600;
}

.hero h1 { font-size: clamp(3rem, 6.4vw, 5.6rem); line-height: 1; letter-spacing: -.03em; }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero-copy > p:not(.eyebrow) {
  max-width: 42ch;
  margin-block: 1.5rem 1.75rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
}

figcaption { margin-top: .55rem; color: var(--muted); font-size: .875rem; }

/* Schallplatte mit Hülle */
.archive-record {
  position: relative;
  isolation: isolate;
  width: min(100%, 35rem);
  justify-self: end;
  padding: 2% 0 0 3%;
}
.archive-record::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 64%;
  aspect-ratio: 1;
  right: 0;
  top: 6%;
  border: 1px solid var(--vinyl-edge);
  border-radius: 50%;
  background:
    radial-gradient(circle, #772b3b 0 15%, #1a1617 15.5% 17%, transparent 17.5%),
    repeating-radial-gradient(circle, transparent 0 2px, var(--vinyl-groove) 2px 3px, transparent 3px 5px),
    conic-gradient(from 32deg, #141214, #3a3235 18%, #161416 31%, #191619 51%, #3e3538 68%, #141214 84%);
}
.record-sleeve {
  width: 76%;
  padding: 5% 4% 4%;
  background: var(--wine);
  color: var(--on-wine);
  box-shadow: .3rem .45rem 1rem var(--shadow);
  transform: rotate(-3deg);
}
.record-sleeve img {
  width: 100%;
  aspect-ratio: 1.52;
  object-fit: cover;
  filter: grayscale(1) sepia(.16);
}
.sleeve-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  margin-top: .55rem;
  font: 400 clamp(1.5rem, 3vw, 2.9rem)/1.12 var(--display);
  letter-spacing: -.03em;
}
.sleeve-title small { font: 600 .75rem/1.2 var(--body); letter-spacing: .02em; }
.record-credit { margin: 1.35rem 0 0; font: italic .9rem/1.3 var(--display); }

.actions { flex-wrap: wrap; gap: .5rem 1.2rem; }
.actions a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 650; }

.button,
.button:hover {
  padding: .65rem 1.1rem;
  gap: 1rem;
  border-radius: .25rem;
  background: var(--wine);
  color: var(--on-wine);
  text-decoration: none;
}
.button:hover { background: var(--wine-hover); }

/* Abschnitte */
.section { padding-block: clamp(2.6rem, 6vw, 5rem); }
.section + .section { border-top: 1px solid var(--rule); }
.section-heading { margin-bottom: clamp(1.25rem, 3.5vw, 2rem); }
.section-heading p { margin: .6rem 0 0; color: var(--muted); }
.section-tint { background: var(--surface); }

.cards, .gallery, .roles, .history-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.card {
  border-top: 1px solid var(--rule);
  padding-top: .85rem;
}
.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.card-body { padding-block: 1rem; }
.card-body h3 { margin-bottom: .65rem; }
.card-body h3 a { color: var(--ink); text-decoration-color: var(--accent); }
.card-body h3 a:hover { color: var(--accent); }
.card-body p { margin: .3rem 0 0; }
.card-body .eyebrow { margin: 0 0 .25rem; }

.rehearsals .card {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.35rem;
  align-items: start;
  padding-block: 1rem;
}
.rehearsals .card:last-child { border-bottom: 1px solid var(--rule); }
.rehearsals img { aspect-ratio: 1.4; }
.rehearsals .card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, .75fr);
  gap: 0 1rem;
  align-items: baseline;
  padding: 0;
}
.rehearsals .card-body > * { margin: 0; }
.rehearsals h3 { grid-row: 2; }
.rehearsals .muted { grid-column: 2; }
.rehearsals .roles { display: flex; flex-direction: column; gap: .6rem; margin-top: .4rem; }
.rehearsals .roles .role { margin: 0; }
.rehearsals .roles .role > * { display: block; }
.rehearsals .roles .role-title { font-weight: 700; }
.rehearsals .roles .role-title::after { content: ":"; }
.rehearsals strong { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.band { align-items: center; }

.link-list { border-top: 1px solid var(--rule); }
.link-list li { border-bottom: 1px solid var(--rule); }
.link-list a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
  min-height: 3rem;
  padding-block: .6rem;
  font-weight: 600;
}
.file-type { color: var(--muted); font-size: .875rem; font-weight: 500; }

/* Unterseiten */
.page-head {
  padding-block: clamp(2rem, 5.5vw, 4.25rem);
  border-bottom: 1px solid var(--rule);
  background: var(--raised);
}
.page-head p:not(.eyebrow) { max-width: 58ch; margin: .85rem 0 0; color: var(--muted); }
.subnav-wrap { border-bottom: 1px solid var(--rule); background: var(--surface); }
.subnav { display: flex; flex-wrap: wrap; gap: 0 1.3rem; padding-block: .2rem; }
.subnav a { color: var(--muted); }

.prose { max-width: 67ch; }
.prose h2:not(:first-child), .prose h3:not(:first-child) { margin-top: 1.65rem; }
.prose h2, .prose h3 { margin-bottom: .75rem; }
.prose + .section-heading { margin-top: 1.65rem; }
.prose ul { margin-block: .5rem 1rem; padding-left: 1.3rem; }
.prose li + li { margin-top: .4rem; }
.prose > :last-child, .panel > :last-child { margin-bottom: 0; }
.prose a, address a { overflow-wrap: anywhere; }

.archive-heading { margin-top: 2.25rem; }

/* Satzungstext: füllt die Seitenbreite, bricht auf breiten Bildschirmen in Spalten um */
.satzung { max-width: none; columns: 28rem; column-gap: 3.5rem; }
.satzung h2 { break-after: avoid; font-size: 1.2rem; }
.satzung h2:first-of-type { margin-top: 0; }
.satzung li, .satzung p { break-inside: avoid; }
.satzung .satzung-title, .satzung .satzung-date { column-span: all; }
.satzung ol { margin-block: .5rem 1rem; padding-left: 1.6rem; }
.satzung ol ol { margin-block: .5rem 0; }
.satzung ol.alpha { list-style-type: lower-alpha; }
.satzung ol.alpha > li::marker { content: counter(list-item, lower-alpha) ") "; }
.satzung li + li { margin-top: .5rem; }
.satzung-title { margin: 0 0 1.5rem; font-weight: 700; font-size: 1.15rem; line-height: 1.4; }
.satzung-title span { display: block; margin-top: .25rem; color: var(--muted); font-weight: 500; font-size: 1rem; }
.satzung-date { margin-top: 2rem; }

.gallery, .roles, .history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery img { border-radius: .35rem; }
.gallery img { width: 100%; }
.gallery .document { width: auto; margin-inline: auto; }
.logo-image { margin-bottom: 1.5rem; }
.portrait { margin-bottom: .8rem; border-radius: .3rem; }

.panel, .event-list, .timeline { border-top: 2px solid var(--rule-strong); }
.panel { padding: 1rem 0 0; }
.panel h2, .panel h3 { margin-bottom: .65rem; }
.history-grid { row-gap: 2rem; }
.timeline li, .event-list li {
  display: grid;
  grid-template-columns: minmax(6.5rem, 8.5rem) minmax(0, 1fr);
  gap: .2rem .85rem;
  padding-block: .6rem;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.timeline .period, .event-list time { color: var(--accent); font-weight: 700; }
.event-list time { font-variant-numeric: tabular-nums; }
.event-list small { display: block; color: var(--muted); font-size: .9375rem; }
.more-link { margin: 1rem 0 0; font-weight: 600; }
.news-list small {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.news-articles { max-width: 67ch; }
.news-article { padding-block: 1.4rem; border-bottom: 1px solid var(--rule); }
.news-article:first-child { padding-top: 0; }
.news-article:last-child { border-bottom: 0; }
.news-article h2 { margin-bottom: .25rem; }
.news-article time { display: block; margin-bottom: .75rem; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.news-article p { margin: 0 0 .85rem; }
.news-article p:last-child { margin-bottom: 0; }

.rates { width: 100%; max-width: 40rem; border-collapse: collapse; }
.rates th, .rates td {
  padding: .65rem .2rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
.rates td { text-align: right; white-space: nowrap; }
.rates tbody th { font-weight: 500; }
.rates thead { border-top: 2px solid var(--rule-strong); }
.roles { margin-top: 1.5rem; }
.roles dt { font-weight: 700; }
.roles dd { margin: .2rem 0 0; }

/* Fußzeile */
.site-footer { padding-block: .75rem .8rem; background: var(--footer); color: var(--footer-ink); font-size: .95rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(1.25rem, 3vw, 2rem); align-items: center; }
.footer-row .plain-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(1.25rem, 3vw, 2rem); }
.site-footer a { color: var(--footer-ink); text-decoration: none; }
.site-footer a:hover { color: var(--footer-muted); text-decoration: underline; }
.site-footer a:focus-visible { outline-color: var(--footer-ink); }
.site-footer li a { display: inline-flex; align-items: center; min-height: 2.25rem; }
.footer-row .plain-list { margin-block: 0; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .25rem; padding-top: .5rem; border-top: 1px solid var(--footer-rule); }
.copyright { margin: 0; color: var(--footer-muted); font-size: .8125rem; text-align: left; }
.site-footer .social-link { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; margin-left: auto; border-radius: 50%; }
.site-footer .social-link:hover { color: var(--footer-muted); text-decoration: none; }

@media (max-width: 52rem) {
  .header-row { flex-direction: column; align-items: stretch; gap: 0; }
  .header-end { justify-content: space-between; padding-bottom: .35rem; }
  .brand { min-height: 4.45rem; }
  .nav-list { gap: 0 clamp(.65rem, 4vw, 1.5rem); }
  .hero-layout { gap: 1.4rem; }
  .site-footer li a { min-height: 2.5rem; }
}

/* Menü-Schaltfläche (nur mit JavaScript, nur mobil) */
.nav-toggle { display: none; }

@media (max-width: 43rem) {
  .js-nav .header-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: .75rem;
  }
  .js-nav .brand { min-width: 0; }
  .js-nav .brand-name { font-size: clamp(1.05rem, 5.2vw, 1.25rem); }
  .js-nav .header-end { display: none; grid-column: 1 / -1; padding-bottom: .5rem; }
  .js-nav.nav-open .header-end { display: block; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0 .85rem;
    border: 1px solid var(--rule);
    border-radius: .5rem;
    background: var(--surface);
    color: var(--ink);
    font-weight: 600; font-size: .9375rem; line-height: 1;
    font-family: inherit;
    cursor: pointer;
  }
  .nav-toggle:hover, .nav-toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
  .nav-toggle-bars { display: grid; gap: .24rem; width: 1.1rem; }
  .nav-toggle-bars span {
    display: block;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(.43rem) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-.43rem) rotate(-45deg); }

  .js-nav .nav-list { display: block; border-top: 1px solid var(--rule); }
  .js-nav .nav-list li + li { border-top: 1px solid var(--rule); }
  .js-nav .nav-list a {
    display: flex;
    width: 100%;
    min-height: 3rem;
    padding-inline: .25rem;
    border-bottom: 0;
    border-left: 3px solid transparent;
    padding-left: .75rem;
    font-size: 1.0625rem;
  }
  .js-nav .nav-list a:hover, .js-nav .nav-list a[aria-current] { border-left-color: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle-bars span { transition: none; }
}

@media (max-width: 43rem) {
  .hero-layout, .two-column, .cards, .history-grid, .roles { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(3rem, 12vw, 4.5rem); }
  .hero-copy > p:not(.eyebrow) { margin-block: 1rem 1.25rem; }
  .archive-record { justify-self: center; max-width: 24rem; margin-top: .75rem; }
  .sleeve-title { font-size: clamp(1.6rem, 6vw, 2.15rem); }
  .rehearsals .card { grid-template-columns: 3.8rem 1fr; gap: .85rem; align-items: start; }
  .rehearsals img { margin-top: .25rem; aspect-ratio: 1; }
  .rehearsals .card-body { display: block; }
  .rehearsals h3 { margin-bottom: .35rem; }
  .card img { aspect-ratio: 2 / 1; }
  .subnav { gap: 0 .85rem; }
  .event-list li { grid-template-columns: 1fr; }

  /* Fußzeile mobil: zwei Linkgruppen als ruhiges 3-Spalten-Raster */
  .site-footer { padding-block: 1rem 1rem; }
  .footer-row { display: block; }
  .footer-row .plain-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 .5rem; justify-items: center; padding: 0; }
  .footer-row .plain-list + .plain-list { margin-top: .35rem; padding-top: .35rem; border-top: 1px solid var(--footer-rule); }
  .site-footer li { text-align: center; }
  .site-footer li a { justify-content: center; min-height: 2.5rem; padding-inline: .25rem; }
  .footer-bottom { margin-top: .5rem; padding-top: .75rem; }
}

@media (max-width: 22rem) {
  .footer-row .plain-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 24rem) {
  .nav-list a { font-size: .875rem; }
  .timeline li { grid-template-columns: minmax(5.75rem, auto) minmax(0, 1fr); }
}

/* Anker unter dem Kopf, Abstand vor Zwischenüberschriften */
[id] { scroll-margin-top: 6rem; }
.panel + .section-heading, .two-column + .section-heading { margin-top: clamp(2rem, 5vw, 3rem); }
