/* ==========================================================================
   Collegium Canticum Novum – gemeinsames Stylesheet
   Farben und Schrift stehen als Variablen ganz oben.
   ========================================================================== */

/* --- Schrift: Source Sans 3 (SIL Open Font License), lokal eingebunden --- */

@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(schrift/source-sans-3-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(schrift/source-sans-3-latin-wght-normal.woff2) format("woff2");
  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 Sans 3"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(schrift/source-sans-3-latin-ext-wght-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(schrift/source-sans-3-latin-wght-italic.woff2) format("woff2");
  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;
}

:root {
  --rot: #7f2437;         /* Weinrot des Plakats */
  --rot-dunkel: #631b2a;
  --rose: #b98d90;
  --rose-hell: #f4ebe9;
  --grund: #fbf8f6;        /* Seitenhintergrund */
  --flaeche: #ffffff;
  --text: #2a2325;
  --text-leise: #655a5d;
  --linie: #e3d6d4;
  --schrift: "Source Sans 3", "Segoe UI", system-ui, -apple-system,
             "Helvetica Neue", Arial, sans-serif;
  --breite: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 106.25%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--grund);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--rot); text-underline-offset: 0.15em; }
a:hover { color: var(--rot-dunkel); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--rot);
  outline-offset: 2px;
}

.rahmen { max-width: var(--breite); margin: 0 auto; padding: 0 20px; }

.sprung {
  position: absolute; left: -999px; top: 0;
  background: var(--rot); color: #fff; padding: 8px 14px; z-index: 10;
}
.sprung:focus { left: 8px; top: 8px; color: #fff; }

/* --- Kopf ---------------------------------------------------------------- */

.kopf { background: var(--flaeche); }

.kopf-zeile {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 18px; padding-bottom: 18px;
}

.marke {
  display: flex; align-items: center; gap: 14px;
  color: var(--text); text-decoration: none;
}
.marke:hover { color: var(--text); }
.marke img { width: 52px; height: 52px; flex: none; }
.marke-name {
  font-size: 1.35rem; line-height: 1.2; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.14em;
}
.marke-name span { color: var(--rot); font-weight: 600; }

.kopf-zusatz {
  margin: 0; text-align: right; color: var(--text-leise);
  font-size: 0.9rem; line-height: 1.4; letter-spacing: 0.04em;
}

.hauptnav { background: var(--rot); }
.hauptnav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
}
.hauptnav a {
  display: block; padding: 12px 14px;
  color: #fff; text-decoration: none;
  font-size: 0.95rem; letter-spacing: 0.05em;
}
.hauptnav li:first-child a { padding-left: 0; }
.hauptnav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.hauptnav a:focus-visible { outline-color: #fff; outline-offset: -3px; }
.hauptnav a.aktiv { font-weight: 600; box-shadow: inset 0 -3px 0 #fff; }

.menue-knopf {
  display: none; width: 100%; text-align: left;
  background: none; border: 0; color: #fff; cursor: pointer;
  font: inherit; letter-spacing: 0.05em; padding: 12px 0;
}
.menue-knopf::before { content: "\2630\00a0\00a0"; }
.menue-knopf:focus-visible { outline-color: #fff; }

/* --- Inhalt -------------------------------------------------------------- */

main { padding: 36px 0 56px; }

h1, h2, h3 { line-height: 1.2; font-weight: 600; margin: 0 0 0.6em; }
h1 { font-size: 2rem; letter-spacing: 0.02em; }
h2 { font-size: 1.45rem; color: var(--rot); margin-top: 2.2em; }
h3 { font-size: 1.15rem; margin-top: 1.6em; }
p, ul, ol, table { margin: 0 0 1em; }

.text { max-width: 44rem; }
.einstieg { font-size: 1.15rem; }
.leise { color: var(--text-leise); font-size: 0.9rem; }
.rechts { text-align: right; }

/* Bildbühne der Startseite */
.buehne { position: relative; margin: 0 0 8px; background: #1c1517; }
.buehne img {
  width: 100%; height: 46vw; max-height: 470px; min-height: 230px;
  object-fit: cover; object-position: 50% 42%;
}
.buehne-text {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 70px 28px 22px; color: #fff;
  background: linear-gradient(to top, rgba(20, 12, 14, 0.82), rgba(20, 12, 14, 0));
}
.buehne-text h1 {
  margin: 0; font-size: 1.9rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.buehne-text p { margin: 4px 0 0; font-size: 1.1rem; letter-spacing: 0.04em; }

/* Konzertkarten */
.konzerte {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 1em;
}
.konzert {
  background: var(--flaeche); border: 1px solid var(--linie);
  border-top: 5px solid var(--rot); padding: 18px 20px 16px;
}
.konzert p { margin: 0; }
.konzert-datum { color: var(--text-leise); }
.konzert-ort { font-size: 1.3rem; font-weight: 600; line-height: 1.3; margin-top: 4px !important; }

/* hervorgehobener Kasten */
.kasten {
  background: var(--rose-hell); border-left: 5px solid var(--rot);
  padding: 20px 24px; margin: 2em 0;
}
.kasten > :last-child { margin-bottom: 0; }

/* Bild neben Text */
.zweispaltig {
  display: grid; gap: 28px; align-items: start;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.zweispaltig img { border: 1px solid var(--linie); }

/* Tabellen */
table { border-collapse: collapse; width: 100%; max-width: 44rem; }
th, td { text-align: left; vertical-align: top; padding: 9px 14px 9px 0; border-bottom: 1px solid var(--linie); }
th {
  font-size: 0.85rem; font-weight: 600; color: var(--text-leise);
  text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 2px solid var(--rot);
}
.termine td:first-child { white-space: nowrap; width: 17rem; }
.termine strong { font-weight: 600; }

/* Namens- und Ortslisten in Spalten */
.spalten { list-style: none; padding: 0; column-width: 14rem; column-gap: 32px; max-width: 52rem; }
.spalten li { break-inside: avoid; padding: 2px 0; }

/* Unterschrift unter einem Text */
.autor { font-style: italic; color: var(--text-leise); }

/* CD-Vorstellung */
.cd { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-bottom: 1.5em; }
.cd img { width: 200px; border: 1px solid var(--linie); }
.cd p { margin: 0 0 0.4em; }
.cd-titel { font-size: 1.3rem; font-weight: 600; }

/* Titelliste einer Aufnahme */
.titel { list-style: none; padding: 0; margin: 0 0 1.5em; max-width: 52rem; counter-reset: titel; }
.titel li {
  counter-increment: titel; position: relative;
  padding: 11px 0 11px 2.4rem; border-bottom: 1px solid var(--linie); line-height: 1.45;
}
.titel li::before {
  content: counter(titel); position: absolute; left: 0; top: 11px;
  color: var(--rose); font-weight: 600; width: 1.6rem; text-align: right;
}
.titel em { color: var(--text-leise); }

/* Bildergalerie */
.galerie {
  display: grid; gap: 18px; margin: 0 0 1.5em;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.galerie figure { margin: 0; }
.galerie a { display: block; border: 1px solid var(--linie); background: var(--flaeche); }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.galerie a:hover img { opacity: 0.88; }
.galerie figcaption { font-size: 0.9rem; color: var(--text-leise); padding-top: 6px; }

/* Presseliste */
.presse { list-style: none; padding: 0; max-width: 44rem; }
.presse li { padding: 10px 0; border-bottom: 1px solid var(--linie); line-height: 1.45; }
.presse a { font-weight: 600; }
.presse em { color: var(--text-leise); }

/* Entwurfs- und Hinweiskasten */
.hinweis { border: 2px solid var(--rot); color: var(--rot); padding: 10px 14px; max-width: 44rem; }
mark { background: #fff2a8; padding: 0 2px; }

/* Noten und Übedateien im internen Bereich */
.noten td:last-child { white-space: nowrap; }

/* --- Programme ----------------------------------------------------------- */

.jahre {
  list-style: none; padding: 0; margin: 0 0 8px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.jahre a {
  display: block; padding: 4px 13px; text-decoration: none;
  border: 1px solid var(--rose); background: var(--flaeche); color: var(--rot);
}
.jahre a:hover { background: var(--rot); border-color: var(--rot); color: #fff; }

.jahr { scroll-margin-top: 16px; column-count: 2; column-gap: 48px; }
.jahr h2 {
  column-span: all; padding-bottom: 8px; margin-bottom: 20px;
  border-bottom: 2px solid var(--rot);
}
.jahr p { break-inside: avoid; margin-bottom: 1.15em; line-height: 1.45; }
.jahr strong { font-weight: 600; }
.jahr em { color: var(--text-leise); }
.zwischenspiel { color: var(--text-leise); font-style: italic; }

/* Hörbeispiel-Knopf */
.hoeren {
  display: inline-block; margin-left: 4px; padding: 0 10px 1px;
  font-size: 0.8rem; font-style: normal; font-weight: 400; line-height: 1.6;
  white-space: nowrap; text-decoration: none; vertical-align: 0.08em;
  color: var(--rot); border: 1px solid var(--rose); border-radius: 999px; background: var(--flaeche);
}
.hoeren::before { content: "\25B6\00a0"; font-size: 0.7em; }
.hoeren:hover, .hoeren.laeuft { background: var(--rot); border-color: var(--rot); color: #fff; }
.spieler { display: block; width: 100%; max-width: 24rem; margin: 6px 0 4px; }

/* --- Fuß ----------------------------------------------------------------- */

.fuss {
  background: var(--rose-hell); border-top: 1px solid var(--linie);
  padding: 24px 0 28px; font-size: 0.9rem; color: var(--text-leise);
}
.fuss ul {
  list-style: none; margin: 0 0 10px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 26px;
}
.fuss p { margin: 0; }

/* --- Schmale Bildschirme ------------------------------------------------- */

@media (max-width: 860px) {
  .kopf-zusatz { display: none; }
  .marke-name { font-size: 1.05rem; letter-spacing: 0.1em; }
  .marke img { width: 44px; height: 44px; }

  .hauptnav ul { display: block; padding-bottom: 8px; }
  .hauptnav a, .hauptnav li:first-child a { padding: 10px 0; }
  .hauptnav a.aktiv { box-shadow: none; text-decoration: underline; text-underline-offset: 0.3em; }
  .js .menue-knopf { display: block; }
  .js .hauptnav ul { display: none; }
  .js .hauptnav ul.offen { display: block; }

  main { padding-top: 24px; }
  h1 { font-size: 1.6rem; }
  .buehne-text { padding: 50px 18px 16px; }
  .buehne-text h1 { font-size: 1.25rem; letter-spacing: 0.08em; }
  .buehne-text p { font-size: 0.95rem; }
  .zweispaltig { grid-template-columns: 1fr; }
  .termine td:first-child { white-space: normal; width: 42%; }
  .noten td:last-child { white-space: normal; }
  th, td { padding-right: 10px; }
  .jahr { column-count: 1; }
}

/* --- Druck --------------------------------------------------------------- */

@media print {
  body { background: #fff; font-size: 11pt; }
  .hauptnav, .fuss ul, .jahre, .hoeren, .spieler, .sprung, .buehne { display: none; }
  main { padding: 0; }
  a { color: inherit; text-decoration: none; }
  .jahr { column-count: 2; }
  .jahr h2 { break-after: avoid; }
}
