/* nina-theater.ch – schlichtes, eigenes CSS */
:root {
  --papier: #ffffff;      /* Kopfbereich */
  --bg: #f6efe2;          /* Inhaltsbereich (beige) */
  --text: #22211f;
  --muted: #6b675f;
  --accent: #b5232a;
  --line: #e0d7c6;
  --maxw: 46rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

/* Kopfbereich */
.site-header {
  background: var(--papier);
}
.site-header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.9rem 1.25rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 1.3rem;
}
.site-logo { display: block; flex: none; }
.site-logo img { width: 104px; height: auto; }
.kopf-text { flex: 1; min-width: 0; }
.site-claim {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}
@media (max-width: 700px) {
  .site-header .inner { gap: 0.9rem; padding: 0.7rem 1rem 0.6rem; }
  .site-logo img { width: 76px; }
  .site-claim { display: none; }
  .site-nav { gap: 0.2rem 0.95rem; }
  .seitenkopf .inner { padding: 1.1rem 1rem 1.3rem; }
  h1 { font-size: 1.6rem; }
  .untertitel { font-size: 1rem; }
}
.site-nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; }
.site-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.15rem 0;
}
.site-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }

/* Seitenkopf (weiss) und Inhalt (beige) */
.seitenkopf { background: var(--papier); }
.seitenkopf .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 1.7rem;
}
.seitenkopf h1 { margin: 0; }
.seitenkopf .untertitel { margin: 0.6rem 0 0; }
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.4rem 1.25rem 3rem;
}
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.5rem; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2.2rem 0 0.6rem; }
h3 { font-size: 1.1rem; margin: 1.8rem 0 0.4rem; }
.untertitel {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 1.6rem;
}
.vorspann { font-size: 1.15rem; }
hr { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }

main ul { padding-left: 1.2rem; }
main ul li { margin: 0.3rem 0; }

blockquote {
  margin: 1.6rem 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 3px solid var(--accent);
  font-style: italic;
}
blockquote .quelle {
  display: block;
  margin-top: 0.4rem;
  font-style: normal;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Besetzungslisten */
dl.credits { margin: 1.4rem 0; }
dl.credits div { display: flex; gap: 0.6rem; padding: 0.15rem 0; }
dl.credits dt { min-width: 11rem; font-weight: 600; margin: 0; }
dl.credits dd { margin: 0; }
@media (max-width: 480px) {
  dl.credits div { display: block; padding: 0.3rem 0; }
  dl.credits dt { min-width: 0; }
}

/* Bilder und Galerien */
figure { margin: 1.8rem 0; }
figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.4rem; }
.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.7rem;
  margin: 1.8rem 0;
  align-items: start;
}
.galerie img {
  width: 100%;
  height: auto;
  border-radius: 3px;
}

/* Diashow auf der Startseite */
.diashow {
  position: relative;
  width: min(100vw, 1100px);
  margin: -2.4rem 0 2.4rem 50%;
  transform: translateX(-50%);
  aspect-ratio: 3 / 2;
  max-height: 560px;
  overflow: hidden;
  background: #1a1815;
}
.diashow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.diashow img.aktiv { opacity: 1; }
.diashow .legende {
  position: absolute;
  right: 0; bottom: 0;
  margin: 0;
  padding: 0.3rem 0.9rem;
  background: rgba(15, 12, 10, 0.65);
  color: #f0ece5;
  font-size: 0.85rem;
  z-index: 2;
}

/* Startseite: Bühnen-Auftakt */
.buehne {
  position: relative;
  width: 100vw;
  margin: -2.4rem 0 2.4rem calc(50% - 50vw);
}
.buehne > img {
  width: 100%;
  height: min(72vh, 620px);
  object-fit: cover;
  display: block;
}
.buehne .text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 5rem 1.25rem 2.2rem;
  background: linear-gradient(transparent, rgba(15, 12, 10, 0.82));
  color: #fff;
}
.buehne .text .inner { max-width: var(--maxw); margin: 0 auto; }
.buehne h1 { color: #fff; font-size: 2.6rem; margin: 0 0 0.5rem; }
.buehne p { max-width: 34rem; font-size: 1.1rem; margin: 0 0 1rem; }
.buehne .knopf.hell {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.8);
}

/* Stück-Kacheln */
.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.2rem 1rem;
  margin: 1.8rem 0;
}
.kacheln a { display: block; color: var(--text); }
.kacheln a:hover { text-decoration: none; }
.kacheln a:hover .kachel-titel { color: var(--accent); }
.kacheln img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 3px;
  background: #fff;
}
.kacheln .kachel-titel { font-weight: 700; margin: 0.5rem 0 0; line-height: 1.3; }
.kacheln .kachel-jahr { color: var(--muted); font-size: 0.9rem; font-weight: 400; }
.kacheln .kachel-unter {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}
.kacheln.gross { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* Startseite */
.hero { margin: 0 0 2rem; }
.hero img { border-radius: 3px; }
.teaser {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  margin-top: 2.2rem;
}
.knopf {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 3px;
  margin: 0.4rem 0.6rem 0.4rem 0;
}
.knopf:hover { text-decoration: none; opacity: 0.9; }
.knopf.sekundaer {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* Stücke-Übersicht */
.stueck {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.4rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.stueck:first-of-type { border-top: none; }
.stueck img { border-radius: 3px; }
.stueck h3 { margin-top: 0; font-size: 1.2rem; }
.stueck .jahr { color: var(--muted); font-weight: 400; }
@media (max-width: 560px) {
  .stueck { grid-template-columns: 1fr; }
  .stueck img { max-width: 320px; }
}

/* Kerngruppe */
.person {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.4rem;
  margin: 1.8rem 0;
  align-items: start;
}
.person img { border-radius: 3px; }
.person h3 { margin-top: 0; }
.person .rolle { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 480px) {
  .person { grid-template-columns: 110px 1fr; gap: 1rem; }
}

figure.flyer img { max-width: 300px; }

/* Lightbox */
.galerie img, figure img { cursor: zoom-in; }
.lb {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 18, 16, 0.93);
  display: flex; align-items: center; justify-content: center;
}
.lb img {
  max-width: min(94vw, 1400px);
  max-height: 88vh;
  width: auto; height: auto;
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}
.lb button {
  position: absolute;
  background: none; border: none; cursor: pointer;
  color: #f5f2ec; font-size: 2.6rem; line-height: 1;
  padding: 0.4em 0.5em;
  opacity: 0.8;
}
.lb button:hover { opacity: 1; }
.lb .lb-close { top: 0.3rem; right: 0.6rem; }
.lb .lb-prev { left: 0.2rem; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 0.2rem; top: 50%; transform: translateY(-50%); }
.lb .lb-num {
  position: absolute; bottom: 0.8rem; left: 0; right: 0;
  text-align: center; color: #cfc9c0; font-size: 0.9rem;
}
@media (max-width: 600px) {
  .lb button { font-size: 2rem; }
}

/* Fusszeile */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.6rem 1.25rem 2.2rem;
}
.site-footer a { color: var(--muted); text-decoration: underline; }
