/* Homunculus Theme. Tokens pro Ausgabe (editions/<jahr>/edition.json), System nach Taste Skill. */

/* ---------- Ausgabe-Tokens ----------
   Standardwerte. Die aktuelle Ausgabe überschreibt sie per <style id="hm-edition"> aus editions/<jahr>/edition.json. */
:root {
  --sky: linear-gradient(180deg, #231d48 0%, #231d48 24%, #2b2548 30%, #453f4b 40%, #645d47 50%, #847f3a 60%, #a4a01b 72%);
  --night: #1c174a;        /* Text auf Papier, Header */
  --night-2: #231d48;
  --petrol: #083145;
  --signal: #f5d809;       /* Wortmarke, Hauptbutton */
  --signal-ink: #1c174a;   /* Text auf Signal */
  --poster: #ecea61;       /* Plakat-Schrift auf Nacht */
  --on-night: #ecea61;     /* Text auf Nachtflächen: Kopf, Fuß, Nachtkarten, Mitglieder-Box */
  --spark: #f5811f;        /* Zahnrad-Nabe, kleine Akzente */
  --paper: #f6f2e6;
  --paper-2: #ebe5d2;
  --line: rgba(28, 23, 74, .16);
  --muted: #4c4870;        /* 7:1 auf --paper */
  --footer: linear-gradient(180deg, #37404f 0%, #083145 60%);
}
/* Ausgaben ohne eigenes Design: ruhig, Sujet als Bild */
[data-edition="archiv"] {
  --sky: linear-gradient(180deg, #ebe7dc 0%, #ebe7dc 100%);
  --night: #22201f; --night-2: #2c2a28; --petrol: #22201f;
  --signal: #22201f; --signal-ink: #f7f5ef; --poster: #22201f; --on-night: #f7f5ef; --spark: #22201f;
  --paper: #f7f5ef; --paper-2: #ebe7dc; --line: rgba(34, 32, 31, .16); --muted: #55514c;
}
:root {
  --f-text: "Acuta Ersatz", Georgia, serif;
  --f-date: "Dolly Pro", "Acuta Ersatz", Georgia, serif; /* Dolly Pro: Underware, Lizenz 8254 (Web) */

  --t-hero: clamp(2.25rem, 1.5rem + 2.6vw, 3.625rem);
  --t-h1: clamp(2.25rem, 1.7rem + 2vw, 3.5rem);
  --t-h2: clamp(1.875rem, 1.5rem + 1.3vw, 2.75rem);
  --t-h3: clamp(1.25rem, 1.1rem + .5vw, 1.625rem);
  --t-lead: clamp(1.25rem, 1.12rem + .45vw, 1.5rem);
  --t-body: 1.25rem;   /* 20 */
  --t-small: 1rem;
  --t-label: .875rem;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --nav: 72px;
  --gut: 80px;
  --padt: 120px;
  --padb: 96px;
  --wrap: 1280px;
  --r: 2px;
  --btn-h: 48px;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-enter: cubic-bezier(.22, 1, .36, 1);
  --m-in: 150ms; --m-out: 120ms; --m-press: 90ms; --m-panel: 200ms; --m-image: 600ms; --m-image-out: 400ms;
}
@media (max-width: 1023px) { :root { --gut: 40px; } }
@media (max-width: 639px) { :root { --nav: 56px; --gut: 24px; --padt: 72px; --padb: 56px; } }

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
html.menu-open { scrollbar-gutter: stable; }
body {
  font-family: var(--f-text); font-size: var(--t-body); line-height: 1.55; color: var(--night);
  background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; font-style: italic; line-height: 1.12; letter-spacing: -.01em; hyphens: auto; text-wrap: balance; }
h3 { font-weight: 600; font-style: normal; letter-spacing: 0; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus, var(--night)); outline-offset: 2px; }
.on-dark { --focus: var(--signal); color: var(--poster); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin: 0 auto; }
.date { font-family: var(--f-date); font-style: italic; font-weight: 400; }
.muted { color: var(--muted); }
.label { font-size: var(--t-label); font-weight: 600; letter-spacing: .02em; font-style: normal; }

/* Links: feine Linie, Tinte zieht von links nach rechts (Taste) */
.link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat, linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat; transition: background-size var(--m-out) var(--ease); padding-bottom: 1px; }
.link:hover { background-size: 100% 1px, 100% 1px; transition-duration: var(--m-in); }
.on-dark .link { background-image: linear-gradient(currentColor, currentColor), linear-gradient(color-mix(in srgb, currentColor 30%, transparent), color-mix(in srgb, currentColor 30%, transparent)); }

/* ---------- Buttons: ein Paar, Taste-Hover ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--btn-h); padding: 0 var(--s-5); border-radius: var(--r); border: 1.5px solid transparent;
  font: 600 1rem/1 var(--f-text); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--m-out) var(--ease), background-color var(--m-out) var(--ease), border-color var(--m-out) var(--ease);
}
.btn--primary { background: var(--signal); color: var(--signal-ink); }
.btn--secondary { background: transparent; color: currentColor; border-color: currentColor; }
.btn svg { width: 16px; height: 16px; transition: transform var(--m-out) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); transition-duration: var(--m-in); }
  .btn--primary:hover { background: color-mix(in srgb, var(--signal) 86%, var(--night)); }
  .btn--secondary:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
  .btn:hover svg { transform: translateX(3px); }
}
.btn:active { transform: translateY(1px) scale(.985); transition-duration: var(--m-press); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (max-width: 639px) { .btn-row .btn { flex: 1 1 100%; } }

/* ---------- Header ---------- */
.skip-link { position: absolute; left: 0; top: -100px; z-index: 30; background: var(--signal); color: var(--signal-ink); padding: var(--s-2) var(--s-4); font-weight: 600; }
.skip-link:focus { top: 12px; }
.nav { position: fixed; inset: var(--wp-admin--admin-bar--height, 0px) 0 auto; z-index: 20; height: var(--nav); background: var(--night-2); border-bottom: 1px solid color-mix(in srgb, var(--on-night) 14%, transparent); }
.nav .wrap { position: relative; height: 100%; display: flex; align-items: center; gap: var(--s-6); }
.nav__logo { display: block; text-decoration: none; flex: none; height: max(44px, calc(var(--nav) - 16px)); }
.nav__logo svg { height: 100%; width: auto; }
.nav__main { margin-left: auto; }
.nav__links { display: flex; gap: var(--s-6); margin: 0; padding: 0; list-style: none; }
.nav__links a { display: block; padding: var(--s-2) 0; color: var(--on-night); text-decoration: none; font-size: 1rem; font-weight: 400; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 2px) / 0 1px no-repeat; transition: background-size var(--m-out) var(--ease); }
.nav__links a:hover { background-size: 100% 1px; transition-duration: var(--m-in); }
.nav__links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--signal); }
.nav .btn { min-height: 44px; }
.nav__toggle { display: none; }
@media (max-width: 1023px) {
  .nav__main { display: none; }
  .nav__cta { margin-left: auto; }
  .nav__toggle { display: inline-flex; width: 44px; height: 44px; padding: 0; justify-content: center; align-items: center; background: none; border: 1.5px solid var(--on-night); color: var(--on-night); border-radius: var(--r); cursor: pointer; }
  .nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform var(--m-panel) var(--ease), opacity var(--m-panel); }
  .nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
  .nav__toggle span::before { top: -6px; } .nav__toggle span::after { top: 6px; }
  .menu-open .nav__toggle span { background: transparent; }
  .menu-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
  .menu-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }
}
@media (max-width: 639px) { .nav__cta { display: none; } .nav__toggle { margin-left: auto; } }

@media (min-width: 1024px) { .sheet { display: none; } }
.sheet { position: fixed; inset: calc(var(--nav) + var(--wp-admin--admin-bar--height, 0px)) 0 0; z-index: 19; background: var(--night-2); color: var(--on-night); padding: var(--s-6) var(--gut); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity var(--m-panel) var(--ease), transform var(--m-panel) var(--ease), visibility 0s linear var(--m-panel); }
.menu-open .sheet { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sheet ul { list-style: none; margin: 0; padding: 0; }
.sheet li a { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid color-mix(in srgb, var(--on-night) 16%, transparent); text-decoration: none; font-size: 1.5rem; font-style: italic; font-weight: 300; }
.sheet .btn { margin-top: var(--s-6); width: 100%; }

/* ---------- Hero (Sujet live) ---------- */
.hero { position: relative; min-height: 100svh; padding-top: var(--nav); background: var(--sky); overflow: hidden; isolation: isolate; }
.hero__stars { position: absolute; inset: 0; z-index: -1; }
.hero__stars svg { position: absolute; transform: translate(-50%, -50%); fill: var(--signal); }
.hero__mountains { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: -1; }
.hero__mountains img { width: 100%; height: 100%; }
.hero__inner { position: relative; min-height: calc(100svh - var(--nav)); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); align-items: start; padding-top: clamp(48px, 10vh, 120px); padding-bottom: var(--s-8); }
.hero__text { grid-column: 1 / span 5; }
.hero__mark { grid-column: 7 / -1; }
.hero__kicker { font-family: var(--f-text); font-style: italic; font-weight: 300; font-size: var(--t-lead); margin: 0 0 var(--s-3); }
.hero h1 { font-size: var(--t-hero); color: var(--poster); margin-bottom: var(--s-5); }
.hero h1 .date { display: block; font-size: .78em; margin-top: .1em; }
.hero__place { font-style: italic; font-size: var(--t-lead); margin: 0 0 var(--s-6); }
.hero__motto { font-family: var(--f-text); font-style: italic; font-weight: 300; font-size: var(--t-lead); margin: var(--s-5) 0 0; text-align: center; color: var(--poster); }
.hero__mark { align-self: end; padding-bottom: clamp(0px, 4vh, 48px); }
.wordmark { width: 100%; height: auto; overflow: visible; }
.wordmark .wm-gear, .wordmark .wm-hub { transform-box: view-box; }
.cards-3 > .card--wide { grid-column: 1 / -1; }
.card--wide .card__media { aspect-ratio: 16 / 9; }
.section__head .link, .status .link, .facts .link { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 899px) {
  .hero__stars svg:not([data-low]) { display: none; }
  .hero__inner { grid-template-columns: 1fr; align-items: start; row-gap: var(--s-6); padding-top: var(--s-7); padding-bottom: var(--s-7); }
  .hero__text, .hero__mark { grid-column: 1 / -1; }
  .hero__mountains { height: 38%; }
  .hero__mark { max-width: 560px; justify-self: center; width: 100%; }
}

/* Bewegung im Hero: Text steigt einmal auf, Zahnräder laufen einmal an (Taste: Entrance ~1.1 s) */
@media (prefers-reduced-motion: no-preference) {
  .m-enter .hero__text > * { opacity: 0; transform: translateY(12px); }
  .m-entered .hero__text > * { opacity: 1; transform: none; transition: opacity 520ms var(--ease-enter), transform 520ms var(--ease-enter); }
  .m-entered .hero__text > *:nth-child(2) { transition-delay: 60ms; }
  .m-entered .hero__text > *:nth-child(3) { transition-delay: 120ms; }
  .m-entered .hero__text > *:nth-child(4) { transition-delay: 180ms; }
  /* „Die Maschine läuft an“: einmal nach dem Laden, wie ein Getriebe (Nabe gegenläufig zum Rad) */
  .m-entered .wm-gear--big { animation: gear-start 1.6s cubic-bezier(.65, 0, .35, 1) .35s both; }
  .m-entered .wm-hub--big { animation: hub-start 1.6s cubic-bezier(.65, 0, .35, 1) .35s both; }
  .m-entered .wm-hub--small { animation: hub-start-rev 1.6s cubic-bezier(.65, 0, .35, 1) .35s both; }
  @keyframes gear-start { from { transform: rotate(-120deg); } to { transform: rotate(0deg); } }
  @keyframes hub-start { from { transform: rotate(240deg); } to { transform: rotate(0deg); } }
  @keyframes hub-start-rev { from { transform: rotate(-240deg); } to { transform: rotate(0deg); } }

  /* Nach dem Anlaufen: Getriebe steht (pausiert) und läuft bei Hover oder Antippen weiter.
     Beim Loslassen bleibt es stehen, wo es ist, statt zurückzuspringen. */
  .m-settled .wm-gear--big { animation: gear-turn 6s linear infinite paused; }
  .m-settled .wm-hub--big { animation: gear-turn-rev 3s linear infinite paused; }
  .m-settled .wm-hub--small { animation: gear-turn 3s linear infinite paused; }
  .m-settled .hero__mark.is-turning :is(.wm-gear--big, .wm-hub--big, .wm-hub--small) { animation-play-state: running; }
  @media (hover: hover) and (pointer: fine) {
    .hero__mark { cursor: pointer; }
    .m-settled .hero__mark:hover :is(.wm-gear--big, .wm-hub--big, .wm-hub--small) { animation-play-state: running; }
  }
  @keyframes gear-turn { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  @keyframes gear-turn-rev { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
}

/* ---------- Sektionen ---------- */
.section { padding: var(--padt) 0 var(--padb); }
.section--alt { background: var(--paper-2); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-6); margin-bottom: var(--s-7); flex-wrap: wrap; }
.section__head h2 { font-size: var(--t-h2); }
.section__head p { margin: 0; }
@media (max-width: 639px) { .section__head { margin-bottom: var(--s-6); } }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); }
@media (max-width: 639px) { .grid { gap: var(--s-3); } }

/* Programm-Status */
.status { grid-column: 1 / span 6; }
.status__lead { font-size: var(--t-lead); line-height: 1.45; }
.status__aside { grid-column: 7 / -1; align-self: start; }
@media (max-width: 899px) { .status, .status__aside { grid-column: 1 / -1; } }

/* Karten */
.card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: inherit; transition: transform 120ms var(--ease), border-color 120ms var(--ease), box-shadow 120ms var(--ease); }
.card__media { overflow: hidden; aspect-ratio: 3 / 2; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--m-image-out) var(--ease); }
.card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.card__body h3 { font-size: var(--t-h3); }
.card__meta { font-size: var(--t-small); color: var(--muted); margin: 0; }
.card__body p { font-size: 1.0625rem; margin: 0; }
@media (hover: hover) and (pointer: fine) {
  a.card:hover { transform: translateY(-2px); border-color: rgba(28, 23, 74, .32); box-shadow: 0 12px 24px rgba(28, 23, 74, .08); transition-duration: 180ms; }
  a.card:hover .card__media img { transform: scale(1.03); transition: transform var(--m-image) var(--ease); }
  a.card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
}
.cards-3 > * { grid-column: span 4; }
@media (max-width: 1023px) { .cards-3 > * { grid-column: span 6; } }
@media (max-width: 639px) { .cards-3 > * { grid-column: 1 / -1; } }

/* Produktion ohne Foto: Schattentheater-Karte auf Nacht */
.card--night { background: var(--night-2); color: var(--on-night); border-color: transparent; }
.card--night:focus-visible { outline-color: var(--night); }
.card--night .card__media { background: var(--sky); position: relative; display: grid; place-items: center; }
.card--night .card__meta { color: color-mix(in srgb, var(--on-night) 82%, transparent); }

/* Mitglieder-Box */
.box { background: var(--night-2); color: var(--on-night); padding: var(--s-6); border-radius: var(--r); --focus: var(--signal); }
.box h3 { font-size: var(--t-h3); margin-bottom: var(--s-3); }
.box p { font-size: 1.0625rem; }
.box ul { margin: 0 0 var(--s-5); padding-left: 1.1em; font-size: 1.0625rem; }
.box .btn { width: 100%; }

/* Info: Spielorte & Reservierung */
.facts { grid-column: span 4; border-top: 2px solid var(--night); padding-top: var(--s-4); }
.facts h3 { font-size: var(--t-h3); margin-bottom: var(--s-3); }
.facts p { font-size: 1.0625rem; }
@media (max-width: 899px) { .facts { grid-column: 1 / -1; } }

/* Archiv-Kacheln */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-5); }
@media (max-width: 1023px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); } }
.tile { display: flex; flex-direction: column; gap: var(--s-2); text-decoration: none; color: inherit; }
.tile__img { aspect-ratio: 1; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; padding: var(--s-3); }
.tile__img img { max-height: 100%; width: auto; object-fit: contain; transition: transform var(--m-image-out) var(--ease); }
.tile__img--fill { padding: 0; border-color: transparent; }
.tile__img--fill img { width: 100%; height: auto; max-height: none; }
.tile__img--poster { padding: 0; }
.tile__img--poster img { width: 100%; height: 100%; object-fit: cover; }
.tile__img--type { background: var(--paper-2); color: var(--muted); font-family: var(--f-date); font-style: italic; font-size: 2rem; }
.tile__img--live { background: var(--sky); padding: var(--s-4); }
.tile__nr { font-size: var(--t-small); font-weight: 600; }
.tile__info { font-size: .9375rem; color: var(--muted); line-height: 1.4; }
.tile__info em { display: block; color: var(--night); }
@media (hover: hover) and (pointer: fine) { a.tile:hover .tile__img img { transform: scale(1.03); transition: transform var(--m-image) var(--ease); } a.tile:hover .tile__nr { text-decoration: underline; text-underline-offset: 3px; } }

.early { margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.early h3 { font-size: var(--t-h3); margin-bottom: var(--s-2); }
.early__years { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-family: var(--f-date); font-style: italic; font-size: 1.375rem; color: var(--muted); }

/* News-Liste */
.news-date { font-family: var(--f-date); font-style: italic; color: var(--muted); }

/* ---------- Unterseiten ---------- */
.page-head { background: var(--sky); padding: calc(var(--nav) + var(--s-8)) 0 var(--s-8); position: relative; overflow: hidden; }
.page-head h1 { font-size: var(--t-h1); color: var(--poster); }
.page-head p { color: var(--poster); font-size: var(--t-lead); margin: var(--s-3) 0 0; }
.page-head .crumb { font-size: var(--t-small); margin-bottom: var(--s-4); color: var(--poster); }
.page-head__mtn { position: absolute; left: 0; right: 0; bottom: -2px; height: 55%; z-index: 0; opacity: .9; }
.page-head__mtn img { width: 100%; height: 100%; }
.page-head .wrap { position: relative; z-index: 1; }

/* Filterleiste */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); margin-bottom: var(--s-7); font-size: 1rem; }
.filters .seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); }
.filters .seg a, .filters .seg span { padding: var(--s-2) var(--s-4); text-decoration: none; }
.filters .seg [aria-current] { background: var(--night); color: var(--paper); }
.filters label { display: inline-flex; align-items: center; gap: var(--s-2); }
.filters select { font: inherit; min-height: 44px; padding: 0 var(--s-6) 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--night); }
.filters select:disabled { opacity: .6; }
.filters__note { margin-left: auto; color: var(--muted); font-size: var(--t-small); }

/* Detail */
.detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); }
@media (max-width: 899px) { .detail { grid-template-columns: 1fr; gap: var(--s-6); } }
.detail__facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--s-3) var(--s-5); font-size: 1.0625rem; }
.detail__facts dt { font-weight: 600; }
.detail__facts dd { margin: 0; }
.detail__facts .todo { color: var(--muted); font-style: italic; }
.detail__visual { aspect-ratio: 16 / 10; background: var(--sky); position: relative; overflow: hidden; border-radius: var(--r); isolation: isolate; }
.reserve { margin-top: var(--s-7); padding: var(--s-6); background: var(--paper-2); border-left: 4px solid var(--signal); }
.reserve h2 { font-size: var(--t-h3); font-style: normal; font-weight: 600; margin-bottom: var(--s-3); }

/* Programm-Tagesliste (Archiv 2026) */
.day { display: grid; grid-template-columns: 220px 1fr; gap: var(--s-5); padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.day h3 { font-family: var(--f-date); font-style: italic; font-weight: 500; font-size: var(--t-h3); }
.day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.day li { display: grid; grid-template-columns: 1fr auto; gap: var(--s-4); }
.day .who { color: var(--muted); font-size: 1rem; display: block; }
.day .tag { font-size: var(--t-label); font-weight: 600; border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; align-self: start; white-space: nowrap; }
@media (max-width: 639px) { .day { grid-template-columns: 1fr; gap: var(--s-2); } .day li { grid-template-columns: 1fr; gap: var(--s-1); } .day .tag { justify-self: start; } }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--footer); color: var(--on-night); padding: var(--s-9) 0 var(--s-6); --focus: var(--signal); }
main[data-edition] { background: var(--paper); color: var(--night); }
.footer__mtn { position: absolute; left: 0; right: 0; top: -1px; height: 96px; transform: translateY(-99%); }
.footer__mtn img { width: 100%; height: 100%; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: var(--s-7); }
.footer h2 { font-size: 1rem; font-weight: 600; font-style: normal; letter-spacing: 0; margin-bottom: var(--s-3); color: var(--on-night); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); font-size: 1rem; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__mark { width: 180px; margin-bottom: var(--s-4); }
.footer__legal { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid color-mix(in srgb, var(--on-night) 18%, transparent); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); font-size: var(--t-label); }
@media (max-width: 899px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .footer__grid { grid-template-columns: 1fr; gap: var(--s-6); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}

/* =================================================================
   Ergänzungen für WordPress
   ================================================================= */

.section--tight { padding-top: var(--s-8); }
.section__foot { margin-top: var(--s-7); }
.status__cards { margin-top: var(--s-6); }
.status__more { margin-top: var(--s-6); }
.program-member { margin-top: var(--s-7); align-items: start; }
.box__price { font-size: 1.75rem; }
.wordmark--text { text-decoration: none; font-style: italic; font-weight: 300; font-size: 1.75rem; color: var(--signal); line-height: 1; display: flex; align-items: center; height: 100%; }

/* Tags (Zielgruppe, Premiere) */
.card__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: auto; padding-top: var(--s-2); }
.tag { font-size: var(--t-label); font-weight: 600; font-style: normal; border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; line-height: 1.5; white-space: nowrap; }
.tag--signal { background: var(--signal); color: var(--signal-ink); border-color: transparent; }
.card--night .tag { border-color: color-mix(in srgb, var(--on-night) 40%, transparent); }

/* Filter als Formular */
.filters .seg a[aria-current] { background: var(--night); color: var(--paper); }
.filters .seg > * { display: inline-flex; align-items: center; min-height: 44px; }
.filters .seg [aria-disabled] { color: var(--muted); }
.filters__submit { min-height: 44px; }
.js .filters__submit { display: none; }

/* Programm nach Tagen */
.day li { grid-template-columns: 4.5rem 1fr auto; align-items: baseline; }
.day__time { font-family: var(--f-date); font-style: italic; color: var(--muted); }
.day__title { font-weight: 600; text-decoration: none; }
a.day__title:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 639px) { .day li { grid-template-columns: 1fr; } .day__time:empty { display: none; } }

/* Vorstellung */
.termine { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.termine__sub { display: block; color: var(--muted); font-size: 1rem; }
.reserve .btn { margin-top: var(--s-2); }
.reserve--past { font-size: 1.0625rem; }
.detail__main > * + * { margin-top: var(--s-6); }
.detail__photo, .article__photo { margin: 0; }
.detail__photo img, .article__photo img { width: 100%; border-radius: var(--r); }
.credit { font-size: var(--t-label); color: var(--muted); margin-top: var(--s-2); }

/* Kopf einer Ausgabe im Archiv: Farben aus deren Tokens */
.page-head--edition h1, .page-head--edition p, .page-head--edition .crumb { color: var(--poster); }
.page-head--edition .btn--secondary { color: var(--poster); }
.detail--center { align-items: center; }
.page-head__sujet { justify-self: end; }
.page-head__sujet img { max-height: 420px; width: auto; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); }
.page-head__actions { margin-top: var(--s-5); }
@media (max-width: 899px) { .page-head__sujet { justify-self: start; } .page-head__sujet img { max-height: 320px; } }

/* Fließtext aus dem Editor */
.prose > * { max-width: 68ch; }
.prose > .wp-block-gallery, .prose > .embed-consent, .prose > .wp-block-embed { max-width: none; }
.prose > * { margin-top: 0; margin-bottom: 1em; }
.prose h2 { font-size: var(--t-h3); font-style: normal; font-weight: 600; margin-top: 1.6em; margin-bottom: .5em; line-height: 1.25; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; margin-bottom: .4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .3em; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose img { border-radius: var(--r); }
.prose figcaption, .prose .wp-element-caption { font-size: var(--t-label); color: var(--muted); margin-top: var(--s-2); }
.prose blockquote { margin-left: 0; padding-left: var(--s-5); border-left: 3px solid var(--signal); font-style: italic; }
.prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: var(--btn-h); padding: 0 var(--s-5); background: var(--signal); color: var(--signal-ink); border-radius: var(--r); font-weight: 600; font-size: 1rem; text-decoration: none; }
.prose--lead { font-size: var(--t-lead); line-height: 1.45; }

/* News-Beitrag */
.article { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: start; }
.article .prose { grid-column: 1; grid-row: 1; }
.article__photo { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--nav) + var(--s-5)); }
.article__foot { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.article__foot .link { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 899px) { .article { grid-template-columns: 1fr; gap: var(--s-6); } .article__photo { grid-column: 1; grid-row: auto; position: static; } .article .prose { grid-row: auto; } }

/* Seiten mit Unterseiten */
.page-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--s-8); align-items: start; }
.subnav ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--night); }
.subnav a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.0625rem; }
.subnav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.subnav a[aria-current] { font-weight: 600; box-shadow: inset 3px 0 0 var(--signal); padding-left: var(--s-3); }
@media (max-width: 899px) { .page-layout { grid-template-columns: 1fr; gap: var(--s-6); } }

/* Seitenweise blättern */
.pager { margin-top: var(--s-7); }
.pager .nav-links { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; }
.pager .page-numbers.current { background: var(--night); color: var(--paper); border-color: var(--night); }

/* YouTube erst nach Klick */
.embed-consent { margin: 0 0 1em; }
.embed-consent__box { aspect-ratio: 16 / 9; display: grid; place-content: center; gap: var(--s-4); padding: var(--s-6); background: var(--night-2); color: var(--on-night); border-radius: var(--r); text-align: center; --focus: var(--signal); }
.embed-consent__box p { margin: 0 auto; font-size: 1.0625rem; }
.embed-consent__box .btn-row { justify-content: center; align-items: center; gap: var(--s-5); }
.embed-consent__box .link { background-image: linear-gradient(currentColor, currentColor), linear-gradient(color-mix(in srgb, var(--on-night) 30%, transparent), color-mix(in srgb, var(--on-night) 30%, transparent)); }
.embed-consent iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; display: block; border-radius: var(--r); }

/* WordPress-Kleinkram */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* Galerien (Fotos im Archiv) und Sponsoren-Logos */
.prose--wide { max-width: none; }
.prose--wide > :not(.wp-block-gallery):not(h2) { max-width: 62ch; }
.prose--wide > h2 { font-size: var(--t-h2); font-style: italic; font-weight: 300; margin: var(--s-7) 0 var(--s-5); }
.prose--wide > h2:first-child { margin-top: 0; }
.prose .wp-block-gallery { gap: var(--s-3); }
.prose .wp-block-gallery .wp-element-caption { font-size: .75rem; }
.wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.wp-block-file .wp-block-file__button { display: inline-flex; align-items: center; min-height: var(--btn-h); padding: 0 var(--s-5); background: var(--signal); color: var(--signal-ink); border-radius: var(--r); font: 600 1rem/1 var(--f-text); text-decoration: none; }
/* Sponsoren: einheitliche Kacheln, Logo zentriert und ganz sichtbar */
.wp-block-gallery.is-style-logos { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(200px, 45%), 1fr)); gap: var(--s-5) !important; }
.wp-block-gallery.is-style-logos > .wp-block-image { width: auto !important; margin: 0 !important; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-4); display: flex !important; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 4 / 3; }
.wp-block-gallery.is-style-logos > .wp-block-image a { display: flex; align-items: center; justify-content: center; flex: 1; width: 100%; min-height: 0; }
.wp-block-gallery.is-style-logos > .wp-block-image img { object-fit: contain !important; width: auto !important; height: auto !important; max-width: 100%; max-height: 110px; border-radius: 0; }
.wp-block-gallery.is-style-logos > .wp-block-image figcaption { position: static !important; background: none !important; color: var(--muted) !important; text-align: center; padding: var(--s-2) 0 0 !important; margin: 0 !important; font-size: var(--t-label); max-height: none !important; overflow: visible !important; }
.wp-block-gallery.is-style-logos > .wp-block-image a:hover { opacity: .8; }
.wp-block-gallery.is-style-logos > .wp-block-image figcaption { flex: none !important; }
.wp-block-gallery.is-style-logos > .wp-block-image::before { content: none !important; }
.page-head .date { white-space: nowrap; }
.day__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: flex-end; align-self: start; }
@media (max-width: 639px) { .day__tags { justify-content: flex-start; } }

/* Newsletter (Plugin "Newsletter", eigenes CSS statt Plugin-Stylesheet) */
.tnp-subscription { max-width: 34rem; margin-top: var(--s-6); }
.tnp-subscription form { display: grid; gap: var(--s-4); }
.tnp-field label { display: block; font-weight: 600; margin-bottom: var(--s-2); }
.tnp-email { width: 100%; font: inherit; min-height: var(--btn-h); padding: 0 var(--s-4); border: 1.5px solid var(--night); border-radius: var(--r); background: #fff; color: var(--night); }
.tnp-privacy-field label { display: flex; gap: var(--s-3); align-items: flex-start; font-weight: 400; font-size: 1rem; line-height: 1.5; }
.tnp-privacy { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--night); }
.tnp-privacy-field a { color: inherit; }
.tnp-field-button { text-align: left !important; }
.tnp-submit {
  display: inline-flex; align-items: center; min-height: var(--btn-h); padding: 0 var(--s-5); border-radius: var(--r); border: 1.5px solid transparent;
  font: 600 1rem/1 var(--f-text); cursor: pointer; background: var(--signal); color: var(--signal-ink);
  transition: transform var(--m-out) var(--ease), background-color var(--m-out) var(--ease);
}
@media (hover: hover) and (pointer: fine) { .tnp-submit:hover { background: color-mix(in srgb, var(--signal) 86%, var(--night)); transform: translateY(-1px); } }
.tnp-submit:active { transform: translateY(1px) scale(.985); }
