:root {
  --bg:           #171616;
  --bg-alt:       #1B1B1B;
  --bg-secondary: #232323;
  --bg-hover:     #2F2C2C;
  --border:       rgba(210, 210, 210, 0.12);
  --text-muted:   rgba(210, 210, 210, 0.6);
  --text:         #D2D2D2;
  --text-strong:  #FFFFFF;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body:    "Caudex", Georgia, serif;
  --ease-curtain: cubic-bezier(0.65, 0, 0.35, 1);
}

html, body { background: var(--bg); color: var(--text); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html.preloading, body.preloading { overflow: hidden; }

::selection { background: var(--text-strong); color: var(--bg); }

/* WICHTIG: muss [hidden]-Attribut zuverlässig ausblenden, auch wenn Tailwind .flex etc. sonst gewinnt */
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

/* ====================== Buttons ====================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  padding: 13px 28px; font-family: var(--font-body); font-weight: 700;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 2px; transition: all .25s ease;
  cursor: pointer; line-height: 1;
}
.btn-primary  { background: var(--text-strong); color: var(--bg); border-color: var(--text-strong); }
.btn-primary:hover  { opacity: .88; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text-strong); border-color: var(--text); }
.btn-secondary:hover { border-color: var(--text-strong); transform: translateY(-1px); }
.btn-ghost    { background: transparent; color: rgba(210,210,210,0.7); border-color: rgba(210,210,210,0.3); }
.btn-ghost:hover { color: var(--text-strong); border-color: var(--text); }

/* ====================== Eyebrow ====================== */
.eyebrow {
  font-family: var(--font-body); font-size: 11px; line-height: 1;
  letter-spacing: 3px; text-transform: uppercase; color: var(--text-muted);
}

/* ====================== Theater-Preloader ====================== */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: #0E0D0D; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.preloader[hidden] { display: none !important; }

.preloader__stage { position: absolute; inset: 0; overflow: hidden; }
.preloader__portrait {
  position: absolute; inset: 0;
  background-position: center 25%; background-size: cover;
  opacity: 0; transform: scale(1.06);
  animation: portraitIn 2200ms var(--ease-curtain) 400ms forwards;
}
.preloader__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(14,13,13,0.45) 60%, rgba(14,13,13,0.85) 100%);
  pointer-events: none;
}
.preloader__inner { position: relative; z-index: 3; text-align: center; padding: 0 24px; }
.preloader__eyebrow {
  font-family: var(--font-body); font-size: 11px; line-height: 1;
  letter-spacing: 6px; text-transform: uppercase; color: rgba(255,255,255,0.65);
  opacity: 0; transform: translateY(10px);
  animation: textIn 1100ms var(--ease-curtain) 1000ms forwards;
}
.preloader__name {
  margin-top: 22px; font-family: var(--font-display); color: #fff;
  font-size: clamp(48px, 8vw, 96px); font-weight: 500;
  line-height: 1.02; letter-spacing: -0.015em;
  opacity: 0; transform: translateY(14px);
  animation: textIn 1300ms var(--ease-curtain) 1400ms forwards;
}
.preloader__role {
  margin-top: 18px; font-family: var(--font-body); font-style: italic;
  color: rgba(255,255,255,0.8); font-size: 14px; letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0; transform: translateY(8px);
  animation: textIn 1100ms var(--ease-curtain) 2400ms forwards;
}
.preloader__hint {
  margin-top: 48px; font-family: var(--font-body); font-size: 11px;
  letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,0.4);
  opacity: 0; animation: textIn 1000ms var(--ease-curtain) 3400ms forwards;
}

.curtain {
  position: absolute; top: 0; bottom: 0; width: 52%;
  background:
    repeating-linear-gradient(
      90deg,
      #0a0a0a 0px,
      #161414 18px,
      #1f1c1c 36px,
      #161414 54px,
      #0a0a0a 72px
    );
  box-shadow: 0 0 60px rgba(0,0,0,0.85) inset;
  z-index: 2;
  /* Vorhang ist von Anfang an geschlossen — nur die Öffnung wird animiert. */
}
.curtain--left  { left: -2%;  transform: translateX(0); }
.curtain--right { right: -2%; transform: translateX(0); }
.curtain::before {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40px;
  background: linear-gradient(90deg, rgba(0,0,0,0.6), transparent);
}
.curtain--right::before {
  left: auto; right: 0; background: linear-gradient(270deg, rgba(0,0,0,0.6), transparent);
}
.preloader .curtain { transition: transform 2400ms var(--ease-curtain); }
.preloader.is-opening .curtain--left  { transform: translateX(-105%); }
.preloader.is-opening .curtain--right { transform: translateX(105%);  }
.preloader.is-opening .preloader__portrait,
.preloader.is-opening .preloader__inner {
  transition: opacity 900ms ease, transform 1800ms var(--ease-curtain);
  opacity: 0; transform: scale(0.96);
}
.preloader.is-done { opacity: 0; transition: opacity 350ms ease; pointer-events: none; }

@keyframes portraitIn { to { opacity: 1; transform: scale(1.0); } }
@keyframes textIn     { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .preloader__portrait, .preloader__eyebrow, .preloader__name,
  .preloader__role, .preloader__hint { animation: none; opacity: 1; transform: none; }
  .preloader .curtain { transition: opacity 300ms ease; }
  .preloader.is-opening .curtain { opacity: 0; transform: none !important; }
}

/* ====================== Tahiti-Slider (Aktuelle Produktion) ====================== */
.tahiti-slider { position: absolute; inset: 0; }
.tahiti-slider img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1200ms var(--ease-curtain);
}
.tahiti-slider img.is-active { opacity: 1; }

/* ====================== Cookie-Banner ====================== */
.cookie {
  position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 80;
  background: var(--bg-alt); border: 1px solid var(--border); padding: 20px 24px;
  display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin: 0 auto;
}
.cookie[hidden] { display: none !important; }
.cookie__text { font-size: 14px; color: var(--text); }
.cookie__row  { display: flex; gap: 12px; flex-wrap: wrap; }
@media (min-width: 640px) {
  .cookie { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ====================== Tag-Pillen ====================== */
.tag {
  display: inline-block; padding: 4px 10px; font-family: var(--font-body);
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  border: 1px solid var(--border); color: var(--text-muted); border-radius: 2px;
}
.tag--regie      { color: #E9DBC6; border-color: rgba(233,219,198,0.35); }
.tag--schauspiel { color: #E0D2D8; border-color: rgba(224,210,216,0.35); }
.tag--autorin    { color: #D6DCE0; border-color: rgba(214,220,224,0.35); }
.tag--oper       { color: #DCD1E0; border-color: rgba(220,209,224,0.35); }
.tag--film       { color: #CFDCD3; border-color: rgba(207,220,211,0.35); }

/* ====================== Mobile-Menü ====================== */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 32px; transform: translateX(100%); transition: transform 300ms var(--ease-curtain);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--font-body); font-size: 14px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text); padding: 12px 16px;
}
.mobile-menu a[aria-current="page"] { color: var(--text-strong); }

/* ====================== Bilder ====================== */
/* Bilder bleiben farbig — kein Filter mehr. */
.img-stage { /* legacy class, jetzt kein Filter mehr */ }

/* ====================== Formularfelder ====================== */
.field {
  width: 100%; background: var(--bg-secondary); color: var(--text);
  border: 1px solid var(--border); padding: 14px 16px; font-family: var(--font-body);
  font-size: 15px; border-radius: 2px; transition: border-color .2s ease;
}
.field:focus { outline: none; border-color: var(--text); }
.field::placeholder { color: var(--text-muted); }
textarea.field { min-height: 160px; resize: vertical; }

.divider { height: 1px; background: var(--border); }
html { scroll-behavior: smooth; }

/* ====================== Scroll-Reveal Animationen ====================== */
[data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity 800ms var(--ease-curtain), transform 800ms var(--ease-curtain);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="scale"] { transform: scale(0.96); opacity: 0; }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="100"] { transition-delay: 100ms; }
[data-reveal-delay="200"] { transition-delay: 200ms; }
[data-reveal-delay="300"] { transition-delay: 300ms; }
[data-reveal-delay="400"] { transition-delay: 400ms; }
[data-reveal-delay="500"] { transition-delay: 500ms; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ====================== Hover-Akzente ====================== */
.hover-lift { transition: transform 300ms var(--ease-curtain), box-shadow 300ms ease; }
.hover-lift:hover { transform: translateY(-3px); }

.card-link { position: relative; }
.card-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px;
  width: 0%; background: var(--text-strong); transition: width 400ms var(--ease-curtain);
}
.card-link:hover::after { width: 100%; }

/* ====================== Nav ====================== */
[data-nav]             { background: transparent; transition: background-color 250ms ease, backdrop-filter 250ms ease, border-color 250ms ease; }
[data-nav].is-solid    { background: rgba(23,22,22,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
[data-nav].is-scrolled { background: rgba(23,22,22,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }

/* ====================== Filter-Buttons ====================== */
[data-filter].is-active,
[data-news-target].is-active { color: var(--text-strong); border-color: var(--text-strong); }

/* ====================== Quote-Slider ====================== */
/* Grid-Stack: alle Slides liegen in derselben Zelle, Container nimmt Höhe des längsten Zitats. */
.quote-slider { display: grid; }
.quote-slider > [data-quote-slide] {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 1100ms var(--ease-curtain);
  pointer-events: none;
}
.quote-slider > [data-quote-slide][style*="opacity: 1"] { pointer-events: auto; }

/* ====================== Werkverzeichnis (Vita-CV, aufklappbar) ====================== */
.cv-row { display: grid; grid-template-columns: 5rem 1fr; gap: 0.15rem 1.25rem; padding: 0.7rem 0; align-items: baseline; }
@media (max-width: 640px) { .cv-row { grid-template-columns: 4rem 1fr; gap: 0.1rem 0.75rem; } }
.cv-disclosure > summary { list-style: none; cursor: pointer; }
.cv-disclosure > summary::-webkit-details-marker { display: none; }
.cv-chevron { transition: transform 0.24s ease; }
.cv-disclosure[open] .cv-chevron { transform: rotate(180deg); }
.cv-disclosure[open] .cv-more { display: none; }
.cv-disclosure:not([open]) .cv-less { display: none; }
/* Inhalt nur im geöffneten Zustand zeigen (robust, unabhängig vom UA-Default) */
.cv-disclosure:not([open]) .cv-panel { display: none; }

/* Bei Video-Triggern: "Ansehen"-Hover-Hint ausblenden, das ▶ übernimmt */
[data-lightbox-trigger][data-video] > span:last-child { display: none; }

/* Lightbox-Trigger: Play-Icon nur sichtbar, wenn data-video gesetzt */
[data-lightbox-trigger][data-video]::after {
  content: "play_arrow";
  font-family: "Material Symbols Outlined";
  font-feature-settings: 'liga';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14,13,13,0.55);
  backdrop-filter: blur(4px);
  color: #fff;
  border-radius: 999px;
  font-size: 38px;
  pointer-events: none;
  transition: transform 300ms ease, background 300ms ease;
}
[data-lightbox-trigger][data-video]:hover::after {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(14,13,13,0.78);
}

/* ====================== Lightbox ====================== */
.lightbox {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(14,13,13,0.94);
  align-items: center; justify-content: center;
  padding: 24px;
  display: flex;
}
.lightbox[hidden] { display: none !important; }
.lightbox__close {
  position: absolute; top: 20px; right: 20px;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15);
  color: #fff; cursor: pointer; transition: background 200ms ease;
}
.lightbox__close:hover { background: rgba(255,255,255,0.12); }
.lightbox__media {
  max-width: min(1280px, 100%); max-height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__media img {
  max-width: 100%; max-height: 90vh;
  object-fit: contain; display: block;
}
.lightbox__media .video-wrap {
  position: relative; width: min(1280px, 100%); aspect-ratio: 16 / 9;
}
.lightbox__media iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.lightbox__caption {
  position: absolute; left: 24px; right: 24px; bottom: 20px; text-align: center;
  font-family: var(--font-body); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.65);
}

/* ====================== Rich-Text (aus CMS gerenderte Markdown-Felder) ====================== */
/* Für News-Texte und die Produktionsbeschreibung — hält das Aussehen der
   früheren handgeschriebenen Absätze, egal was im CMS eingegeben wird. */
.rich-text > p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.7; }
.rich-text > p:last-child { margin-bottom: 0; }
.rich-text a { color: var(--text-strong); text-decoration: underline; }
.rich-text strong { color: var(--text); font-weight: 700; }
.rich-text em { font-style: italic; }
.rich-text ul, .rich-text ol { color: var(--text-muted); margin: 0 0 1rem 1.25rem; line-height: 1.7; }
.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text blockquote {
  font-style: italic; color: var(--text); border-left: 2px solid var(--text-muted);
  padding-left: 1.5rem; margin: 1.5rem 0;
}
/* Lead-Variante: Produktionsbeschreibung — größer und heller */
.rich-text--lead > p { color: var(--text); font-size: 1.125rem; line-height: 1.7; margin-bottom: 1.5rem; }

/* ====================== Lightbox-Slider (mehrere Bilder) ====================== */
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15);
  color: #fff; cursor: pointer; transition: background 200ms ease; z-index: 2;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.12); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__nav[hidden] { display: none !important; }
.lightbox__counter {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%); margin: 0;
  font-family: var(--font-body); font-size: 12px; letter-spacing: 2px;
  color: rgba(255,255,255,0.65); z-index: 2;
}
.lightbox__counter[hidden] { display: none !important; }
@media (max-width: 640px) {
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
}

/* Badge auf Inszenierungs-Kacheln mit mehreren Bildern */
.img-count {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; font-family: var(--font-body); font-size: 11px;
  color: #fff; background: rgba(14,13,13,0.6); backdrop-filter: blur(4px);
  border-radius: 2px; pointer-events: none;
}
.img-count .material-symbols-outlined { font-size: 14px; }

/* ====================== Home-Hero: Text über dem Bild besser lesbar ====================== */
.hero-copy { text-shadow: 0 2px 16px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.5); }
.hero-copy .eyebrow { color: rgba(255,255,255,0.9); }
.hero-copy .btn { text-shadow: none; }
