/* ============================================================
   Theaterbrettl Sulzemoos – ein Stylesheet für die ganze Seite.
   Ersetzt style.css, grid.css, normalize.css, prettyPhoto.css
   und beide jcarousel-Dateien.

   CI aus dem Vereinslogo: das Blau der Vorhänge, das Schwarz der
   Maske, das Weiß des Wappens. Mehr Farben gibt es nicht.
   ============================================================ */

:root {
  --blau:        #01389d;   /* Logoblau, Primärfarbe */
  --blau-dunkel: #012163;
  --blau-tief:   #011340;   /* dunkle Flächen, Fuß */
  --blau-hauch:  #eaeff8;   /* zarte Fläche */
  --schwarz:     #1c1c1c;   /* Maske */
  --text:        #2a2d33;
  --text-leise:  #5f646d;
  --linie:       #d8dae0;
  --weiss:       #ffffff;
  --papier:      #f4f5f8;

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --breite: 70rem;
  --kopf-hoehe: 4.25rem;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--kopf-hoehe); }

body {
  margin: 0;
  background: var(--weiss);
  color: var(--text);
  font: 1.0625rem/1.65 var(--sans);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }
figure { margin: 0; }

a { color: var(--blau); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--blau-dunkel); }

:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }
.dunkel :focus-visible { outline-color: var(--weiss); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; }

.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 1.25rem; }
.schmal { max-width: 62ch; }

.sr {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; z-index: 200;
  background: var(--weiss); color: var(--blau);
  padding: .7rem 1.1rem; font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.skip:focus { left: 1rem; top: 1rem; }

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

.kopf {
  position: sticky; top: 0; z-index: 100;
  background: var(--weiss);
  border-bottom: 1px solid var(--linie);
}
.kopf__zeile {
  max-width: var(--breite); margin: 0 auto;
  min-height: var(--kopf-hoehe);
  padding: .5rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.kopf__logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--blau); }
.kopf__logo img { height: 52px; width: auto; display: block; }
.kopf__logo b { font: 400 1.05rem/1.1 var(--serif); color: var(--blau); }
.kopf__logo span { display: block; font: 400 .72rem/1.2 var(--sans); color: var(--text-leise); }

.nav__schalter {
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--blau); border: 0; color: var(--weiss);
  font: 600 .9rem var(--sans); padding: .55rem .9rem;
}
.nav__schalter:hover { background: var(--blau-dunkel); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.35rem; }
.nav a {
  display: block; padding: .35rem 0;
  color: var(--text); text-decoration: none; font-size: .95rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--blau); border-bottom-color: var(--blau); }

@media (min-width: 64rem) {
  .nav__schalter { display: none; }
  .nav { display: block !important; }
}
@media (max-width: 63.999rem) {
  .kopf__zeile { flex-wrap: wrap; }
  .nav { display: none; width: 100%; }
  .nav.offen { display: block; padding-bottom: .5rem; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: .7rem 0; border-bottom: 1px solid var(--linie); }
}

/* ---------------- Bühne ---------------- */

.buehne {
  position: relative;
  background: var(--blau-tief) url("../Pics/vorhang_blau.jpg") center/cover no-repeat;
  color: var(--weiss);
}
.buehne::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(1,19,64,.55) 0%, rgba(1,19,64,.78) 100%);
}
.buehne__inhalt {
  position: relative; z-index: 1;
  max-width: var(--breite); margin: 0 auto;
  padding: 3.5rem 1.25rem;
  display: grid; gap: 2rem;
}
@media (min-width: 58rem) {
  .buehne__inhalt { grid-template-columns: 1.1fr .9fr; align-items: center; padding: 5rem 1.25rem; gap: 3.5rem; }
}
.buehne h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); }
.buehne h1 small { display: block; font-size: .34em; letter-spacing: .16em; font-family: var(--sans); font-weight: 600; margin-bottom: 1rem; opacity: .85; }
.buehne p { max-width: 34ch; margin: 1.1rem 0 0; color: rgba(255,255,255,.9); }
.buehne__aktionen { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.knopf {
  display: inline-block; text-decoration: none;
  background: var(--weiss); color: var(--blau);
  font: 600 .95rem var(--sans); padding: .7rem 1.2rem;
  border: 2px solid var(--weiss);
}
.knopf:hover { background: transparent; color: var(--weiss); }
.knopf--linie { background: transparent; color: var(--weiss); }
.knopf--linie:hover { background: var(--weiss); color: var(--blau); }
.knopf--blau { background: var(--blau); border-color: var(--blau); color: var(--weiss); }
.knopf--blau:hover { background: var(--blau-dunkel); border-color: var(--blau-dunkel); color: var(--weiss); }

/* Spielplan im Kopf */
.spielplan { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); padding: 1.25rem 1.4rem; }
.spielplan h2 { font: 600 .78rem var(--sans); letter-spacing: .14em; margin-bottom: .9rem; opacity: .85; }
.spielplan ol { list-style: none; margin: 0; padding: 0; }
.spielplan li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .45rem 0; border-bottom: 1px solid rgba(255,255,255,.16);
  font-size: .98rem;
}
.spielplan li:last-child { border-bottom: 0; }
.spielplan time { color: rgba(255,255,255,.72); font-variant-numeric: tabular-nums; }
.spielplan li.vorbei { opacity: .4; text-decoration: line-through; text-decoration-thickness: 1px; }
.spielplan__stueck { margin: 0 0 .9rem; font-family: var(--serif); font-size: 1.15rem; }

/* ---------------- Abschnitte ---------------- */

.block { padding: 4.5rem 0; }
.block--papier { background: var(--papier); }
.block--hauch { background: var(--blau-hauch); }
.block--dunkel { background: var(--blau-tief); color: rgba(255,255,255,.88); }
.block--dunkel h2, .block--dunkel h3 { color: var(--weiss); }
.block--dunkel a:not(.knopf) { color: var(--weiss); }
.block--dunkel .knopf { color: var(--blau); }            /* weiße Fläche, blauer Text */
.block--dunkel .knopf--linie { color: var(--weiss); }
.block--dunkel .knopf--linie:hover { color: var(--blau-tief); }

.block > .wrap > h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.2rem);
  padding-bottom: .55rem; margin-bottom: 2rem;
  border-bottom: 3px solid var(--blau);
}
.block--dunkel > .wrap > h2 { border-bottom-color: rgba(255,255,255,.5); }

h3 { font-size: 1.3rem; margin: 2.5rem 0 .75rem; }
.block > .wrap > h3:first-of-type { margin-top: 0; }

.spalten { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 54rem) {
  .spalten { grid-template-columns: 1fr 1fr; }
  .spalten--breit { grid-template-columns: 1.6fr 1fr; }
}

/* Angebot */
.angebot { display: grid; gap: 2rem; margin-top: 2.5rem; }
@media (min-width: 40rem) { .angebot { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 66rem) { .angebot { grid-template-columns: repeat(4, 1fr); } }
.angebot h3 { margin: 0 0 .4rem; font-size: 1.12rem; }
.angebot img { width: 2.1rem; display: block; margin-bottom: .6rem; }
.angebot p { margin: 0; font-size: .96rem; color: var(--text-leise); }

/* ---------------- Termine ---------------- */

.termine { list-style: none; margin: 0; padding: 0; }
.termine li {
  display: grid; gap: .15rem 1.5rem;
  grid-template-columns: 4.75rem 1fr auto; align-items: center;
  padding: 1.15rem 0; border-top: 1px solid var(--linie);
}
.termine li:last-child { border-bottom: 1px solid var(--linie); }
.termine__datum {
  text-align: center; line-height: 1.05;
  border-right: 3px solid var(--blau); padding-right: .9rem;
}
.termine__datum b { display: block; font: 400 1.7rem var(--serif); color: var(--blau); }
.termine__datum span { font-size: .72rem; letter-spacing: .08em; color: var(--text-leise); }
.termine__wann b { display: block; }
.termine__wann span { color: var(--text-leise); font-size: .93rem; }
.termine li.vorbei .termine__datum { border-right-color: var(--linie); }
.termine li.vorbei .termine__datum b, .termine li.vorbei .termine__wann b { color: var(--text-leise); }
.termine li.vorbei .ics { display: none; }
.ics {
  appearance: none; cursor: pointer; white-space: nowrap;
  background: transparent; border: 2px solid var(--blau); color: var(--blau);
  font: 600 .85rem var(--sans); padding: .45rem .8rem;
}
.ics:hover { background: var(--blau); color: var(--weiss); }
@media (max-width: 36rem) {
  .termine li { grid-template-columns: 4rem 1fr; }
  .ics { grid-column: 2; justify-self: start; margin-top: .6rem; }
}
.notiz { font-size: .92rem; color: var(--text-leise); }

/* ---------------- Fundus ----------------
   Die Filterleiste bleibt beim Scrollen unter dem Kopf kleben.
   Kacheln zum Stöbern, Liste zum schnellen Finden. */

.filter {
  position: sticky; top: var(--kopf-hoehe); z-index: 40;
  background: var(--weiss);
  border-bottom: 1px solid var(--linie);
  padding: .75rem 0 .6rem;
  margin-bottom: 1.5rem;
}
.block--papier .filter { background: var(--papier); }

.filter__zeile {
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
  align-items: center; justify-content: space-between;
}
.filter__gruppe { display: flex; flex-wrap: wrap; gap: .35rem; }
.filter__rechts { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

.filter button {
  appearance: none; cursor: pointer;
  background: var(--weiss); border: 1px solid var(--linie); color: var(--text-leise);
  font: 600 .87rem var(--sans); padding: .42rem .8rem;
}
.filter button span {
  font-weight: 400; font-size: .78rem; opacity: .7;
  margin-left: .35rem; font-variant-numeric: tabular-nums;
}
.filter button:hover { border-color: var(--blau); color: var(--blau); }
.filter button[aria-pressed="true"] {
  background: var(--blau); border-color: var(--blau); color: var(--weiss);
}

.filter input {
  font: 1rem var(--sans); padding: .45rem .7rem;
  border: 1px solid var(--linie); background: var(--weiss); color: var(--text);
  width: 14rem; max-width: 100%;
}

.filter__ansicht { display: flex; }
.filter__ansicht button:first-child { border-right-width: 0; }

.filter__treffer {
  margin: .55rem 0 0; font-size: .82rem; color: var(--text-leise);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 40rem) {
  .filter { padding-top: .6rem; }
  .filter__rechts { width: 100%; }
  .filter input { flex: 1 1 8rem; width: auto; }
}

/* --- Umschlag der Spielzeit-Scheibe im Fundus --- */

.jahre { margin: 0 0 1.5rem; }
.jahre__hinweis { margin: 0 0 .25rem; font-size: .82rem; color: var(--text-leise); }

/* --- Bühnenzettel: das ausgewählte Jahr groß --- */

.zettel {
  display: grid; gap: 1.25rem 1.75rem;
  grid-template-columns: 7.5rem 1fr;
  align-items: start;
  background: var(--blau-hauch);
  border-left: 4px solid var(--blau);
  padding: 1.25rem;
  margin-bottom: 2rem;
}
.zettel[hidden] { display: none; }
.zettel__plakat { display: block; }
.zettel__plakat img {
  display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover;
  background: var(--blau-tief);
}
.zettel__text { min-width: 0; }
.zettel__jahr {
  margin: 0; font: 600 .78rem var(--sans); letter-spacing: .12em; color: var(--blau);
}
.zettel__titel { font-size: clamp(1.3rem, 3vw, 1.8rem); margin: .1rem 0 .25rem; }
.zettel__autor { margin: 0; font-style: italic; color: var(--text-leise); }
.zettel__zahlen {
  margin: .6rem 0 0; font-size: .9rem; color: var(--text-leise);
  font-variant-numeric: tabular-nums;
}
.zettel__aktionen { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.1rem 0 0; }

.knopf--rand {
  background: transparent; color: var(--blau); border: 2px solid var(--blau);
  cursor: pointer; font: 600 .95rem var(--sans); padding: .7rem 1.2rem;
}
.knopf--rand:hover { background: var(--blau); color: var(--weiss); }

@media (max-width: 34rem) {
  .zettel { grid-template-columns: 5.5rem 1fr; padding: 1rem; gap: 1rem; }
  .zettel__aktionen .knopf, .zettel__aktionen .knopf--rand { width: 100%; text-align: center; }
}

/* --- Kacheln: dichter als vorher, damit "Alle" auf zwei Bildschirme passt --- */
.stuecke { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem 1rem; }
@media (min-width: 26rem) { .stuecke { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 42rem) { .stuecke { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 58rem) { .stuecke { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 76rem) { .stuecke { grid-template-columns: repeat(7, 1fr); } }

.stueck[hidden] { display: none; }
.stueck a { display: block; text-decoration: none; color: inherit; height: 100%; }
.stueck__plakat { display: block; background: var(--blau-tief); overflow: hidden; margin-bottom: .45rem; }
.stueck__plakat img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform .25s ease-out; }
.stueck a:hover .stueck__plakat img { transform: scale(1.05); }
.stueck__jahr { display: block; font: 600 .74rem var(--sans); letter-spacing: .06em; color: var(--blau); }
.stueck__titel { display: block; font-family: var(--serif); font-size: .95rem; line-height: 1.25; margin: .05rem 0; }
.stueck a:hover .stueck__titel { text-decoration: underline; text-underline-offset: .15em; }
.stueck__autor { display: block; font-size: .78rem; color: var(--text-leise); }
.stueck__autor:empty, .stueck__anzahl:empty { display: none; }
.stueck__anzahl { display: block; font-size: .74rem; color: var(--text-leise); margin-top: .1rem; }

/* --- Liste: ein Stück pro Zeile, alle 37 auf einen Blick --- */
.stuecke--liste { display: block; }
.stuecke--liste .stueck a {
  display: grid; grid-template-columns: 2.2rem 3rem 1fr auto;
  gap: 0 1rem; align-items: center;
  padding: .45rem .25rem;
  border-bottom: 1px solid var(--linie);
}
.stuecke--liste .stueck a:hover { background: var(--blau-hauch); }
.stuecke--liste .stueck__plakat { margin: 0; }
.stuecke--liste .stueck__plakat img { aspect-ratio: 3/4; }
.stuecke--liste .stueck a:hover .stueck__plakat img { transform: none; }
.stuecke--liste .stueck__jahr { font-size: .95rem; font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
.stuecke--liste .stueck__titel { font-size: 1rem; margin: 0; }
.stuecke--liste .stueck__autor { grid-column: 3; font-size: .82rem; }
.stuecke--liste .stueck__anzahl { margin: 0; text-align: right; white-space: nowrap; }

@media (min-width: 44rem) {
  .stuecke--liste .stueck a { grid-template-columns: 2.2rem 3.5rem 1fr 12rem auto; }
  .stuecke--liste .stueck__autor { grid-column: 4; }
}
@media (max-width: 30rem) {
  .stuecke--liste .stueck a { grid-template-columns: 2rem 2.8rem 1fr; }
  .stuecke--liste .stueck__anzahl { grid-column: 3; text-align: left; }
}

.leer { color: var(--text-leise); font-style: italic; }

/* ---------------- Vorstand, Ämter, Downloads ---------------- */

figcaption { font-size: .9rem; color: var(--text-leise); margin-top: .7rem; }
.block--dunkel figcaption { color: rgba(255,255,255,.7); }

.aemter { margin: 0; font-size: .97rem; }
.aemter div { padding: .6rem 0; border-bottom: 1px solid var(--linie); display: grid; gap: .1rem 1rem; }
.block--dunkel .aemter div { border-bottom-color: rgba(255,255,255,.18); }
@media (min-width: 34rem) { .aemter div { grid-template-columns: 14rem 1fr; } }
.aemter--schmal div { grid-template-columns: 1fr; }
.aemter--schmal dt { font-size: .92rem; }
.aemter dt { font-weight: 600; }
.aemter dd { margin: 0; color: var(--text-leise); }
.block--dunkel .aemter dd { color: rgba(255,255,255,.75); }

.download { display: flex; gap: 1.25rem; align-items: flex-start; }
.download img { width: 108px; border: 1px solid var(--linie); background: var(--weiss); }
.download p { margin: 0 0 .6rem; font-size: .96rem; }

/* ---------------- Externe Einbindungen ---------------- */

.extern {
  background: var(--blau-hauch);
  border: 1px solid var(--linie);
  padding: 1.5rem;
  display: grid; gap: .8rem; justify-items: start; align-content: center;
  min-height: 11rem;
}
.block--dunkel .extern { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); }
.extern strong { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; }
.extern p { margin: 0; font-size: .92rem; color: var(--text-leise); max-width: 46ch; }
.block--dunkel .extern p { color: rgba(255,255,255,.75); }
.extern iframe { width: 100%; border: 0; display: block; }
.extern.geladen { padding: 0; border: 0; background: none; min-height: 0; display: block; }

/* ---------------- Kontaktformular ---------------- */

.formular { display: grid; gap: 1rem; max-width: 34rem; }
.formular label { display: grid; gap: .3rem; font-size: .92rem; font-weight: 600; }
.formular input, .formular textarea {
  font: 1rem var(--sans); padding: .6rem .75rem;
  border: 1px solid var(--linie); background: var(--weiss); color: var(--text);
  width: 100%;
}
.formular textarea { min-height: 9rem; resize: vertical; }
.formular button { justify-self: start; }
.formular .honig { position: absolute; left: -9999px; }

/* ---------------- Stück-Detailseite ---------------- */

.stueckkopf { background: var(--blau-tief); color: var(--weiss); padding: 2.75rem 0; }
.stueckkopf .wrap { display: grid; gap: .5rem; }
.stueckkopf .jahr { font: 600 .8rem var(--sans); letter-spacing: .14em; opacity: .8; }
.stueckkopf h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
.stueckkopf .autor { font-style: italic; color: rgba(255,255,255,.82); }
.zurueck {
  display: inline-block; margin-top: .5rem; font-size: .92rem;
  color: var(--weiss);                     /* dunkler Kopf, heller Text */
}
.zurueck:hover { color: var(--weiss); text-decoration-thickness: 2px; }
.stueckkopf a { color: var(--weiss); }

.besetzung { list-style: none; margin: 0; padding: 0; }
.besetzung li { padding: .6rem 0; border-bottom: 1px solid var(--linie); display: grid; gap: .1rem 1rem; }
@media (min-width: 30rem) { .besetzung li { grid-template-columns: 1fr auto; align-items: baseline; } }
.besetzung .rolle { font-weight: 600; }
.besetzung .rollentext { display: block; font-weight: 400; font-size: .88rem; color: var(--text-leise); font-style: italic; }
.besetzung .spieler { color: var(--blau); }

.team { list-style: none; margin: 1.5rem 0 0; padding: 0; font-size: .95rem; display: grid; gap: .5rem; }
.team b { font-weight: 600; }
.team span { color: var(--text-leise); }

/* ---------------- Galerie und Vollbild ---------------- */

.galerie {
  --thumb: 160px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--thumb), 1fr));
  gap: 6px; margin: 0; padding: 0; list-style: none;
}
.galerie a { display: block; overflow: hidden; background: var(--blau-tief); }
.galerie img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: opacity .15s linear; }
.galerie a:hover img { opacity: .8; }

.lb {
  position: fixed; inset: 0; z-index: 500;
  display: grid; grid-template-rows: auto 1fr auto;
  background: rgba(1,19,64,.97); color: var(--weiss);
}
.lb[hidden] { display: none; }
.lb__bar { display: flex; align-items: center; justify-content: space-between; padding: .6rem .8rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.lb__zahl { margin: 0; font-size: .9rem; color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; }
.lb__zu, .lb__pfeil {
  appearance: none; background: none; border: 0; color: var(--weiss);
  cursor: pointer; line-height: 1; padding: .3rem .6rem; font-family: var(--sans);
}
.lb__zu { font-size: 2rem; }
.lb__pfeil { font-size: 3rem; opacity: .7; }
.lb__zu:hover, .lb__pfeil:hover { opacity: 1; }
.lb__pfeil[disabled] { opacity: .18; cursor: default; }
.lb__buehne { display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: 0; padding: 0 .25rem; }
.lb__figur { height: 100%; min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: .5rem 0; }
.lb__bild { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; transition: opacity .18s ease-out; }
.lb.laedt .lb__bild { opacity: .25; }
.lb__text { max-width: 62ch; text-align: center; font-size: .85rem; color: rgba(255,255,255,.75); padding: 0 1rem; }
.lb__text:empty { display: none; }
.lb__streifen { display: flex; gap: 4px; overflow-x: auto; padding: .5rem .8rem; border-top: 1px solid rgba(255,255,255,.15); overscroll-behavior-x: contain; }
.lb__streifen[hidden] { display: none; }
.lb__streifen button { appearance: none; flex: 0 0 auto; padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; }
.lb__streifen img { display: block; width: 78px; height: 54px; object-fit: cover; opacity: .45; box-shadow: inset 0 0 0 3px transparent; transition: opacity .15s linear; }
.lb__streifen button:hover img { opacity: .85; }
.lb__streifen button[aria-current="true"] img { opacity: 1; box-shadow: inset 0 0 0 3px var(--weiss); }
html.lb-offen, body.lb-offen { overflow: hidden; }
@media (max-width: 42rem) {
  .lb__pfeil { display: none; }
  .lb__buehne { grid-template-columns: 1fr; }
  .lb__streifen img { width: 60px; height: 42px; }
}

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

.fuss { background: var(--blau-tief); color: rgba(255,255,255,.72); padding: 2.5rem 0; font-size: .92rem; }
.fuss .wrap { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; align-items: center; }
.fuss a { color: var(--weiss); }
.fuss nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.nachoben {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  width: 2.9rem; height: 2.9rem; display: none;
  align-items: center; justify-content: center;
  background: var(--blau); color: var(--weiss); text-decoration: none;
  font-size: 1.2rem; box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.nachoben.zeig { display: flex; }
.nachoben:hover { background: var(--blau-dunkel); color: var(--weiss); }

/* ---------------- Rücksicht ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .stueck a:hover .stueck__plakat img { transform: none; }
}

@media print {
  .kopf, .nav, .nachoben, .extern, .ics, .filter, .lb { display: none !important; }
  body { color: #000; background: #fff; }
  .buehne, .stueckkopf, .block--dunkel, .fuss { background: #fff !important; color: #000 !important; }
  .buehne::after { display: none; }
  a { color: #000; }
}

/* ---------------- Publikumsstimmen ---------------- */

.stimmen { display: grid; gap: 1.5rem; margin-top: 1rem; }
@media (min-width: 46rem) { .stimmen { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); } }

.stimme { border-left: 3px solid var(--blau); padding: .25rem 0 .25rem 1.25rem; }
.stimme blockquote { margin: 0; }
.stimme blockquote p {
  margin: 0; font-family: var(--serif); font-size: 1.08rem; line-height: 1.5;
}
.stimme blockquote p::before { content: "\201E"; }
.stimme blockquote p::after { content: "\201C"; }
.stimme figcaption { margin-top: .5rem; font-size: .88rem; }

/* ---------------- Chronik als Drehscheibe ----------------
   Die Jahre liegen auf einem sehr flachen Bogen: ein großer Radius, ein
   kleiner Winkel pro Eintrag. Sichtbar ist nur der oberste Ausschnitt, das
   Rad selbst liegt weit unterhalb. Gedreht wird über --dreh (Nummer des
   gewählten Eintrags). Ersetzt das TimelineJS-Widget von knightlab.com. */

.scheibe {
  --radius: 900px;
  --schritt: 6deg;
  margin-top: 1.5rem;
}

.scheibe__buehne {
  position: relative;
  height: 8.5rem;
  overflow: hidden;
  border-bottom: 2px solid var(--linie);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.block--dunkel .scheibe__buehne { border-bottom-color: rgba(255,255,255,.3); }

.scheibe__rad {
  position: absolute;
  left: 50%;
  top: 1.6rem;                     /* hier sitzt der oberste Punkt des Rads */
  width: 0; height: 0;
  transform: translateY(var(--radius)) rotate(calc(var(--dreh) * var(--schritt) * -1));
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
}

.scheibe__jahr {
  position: absolute; left: 0; top: 0;
  appearance: none; background: none; border: 0; cursor: pointer;
  white-space: nowrap;
  font: 400 1.15rem var(--serif);
  color: var(--text-leise);
  font-variant-numeric: tabular-nums;
  padding: .3rem .5rem;
  transform:
    translate(-50%, -50%)
    rotate(calc(var(--i) * var(--schritt)))
    translateY(calc(var(--radius) * -1));
  transition: color .15s linear;
}
.block--dunkel .scheibe__jahr { color: rgba(255,255,255,.65); }

.scheibe__jahr::after {         /* die Kerbe am Rand der Scheibe */
  content: ""; position: absolute; left: 50%; bottom: -.85rem;
  width: 2px; height: .6rem; background: var(--linie);
  transform: translateX(-50%);
}
.block--dunkel .scheibe__jahr::after { background: rgba(255,255,255,.3); }

.scheibe__jahr:hover { color: var(--blau); }
.block--dunkel .scheibe__jahr:hover { color: var(--weiss); }

.scheibe__jahr[aria-selected="true"] {
  color: var(--blau); font-size: 1.5rem; font-weight: 400;
}
.block--dunkel .scheibe__jahr[aria-selected="true"] { color: var(--weiss); }
.scheibe__jahr[aria-selected="true"]::after { background: var(--blau); width: 3px; height: .9rem; }
.block--dunkel .scheibe__jahr[aria-selected="true"]::after { background: var(--weiss); }

.scheibe__marke {               /* Zeiger auf den gewählten Eintrag */
  position: absolute; left: 50%; bottom: 0;
  width: 3px; height: 1.4rem; background: var(--blau);
  transform: translateX(-50%);
}
.block--dunkel .scheibe__marke { background: var(--weiss); }

.scheibe__steuerung {
  display: flex; align-items: center; justify-content: center; gap: 1.25rem;
  padding: .6rem 0 0;
}
.scheibe__pfeil {
  appearance: none; cursor: pointer;
  background: none; border: 1px solid var(--linie); color: var(--blau);
  font: 400 1.4rem/1 var(--sans);
  width: 2.4rem; height: 2.4rem;
}
.scheibe__pfeil:hover { background: var(--blau); border-color: var(--blau); color: var(--weiss); }
.scheibe__pfeil[disabled] { opacity: .35; cursor: default; }
.scheibe__pfeil[disabled]:hover { background: none; border-color: var(--linie); color: var(--blau); }
.block--dunkel .scheibe__pfeil { border-color: rgba(255,255,255,.35); color: var(--weiss); }
.block--dunkel .scheibe__pfeil:hover { background: var(--weiss); color: var(--blau-tief); }

.scheibe__zaehler {
  margin: 0; font-size: .82rem; color: var(--text-leise);
  font-variant-numeric: tabular-nums; min-width: 4.5rem; text-align: center;
}
.block--dunkel .scheibe__zaehler { color: rgba(255,255,255,.65); }

.scheibe__tafel {
  max-width: 62ch; margin: 1rem auto 0; text-align: center;
  min-height: 9.5rem;
}
.scheibe__tafel-jahr {
  margin: 0; font: 600 .78rem var(--sans); letter-spacing: .14em; color: var(--blau);
}
.block--dunkel .scheibe__tafel-jahr { color: var(--weiss); }
.scheibe__tafel-titel { font-size: 1.3rem; margin: .2rem 0 .5rem; }
.scheibe__tafel-text { margin: 0; color: var(--text-leise); }
.block--dunkel .scheibe__tafel-text { color: rgba(255,255,255,.78); }

/* Auf dem Handy ein engerer Bogen, sonst liegen die Nachbarjahre außerhalb */
@media (max-width: 46rem) {
  .scheibe { --radius: 460px; --schritt: 11deg; }
  .scheibe__buehne { height: 7rem; }
  .scheibe__jahr { font-size: 1rem; }
  .scheibe__jahr[aria-selected="true"] { font-size: 1.3rem; }
  .scheibe__tafel { min-height: 12rem; }
}

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

/* Chronik ohne JavaScript */
.chronik-liste { margin: 1.5rem 0 0; padding-left: 1.25rem; }
.chronik-liste li { margin-bottom: 1rem; }
.chronik-liste b { color: var(--blau); font-variant-numeric: tabular-nums; }

/* ---------------- Publikumsstimmen ---------------- */

.stimmen { display: grid; gap: 1.5rem; margin-top: 1rem; }
@media (min-width: 46rem) { .stimmen { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); } }

.stimme { border-left: 3px solid var(--blau); padding: .25rem 0 .25rem 1.25rem; }
.stimme blockquote { margin: 0; }
.stimme blockquote p {
  margin: 0; font-family: var(--serif); font-size: 1.08rem; line-height: 1.5;
}
.stimme blockquote p::before { content: "\201E"; }
.stimme blockquote p::after { content: "\201C"; }
.stimme figcaption { margin-top: .5rem; font-size: .88rem; }

/* ---------------- Zeitstrahl (Vereinschronik) ----------------
   Eigener Zeitstrahl, ersetzt das TimelineJS-Widget von knightlab.com.
   Ohne JavaScript, und auf dem Handy einspaltig statt seitlich scrollend. */

.zeitstrahl { list-style: none; margin: 1.5rem 0 0; padding: 0; position: relative; }

.zeitstrahl::before {
  content: ""; position: absolute; top: .6rem; bottom: .6rem; left: 5.5rem;
  width: 2px; background: var(--linie);
}
.block--dunkel .zeitstrahl::before { background: rgba(255,255,255,.25); }

.zeitstrahl > li {
  position: relative;
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 0 2rem;
  padding-bottom: 1.75rem;
}
.zeitstrahl > li:last-child { padding-bottom: 0; }

.zeitstrahl > li::before {   /* der Punkt auf der Linie */
  content: ""; position: absolute; left: calc(5.5rem - 6px); top: .55rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--blau); box-shadow: 0 0 0 4px var(--weiss);
}
.block--papier .zeitstrahl > li::before { box-shadow: 0 0 0 4px var(--papier); }
.block--hauch .zeitstrahl > li::before { box-shadow: 0 0 0 4px var(--blau-hauch); }
.block--dunkel .zeitstrahl > li::before { background: var(--weiss); box-shadow: 0 0 0 4px var(--blau-tief); }

.zeitstrahl__jahr {
  margin: 0; text-align: right;
  font: 400 1.15rem/1.35 var(--serif); color: var(--blau);
  font-variant-numeric: tabular-nums;
}
.block--dunkel .zeitstrahl__jahr { color: var(--weiss); }

.zeitstrahl__was { min-width: 0; padding-top: .1rem; }
.zeitstrahl__was h4 { font-size: 1.1rem; margin: 0 0 .2rem; }
.zeitstrahl__was p { margin: 0; font-size: .96rem; max-width: 60ch; color: var(--text-leise); }
.block--dunkel .zeitstrahl__was p { color: rgba(255,255,255,.75); }

@media (max-width: 40rem) {
  .zeitstrahl::before { left: 6px; }
  .zeitstrahl > li { grid-template-columns: 1fr; gap: .15rem; padding-left: 1.75rem; }
  .zeitstrahl > li::before { left: 0; top: .5rem; width: 12px; height: 12px; }
  .zeitstrahl__jahr { text-align: left; font-size: 1rem; }
}

/* --- Stückliste ein- und ausklappen --- */
.fundus__schalter { margin: 0 0 1.5rem; }
.fundus__alle[hidden] { display: none; }
.fundus__alle .filter__ansicht { margin-bottom: 1rem; }

/* --- Eigene Vorschlagsliste für Spielernamen ---
   Kein <datalist>: die Liste erscheint erst ab drei Buchstaben und zeigt nur
   Namen, die dazu passen. */

.suchfeld { position: relative; }

.vorschlaege {
  position: absolute; top: calc(100% + 2px); left: 0; z-index: 60;
  list-style: none; margin: 0; padding: .25rem 0;
  min-width: 100%; max-width: 22rem; max-height: 15rem; overflow-y: auto;
  background: var(--weiss);
  border: 1px solid var(--linie);
  box-shadow: 0 6px 18px rgba(1,19,64,.14);
}
.vorschlaege[hidden] { display: none; }

.vorschlaege li { margin: 0; }
.vorschlaege button {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  width: 100%; text-align: left; cursor: pointer;
  background: none; border: 0; padding: .45rem .75rem;
  font: 1rem var(--sans); color: var(--text);
}
.vorschlaege button b { font-weight: 600; }
.vorschlaege button b mark {
  background: none; color: var(--blau); font-weight: 700;
}
.vorschlaege button span {
  font-size: .78rem; color: var(--text-leise); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.vorschlaege button:hover,
.vorschlaege li[aria-selected="true"] button { background: var(--blau-hauch); }

/* Jahrzehnt-Anfänge auf der Scheibe deutlicher markieren */
.scheibe__jahr.ist-jahrzehnt { color: var(--text); }
.block--dunkel .scheibe__jahr.ist-jahrzehnt { color: rgba(255,255,255,.85); }
.scheibe__jahr.ist-jahrzehnt::after { height: .95rem; background: var(--text-leise); }
.block--dunkel .scheibe__jahr.ist-jahrzehnt::after { background: rgba(255,255,255,.5); }
.scheibe__jahr.ist-jahrzehnt[aria-selected="true"] { color: var(--blau); }
.block--dunkel .scheibe__jahr.ist-jahrzehnt[aria-selected="true"] { color: var(--weiss); }

/* Im Fundus stehen 37 Jahre auf der Scheibe, dort passt ein engerer Bogen */
#fundus-scheibe { --radius: 760px; --schritt: 7deg; }
#fundus-scheibe .scheibe__buehne { height: 7rem; }

/* Profilkarte für Instagram, dazu der Link der Chronik-Tafel */
.profil { margin: 0 0 .5rem; }
.scheibe__tafel-link { margin: .7rem 0 0; }
.scheibe__tafel-link[hidden] { display: none; }
.scheibe__tafel-link a { font-size: .92rem; }

/* ---------------- Bestuhlungsplan ----------------
   Der Plan wird als SVG aus daten/sitzplan.json gezeichnet, jeder Tisch ist
   anklickbar. Ersetzt das PNG in der Lightbox. */

.sitzplan { max-width: 44rem; }

.sitzplan__kopf {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  align-items: center; justify-content: space-between;
  margin-bottom: .75rem;
}
.sitzplan__zahlen {
  margin: 0; font: 400 1.05rem var(--serif); color: var(--blau);
  font-variant-numeric: tabular-nums;
}
.sitzplan__suche input {
  font: 1rem var(--sans); padding: .45rem .7rem; width: 9rem;
  border: 1px solid var(--linie); background: var(--weiss); color: var(--text);
}

.sitzplan__bild { display: block; width: 100%; height: auto; }

.sitzplan__bild .halle { fill: var(--weiss); stroke: var(--text); stroke-width: 3; }
.sitzplan__bild .buehne { fill: var(--blau-hauch); stroke: var(--blau); stroke-width: 2; }
.sitzplan__bild .beschriftung {
  font: 600 15px var(--sans); fill: var(--blau); letter-spacing: .22em;
}
.sitzplan__bild .beschriftung.klein {
  font-size: 12px; letter-spacing: .04em; fill: var(--text-leise);
}

.sitzplan__bild .platz { fill: #e3e3df; stroke: #c3c3bd; stroke-width: 1; }
.sitzplan__bild .platte { fill: #cfcfc9; stroke: #a9a9a3; stroke-width: 1; }
.sitzplan__bild .nummernkreis { fill: var(--weiss); stroke: #a9a9a3; stroke-width: 1; }
.sitzplan__bild .nummer {
  font: 600 14px var(--sans); fill: var(--text); text-anchor: middle;
}

.sitzplan__bild .tisch { cursor: pointer; }
.sitzplan__bild .tisch .platte,
.sitzplan__bild .tisch .platz,
.sitzplan__bild .tisch .nummernkreis,
.sitzplan__bild .tisch .nummer { transition: fill .12s linear, stroke .12s linear; }

.sitzplan__bild .tisch:hover .platte { fill: var(--blau-dunkel); }
.sitzplan__bild .tisch:hover .platz { fill: #b9c6e2; stroke: var(--blau); }

.sitzplan__bild .tisch[aria-pressed="true"] .platte { fill: var(--blau); stroke: var(--blau-tief); }
.sitzplan__bild .tisch[aria-pressed="true"] .platz { fill: #9fb2d8; stroke: var(--blau); }
.sitzplan__bild .tisch[aria-pressed="true"] .nummernkreis { fill: var(--blau); stroke: var(--weiss); stroke-width: 2; }
.sitzplan__bild .tisch[aria-pressed="true"] .nummer { fill: var(--weiss); }

.sitzplan__bild .tisch:focus-visible { outline: none; }
.sitzplan__bild .tisch:focus-visible .platte {
  stroke: var(--blau); stroke-width: 3;
}

.sitzplan__tafel {
  margin: .9rem 0 .5rem; padding: .7rem .9rem;
  background: var(--blau-hauch); border-left: 4px solid var(--blau);
  font-size: .95rem;
}
.sitzplan__tafel b { font-weight: 600; }

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

/* Vorbehalt unter dem Sitzplan */
.sitzplan__vorbehalt {
  margin: .4rem 0 0; padding-left: .9rem;
  border-left: 3px solid var(--linie);
  font-size: .88rem; color: var(--text-leise);
}

/* --- Flyer: beide Seiten untereinander, Höhe begrenzt, damit die Spalte
       neben den Terminen nicht davonläuft --- */
.galerie--einspaltig { grid-template-columns: 1fr; gap: .75rem; max-width: none; }
.galerie--einspaltig a { background: none; }
.galerie--einspaltig img {
  aspect-ratio: auto; object-fit: contain; background: var(--weiss);
  width: auto; max-width: 100%; max-height: 17rem; margin: 0 auto;
  border: 1px solid var(--linie);
}

/* --- Kulissenbilder: drei über die volle Breite --- */
.galerie--drei { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 34rem) { .galerie--drei { grid-template-columns: 1fr; } }

/* --- Zweispaltiger Lesetext ---
       Nur ab genug Breite, darunter bleibt es einspaltig. */
.zweispaltig { max-width: 62rem; }
@media (min-width: 52rem) {
  .zweispaltig { columns: 2; column-gap: 3rem; }
  .zweispaltig p { margin-top: 0; break-inside: avoid; }
  .zweispaltig p:last-child { margin-bottom: 0; }
}

/* --- Kartenvorverkauf --- */
.vorverkauf__titel { font-size: 1.1rem; margin: 2rem 0 .5rem; }
.vorverkauf { list-style: none; margin: 0; padding: 0; }
.vorverkauf li {
  padding: .5rem 0 .5rem .9rem;
  border-left: 3px solid var(--blau);
  border-bottom: 1px solid var(--linie);
}
.vorverkauf li:last-child { border-bottom: 0; }
.vorverkauf b { display: block; font-weight: 600; }
.vorverkauf span { font-size: .92rem; color: var(--text-leise); }
.vorverkauf li.vorbei { border-left-color: var(--linie); color: var(--text-leise); }
.vorverkauf li.vorbei b { color: var(--text-leise); font-weight: 400; }

/* --- Spielort: Hallenbild über die volle Breite --- */
.breitbild { margin: 0 0 1.75rem; }
.breitbild img { display: block; width: 100%; height: auto; }
.breitbild figcaption { margin-top: .5rem; }


/* --- Kanäle in der Fußzeile ---
   Nur Verweise, keine Einbindung. Die Symbole sind einfache eigene Formen. */

.kanaele { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }

.kanal {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--weiss); text-decoration: none;
  font-size: .9rem;
}
.kanal svg {
  width: 22px; height: 22px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linejoin: round;
}
.kanal:hover { color: var(--weiss); text-decoration: underline; text-underline-offset: .2em; }
.kanal:hover svg { stroke-width: 2.1; }

@media (max-width: 34rem) {
  .kanal span { position: absolute; left: -9999px; }   /* auf dem Handy nur die Symbole */
  .kanaele { gap: 1.5rem; }
}

/* --- Fundus-Karte ohne Plakat --- */
.stueck__plakat--leer {
  display: grid; place-content: center; gap: .2rem;
  aspect-ratio: 3/4; text-align: center;
  background: linear-gradient(165deg, var(--blau-dunkel), var(--blau-tief));
  color: var(--weiss);
}
.stueck__plakat--leer span { font: 400 1.5rem var(--serif); }
.stueck__plakat--leer small { font-size: .72rem; opacity: .75; }

/* Bühnenzettel ohne Plakat: die Textspalte nimmt die ganze Breite */
.zettel--ohne-plakat { grid-template-columns: 1fr; }
.zettel--ohne-plakat .zettel__plakat { display: none; }

/* Früherer Name im Vorschlag */
.vorschlaege button b em { font-weight: 400; font-size: .82rem; color: var(--text-leise); }
