/* ==========================================================================
   Volksgesangverein Linz 1910 – public style sheet
   1. Design tokens   2. Base   3. Components   4. Header / footer
   5. Home sections   6. Sub pages   7. Lightbox   8. Responsive   9. Print
   ========================================================================== */

/* Inter 4 variable font (weight + optical size), cut down to Latin incl. all European accents, ẞ, punctuation,
   € and arrows: 110 KB instead of 352 KB. How it was made: README → "Font". */
@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 1. Design tokens --------------------------------------------------------- */
:root {
  /* Brand colors – change the accent here to re-theme the whole site */
  --color-accent: #1f5c3f;          /* buttons, hero card, CTA band, "1910", date badges */
  --color-accent-dark: #163f2c;     /* hover state, text on soft tint */
  --color-accent-soft: #e3eee6;     /* tinted panels, pills, icon boxes, photo placeholders */
  --color-accent-on: #ffffff;       /* text on accent */

  /* Neutrals */
  --color-bg: #ffffff;
  --color-bg-alt: #f2f4f0;
  --color-surface: #ffffff;
  --color-text: #16201b;
  --color-text-muted: #4f5a53;
  --color-border: #dce2dc;
  --color-footer-bg: #16201b;
  --color-footer-text: #c3d3cb;
  --color-footer-muted: #8ea396;
  --color-focus: #2f7d57;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-base: 1.0625rem;
  --leading: 1.6;

  /* Shape & layout */
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(22, 32, 27, .05), 0 10px 30px rgba(22, 32, 27, .07);
  --shadow-float: 0 24px 60px rgba(22, 32, 27, .18);
  --container: 1280px;
  --gutter: clamp(1rem, 5.5vw, 5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --header-h: 80px;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
html.large-text { font-size: 118%; }   /* "A+ Größere Schrift" */

body {
  margin: 0;
  /* main grows to fill the window, so the footer sits at the bottom even on short pages */
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
  overflow-x: clip;               /* safety net against horizontal scrolling on small screens */
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
body > main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--color-accent); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -999px; top: .5rem; z-index: 100;
  padding: .5rem 1rem; border-radius: var(--radius-s);
  background: var(--color-accent); color: var(--color-accent-on);
}
.skip-link:focus { left: .5rem; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-lg { width: 2rem; height: 2rem; }

/* Typography helpers */
.h-display {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.04;
}
.eyebrow {
  margin: 0 0 .9rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.eyebrow-on-accent { color: rgba(255, 255, 255, .72); }
.lead {
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* 3. Components ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.5rem;
  border: 2px solid transparent; border-radius: var(--radius-s);
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--color-accent); color: var(--color-accent-on); }
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-outline { background: transparent; border-color: var(--color-accent); color: var(--color-accent); }
.btn-outline:hover { background: var(--color-accent-soft); }
.btn-small { min-height: 42px; padding: .55rem 1.1rem; font-size: .9375rem; }
.btn-on-accent { background: var(--color-surface); color: var(--color-accent); }
.btn-on-accent:hover { background: var(--color-accent-soft); }

.link-underline {
  color: var(--color-accent); font-weight: 700;
  text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 2px;
}
.link-underline:hover { color: var(--color-accent-dark); }
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; text-decoration: none; color: var(--color-accent);
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: .22em; }
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

.pill {
  display: inline-block; padding: .4rem .95rem;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft); color: var(--color-accent-dark);
  font-weight: 600; font-size: .875rem; line-height: 1.3;
}
.pill-small { padding: .3rem .75rem; font-size: .8125rem; }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
}

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.empty-state {
  margin: 0; padding: 2rem; text-align: center;
  color: var(--color-text-muted);
  border: 1px dashed var(--color-border); border-radius: var(--radius-m);
  background: var(--color-surface);
}

/* Photo placeholder / photo frame */
.photo { position: relative; overflow: hidden; margin: 0; border-radius: var(--radius-l); background: var(--color-accent-soft); }
.photo picture { display: contents; }   /* art-directed photos: the img still sizes against .photo */
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder {
  display: grid; place-content: center; justify-items: center; gap: .75rem;
  padding: 2rem; text-align: center;
  color: var(--color-accent-dark); font-size: .9375rem;
}
.photo-tall { min-height: 440px; height: 100%; }

/* 4. Header / footer ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  position: relative; min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .8rem; color: inherit; text-decoration: none; }
.brand-mark {
  position: relative; width: 52px; height: 52px; flex: none;
  border-radius: 13px; background: var(--color-accent); color: var(--color-accent-on);
}
.brand-mark::before { content: ""; position: absolute; inset: 9%; }
/* The emblem (one cached SVG) used as a mask, so it takes the text colour: white on green in the header,
   green on white in the footer, green next to the Chronik "1910". */
.brand-mark::before, .chronik-emblem {
  background: currentColor;
  -webkit-mask: url("../../images/vgv-emblem.svg") center / contain no-repeat;
  mask: url("../../images/vgv-emblem.svg") center / contain no-repeat;
}
@media (forced-colors: active) {
  .brand-mark, .chronik-emblem { forced-color-adjust: none; }   /* keep the colours in Windows high-contrast mode */
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.brand-text small { font-size: .8125rem; color: var(--color-text-muted); }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.nav-list { list-style: none; display: flex; gap: 2rem; }
.nav-list a {
  white-space: nowrap;
  display: inline-block; padding: .3rem 0;
  color: var(--color-text); text-decoration: none; font-weight: 500; font-size: 1.0625rem;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover { color: var(--color-accent); border-bottom-color: var(--color-accent); }

.font-toggle, .nav-toggle {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: .4rem .9rem;
  border: 1px solid var(--color-border); border-radius: var(--radius-s);
  background: var(--color-surface); color: var(--color-text);
  font-size: .9375rem; font-weight: 600; cursor: pointer;
}
.font-toggle:hover, .nav-toggle:hover { border-color: var(--color-accent); }
.font-toggle-icon { font-weight: 800; font-size: 1.1rem; letter-spacing: -.03em; }
.font-toggle[aria-pressed="true"] { background: var(--color-accent-soft); border-color: var(--color-accent); }
.nav-toggle { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="false"] .icon-close { display: none; }

.site-footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  background: var(--color-footer-bg); color: var(--color-footer-text);
  font-size: .9375rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.brand-footer .brand-mark { background: var(--color-surface); color: var(--color-accent); }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: var(--color-footer-muted); }
.footer-title {
  margin: .6rem 0 1rem;
  font-size: .8125rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--color-footer-muted);
}
.site-footer p { margin: 0; line-height: 1.8; overflow-wrap: anywhere; }
.site-footer p + p { margin-top: .75rem; }
.footer-role { color: var(--color-footer-muted); }
.site-footer a { color: #fff; }
.footer-links { list-style: none; display: grid; gap: .35rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem;
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: var(--color-footer-muted); font-size: .875rem;
}
.footer-bottom p + p { margin-top: 0; }
.footer-bottom a { color: inherit; }

/* 5. Home sections --------------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section-alt { background: var(--color-bg-alt); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }
.section-head .h-display { margin-bottom: 0; }
.section-head .link-underline { margin-bottom: .6rem; white-space: nowrap; }

/* Hero */
/* The hero box has the photo's 16:9 ratio up to 1387px, so nothing is cropped. On wider screens the box
   stops growing (780px), the photo is shown uncropped (contain) and a blurred copy fills the sides.
   The sizes attribute in app/templates/pages/home.php relies on these numbers. */
.hero-media { position: relative; height: clamp(300px, 56.25vw, 780px); overflow: hidden; background: var(--color-accent-dark); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media-bg { display: none; position: absolute; inset: 0; filter: blur(28px) brightness(.75) saturate(1.1); transform: scale(1.12); }
.hero-media-img { position: relative; }
@media (min-width: 1388px) {
  .hero-media .hero-media-img { object-fit: contain; }
  .hero-media .hero-media-bg { display: block; }   /* below this the photo covers the whole box anyway */
}
.hero-cards {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 1.25rem; align-items: stretch;
  margin-top: clamp(-7.5rem, -9vw, -3rem);
  margin-bottom: var(--section-y);
}
.hero-intro {
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--color-surface); border-radius: var(--radius-l);
  box-shadow: var(--shadow-float);
}
.hero-intro .h-display { margin-top: 1.25rem; }
.hero-next {
  min-width: 0;
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  background: var(--color-accent); color: var(--color-accent-on);
  border-radius: var(--radius-l); box-shadow: var(--shadow-float);
}
.next-events { list-style: none; flex: 1; display: flex; }
.next-events li { flex: 1; display: flex; flex-direction: column; }
.next-events li:not(:first-child) { display: none; }   /* only the first (next) event is visible */
.hero-next-title {
  margin: 0 0 1rem; color: #fff;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem); font-weight: 800; letter-spacing: -.03em;
}
.hero-next-when, .hero-next-where { margin: 0 0 .75rem; color: rgba(255, 255, 255, .92); }
.hero-next .link-arrow { margin-top: auto; padding-top: 2rem; color: #fff; }
.hero-next-empty { margin: 0; color: rgba(255, 255, 255, .9); }
.hero-next-empty .link-arrow { color: #fff; margin-top: .75rem; }

/* Termine */
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.event-grid-home > :nth-child(n + 4) { display: none; }   /* home shows 3; extra cards are spares for the JS stale-filter */
.event-card { display: flex; flex-direction: column; padding: 1.75rem; }
.event-card-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.date-badge {
  width: 76px; height: 76px; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--color-accent); color: var(--color-accent-on); line-height: 1;
}
.date-badge-day { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; }
.date-badge-month { margin-top: .3rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.event-card-when { margin: 0; display: flex; flex-direction: column; font-size: .9375rem; color: var(--color-text-muted); }
.event-card-when strong { color: var(--color-text); font-size: 1rem; }
.event-card-title { margin: 0 0 .6rem; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.event-card-title a { color: inherit; text-decoration: none; }
.event-card-title a:hover { color: var(--color-accent); }
.event-card-teaser { margin: 0 0 1rem; color: var(--color-text-muted); }
.event-card-location { display: flex; align-items: center; gap: .5rem; margin: 0 0 1.5rem; }
.event-card-location .icon { color: var(--color-accent); }
.event-card-foot {
  margin-top: auto; padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* Mitsingen */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.info-list { list-style: none; display: grid; gap: 1rem; margin: 1.75rem 0 2rem; }
.info-item { display: flex; gap: .9rem; align-items: center; }
.info-icon {
  width: 48px; height: 48px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px; background: var(--color-accent-soft); color: var(--color-accent);
}
.info-item strong { display: block; font-size: 1.0625rem; }
.info-item span { color: var(--color-text-muted); font-size: .9375rem; }

/* Über uns */
.about-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem);
  align-items: center; margin-bottom: 3rem;
}
.about-head .h-display { margin-bottom: 0; }
.about-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); margin-bottom: 3rem; }
.about-points > div { padding-top: 1.25rem; border-top: 2px solid var(--color-accent); }
.about-points h3 { margin-bottom: .5rem; font-size: 1.375rem; }
.about-points p { margin: 0; max-width: 68ch; color: var(--color-text-muted); }
.about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.about-card { overflow: hidden; display: flex; flex-direction: column; }
.about-card .photo { border-radius: 0; aspect-ratio: 3 / 2; min-height: 0; }
.about-card-body { padding: 1.5rem; }
.about-card-body h3 { margin-bottom: .4rem; font-size: 1.375rem; }
.about-card-body p { margin: 0; color: var(--color-text-muted); }

/* Chronik */
.chronik { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.chronik-year {
  display: flex; align-items: center; gap: .1em;
  margin: 0 0 1.25rem;
  font-size: clamp(5.5rem, 3rem + 9vw, 10rem); font-weight: 800; letter-spacing: -.06em; line-height: .9;
  color: var(--color-accent);
}
.chronik-emblem { flex: none; width: .62em; height: .75em; }   /* emblem 212:257, as tall as the digits */
@media (min-width: 1101px) {
  /* two columns: emblem + "1910" (~2.75em) must fit the left column (~34vw up to 1438px) */
  .chronik-year { font-size: min(10rem, 12vw); }
}
.chronik-list { list-style: none; border-top: 1px solid var(--color-border); }
.chronik-item { border-bottom: 1px solid var(--color-border); }
.chronik-link {
  display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 1.25rem; align-items: center;
  padding: 1.25rem 0; color: inherit; text-decoration: none;
}
.chronik-thumb {
  width: 130px; height: 96px; overflow: hidden;
  display: grid; place-items: center;
  border-radius: 10px; background: var(--color-accent-soft); color: var(--color-accent-dark);
}
.chronik-thumb img { width: 100%; height: 100%; object-fit: cover; }
.chronik-text { display: flex; flex-direction: column; gap: .2rem; }
.chronik-eyebrow { font-size: .8125rem; font-weight: 600; color: var(--color-text-muted); }
.chronik-title { font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.chronik-arrow { color: var(--color-accent); }
.chronik-link:hover .chronik-title { color: var(--color-accent); }
.chronik-more { margin: 1.5rem 0 0; }   /* "show all" below the home teaser list, only when entries were cut off */

/* Kontakt CTA band */
.cta { padding-block: clamp(3rem, 7vw, 5.5rem); background: var(--color-accent); color: var(--color-accent-on); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cta h2 { margin-bottom: 1rem; color: #fff; font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; }
.cta p { margin: 0; max-width: 52ch; color: rgba(255, 255, 255, .85); }
.cta-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }   /* one card per contact person */
.cta-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--color-surface); color: var(--color-text);
  border-radius: var(--radius-m); text-decoration: none;
}
a.cta-card:hover { box-shadow: var(--shadow-card); }
.cta-icon {
  width: 48px; height: 48px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--color-accent-soft); color: var(--color-accent);
}
.cta-card small { display: block; font-size: .875rem; color: var(--color-text-muted); }
.cta-card strong { font-size: 1.0625rem; }
.cta-links { display: block; margin-top: .3rem; font-size: .9375rem; line-height: 1.7; overflow-wrap: anywhere; }
.cta-links a, .cta-links span { display: block; }
.cta-links a { color: var(--color-accent-dark); }

/* 6. Sub pages ------------------------------------------------------------- */
.breadcrumb { margin-bottom: 1.5rem; font-size: .9375rem; color: var(--color-text-muted); }
.breadcrumb a { color: inherit; }
.breadcrumb span { margin-inline: .4rem; }
.page-intro { max-width: 70ch; margin-bottom: 2.5rem; }
.page-intro .h-display { margin-bottom: .75rem; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.meta-list { list-style: none; display: grid; gap: .6rem; margin: 0 0 1.75rem; }
.meta-list li { display: flex; gap: .7rem; align-items: flex-start; }
.meta-list .icon { margin-top: .2em; color: var(--color-accent); }
.meta-list small { display: block; color: var(--color-text-muted); }
.prose p { max-width: 68ch; }
.prose h2 { margin-top: 2.5rem; font-size: 1.75rem; letter-spacing: -.02em; }
.prose h3 { margin-top: 2rem; font-size: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1em; }
.prose li { margin-bottom: .35rem; }
.flyer { overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-m); background: var(--color-bg-alt); }
.flyer img { width: 100%; }
.flyer a { display: block; }
.aside-box { margin-top: 1.5rem; padding: 1.5rem; border-radius: var(--radius-m); background: var(--color-accent-soft); }
.aside-box h2 { font-size: 1.125rem; margin-bottom: .5rem; }
.aside-box p { margin: 0 0 .75rem; color: var(--color-accent-dark); }

.gallery { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; margin-top: 1rem; }
.gallery a { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--color-accent-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.gallery a:hover img { transform: scale(1.03); }

.chronik-group + .chronik-group { margin-top: 3rem; }
.chronik-group h2 { margin-bottom: 0; padding-bottom: .75rem; font-size: 2rem; letter-spacing: -.03em; color: var(--color-accent); }

.error-page { text-align: center; padding-block: var(--section-y); }
.error-page .lead { margin-inline: auto; }
.error-page .actions { justify-content: center; }

/* 7. Lightbox -------------------------------------------------------------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; border: 0; padding: 0; background: transparent; }
.lightbox::backdrop { background: rgba(10, 14, 12, .92); }
.lightbox figure {
  margin: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
  padding: 3.5rem 4.5rem;
}
.lightbox img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; border-radius: 6px; }
.lightbox figcaption { min-height: 1.5em; color: #fff; font-size: .9375rem; text-align: center; }
.lightbox-btn {
  position: absolute; width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, .28); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* 8. Responsive ------------------------------------------------------------ */
@media (max-width: 1200px) {
  .site-nav { gap: 1.25rem; }
  .nav-list { gap: 1.4rem; }
}

@media (max-width: 1100px) {
  .event-grid, .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-cards { grid-template-columns: minmax(0, 1fr); }
  .chronik, .about-head, .about-points, .split, .cta-inner, .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-tall { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
  .about-head .h-display br { display: none; }
}

@media (max-width: 1099px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute; top: 100%; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter));
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.25rem;
    background: var(--color-surface); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-card);
  }
  .js .site-nav.is-open { display: flex; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-bottom: .75rem; }
  html:not(.js) .site-nav { flex-wrap: wrap; gap: 1rem; }
  .js .nav-list { flex-direction: column; gap: 0; }
  .js .nav-list a { display: block; padding: .85rem 0; font-size: 1.125rem; border-bottom: 1px solid var(--color-border); }
  .js .font-toggle { margin-top: 1rem; align-self: flex-start; }
  .brand-mark { width: 46px; height: 46px; }
}

@media (max-width: 760px) {
  .event-grid, .about-grid, .cta-cards, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero-media { height: auto; aspect-ratio: 16 / 9; }   /* full photo on phones too */
  .hero-cards { margin-top: -1.5rem; }                     /* smaller overlap so the front row stays visible */
  .hero-intro, .hero-next { border-radius: var(--radius-m); }
  .actions .btn { flex: 1 1 auto; }
  .chronik-link { grid-template-columns: 88px minmax(0, 1fr) auto; gap: .9rem; }
  .chronik-thumb { width: 88px; height: 66px; }
  .chronik-title { font-size: 1.125rem; }
  .brand-text strong { font-size: 1rem; }
  .date-badge { width: 64px; height: 64px; }
  .date-badge-day { font-size: 1.5rem; }
  .event-card { padding: 1.25rem; }
  .lightbox figure { padding: 4rem .75rem 3rem; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: .75rem; transform: none; }
}

@media (max-width: 480px) {
  .brand { gap: .6rem; }
  .brand-mark { width: 40px; height: 40px; border-radius: 10px; }
  .brand-text strong { white-space: normal; font-size: .95rem; line-height: 1.15; }
  .brand-text small { font-size: .75rem; }
  .font-toggle-label { display: none; }
  .nav-toggle-label { display: none; }
  .pill { font-size: .8125rem; padding: .35rem .8rem; }
  .btn { padding-inline: 1.1rem; }
  .hero-cards { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* 9. Print ----------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cta, .skip-link, .actions { display: none; }
  body { color: #000; }
  a { color: inherit; text-decoration: none; }
}
