/* Theater Buffo – Stylesheet */
:root {
  --bg: #121012;
  --bg-2: #1b171a;
  --surface: #221d21;
  --line: #3a3237;
  --text: #f2ece6;
  --muted: #b9aea8;
  --red: #d4202a;
  --red-soft: #ff5a5f;
  --gold: #e3b964;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red-soft); }
a:hover { color: var(--text); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .8em; font-weight: 600;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 12px; }

/* ---------- Header & Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 16, 18, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 54px; width: auto; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.menu > li { position: relative; }
.menu a, .menu button {
  display: block; padding: 10px 14px; border-radius: 6px;
  color: var(--text); text-decoration: none; font: inherit; font-size: .95rem; font-weight: 500;
  background: none; border: 0; cursor: pointer;
}
.menu a:hover, .menu button:hover, .menu a[aria-current="page"] { color: var(--red-soft); }
.menu button .caret { display: inline-block; margin-left: 6px; font-size: .7em; transition: transform .2s; }
.menu button[aria-expanded="true"] .caret { transform: rotate(180deg); }

.dropdown {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 861px) {
  .has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: none; }
}
.dropdown a { padding: 9px 12px; }
.dropdown a small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }
.dropdown a:hover { background: var(--bg-2); color: var(--text); }
.dropdown .new { color: var(--gold); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; margin-left: 6px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  border-radius: 6px; padding: 8px 12px; font: inherit; cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; margin-left: auto; }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .menu.open { display: flex; }
  .menu a, .menu button { width: 100%; text-align: left; padding: 12px 8px; }
  .dropdown {
    position: static; min-width: 0; box-shadow: none; border: 0; background: var(--bg-2);
    display: none; opacity: 1; visibility: visible; transform: none;
  }
  .has-dropdown.open .dropdown { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(18,16,18,.35) 0%, rgba(18,16,18,.1) 45%, rgba(18,16,18,0) 70%),
    linear-gradient(180deg, rgba(18,16,18,0) 50%, rgba(18,16,18,.9) 100%);
}
.hero h1, .hero p.lead, .hero .eyebrow { text-shadow: 0 2px 12px rgba(0,0,0,.85), 0 0 2px rgba(0,0,0,.6); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 64px; }
.hero p.lead { font-size: 1.2rem; max-width: 620px; color: #e9e1da; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600;
  background: var(--red); color: #fff; border: 1px solid var(--red);
}
.btn:hover { background: transparent; color: var(--text); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Sections ---------- */
section.block { padding: 88px 0; border-top: 1px solid var(--line); }
section.alt { background: var(--bg-2); }
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.two-col img { border-radius: var(--radius); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

/* Programm-Karten */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 36px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--red); color: var(--text); }
.card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.card .body { padding: 20px 22px 24px; }
.card .body p { color: var(--muted); margin: 0; font-size: .95rem; }
.card .tag { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

/* Typografisches Platzhalter-Motiv, wenn kein Foto existiert */
.poster {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 24px; font-family: var(--serif); font-size: 2rem; line-height: 1.1;
  background: radial-gradient(circle at 30% 20%, #4a1418 0%, #1b0f11 70%);
  color: #fff;
}
.poster em { display: block; font-size: .5em; color: var(--gold); font-style: normal; letter-spacing: .15em; text-transform: uppercase; margin-top: 10px; }

/* Ensemble */
.ensemble { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.person .role { color: var(--gold); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; }
.person p { color: var(--muted); margin: 10px 0 0; }
.person .portrait { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 40%; border-radius: 6px; margin-bottom: 20px; }
@media (max-width: 860px) { .ensemble { grid-template-columns: 1fr; } }

/* Termine */
.dates { list-style: none; margin: 32px 0 0; padding: 0; }
.dates li {
  display: grid; grid-template-columns: 170px 1fr auto; gap: 20px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.dates .when { font-family: var(--serif); font-size: 1.25rem; color: var(--red-soft); }
.dates .what { font-weight: 600; }
.dates .where { color: var(--muted); }
.dates .note { display: block; color: var(--muted); font-weight: 400; font-size: .9rem; }
.dates li.past { opacity: .5; }
@media (max-width: 640px) { .dates li { grid-template-columns: 1fr; gap: 2px; } }

/* Spielorte */
.venues { columns: 3 220px; column-gap: 32px; padding: 0; list-style: none; margin: 28px 0 0; }
.venues li { padding: 6px 0; border-bottom: 1px dotted var(--line); break-inside: avoid; color: var(--muted); }

/* Kontakt */
.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-box dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.contact-box dt { color: var(--muted); }
.contact-box dd { margin: 0; }

/* ---------- Programmseiten ---------- */
.prog-hero { position: relative; min-height: 60vh; display: flex; align-items: flex-end; overflow: hidden; }
.prog-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.prog-hero .poster { position: absolute; inset: 0; }
.prog-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,16,18,0) 72%, rgba(18,16,18,.7) 100%); }
.prog-hero h1, .prog-hero .subtitle, .prog-hero .eyebrow { text-shadow: 0 2px 12px rgba(0,0,0,.85), 0 0 2px rgba(0,0,0,.6); }
.prog-hero .wrap { position: relative; z-index: 1; padding-bottom: 48px; }
.prog-hero .subtitle { font-family: var(--serif); font-size: 1.4rem; font-style: italic; color: #e9e1da; }
.prog-body { display: grid; grid-template-columns: 1fr 320px; gap: 56px; padding-top: 64px; padding-bottom: 88px; }
.prog-body .text p:first-child { font-size: 1.15rem; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; align-self: start; position: sticky; top: 96px; }
.facts h3 { font-size: 1.1rem; }
.facts dl { margin: 0; }
.facts dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-top: 14px; }
.facts dd { margin: 2px 0 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 32px; }
.gallery img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 2 / 3; }
.gallery img.wide { aspect-ratio: 3 / 2; }
.prog-nav { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; border-top: 1px solid var(--line); }
.prog-nav a { text-decoration: none; }
@media (max-width: 860px) { .prog-body { grid-template-columns: 1fr; } .facts { position: static; } }

/* Textseiten */
.page { padding-top: 64px; padding-bottom: 88px; max-width: 760px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer img { height: 40px; width: auto; margin-bottom: 10px; }
.credit { color: var(--muted); font-size: .85rem; margin: 16px 0 0; }

/* Geteiltes Titelbild (Text links, Hochformat-Foto rechts) für breite Bildschirme */
@media (min-width: 861px) {
  .prog-hero.split { background: var(--bg); }
  .prog-hero.split img.bg { left: 50%; width: 50%; }
  .prog-hero.split::after { background: linear-gradient(90deg, var(--bg) 50%, rgba(18,16,18,0) 60%); }
  .prog-hero.split .wrap { width: 100%; }
  .prog-hero.split .wrap > * { max-width: 46%; }
  .prog-hero.split { align-items: center; }
  .prog-hero.split .wrap { padding-bottom: 0; }
}
@media (max-width: 860px) {
  .prog-hero.split { display: block; min-height: 0; }
  .prog-hero.split img.bg { position: static; display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; }
  .prog-hero.split::after { display: none; }
  .prog-hero.split .wrap { padding-top: 28px; padding-bottom: 8px; }
}

/* Bild vollständig zeigen (kein Beschnitt), z. B. Macbeth-Szenenfoto */
.card .thumb img.whole { object-fit: contain; object-position: center !important; }
.prog-hero.split img.bg.whole { object-fit: contain; object-position: center !important; }
@media (max-width: 860px) {
  .prog-hero.split img.bg.whole { aspect-ratio: auto; height: auto; }
}

/* Helle Titelbilder: unten kräftiger abdunkeln, damit die Schrift lesbar bleibt */
.prog-hero.bright::after { background: linear-gradient(180deg, rgba(18,16,18,0) 40%, rgba(18,16,18,.55) 62%, rgba(18,16,18,.92) 100%); }
