/* ============================================================
   HOME-NAV-FOOTER-R1 — Editorial Simplification & IA Reclosure
   Purpose: one-pass cleanup of the user-reviewed desktop issues.
   Source Sans 3 baseline remains authoritative for UI typography.
   ============================================================ */

/* --- Brand asset isolation: use the Affinity-exported lockup as one brand asset. --- */
.brand-lockup {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  gap: 0;
}
.brand-lockup-full {
  display: block;
  width: 318px;
  height: auto;
  max-height: 68px;
  object-fit: contain;
  object-position: left center;
}
.brand-lockup-seal-only { display: none; width: 50px; height: 50px; object-fit: contain; }

/* Dark Curtain state uses only the official seal rather than re-typesetting or recolouring the wordmark. */
.site-header-shell.is-curtain .brand-lockup-full { display: none; }
.site-header-shell.is-curtain .brand-lockup-seal-only { display: block; }

/* --- Header zones: brand / primary navigation / language --- */
.site-header { gap: 0; }
.header-right { margin-left: auto; gap: 0; display: flex; align-items: center; }
.main-nav { gap: 10px; }
.nav-trigger,
.nav-direct {
  padding: 11px 8px;
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.012em;
}
/* Remove all persistent/hover underlines: selection is communicated by page/curtain content, not a rule. */
.nav-trigger::after,
.nav-direct::after { display: none !important; }
.nav-trigger:hover,
.nav-direct:hover { opacity: .68; }
.nav-trigger:focus-visible,
.nav-direct:focus-visible,
.language-switch:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-left: 44px;
  padding: 11px 0;
  min-height: 44px;
  white-space: nowrap;
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.012em;
}
.language-switch .lang-de { font-family: "Source Sans 3", sans-serif; }
.language-switch .lang-zh {
  font-family: "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}
@media (min-width: 1241px) {
  .header-right { margin-left: clamp(78px, 7vw, 138px); }
}
@media (max-width: 1240px) and (min-width: 861px) {
  .brand-lockup-full { width: 268px; max-height: 58px; }
  .header-right { margin-left: auto; }
  .language-switch { margin-left: 24px; }
}
@media (max-width: 860px) {
  .brand-lockup-full { display: none; }
  .brand-lockup-seal-only { display: block; width: 46px; height: 46px; }
  .site-header-shell.is-curtain .brand-lockup-seal-only { display: block; }
  .language-switch { display: none; }
}

/* --- Curtain: typography + whitespace establish hierarchy; lines are intentionally sparse. --- */
.curtain-index { display: none !important; }
.curtain-heading-row {
  display: block;
  padding: 52px 0 34px;
}
.curtain-grid {
  gap: clamp(54px, 6vw, 92px);
  padding: 28px 0 54px;
}
.curtain-group {
  border-top: 0 !important;
  padding-top: 0 !important;
}
.curtain-group-label { margin-bottom: 22px; }
/* Retain only the global header rule and the footer boundary. */
.curtain-topline { border-bottom-color: rgba(255,255,255,.15); }
.curtain-footer { border-top-color: rgba(255,255,255,.12); }

/* --- Visible section IDs: no 01/02/03 numbering. --- */
.section-kicker {
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .075em;
  color: var(--muted);
  text-transform: uppercase;
}
.gallery-heading .section-kicker { color: var(--muted); }
.section-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
}
.section-heading > .section-kicker { grid-column: 1 / -1; }
/* Home's Demnächst has no redundant PROGRAMM eyebrow; title is the section identity. */
.upcoming .section-heading { grid-template-columns: minmax(0, 1fr) auto; }

/* --- Event list: remove decorative row numbering and avoid generic PROGRAMM as a type. --- */
.event-row {
  grid-template-columns: 130px 150px minmax(0, 1fr) 110px 34px;
  gap: 18px;
}
.event-no { display: none !important; }
.event-type.is-empty { visibility: hidden; }
.event-row:hover .event-type,
.event-row:hover .event-meta,
.event-row:focus-visible .event-type,
.event-row:focus-visible .event-meta { color: #bdc6cf; }
@media (max-width: 1240px) and (min-width: 861px) {
  .event-row { grid-template-columns: 100px 110px minmax(0,1fr) 90px 28px; }
}
@media (max-width: 860px) {
  .event-row {
    grid-template-columns: 56px 72px 1fr 26px;
    grid-template-areas: "date type meta arrow" "title title title arrow";
  }
}

/* --- Modern contact footer: one global rule, three information columns, no card-like local rules. --- */
.site-footer-modern {
  border-top: 1px solid var(--hairline);
  background: #fff;
}
.site-footer-modern .site-footer-inner {
  width: min(var(--content-width), calc(100vw - 56px));
  margin: 0 auto;
  padding: 62px 0 30px;
  display: block;
}
.footer-brandline h2 {
  margin: 0 0 42px;
  font-size: clamp(28px, 2.35vw, 34px);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 600;
}
.footer-modern-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.18fr);
  gap: clamp(44px, 6vw, 96px);
  align-items: start;
}
.footer-modern-col { min-width: 0; }
.footer-modern-col p {
  margin: 0;
  font-size: 16px;
  line-height: 1.58;
}
.footer-modern-col .footer-label {
  margin: 0 0 18px;
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .075em;
  color: var(--muted);
}
.footer-modern-col .footer-muted { margin-top: 14px; color: var(--muted); }
.footer-modern-col a { width: fit-content; }
.footer-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 26px;
}
.footer-inline-links a,
.footer-newsletter-cta {
  display: inline-block;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: .035em;
  border-bottom: 1px solid rgba(11,11,11,.34);
  padding-bottom: 3px;
}
.footer-newsletter-col > p:not(.footer-label) { max-width: 390px; color: #34383c; }
.footer-newsletter-cta { margin-top: 26px; }
.site-footer-modern .footer-bottom {
  margin-top: 58px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}
.site-footer-modern .footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
}
.site-footer-modern .footer-legal a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .065em;
}
@media (max-width: 860px) {
  .site-footer-modern .site-footer-inner { width: calc(100vw - 28px); padding-top: 46px; }
  .footer-brandline h2 { margin-bottom: 34px; font-size: 28px; }
  .footer-modern-grid { grid-template-columns: 1fr; gap: 34px; }
  .site-footer-modern .footer-bottom { margin-top: 42px; }
  .site-footer-modern .footer-legal { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
}
/* Language option reset: inherited legacy span opacity/margins must not make 中文 smaller/lighter. */
.language-switch .lang-option {
  opacity: 1 !important;
  margin: 0 !important;
  color: currentColor;
}
