/* =========================================================
   Sebastian Schlagenhaufer – Stylesheet
   Grundfarben und Schrift: siehe :root
   ========================================================= */

@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #eef0f2;
  --soft: #e4e7eb;
  --surface: #ffffff;
  --ink: #161b26;
  --muted: #586071;
  --line: #d3d7de;
  --brass: #9a6f17;

  /* Akzentfarbe – eine einzige Farbe für die ganze Seite.
     Wer doch wieder pro Programm eine eigene Farbe möchte,
     kann unten einzelne Werte ändern (z. B. --heil: #8e1b1b). */
  --accent: #23408e;
  --ludwig: var(--ink);
  --heil: var(--ink);
  --gulasch: var(--ink);
  --jenner: var(--ink);
  --kabarett: var(--ink);

  --display: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: 66ch; }
.prose a:hover, .links-list a:hover, .news a:hover, .facts a:not(.btn):hover, .contact-card a:hover, .date-row .what a:hover { color: var(--accent); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Platzhalter, die noch ersetzt werden müssen – fallen absichtlich auf */
.todo { background: #fff3b0; outline: 1px dashed #b89400; padding: 0 0.2em; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 24px; }
.brand { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; font-size: 1.25rem; text-decoration: none; line-height: 1.1; }
.brand small { display: block; font-family: var(--text); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.01em; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 6px;
  font: inherit; font-weight: 600; padding: 8px 14px; cursor: pointer; color: var(--ink);
}
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: 4px; align-items: center; }
.nav a { display: block; padding: 10px 12px; text-decoration: none; font-weight: 500; border-radius: 6px; }
.nav a:hover { background: var(--paper); color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }

.has-sub { position: relative; }
.sub {
  position: absolute; left: 0; top: 100%; min-width: 300px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px; box-shadow: 0 12px 30px rgba(22,27,38,0.12);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; font-weight: 500; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); display: none; max-height: calc(100vh - 68px); overflow-y: auto; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; gap: 0; }
  .nav a { padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--paper); }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .nav a[aria-current="page"] { box-shadow: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 6px; font-weight: 600; text-decoration: none;
  background: var(--ink); color: #fff; border: 2px solid var(--ink); line-height: 1.2;
}
.btn:hover { background: #2a3142; border-color: #2a3142; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: transparent; color: #fff; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn.ghost:hover { background: rgba(255,255,255,0.12); }
.btn.outline { background: transparent; color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Startseite: Bühne ---------- */
.stage { position: relative; min-height: min(88vh, 780px); display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; }
.stage .slides { position: absolute; inset: 0; }
.stage .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0; transition: opacity 1.2s ease; }
.stage .slide.active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .stage .slide { transition: none; } }
.stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,18,28,0.78) 0%, rgba(14,18,28,0.25) 32%, rgba(14,18,28,0) 55%); }
.stage .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: clamp(28px, 4vw, 48px); }
.stage h1 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1; margin: 0 0 0.3em; letter-spacing: -0.03em; }
.stage h1 span { display: block; }
.stage .lead { font-size: 1.05rem; max-width: 40ch; margin-bottom: 18px; color: rgba(255,255,255,0.9); }
.stage .btn { padding: 9px 16px; font-size: 0.93rem; }
.stage .dots { position: absolute; right: var(--gutter); bottom: clamp(28px, 4vw, 48px); z-index: 2; display: flex; gap: 4px; }
.stage .dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.stage .dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #fff; background: transparent; }
.stage .dots button[aria-pressed="true"]::before { background: #fff; }
@media (max-width: 640px) { .stage .dots { top: 16px; bottom: auto; } }
/* Handy: das Bild fährt einmal komplett von rechts nach links durch,
   damit das ganze Motiv zu sehen ist (--fahrt = Zeit pro Bild + Überblendung) */
@media (max-width: 760px) {
  .stage { --fahrt: 8.2s; }
  .stage .slide { object-position: 0% 50%; }
  .stage .slide.active, .stage .slide.leaving { animation: fahrt var(--fahrt) linear forwards; }
}
@keyframes fahrt { from { object-position: 0% 50%; } to { object-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .stage .slide.active, .stage .slide.leaving { animation: none; object-position: 50% 50%; } }

/* Nächster Auftritt */
.next-show { background: var(--surface); border-bottom: 1px solid var(--line); }
.next-show .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 36px; align-items: center; padding-top: 28px; padding-bottom: 28px; }
.next-label { font-weight: 600; color: var(--muted); font-size: 0.95rem; grid-column: 1 / -1; margin: 0 0 -12px; }
.date-block { font-family: var(--display); text-align: center; line-height: 1; border-right: 1px solid var(--line); padding-right: 36px; }
.date-block .d { font-size: 3.4rem; font-weight: 700; letter-spacing: -0.03em; display: block; }
.date-block .m { font-family: var(--text); font-weight: 600; font-size: 0.95rem; }
.next-show h3 { margin: 0 0 4px; color: var(--ink); }
@media (max-width: 680px) {
  .next-show .wrap { grid-template-columns: auto 1fr; }
  .next-show .btn { grid-column: 1 / -1; justify-self: start; }
  .date-block { padding-right: 20px; }
}

/* ---------- Abschnitte ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.white { background: var(--surface); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 52ch; }

/* Programmkarten */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.programs.two { grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
.program {
  display: flex; flex-direction: column; text-decoration: none; background: var(--surface);
}
.program:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.program .pic { aspect-ratio: 1 / 1; overflow: hidden; background: var(--soft); }
.program .pic img { width: 100%; height: 100%; object-fit: cover; }
.program .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.program h3 { margin-bottom: 6px; }
.program .cast { color: var(--muted); font-weight: 600; font-size: 0.95rem; margin-bottom: 12px; }
.program p { color: var(--muted); }
.program .more { margin-top: auto; font-weight: 600; text-decoration: underline; text-underline-offset: 0.25em; }

.program.type { flex-direction: row; }
.program.type .body { padding: 26px 28px; }
@media (max-width: 960px) { .programs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .programs, .programs.two { grid-template-columns: 1fr; } }

/* Pressestimmen-Band */
.press-band { background: var(--ink); color: #fff; }
.press-band .big { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(1.7rem, 3.8vw, 3rem); line-height: 1.18; max-width: 22ch; margin: 0 0 14px; }
.press-band cite { font-style: normal; font-weight: 600; color: rgba(255,255,255,0.7); }
.press-band .small-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.2); }
.press-band .small-quotes p { font-size: 1.15rem; margin-bottom: 6px; }
@media (max-width: 700px) { .press-band .small-quotes { grid-template-columns: 1fr; } }

/* Aktuelles */
.news { display: grid; gap: 0; }
.news-item { display: grid; grid-template-columns: 140px minmax(0, 66ch); gap: 28px; padding: 28px 0; border-top: 1px solid var(--line); align-items: start; }
.news-item:last-child { border-bottom: 1px solid var(--line); }
.news-item time { font-weight: 600; color: var(--muted); font-size: 0.95rem; padding-top: 4px; }
.news-item h3 { margin-bottom: 8px; }
.news-item img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.news-item p:last-child { margin-bottom: 0; }
@media (max-width: 800px) {
  .news-item { grid-template-columns: 1fr; gap: 10px; }
  .news-item img { max-width: 360px; }
}

/* Termine-Liste */
.dates { list-style: none; margin: 0; padding: 0; }
.date-row {
  display: grid; grid-template-columns: 200px 1fr auto; gap: 8px 28px; align-items: center;
  padding: 20px 0; border-top: 1px solid var(--line); position: relative;
}
.date-row:last-child { border-bottom: 1px solid var(--line); }
.date-row .when { font-weight: 600; }
.date-row .when span { display: block; color: var(--muted); font-weight: 400; font-size: 0.95rem; }
.date-row .what a { font-family: var(--display); font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--ink); }
.date-row .what a:hover { text-decoration: underline; }
.date-row .what .plain { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.date-row.off .when, .date-row.off .what { opacity: 0.55; }
.date-row.off .no-ticket { font-weight: 600; color: var(--ink); }
.date-row .where { color: var(--muted); }
.date-row .btn { padding: 10px 18px; font-size: 0.95rem; }
.date-row .no-ticket { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 700px) { .date-row { grid-template-columns: 1fr; } .date-row .btn { justify-self: start; } }
.dates-empty { padding: 24px 0; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Unterseiten ---------- */
.page-head { background: var(--ink); color: #fff; }
.page-head .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.page-head.plain .wrap { grid-template-columns: 1fr; }
.page-head h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 0.3em; }
.page-head .sub-title { font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: rgba(255,255,255,0.85); margin-bottom: 20px; }
.page-head .cast { font-weight: 600; margin-bottom: 28px; }
.page-head figure { margin: 0; }
.page-head figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.page-head figcaption { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-top: 8px; }
@media (max-width: 860px) { .page-head .wrap { grid-template-columns: 1fr; gap: 32px; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.facts { background: var(--surface); padding: 24px 26px; }
.facts h3 { font-size: 1.25rem; }
.facts dl { margin: 0 0 20px; }
.facts dt { font-weight: 600; font-size: 0.9rem; color: var(--muted); }
.facts dd { margin: 0 0 14px; }
.facts .btn { width: 100%; justify-content: center; }

.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.quote { background: var(--surface); padding: 26px 28px; margin: 0; }
.quote p { font-family: var(--display); font-weight: 500; font-size: 1.2rem; line-height: 1.4; margin-bottom: 12px; }
.quote footer { font-weight: 600; color: var(--muted); font-size: 0.95rem; }
.quote.wide { grid-column: 1 / -1; }
.quote.wide p { font-size: 1.15rem; font-family: var(--text); line-height: 1.6; }
@media (max-width: 700px) { .quotes { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
.gallery .tall { grid-row: span 2; }
.gallery .tall img { aspect-ratio: auto; height: 100%; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery .tall { grid-row: auto; } .gallery .tall img { aspect-ratio: 4 / 3; } }
.credit { font-size: 0.88rem; color: var(--muted); margin-top: 10px; }

.links-list { list-style: none; padding: 0; margin: 0; }
.links-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.links-list li:last-child { border-bottom: 1px solid var(--line); }

.legal h2 { font-size: 1.6rem; margin-top: 1.6em; }
.legal h3 { font-size: 1.2rem; margin-top: 1.4em; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card { background: var(--surface); padding: 28px; }
.contact-card h3 { margin-bottom: 10px; }
.contact-card .big-link { font-size: 1.15rem; font-weight: 600; word-break: break-word; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.page-head figure img.square { aspect-ratio: 1 / 1; max-width: 480px; }
/* Porträt: wird genau im Seitenverhältnis der hochgeladenen Datei gezeigt,
   ohne Zuschnitt durch den Browser – so kann es auf keinem Gerät verzerrt werden.
   Am besten die Datei selbst im Hochformat 4:5 zuschneiden (z. B. 1200 x 1500). */
.page-head figure img.portrait { width: 100%; max-width: 380px; height: auto; aspect-ratio: auto; object-fit: contain; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.82); padding: 56px 0 40px; font-size: 0.97rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; font-size: 1.4rem; display: inline-block; margin-bottom: 10px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,0.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; margin-top: 12px; font-size: 0.88rem; color: rgba(255,255,255,0.6); }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Einzelne breite Karte (Kabarett auf der Startseite) */
.programs.one { grid-template-columns: 1fr; margin-top: 28px; }
/* Karten auf weißem Hintergrund bekommen eine feine Umrandung */
.program.boxed { border: 1px solid var(--line); }
