:root {
  --bg: #f3ece0;
  --bg-soft: #e9e0d0;
  --surface: #faf5ec;
  --surface-strong: #faf5ec;
  --text: #1c0f08;
  --muted: #574030;
  --line: rgba(28, 15, 8, 0.16);
  --line-strong: rgba(28, 15, 8, 0.30);
  --accent: #8c2f1c;
  --accent-dark: #5e1d14;
  --gold: #a47820;
  --gold-light: rgba(164, 120, 32, 0.14);
  --max-width: 1180px;
  --anchor-offset: 96px;
  --header-progress: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

[id] {
  scroll-margin-top: var(--anchor-offset);
}

body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Page shell ── */

.page-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding-bottom: 80px;
}

/* ── Header ── */

.site-header {
  --header-fg: #faf5ec;
  --header-muted: rgba(250, 245, 236, 0.68);
  --header-hover: #ffffff;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 max(40px, calc((100vw - var(--max-width)) / 2 + 40px));
  height: 72px;
  background: #3d1a0e;
  border-bottom: 2px solid var(--accent);
  color: var(--header-fg);
}

/* thin gold top stripe — a touch of theater-programme richness */
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(164,120,32,0.4) 60%, transparent 100%);
}

.site-header.is-contrast-dark {
  /* kept for JS compat */
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong,
.section-heading h2,
.hero h1,
.info-card h3,
.story-copy,
.external-card strong,
.contact-card h3 {
  font-family: "Cormorant Garamond", serif;
}

.brand-text strong {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-text span {
  color: var(--header-muted);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Nav ── */

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a,
.nav-dropdown-trigger {
  color: var(--header-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 150ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger:focus-visible {
  color: var(--header-hover);
}

.nav-dropdown-trigger {
  cursor: default;
  outline-offset: 4px;
}

/* ── Nav dropdown (Galerie years) ── */

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  display: flex;
  flex-direction: column;
  min-width: 130px;
  padding: 6px 0;
  background: #3d1a0e;
  border: 1px solid rgba(250, 245, 236, 0.16);
  border-top: 2px solid var(--gold);
  box-shadow: 0 14px 30px rgba(28, 15, 8, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown a {
  padding: 10px 20px;
  text-align: left;
  white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: rgba(250, 245, 236, 0.08);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 6px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: var(--header-fg);
  transition: opacity 150ms ease;
}

/* ── Eyebrow / kicker labels ── */

.eyebrow,
.panel-label,
.card-kicker,
.external-label {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
}

/* small leading dash — a typographic touch */
.eyebrow::before,
.card-kicker::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 9px;
  opacity: 0.65;
}

.hero-panel .panel-label {
  color: rgba(250, 245, 236, 0.55);
}

.hero-panel .panel-label::before {
  background: rgba(250, 245, 236, 0.55);
}

/* ── Hero ── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) fit-content(320px);
  gap: 0;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.hero-copy,
.hero-panel,
.story-layout,
.external-cards,
.sponsor-grid,
.contact-layout,
.info-cards {
  animation: fade-up 560ms ease both;
}

#show-cards {
  display: contents;
}

.hero-copy {
  padding: 60px 52px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.hero-copy,
.hero-panel,
.story-section,
.external-section,
.sponsor-section,
.contact-section,
.section-grid {
  border-radius: 0;
  background: var(--surface);
}

.hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.hero-text,
.section-intro,
.story-copy p,
.contact-card p,
.info-card p,
.external-card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.hero-text {
  max-width: 54ch;
  margin: 22px 0 0;
}

.hero-actions,
.hero-note {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 36px;
}

.hero-note {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

/* Story card inside hero — gold left border, warm tint */
.hero-piece-card {
  margin-top: 36px;
  padding: 28px 32px;
  background: var(--gold-light);
  border: 1px solid rgba(164, 120, 32, 0.22);
  border-left: 3px solid var(--gold);
}

.hero-piece-card .card-kicker::before {
  background: var(--gold);
  opacity: 1;
}

.piece-card-inner {
  display: flex;
  gap: 26px;
  align-items: flex-start;
}

.piece-image {
  flex-shrink: 0;
  width: 128px;
  height: auto;
  mix-blend-mode: multiply;
}

.piece-card-text {
  min-width: 0;
}

.piece-card-text .card-kicker {
  margin-bottom: 10px;
}

/* ── Buttons ── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 1px;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.button-primary {
  color: #fff;
  background: var(--accent);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
  box-shadow: 0 3px 14px rgba(94, 29, 20, 0.28);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--bg-soft);
  border-color: var(--line-strong);
}

/* ── Hero panel (dates) ── */

.hero-panel {
  padding: 44px 38px;
  width: fit-content;
  min-width: 0;
  background: #3d1a0e;
  color: #faf5ec;
}

.date-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.date-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(250, 245, 236, 0.1);
}

.date-list span {
  min-width: 26px;
  color: rgba(250, 245, 236, 0.42);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* dates in serif for a program-booklet feel */
.date-list strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.date-list strong a {
  color: inherit;
  transition: color 150ms ease;
}

.date-list strong a:hover {
  color: rgba(250, 245, 236, 0.72);
}

.panel-footnote {
  margin: 22px 0 0;
  color: rgba(250, 245, 236, 0.6);
  font-size: 0.85rem;
}

.eventfrog-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  width: fit-content;
  padding: 10px 16px 10px 12px;
  border-radius: 1px;
  background: rgba(250, 245, 236, 0.09);
  border: 1px solid rgba(250, 245, 236, 0.18);
  color: #faf5ec;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 160ms ease, border-color 160ms ease;
}

.eventfrog-badge:hover,
.eventfrog-badge:focus-visible {
  background: rgba(250, 245, 236, 0.16);
  border-color: rgba(250, 245, 236, 0.38);
}

.eventfrog-logo {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 5px;
}

.eventfrog-cta {
  color: #faf5ec;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

/* ── Section scaffold ── */

.section-grid,
.story-section,
.external-section,
.sponsor-section,
.contact-section {
  padding: 56px 52px;
  border-top: 1px solid var(--line);
}

/* heading with accent rule — editorial bookmark */
.section-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 44px;
  padding-bottom: 28px;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--accent);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

/* ── Info cards ── */

/* individual borders instead of gap-table */
.info-cards,
.external-cards,
.contact-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  background: none;
  border: none;
}

.contact-section .contact-layout {
  grid-template-columns: minmax(0, 1fr);
}

.contact-section {
  padding: 44px 52px;
}

.contact-section .section-heading {
  margin-bottom: 28px;
}

.contact-section .section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.contact-section .contact-card {
  padding: 24px;
  font-size: 0.92rem;
}

.info-card,
.fact-card,
.external-card,
.contact-card {
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--line-strong);
  border-radius: 0;
}

/* gold-topped accent card */
.accent-card {
  background: var(--bg-soft);
  border-top-color: var(--gold);
}

.wide-card {
  grid-column: span 2;
}

.info-card h3,
.contact-card h3,
.external-card strong {
  margin: 0 0 14px;
  font-size: 1.9rem;
  line-height: 1.05;
  font-weight: 600;
}

.contact-section .contact-card h3 {
  font-size: 1.3rem;
}

.contact-section .contact-card p,
.contact-section .contact-card a {
  font-size: 0.92rem;
  line-height: 1.7;
}

.show-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.show-meta + .show-meta {
  margin-top: 2px;
}

.payment-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.payment-links .button {
  padding: 11px 18px;
  font-size: 0.85rem;
}

.show-ticket {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 1px;
  background: var(--bg);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: border-color 160ms ease, background 160ms ease;
}

.show-ticket:hover,
.show-ticket:focus-visible {
  border-color: var(--accent);
  background: var(--surface);
}

.show-ticket-logo {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
}

/* ── Verein / Story ── */

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

/* CTA invitation card */
.story-contact-card {
  margin-top: 40px;
  padding: 44px 52px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  text-align: center;
  background: var(--bg-soft);
}

.story-contact-card h3 {
  font-size: 2rem !important;
  margin-bottom: 14px !important;
}

.story-contact-card p {
  max-width: 56ch;
  margin: 0 auto 28px !important;
}

.story-copy {
  padding: 36px;
  background: var(--surface);
  border-radius: 0;
}

.story-copy p {
  margin: 0;
  font-size: 1.05rem;
}

.story-copy p + p {
  margin-top: 20px;
}

.story-copy .button {
  margin-top: 26px;
}

.story-logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 40px 32px;
  background: var(--bg-soft);
}

.story-logo {
  display: block;
  width: min(100%, 240px);
  height: auto;
  object-fit: contain;
  opacity: 0.82;
}

.small-note {
  color: var(--muted);
}

/* ── External cards ── */

.external-card {
  transition: background 160ms ease;
}

.external-card:hover,
.external-card:focus-visible {
  background: var(--bg-soft);
}

/* ── Sponsors — flowing acknowledgment style ── */

.section-intro {
  margin-bottom: 28px;
}

.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin-top: 8px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: none;
  border-left: none;
  border-right: none;
}

.sponsor-grid a {
  display: inline-flex;
  align-items: center;
  padding: 5px 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  border-radius: 0;
  border: none;
  background: transparent;
  min-height: auto;
  transition: color 150ms ease;
}

.sponsor-grid a:hover,
.sponsor-grid a:focus-visible {
  color: var(--accent-dark);
  background: transparent;
}

/* gold dot separator between sponsor names */
.sponsor-grid a::after {
  content: '·';
  display: inline-block;
  margin: 0 10px;
  color: var(--gold);
  font-size: 1.1em;
  line-height: 1;
}

.sponsor-grid a:last-child::after {
  display: none;
}

.sponsor-cta {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.sponsor-cta a {
  color: var(--accent-dark);
  font-weight: 700;
}

/* ── Map ── */

.map-embed {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg-soft);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
}

.map-link {
  margin: 12px 0 0;
}

.map-link a {
  color: rgba(250, 245, 236, 0.62);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 150ms ease;
}

.map-link a:hover {
  color: rgba(250, 245, 236, 0.9);
}

.muted-card {
  background: var(--bg-soft);
}

/* ── Scroll-to-top ── */

.scroll-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 1px;
  background: #3d1a0e;
  color: #faf5ec;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease,
    background 160ms ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover,
.scroll-top:focus-visible {
  background: var(--accent);
}

/* ── Animation ── */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── 960px ── */

@media (max-width: 960px) {
  .hero,
  .story-layout,
  .info-cards,
  .external-cards,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    border-bottom: 1px solid var(--line);
  }

  .hero-copy {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .sponsor-grid {
    /* stays flex-wrap — works fine on tablet */
  }

  .site-header {
    padding: 0 20px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0;
    border-bottom: 2px solid var(--accent);
    background: #3d1a0e;
    box-shadow: 0 6px 20px rgba(28, 15, 8, 0.22);
  }

  .site-nav a,
  .nav-dropdown-trigger {
    padding: 13px 24px;
    color: rgba(250, 245, 236, 0.72);
  }

  .site-nav a:hover,
  .site-nav a:focus-visible,
  .nav-dropdown-trigger:hover,
  .nav-dropdown-trigger:focus-visible {
    color: #fff;
    background: rgba(250, 245, 236, 0.06);
  }

  .nav-item {
    height: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    min-width: 0;
    padding: 0 0 6px;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .nav-dropdown a {
    padding: 10px 24px 10px 40px;
    text-align: left;
    font-size: 0.76rem;
    color: rgba(250, 245, 236, 0.6);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .section-grid,
  .story-section,
  .external-section,
  .sponsor-section,
  .contact-section {
    padding: 44px 36px;
  }
}

/* ── 640px ── */

@media (max-width: 640px) {
  :root {
    --anchor-offset: 64px;
  }

  html {
    font-size: 16px;
  }

  .page-shell {
    width: 100%;
  }

  .site-header {
    padding: 0 16px;
    height: 60px;
  }

  .site-header::before {
    height: 2px;
  }

  .brand {
    gap: 10px;
    min-width: 0;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-text strong {
    font-size: 0.95rem;
  }

  .brand-text span {
    display: none;
  }

  .scroll-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }

  .hero-copy,
  .hero-panel {
    padding: 32px 24px;
  }

  .section-grid,
  .story-section,
  .external-section,
  .sponsor-section,
  .contact-section,
  .contact-section.contact-section {
    padding: 36px 24px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .hero-text {
    margin-top: 16px;
    font-size: 0.96rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-note {
    margin-top: 22px;
    padding-top: 20px;
    align-items: flex-start;
    gap: 6px;
  }

  .hero-piece-card {
    margin-top: 28px;
    padding: 20px 22px;
  }

  .piece-card-inner {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
  }

  .piece-image {
    width: 104px;
  }

  .hero-panel {
    width: 100%;
  }

  .date-list li {
    gap: 10px;
    padding: 13px 0;
  }

  .eventfrog-badge {
    width: 100%;
    justify-content: center;
  }

  .map-embed iframe {
    height: 200px;
  }

  .section-heading h2,
  .info-card h3,
  .contact-card h3,
  .external-card strong {
    font-size: 1.75rem;
  }

  .info-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .wide-card {
    grid-column: auto;
  }

  .payment-links {
    flex-direction: column;
  }

  .payment-links .button {
    width: 100%;
  }

  .show-ticket {
    width: 100%;
    justify-content: center;
  }

  .story-copy {
    padding: 24px;
  }

  .story-copy p {
    font-size: 0.98rem;
  }

  .story-contact-card {
    padding: 32px 24px;
  }

  .story-contact-card h3 {
    font-size: 1.6rem !important;
  }

  .sponsor-grid a {
    font-size: 0.86rem;
  }
}
