/* ============================================================
   HOME-VISUAL-BALANCE-R2 — Header, Gallery, Programme & Social Rebalance
   Parent: HOME-NAV-FOOTER-R1
   Scheme A: stable white global header; dark curtain begins below it.
   ============================================================ */

/* A — Brand/header remains the stable white institutional layer. */
.site-header-shell.is-curtain {
  background: #fff !important;
  color: var(--ink) !important;
  border-color: var(--hairline) !important;
}
.site-header-shell.is-curtain .brand-lockup-full { display: block !important; }
.site-header-shell.is-curtain .brand-lockup-seal-only { display: none !important; }
.site-header-shell.is-curtain .nav-trigger,
.site-header-shell.is-curtain .nav-direct,
.site-header-shell.is-curtain .language-switch,
.site-header-shell.is-curtain .mobile-menu-trigger { color: var(--ink) !important; }

/* Brand grows modestly; navigation remains its own functional zone. */
@media (min-width: 1440px) {
  .brand-lockup-full { width: 350px !important; max-height: 72px !important; }
  .header-right { margin-left: clamp(90px, 7.2vw, 145px) !important; }
}
@media (min-width: 1241px) and (max-width: 1439px) {
  .brand-lockup-full { width: 326px !important; max-height: 68px !important; }
  .header-right { margin-left: clamp(62px, 5vw, 96px) !important; }
}

/* One exact navigation baseline for buttons and direct links. */
.main-nav { display: flex; align-items: center; }
.main-nav .nav-trigger,
.main-nav .nav-direct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-height: 44px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0;
  border: 0;
  line-height: 1 !important;
  vertical-align: middle;
}

/* Language group: spacing separates the group; pipe separates the languages. */
.language-switch {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  height: 44px;
  min-height: 44px;
  gap: 9px !important;
  margin-left: 46px !important;
  padding: 0 !important;
  line-height: 1 !important;
}
.language-switch .lang-option,
.language-switch .lang-divider {
  display: inline-flex;
  align-items: center;
  height: 44px;
  line-height: 1;
}
.language-switch .lang-de { font-size: 16px; }
.language-switch .lang-zh { font-size: 15.5px !important; transform: translateY(-.2px); }
.language-switch .lang-divider {
  font-family: "Source Sans 3", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: rgba(11,11,11,.42);
  transform: translateY(-.25px);
}
.site-header-shell.is-curtain .language-switch .lang-divider { color: rgba(11,11,11,.42); }

/* Gallery regains first visual priority: ~10% larger than R1. */
@media (min-width: 861px) {
  .gallery-viewport { height: 536px !important; }
  .gallery-track { gap: 60px !important; }
  .poster-link { flex-basis: 650px !important; }
  .hero { padding-top: 70px !important; }
}

/* Demnächst is a supporting section, not a second hero. */
@media (min-width: 861px) {
  .upcoming { padding-top: 86px !important; }
  #upcoming-heading {
    font-size: clamp(36px, 2.75vw, 44px) !important;
    line-height: .98 !important;
    letter-spacing: -.03em !important;
  }
}

/* Footer social cluster: compact, monochrome and directly actionable. */
.footer-contact-actions { margin-top: 26px; }
.footer-contact-actions > 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-social-wrap { margin-top: 24px; }
.footer-social-label {
  margin: 0 0 11px !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 600 !important;
  letter-spacing: .075em !important;
  color: var(--muted) !important;
}
.footer-social-row {
  display: flex;
  align-items: center;
  gap: 11px;
}
.footer-social-icon {
  width: 34px !important;
  height: 34px;
  border: 1px solid rgba(11,11,11,.18);
  border-radius: 50%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: #15181a;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.footer-social-icon svg { width: 17px; height: 17px; display: block; }
.footer-social-icon:hover,
.footer-social-icon:focus-visible {
  background: #15181a;
  color: #fff;
  border-color: #15181a;
  transform: translateY(-1px);
  outline: none;
}
.footer-social-note {
  margin-top: 10px !important;
  max-width: 340px;
  color: var(--muted) !important;
  font-size: 12px !important;
}

@media (max-width: 860px) {
  .language-switch { display: none !important; }
  .footer-social-icon { width: 38px !important; height: 38px; }
  .footer-social-icon svg { width: 18px; height: 18px; }
}
