/* ------------------------------------------------------------------
   Teil 15 · Bühne: Show-Archiv an der Stelle des Plakats
   Solange in der Adminleiste „🎭 Bühne: Show-Archiv“ eingestellt ist,
   verschwinden Plakat, Termintext und Randnotiz; an ihrer Stelle läuft
   ein Band mit den bisherigen Shows. Die Kurzvideos bleiben stehen.
   Gehört zum Plugin „Floo – Bühne & Show-Archiv“.
   Zum Rückgängigmachen diesen Block löschen.
------------------------------------------------------------------ */

/* Schaltung */
.floo-showarchiv{ display:none; }
body.floo-ohne-termine #buehne > .floo-event__poster,
body.floo-ohne-termine #buehne > .floo-event__text,
body.floo-ohne-termine #buehne > .floo-marginalie{ display:none !important; }
body.floo-ohne-termine #buehne > .floo-showarchiv{
  display:block;
  grid-column:1 / -1;
  order:-1;
  width:100%;
  min-width:0;
  margin:0 0 clamp(1.5rem,4vw,2.8rem) !important;
}

/* Kopf: Eyebrow + Überschrift links, Pfeile rechts */
.floo-showarchiv__kopf{
  display:flex; align-items:flex-end; justify-content:space-between; gap:1rem;
  margin:0 0 1.2rem;
}
.floo-showarchiv__kopf > div > *{ margin:0 !important; }
html body .floo-showarchiv .floo-eyebrow{ color:var(--floo-ostsee) !important; margin-bottom:.2rem !important; }
html body .floo-showarchiv__kopf h2{ color:var(--floo-bordeaux) !important; }

.floo-showarchiv__nav{ display:flex; gap:.5rem; flex:none; }
.floo-showarchiv__nav button{
  display:grid; place-items:center;
  width:2.6rem; height:2.6rem; padding:0;
  border:1px solid rgba(140,28,43,.45); border-radius:50%;
  background:#fff; color:var(--floo-bordeaux);
  font:500 1.15rem/1 var(--floo-serif);
  cursor:pointer; transition:background .2s ease, color .2s ease, opacity .2s ease;
}
.floo-showarchiv__nav button:hover:not(:disabled){ background:var(--floo-bordeaux); color:#fff; }
.floo-showarchiv__nav button:disabled{ opacity:.28; cursor:default; }
.floo-showarchiv__nav button:focus-visible{ outline:2px solid var(--floo-ostsee); outline-offset:2px; }
.floo-showarchiv.ist-kurz .floo-showarchiv__nav{ display:none; }

/* Das Band: alle Plakate gleich hoch, Breite ergibt sich aus dem Format */
.floo-showarchiv__band{
  --floo-plakat:clamp(250px, 28vw, 340px);
  display:flex; gap:clamp(1.4rem,3vw,2.4rem);
  list-style:none; margin:0 !important; padding:1rem .5rem 1.3rem !important;
  overflow-x:auto; overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory; scroll-padding-inline:.5rem;
  scrollbar-width:thin; scrollbar-color:var(--floo-ostsee) transparent;
}
.floo-showarchiv__band:focus-visible{ outline:2px dashed var(--floo-ostsee); outline-offset:4px; }

.floo-show{
  flex:0 0 auto;
  width:min(calc(var(--ar, .707) * var(--floo-plakat)), 78vw);
  margin:0 !important;
  scroll-snap-align:start;
}

/* Plakat wie ein Programmheft auf dem Tisch (vgl. Teil 9) */
.floo-show__plakat{ display:block; height:var(--floo-plakat); margin:0 0 1.1rem; }
.floo-show__plakat img{
  display:block; width:100%; height:100%;
  object-fit:contain;
  border-radius:3px; background:#fff;
  box-shadow:0 1px 2px rgba(18,37,58,.12), 0 10px 24px rgba(18,37,58,.16);
  transform:rotate(-1.2deg);
  transition:transform .25s ease;
}
.floo-show:nth-child(even) .floo-show__plakat img{ transform:rotate(1deg); }
.floo-show__plakat:hover img,
.floo-show__plakat:focus-visible img{ transform:rotate(0) scale(1.02); }
.floo-show__plakat:focus-visible{ outline:none; }

/* Text unter dem Plakat */
html body .floo-show__zeile{
  margin:0 0 .25rem !important;
  font-family:var(--floo-sans); font-size:.72rem; font-weight:600;
  letter-spacing:.09em; text-transform:uppercase;
  color:var(--floo-ostsee);
}
html body .floo-show__titel{
  margin:0 0 .45rem !important;
  font-family:var(--floo-serif) !important; font-weight:500 !important;
  font-size:clamp(1.3rem,1.9vw,1.6rem) !important; line-height:1.15 !important; letter-spacing:0 !important;
  color:var(--floo-bordeaux) !important;
}
.floo-show__text{ font-size:.92rem; line-height:1.55; color:var(--floo-grau); }
html body .floo-show__text p{ margin:0 0 .5em !important; }

/* Anfrage-Link unter dem Band */
.floo-showarchiv__fuss{ margin:.3rem 0 0 !important; }
.floo-showarchiv__fuss a{ font-weight:600; color:var(--floo-ostsee); }
.floo-showarchiv__fuss a::after{ content:" →"; }

/* Plakat groß */
.floo-showarchiv__zoom{
  padding:0; border:0; background:transparent; overflow:visible;
  max-width:min(92vw,900px); max-height:94vh;
}
.floo-showarchiv__zoom::backdrop{ background:rgba(18,37,58,.84); }
.floo-showarchiv__zoom img{
  display:block; width:auto; height:auto; max-width:100%; max-height:88vh;
  border-radius:4px; box-shadow:0 20px 50px rgba(0,0,0,.35);
}
.floo-showarchiv__zu{
  position:absolute; top:-.9rem; right:-.9rem;
  width:2.4rem; height:2.4rem; border:0; border-radius:50%;
  background:#fff; color:var(--floo-bordeaux); font-size:1.5rem; line-height:1; cursor:pointer;
}

/* Handy: Plakat groß, das nächste lugt hervor */
@media (max-width:640px){
  .floo-showarchiv__band{ --floo-plakat:min(300px, 95vw); }
  .floo-showarchiv__kopf{ align-items:flex-start; }
  .floo-showarchiv__nav button{ width:2.3rem; height:2.3rem; }
}

/* Falls WordPress den Shortcode in einen leeren Absatz setzt */
#buehne > p:empty{ display:none !important; }
