/* ==========================================================================
   MC Werneuchen 1906 e.V. — zentrales Stylesheet
   ========================================================================== */

/* Schriften lokal eingebunden statt per Google-Fonts-@import (DSGVO: kein
   Drittland-Aufruf, deckt sich mit der Zusage in der Datenschutzerklaerung;
   ausserdem war der @import render-blocking). */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/playfair-display-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500 600;
  font-display: swap;
  src: url('../fonts/playfair-display-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/pt-serif-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/pt-serif-bold.woff2') format('woff2');
}
@font-face {
  font-family: 'PT Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/pt-serif-italic.woff2') format('woff2');
}

:root {
  --green-deepest: #142219;
  --green-dark: #1a2b1f;
  --green-mid: #223a29;
  --gold: #c9a45c;
  --gold-light: #d9bd82;
  --gold-pale: #e8d9b5;
  --cream: #f4efe3;
  --cream-alt: #ede5d3;
  --cream-card: #f8f4ea;
  --paper: #fbf8f1;
  --ink: #2a2822;
  --ink-soft: #55503f;
  --line-gold: #cdb989;
  --white: #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'PT Serif', Georgia, 'Times New Roman', serif;

  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 2px 10px rgba(20, 34, 25, 0.08);
  --shadow-header: 0 2px 12px rgba(0, 0, 0, 0.18);

  --container: 1180px;
  --gold-deep: #85682c;
}

* { box-sizing: border-box; }

/* Anker landen nicht mehr unter dem Sticky-Header */
[id] { scroll-margin-top: 104px; }

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.mc-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

/* Bespoke PNG-Icon-Medaillons (ersetzen die alten Strich-SVGs in Kreisen) */
.icon-circle img,
.timeline-dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.icon-circle, .timeline-dot { background: none; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  color: var(--green-deepest);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold);
  margin: 14px 0 30px;
}
.divider::before,
.divider::after {
  content: '';
  width: 60px;
  height: 1px;
  background: var(--line-gold);
}
.divider span { font-size: 1rem; transform: rotate(45deg); border: 1px solid var(--gold); width: 8px; height: 8px; display: inline-block; }

.section-title {
  text-align: center;
  font-size: 1.9rem;
  letter-spacing: 0.01em;
}

/* ============================= HEADER ============================= */

.site-header {
  background: var(--green-deepest);
  box-shadow: var(--shadow-header);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}
.site-header.header-hidden { transform: translateY(-100%); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-emblem { width: 52px; height: 52px; flex-shrink: 0; object-fit: contain; }
.footer-brand .brand-emblem { width: 60px; height: 60px; }
.emblem-shield { fill: var(--green-dark); stroke: var(--gold); stroke-width: 1.6; }
.emblem-shield-inner { fill: none; stroke: var(--gold); stroke-width: 0.6; }
.emblem-tree { fill: #3a5940; stroke: var(--gold); stroke-width: 0.5; }
.emblem-trunk { fill: #5c4a30; stroke: var(--gold); stroke-width: 0.4; }
.emblem-roots { fill: none; stroke: var(--gold); stroke-width: 0.6; stroke-linecap: round; }
.emblem-mono, .emblem-year {
  font-family: var(--font-display);
  font-weight: 700;
  fill: var(--gold);
  stroke: none;
}
.emblem-mono { font-size: 7px; }
.emblem-year { font-size: 6px; }

.brand-name {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}
.brand-sub {
  color: var(--gold-light);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  color: var(--cream);
  font-size: 0.92rem;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

/* Hamburger-Button: nur bei schmaler Breite sichtbar (siehe @media 980px) */
.nav-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 101;
}
.nav-toggle-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.site-header.nav-open .nav-toggle-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle-btn span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop { display: none; }

/* Schwebende Buttons (Nach-oben + Kalender), erscheinen ab Scroll — auf allen Bildschirmgrößen */
.mobile-fab {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mobile-fab.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.fab-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--green-deepest);
  border: 1px solid var(--green-deepest);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  cursor: pointer;
  overflow: hidden;
}
.fab-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.fab-top .mc-icon { width: 22px; height: 22px; }
.fab-cal { background: var(--green-deepest); color: var(--gold-light); border: 1px solid var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--green-deepest);
}
.btn-outline-light {
  background: transparent;
  border-color: var(--gold-pale);
  color: var(--cream);
}
.btn-dark {
  background: var(--green-deepest);
  color: var(--cream);
}
.btn-dark:hover { background: var(--green-mid); }
.btn-gold:hover { background: var(--gold-light); }

/* ============================= HERO ============================= */

.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: linear-gradient(100deg, rgba(15, 22, 16, 0.4) 0%, rgba(15, 22, 16, 0.5) 45%, rgba(15,22,16,0.88) 100%), var(--green-deepest);
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.55) contrast(1.05) brightness(0.55);
  z-index: 0;
}
/* Text (hero-inner) steht standardmäßig rechts — Abdunklung muss daher rechts am stärksten sein */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15,22,16,0.3) 10%, rgba(15,22,16,0.4) 45%, rgba(15,22,16,0.92) 100%);
  z-index: 1;
}
/* Helle Hero-Variante: Foto bleibt links klar sichtbar, nur rechts zum Text hin abgedunkelt */
.hero-showcase { background: var(--green-deepest); }
.hero-showcase .hero-photo { filter: sepia(0.35) contrast(1.05); }
.hero-showcase::after {
  background: linear-gradient(100deg, rgba(15,22,16,0.05) 0%, rgba(15,22,16,0.25) 42%, rgba(15,22,16,0.88) 68%, rgba(15,22,16,0.95) 100%);
}

/* Bildlose Hero-Variante (Impressum/Datenschutz): hell, zentriert, kein Dunkel-Verlauf noetig */
.hero-plain {
  background: var(--cream);
  justify-content: center;
}
.hero-plain::after { content: none; }
.hero-plain .hero-inner { margin-left: auto; margin-right: auto; text-align: center; }
.hero.hero-plain h1 { color: #000; }
.hero.hero-plain p.lead { color: #000; }

/* Rechtstexte (Impressum/Datenschutz): durchgehend schwarze Schrift, einfarbiger Hintergrund */
.legal-content, .legal-content h2, .legal-content p, .legal-content li, .legal-content strong { color: #000; }
.legal-content a { color: #000; text-decoration: underline; }

.hero .wrap { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 60px; width: 100%; }
.hero-inner { max-width: 560px; margin-left: auto; margin-right: 0; text-align: center; }
.hero-inner.hero-left { margin-left: 0; margin-right: auto; text-align: center; }
.hero-inner.hero-center { margin-left: auto; margin-right: auto; text-align: center; max-width: 640px; }
.hero-inner.hero-center .hr-gold { margin-left: auto; margin-right: auto; }
.hero-inner .hr-gold { margin-left: auto; margin-right: auto; }
.hero-ctas { justify-content: center; }
.hero h1 {
  color: var(--white);
  font-size: 3.4rem;
  line-height: 1.08;
  margin-bottom: 16px;
}
.hero .hr-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin: 18px auto;
}
.hero .hr-gold::before,
.hero .hr-gold::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold);
}
.hero .hr-gold::after { order: 2; }
.hero .hr-gold-diamond {
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  order: 1;
}
.hero p.lead {
  font-size: 1.08rem;
  color: var(--cream);
  line-height: 1.6;
  margin-bottom: 26px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================= INTRO TEXT BLOCK ============================= */

.intro-block {
  text-align: center;
  max-width: 820px;
  margin: 56px auto 44px;
  padding: 0 24px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ============================= CARD GRID ============================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 0 0 50px;
}
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

.info-card {
  display: block;
  background: var(--cream-card);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.info-card .icon-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--green-deepest);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.4rem;
}
.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.info-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}
.info-card .card-teaser { display: none; }
.info-card .card-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--green-mid);
  font-weight: 700;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--gold);
}

/* --- Foto-Karten (z.B. Oldtimer-Übersicht): Bild oben, Icon überlappend --- */
.info-card.photo-top { padding: 0; overflow: hidden; }
.info-card.photo-top > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin: 0;
  filter: none;
}
.info-card.photo-top .card-body { padding: 0 22px 28px; margin-top: -30px; }
.info-card.photo-top .icon-circle { margin: 0 auto 14px; border: 3px solid var(--paper); }

/* ============================= TIMELINE ============================= */

.timeline-section { margin: 10px 0 56px; }
.timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  padding: 0 10px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 40px;
  right: 40px;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--line-gold) 0 6px, transparent 6px 12px);
  z-index: 0;
}
.timeline-item {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
  padding: 0 6px;
}
.timeline-dot {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--green-deepest);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.2rem;
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line-gold);
}
.timeline-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--green-deepest);
  margin-bottom: 4px;
}
.timeline-text {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* ============================= FEATURE / PROFILE PANEL ============================= */

.profile-panel {
  background: var(--cream-card);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr;
  overflow: hidden;
  margin-bottom: 56px;
  box-shadow: var(--shadow-card);
}
.profile-panel img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.5) contrast(1.05); }
.profile-panel .profile-text { padding: 34px 30px; }
.profile-panel figure.symbolbild { position: relative; margin: 0; height: 100%; min-height: 0; align-self: stretch; }
.profile-panel figure.symbolbild img { height: 100%; }
.symbolbild figcaption {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(20, 34, 25, 0.8);
  color: var(--gold-pale);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--gold);
}
.profile-panel h3 { font-size: 1.6rem; margin-bottom: 14px; }
.profile-panel p { color: var(--ink-soft); line-height: 1.65; font-size: 0.95rem; margin-bottom: 18px; }

/* ============================= GALLERY STRIP ============================= */

.gallery-strip {
  margin: 0 0 56px;
}
.gallery-strip .strip-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.strip-item { text-align: center; }
.strip-item .thumb {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-gold);
  margin-bottom: 8px;
}
.strip-item img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.6) contrast(1.05); }
.strip-item span { font-size: 0.78rem; color: var(--ink-soft); }

/* --- Exponat-Rahmen: Passepartout für Archivstücke --- */
.strip-item .thumb {
  background: var(--paper);
  padding: 7px;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  border-color: var(--line-gold);
  transition: border-color 0.25s ease;
}
.strip-item .thumb img {
  border: 1px solid #d8cdb2;
  border-radius: 2px;
  transition: transform 0.45s ease;
}
.strip-item:hover .thumb { border-color: var(--gold); }
.strip-item:hover .thumb img { transform: scale(1.04); }
.strip-item span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.84rem;
}
.strip-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Hover: feine Goldkontur statt modernem Schatten --- */
.info-card, .archive-cat {
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.info-card:hover, .archive-cat:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* --- Teaser-Chronik: Link zur vollen Chronik --- */
.timeline-more { text-align: center; margin-top: 26px; }
.btn-outline-dark {
  border: 1px solid var(--green-mid);
  color: var(--green-deepest);
  background: transparent;
}
.btn-outline-dark:hover { border-color: var(--gold-deep); color: var(--gold-deep); }

/* ============================= VIDEO SECTION ============================= */

.video-section { margin: 0 0 56px; }
.video-carousel-track {
  display: flex;
  gap: 18px;
  padding: 2px 2px 6px;
}
.video-carousel-track .video-facade { flex: 0 0 calc((100% - 36px) / 3); }
.video-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-gold);
  cursor: pointer;
  background: var(--green-deepest);
}
.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.5) contrast(1.05) brightness(0.75);
  transition: transform 0.35s ease, filter 0.25s ease;
}
.video-facade:hover img { transform: scale(1.05); filter: sepia(0.35) contrast(1.05) brightness(0.85); }
.video-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(201, 164, 92, 0.92);
  color: var(--green-deepest);
  border: 1px solid var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.video-play .mc-icon { width: 22px; height: 22px; margin-left: 2px; }
.video-facade:hover .video-play { background: var(--gold); transform: translate(-50%, -50%) scale(1.06); }
.video-facade-external { display: block; }
.video-ext-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(20,34,25,0.92), transparent);
  color: var(--gold-pale);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 22px 10px 8px;
}
.video-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin: 18px 0 0;
}
.video-note a { color: var(--green-mid); border-bottom: 1px solid var(--gold); }

.video-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 24, 18, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.video-modal-overlay.active { display: flex; }
.video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 1040px;
}
.video-modal-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--green-deepest);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-gold);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.video-modal-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(244,239,227,0.12);
  border: 1px solid var(--line-gold);
  color: var(--cream);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.video-modal-close:hover { background: var(--gold); color: var(--green-deepest); }
.video-modal-close svg { width: 18px; height: 18px; }

/* ============================= BANNER CTA ============================= */

.cta-banner {
  background: var(--green-deepest);
  border-radius: var(--radius-lg);
  padding: 30px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
  color: var(--cream);
}
.cta-banner h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 6px; }
.cta-banner p { margin: 0; color: var(--gold-pale); font-size: 0.92rem; }
.cta-banner .btn { flex-shrink: 0; }

/* ============================= EVENT TEASER BAND ============================= */

.event-teasers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 30px;
}
.event-teaser {
  background: var(--cream-card);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-md);
  padding: 26px;
}
.event-teaser .icon-circle {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--green-deepest); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; font-size: 1.1rem;
}
.event-teaser h4 { font-size: 1.05rem; margin-bottom: 8px; }
.event-teaser p { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.5; margin-bottom: 12px; }
.event-teaser a { color: var(--green-mid); font-weight: 700; font-size: 0.85rem; border-bottom: 1px solid var(--gold); }

.center-btn { text-align: center; margin: 20px 0 60px; }

/* ============================= FOOTER ============================= */

.site-footer {
  background: var(--green-deepest);
  color: var(--cream-alt);
  position: relative;
  padding: 56px 0 24px;
  background-image: linear-gradient(rgba(20,34,25,0.94), rgba(20,34,25,0.97));
  background-size: cover;
  background-position: center;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 30px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(201, 164, 92, 0.25);
}
.footer-brand { display: flex; gap: 14px; margin-bottom: 14px; }
.footer-col h4 {
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col p { color: var(--cream-alt); font-size: 0.85rem; line-height: 1.5; opacity: 0.8; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.88rem; color: var(--cream-alt); opacity: 0.85; }
.footer-col a:hover { color: var(--gold-light); opacity: 1; }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; margin-bottom: 12px; opacity: 0.85; }
.footer-contact-item[hidden] { display: none; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.footer-social a img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.footer-bottom { text-align: center; font-size: 0.78rem; opacity: 0.6; padding-top: 18px; }

/* ============================= PAGE-SPECIFIC HELPERS ============================= */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}
.two-col img { border-radius: var(--radius-lg); border: 1px solid var(--line-gold); filter: sepia(0.55) contrast(1.05); }

.mosaic-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}
.mosaic-4 img { border-radius: 8px; filter: sepia(0.55) contrast(1.05); aspect-ratio: 1/1; object-fit: cover; }
.mosaic-4 .stacked { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.mosaic-4 .stacked img { aspect-ratio: auto; height: 100%; }

.quote-caption {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-md);
  padding: 22px 30px;
  background: var(--cream-card);
  margin-bottom: 56px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.wide-photo-cta {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 56px;
  min-height: 220px;
  display: flex;
  align-items: center;
}
.wide-photo-cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: sepia(0.55) brightness(0.5); }
.wide-photo-cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,34,25,0.85), rgba(20,34,25,0.3)); }
.wide-photo-cta .content { position: relative; z-index: 1; padding: 40px; color: var(--white); }
.wide-photo-cta h3 { color: var(--white); margin-bottom: 8px; }
.wide-photo-cta p { color: var(--gold-pale); margin-bottom: 18px; max-width: 480px; }

/* bio side panel (Ernst Geuder page) */
.bio-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.bio-drop-cap {
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: var(--gold);
  float: left;
  line-height: 0.8;
  margin-right: 10px;
  margin-top: 6px;
  font-weight: 700;
}
.bio-intro { color: var(--ink-soft); line-height: 1.7; margin-bottom: 24px; }
.bio-stage {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line-gold);
}
.bio-stage .icon-circle { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--green-deepest); color: var(--gold-light); display:flex; align-items:center; justify-content:center; }
.bio-stage h4 { font-size: 1.08rem; margin-bottom: 6px; }
.bio-stage p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; margin: 0; }

.data-panel {
  background: var(--green-deepest);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: var(--cream);
  height: fit-content;
}
.data-panel h4 { color: var(--white); text-align: center; margin-bottom: 6px; font-size: 1.1rem; }
.data-panel .divider { margin: 10px 0 20px; }
.data-item { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(201,164,92,0.25); align-items: flex-start; }
.data-item:first-of-type { border-top: none; }
.data-item .icon-circle { width: 38px; height: 38px; border-radius: 50%; background: rgba(201,164,92,0.15); color: var(--gold-light); display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size: 0.95rem; }
.data-item p { margin: 0; font-size: 0.88rem; color: var(--gold-pale); }
.data-item strong { display: block; color: var(--white); font-size: 0.95rem; }
.data-panel img { border-radius: var(--radius-md); margin-top: 18px; filter: sepia(0.5); }

/* ============================= EVENTS PAGE ============================= */

.next-event-panel {
  background: var(--cream-card);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 0;
  overflow: hidden;
  margin: -40px 0 50px;
  position: relative;
  z-index: 3;
  box-shadow: 0 8px 30px rgba(20,34,25,0.18);
}
.next-event-panel img { height: 100%; width: 100%; object-fit: cover; filter: sepia(0.55); }
.next-event-panel .ne-content { padding: 30px 34px; }
.badge-pill {
  display: inline-block;
  background: var(--cream);
  border: 1px solid var(--gold);
  color: var(--green-mid);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.next-event-panel h3 { font-size: 1.5rem; margin-bottom: 10px; }
.next-event-panel > .ne-content > p { color: var(--ink-soft); margin-bottom: 18px; line-height: 1.55; }
.ne-meta { display: flex; gap: 26px; margin-bottom: 22px; flex-wrap: wrap; }
.ne-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.ne-downloads { margin-top: 14px; }
.ne-meta-item { font-size: 0.85rem; color: var(--ink-soft); display: flex; align-items: flex-start; gap: 8px; }
.ne-meta-item[hidden] { display: none; }
.ne-meta-item strong { display: block; color: var(--ink); }
.ne-meta-item .icon-circle { width: 30px; height:30px; font-size: 0.85rem; }

.year-overview {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}
.year-overview .info-card { padding: 24px 18px; }
.year-overview .icon-circle { width: 58px; height: 58px; font-size: 1.2rem; }
.year-note { text-align: center; color: var(--ink-soft); font-size: 0.85rem; font-style: italic; margin-bottom: 50px; }

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 50px;
}
.table-scroll .event-table { margin-bottom: 0; min-width: 640px; }

.event-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 50px;
  background: var(--cream-card);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.event-table th {
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-gold);
}
.event-table td { padding: 16px 20px; border-bottom: 1px solid rgba(205,185,137,0.35); vertical-align: middle; font-size: 0.92rem; }
.event-table tr:last-child td { border-bottom: none; }
.date-chip {
  background: var(--green-deepest);
  color: var(--gold-light);
  border-radius: 8px;
  width: 52px;
  text-align: center;
  padding: 6px 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
}
.date-chip .day { display: block; font-size: 1.05rem; }
.date-chip .mon { display: block; font-size: 0.68rem; letter-spacing: 0.06em; }
.event-table .ev-title { font-weight: 700; color: var(--ink); }
.event-table .ev-desc { color: var(--ink-soft); font-size: 0.85rem; }
.event-table .btn { padding: 8px 16px; font-size: 0.8rem; }
.event-table tbody tr { cursor: pointer; transition: background 0.15s; }
.event-table tbody tr:hover { background: rgba(201,164,92,0.08); }

/* ---------- Termin-Detail-Popup ---------- */
.event-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 24, 18, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
}
.event-modal-overlay.active { display: flex; }
.event-modal {
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-gold);
  max-width: 620px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.event-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--cream);
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--green-deepest);
  z-index: 1;
}
.event-modal-close svg { width: 18px; height: 18px; }
.event-modal-close:hover { background: var(--gold); border-color: var(--gold); }
.event-modal-img { width: 100%; max-height: 260px; overflow: hidden; }
.event-modal-img img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.35); }
.event-modal-body { padding: 28px 30px 32px; }
.event-modal-body .badge-pill { margin-bottom: 12px; }
.event-modal-title { font-size: 1.4rem; margin-bottom: 16px; }
.event-modal-meta { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.event-modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.event-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-deepest);
  background: var(--gold-pale);
  border-radius: 99px;
  padding: 4px 12px;
}
.event-modal-desc { color: var(--ink-soft); line-height: 1.65; margin-bottom: 24px; white-space: pre-line; }

.guest-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  background: var(--cream-card);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-lg);
  padding: 30px 36px;
  margin-bottom: 56px;
}
.guest-banner .icon-circle { width: 60px; height: 60px; font-size: 1.5rem; }
.guest-banner h3 { margin-bottom: 8px; }
.guest-banner p { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }
.guest-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.guest-list li { font-size: 0.88rem; color: var(--ink-soft); display: flex; gap: 8px; }
.guest-list li::before { content: '✓'; color: var(--gold); font-weight: 700; }

/* ============================= ARCHIVE PAGE ============================= */

.archive-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.archive-cat img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-md) var(--radius-md) 0 0; filter: sepia(0.55) contrast(1.05); }
.archive-cat {
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream-card);
}
.archive-cat .ac-body { padding: 18px 20px; text-align: center; position: relative; margin-top: -30px; }
.archive-cat .icon-circle { margin: 0 auto 10px; width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--paper); }
.archive-cat h4 { font-size: 1rem; margin-bottom: 8px; }
.archive-cat p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.5; margin: 0; }

.archive-search-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 30px;
  margin-bottom: 56px;
}
.filter-tabs { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.filter-tab {
  cursor: pointer;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 0.85rem;
  border: 1px solid var(--line-gold);
  background: var(--cream-card);
  color: var(--ink-soft);
  cursor: pointer;
}
.filter-tab.active { background: var(--green-deepest); color: var(--gold-light); border-color: var(--green-deepest); }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.archive-tile { display: block; position: relative; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line-gold); transition: border-color 0.25s ease; }
.archive-tile:hover { border-color: var(--gold); }
.archive-tile.is-hidden { display: none; }
.archive-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: sepia(0.55) contrast(1.05); }
.archive-tile .icon-circle { position: absolute; top: 12px; left: 12px; width: 40px; height: 40px; border-radius: 50%; font-size: 0.85rem; }
.archive-tile .tile-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(20,34,25,0.9), transparent);
  color: var(--white);
  padding: 30px 14px 12px;
}
.archive-tile .tile-label strong { display: block; font-size: 0.95rem; }
.archive-tile .tile-label span { font-size: 0.78rem; color: var(--gold-pale); }

.sidebar-box {
  background: var(--cream-card);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-md);
  padding: 26px;
  margin-bottom: 22px;
}
.sidebar-box h4 { font-size: 1.05rem; margin-bottom: 14px; display:flex; align-items:center; gap: 10px; }
.sidebar-box p { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.6; margin-bottom: 12px; }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sidebar-box ul a { font-size: 0.88rem; color: var(--green-mid); font-weight: 700; }

/* ============================= GALERIE-ZEITLEISTE + POPUP ============================= */

.gallery-archive-section { margin: 40px 0 56px; }
.gallery-archive-intro { color: var(--ink-soft); margin-bottom: 8px; text-align: center; }

.gallery-timeline-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}
.gallery-timeline-scroll {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 22px 4px 16px;
  scroll-behavior: smooth;
}
.gallery-timeline-scroll::-webkit-scrollbar { display: none; height: 0; }
.gallery-timeline {
  display: flex;
  align-items: flex-start;
  position: relative;
  width: fit-content;
  min-width: 100%;
  padding: 0 24px;
}
.gallery-timeline::before {
  content: '';
  position: absolute;
  top: 29px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--line-gold) 0 6px, transparent 6px 12px);
  z-index: 0;
}
.gt-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream-card);
  border: 1px solid var(--line-gold);
  color: var(--green-deepest);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.gt-arrow svg { width: 16px; height: 16px; }
.gt-arrow:hover { background: var(--gold); border-color: var(--gold); }
.gt-arrow[disabled] { opacity: 0.3; cursor: default; pointer-events: none; }
.gt-arrow.is-hidden { display: none; }
.gt-node {
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 0 92px;
  padding: 0 6px;
  font-family: var(--font-body);
}
.gt-dot {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green-deepest);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}
.gt-node:hover .gt-dot, .gt-node:focus-visible .gt-dot { border-color: var(--gold); transform: translateY(-3px); }
.gt-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--green-deepest);
  line-height: 1.2;
}
.gt-count {
  font-size: 0.7rem;
  color: var(--ink-soft);
  white-space: nowrap;
  margin-top: 2px;
}

.gallery-grid.gallery-source { display: none; }

/* Popup-Galerie */
.gallery-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 24, 18, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
}
.gallery-modal-overlay.active { display: flex; }
.gallery-modal {
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-gold);
  max-width: 1000px;
  width: 100%;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.gallery-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-gold);
  background: var(--cream-card);
  flex-shrink: 0;
}
.gallery-modal-header h3 { font-size: 1.15rem; margin: 0; }
.gallery-modal-close {
  background: none;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--green-deepest);
  flex-shrink: 0;
}
.gallery-modal-close svg { width: 18px; height: 18px; }
.gallery-modal-close:hover { background: var(--gold); border-color: var(--gold); }
.gallery-modal-body { overflow-y: auto; padding: 18px 24px 24px; }

.gm-stage {
  position: relative;
  background: var(--green-deepest);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  max-height: 58vh;
  overflow: hidden;
  margin-bottom: 14px;
}
.gm-stage img {
  max-width: 100%;
  max-height: 58vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.gm-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.gm-prev, .gm-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(244, 239, 227, 0.15);
  border: 1px solid var(--line-gold);
  color: var(--cream);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.gm-prev:hover, .gm-next:hover { background: var(--gold); color: var(--green-deepest); }
.gm-prev { left: 10px; }
.gm-next { right: 10px; }
.gm-prev svg, .gm-next svg { width: 18px; height: 18px; }

.gm-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px;
}
.gm-strip img {
  width: 70px;
  height: 56px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.gm-strip img:hover { opacity: 1; }
.gm-strip img.active { opacity: 1; border-color: var(--gold); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  padding: 6px 22px 24px;
}
.gallery-grid img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-card);
}
.gallery-grid img:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(20,34,25,0.22); }

.gallery-downloads {
  padding: 4px 22px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.gallery-downloads a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-mid);
  background: var(--paper);
}
.gallery-downloads a:hover { background: var(--gold-pale); }
.gallery-downloads svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Jubiläums-Artikel-Popup (120 Jahre MCW 1906 e.V.) */
.article-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 24, 18, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
}
.article-modal-overlay.active { display: flex; }
.article-modal {
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-gold);
  max-width: 720px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.article-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line-gold);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}
.article-modal-close svg { width: 18px; height: 18px; }
.article-modal-close:hover { background: var(--gold); border-color: var(--gold); }
.article-modal-body { padding: 32px 34px 36px; }
.article-modal-body .badge-pill { margin-bottom: 14px; }
.article-modal-body h3 { font-size: 1.3rem; line-height: 1.3; margin-bottom: 20px; }
.article-text p { color: var(--ink-soft); line-height: 1.7; margin: 0 0 16px; }
.article-text blockquote {
  margin: 0 0 16px;
  padding: 14px 18px;
  border-left: 3px solid var(--gold);
  background: var(--cream-card);
  font-style: italic;
  color: var(--ink);
}
.article-signature { font-weight: 700; color: var(--ink) !important; margin-top: 24px; }

/* Teaser-Boxen (Startseite + Geschichte) */
.jubilaeum-teaser {
  background: var(--green-deepest);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 30px 36px;
  margin-bottom: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.jubilaeum-teaser .badge-pill { margin-bottom: 10px; }
.jubilaeum-teaser h3 { color: var(--white); margin-bottom: 6px; }
.jubilaeum-teaser p { color: var(--gold-pale); margin: 0; max-width: 480px; }
.jubilaeum-teaser .btn { flex-shrink: 0; }

.event-modal-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 24, 18, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px 20px;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
  max-width: 92vw;
  max-height: 78vh;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.55);
}
.lightbox-caption {
  color: var(--gold-pale);
  font-size: 0.85rem;
  margin-top: 14px;
  letter-spacing: 0.04em;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(244,239,227,0.12);
  border: 1px solid var(--line-gold);
  color: var(--cream);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--gold); color: var(--green-deepest); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 20px; height: 20px; }

/* ============================= RESPONSIVE ============================= */

/* Nav-Umschaltpunkt liegt höher als der Layout-Breakpoint unten: verhindert, dass Nav-Links und Gold-Button auf typischen Laptop-Breiten (z.B. 1280px) überlappen */
@media (max-width: 1300px) {
  .nav-toggle-btn { display: flex; }
  .nav-cta { display: none; }
  .main-nav {
    position: fixed;
    top: 84px;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--green-deepest);
    padding: 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 99;
  }
  .main-nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(201, 164, 92, 0.15);
  }
  .site-header.nav-open .main-nav { transform: translateX(0); }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 84px 0 0 0;
    background: rgba(15, 22, 16, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 98;
  }
  .site-header.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
}

@media (max-width: 980px) {
  .hero h1 { font-size: 2rem; }
  .card-grid, .card-grid.cols-4, .card-grid.cols-5, .pillar-grid, .year-overview, .event-teasers, .archive-cats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col, .profile-panel, .bio-layout, .archive-search-layout, .next-event-panel { grid-template-columns: 1fr; }
  .timeline { flex-wrap: wrap; }
  .timeline::before { display: none; }
  .timeline-item { flex: 0 0 33%; margin-bottom: 20px; }
  .strip-grid, .mosaic-4, .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .video-carousel-track .video-facade { flex: 0 0 calc((100% - 18px) / 2); }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .gallery-grid img { height: 90px; }
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; }
  .lightbox-close { width: 38px; height: 38px; top: 14px; right: 14px; }
}

/* ============================= MOBILE (Handy-Breite) ============================= */

@media (max-width: 600px) {
  /* Grids: 1-spaltig statt 2-spaltig */
  .card-grid, .card-grid.cols-4, .card-grid.cols-5, .pillar-grid, .year-overview, .event-teasers,
  .mosaic-4 {
    grid-template-columns: 1fr;
  }
  .video-carousel-track .video-facade { flex: 0 0 85%; }

  /* Info-Karten: langer Text weg, kurzer Teaser + Pfeil statt Fließtext */
  .info-card .card-text { display: none; }
  .info-card .card-teaser {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--ink-soft);
    font-size: 0.92rem;
    margin: 0;
  }
  .info-card .card-teaser::after { content: '\203A'; color: var(--gold-deep); font-weight: 700; font-size: 1.15rem; }

  /* Erinnerungsstücke-Streifen (kleine Thumbnails): swipebares Karussell */
  .strip-grid, .archive-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 14px;
    margin: 0 -24px;
    padding: 0 24px 6px;
  }
  .strip-grid::-webkit-scrollbar, .archive-grid::-webkit-scrollbar { display: none; height: 0; }
  .archive-grid > * { flex: 0 0 78%; scroll-snap-align: start; }
  .strip-grid > * { flex: 0 0 36%; scroll-snap-align: start; }

  /* Besondere-Stücke-Karten (ganze Karten mit Text): untereinander statt Karussell,
     da hier anders als beim Thumbnail-Streifen echter Lesetext drinsteckt. */
  .archive-cats { grid-template-columns: 1fr; }

  /* Icon-Kreise auf Mobile größer statt kleiner: Detailzeichnung der Icons kommt hier erst richtig zur Geltung */
  .info-card .icon-circle { width: 80px; height: 80px; }
  .event-teaser .icon-circle { width: 64px; height: 64px; }
  .archive-cat .icon-circle { width: 64px; height: 64px; }
  .year-overview .icon-circle { width: 68px; height: 68px; }
  .archive-tile .icon-circle { width: 50px; height: 50px; }

  /* Lebensstationen-Zeitleiste: Karten untereinander statt 3er-Reihen */
  .timeline { flex-direction: column; padding: 0; }
  .timeline-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    column-gap: 14px;
    row-gap: 2px;
    flex: none;
    text-align: left;
    padding: 0 0 16px;
    margin: 0 0 16px;
    border-bottom: 1px solid var(--line-gold);
  }
  .timeline-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
  .timeline-dot { grid-row: 1 / 3; grid-column: 1; margin: 0; width: 60px; height: 60px; }
  .timeline-year { grid-column: 2; grid-row: 1; }
  .timeline-text { grid-column: 2; grid-row: 2; font-size: 0.86rem; }

  /* Video-Karussell nutzt dieselben .gallery-timeline-*-Klassen wie die
     Foto-Zeitleiste, soll aber (anders als diese) eine echte horizontale
     Scroll-Leiste bleiben -- sonst wirkt es swipebar, ist es aber nicht. */
  .video-carousel-wrap .gallery-timeline-scroll {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 10px;
  }
  .video-carousel-wrap .video-facade { scroll-snap-align: start; }
  .video-carousel-wrap .gt-arrow { display: none; }

  /* Foto-Zeitleiste (Museum/Jahresübersicht): Liste statt horizontaler Leiste */
  .gallery-timeline-scroll { overflow-x: visible; padding: 4px 0; }
  .gallery-timeline {
    flex-direction: column;
    width: 100%;
    min-width: 0;
    padding: 0;
    gap: 10px;
  }
  .gallery-timeline::before { display: none; }
  .gt-arrow { display: none; }
  .gt-node {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex: none;
    width: 100%;
    gap: 14px;
    padding: 10px 14px;
    background: var(--cream-card);
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-md);
  }
  .gt-node:hover .gt-dot, .gt-node:focus-visible .gt-dot { transform: none; }
  .gt-dot { margin: 0; flex-shrink: 0; }
  .gt-label { text-align: left; }

  /* Footer: ohne Navigation-Spalte (Menü ist per Scroll-nach-oben immer erreichbar) bereits kurz genug für eine Spalte */
  .site-footer { padding: 36px 0 18px; }
  .footer-sep { display: none; }
  .footer-credit { display: block; margin-top: 4px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; padding-bottom: 22px; }
  .footer-col h4 { margin-bottom: 10px; }
  .footer-col ul { gap: 8px; }
  .footer-brand { margin-bottom: 10px; }
  .footer-contact-item { margin-bottom: 10px; }
  .footer-bottom { padding-top: 14px; }

  /* Titel + Button nebeneinander: auf Mobile untereinander, damit nichts abgeschnitten wird */
  .strip-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .strip-head .btn { align-self: stretch; justify-content: center; }
  .cta-banner { flex-direction: column; align-items: flex-start; text-align: left; }
  .cta-banner .btn { width: 100%; justify-content: center; }
  .jubilaeum-teaser { flex-direction: column; align-items: flex-start; text-align: left; padding: 24px 22px; }
  .jubilaeum-teaser .btn { width: 100%; justify-content: center; }

  /* Breites Foto-CTA ("Mehr über unsere Geschichte erfahren"): Button-Reihe lief
     ohne Umbruch (.btn ist nowrap) ueber den Rand hinaus und wurde abgeschnitten. */
  .wide-photo-cta { min-height: 0; }
  .wide-photo-cta .content { padding: 24px 20px; }
  .wide-photo-cta .content > div[style*="display:flex"] {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .wide-photo-cta .btn { width: 100%; justify-content: center; white-space: normal; }

  /* Gäste-Banner (3-Spalten-Grid: Icon | Text | Liste+Button) auf Mobile stapeln */
  .guest-banner { grid-template-columns: 1fr; text-align: center; padding: 24px 22px; gap: 16px; }
  .guest-banner .icon-circle { margin: 0 auto; }
  .guest-list { align-items: center; }
  .guest-list li { justify-content: center; }

  /* Veranstaltungskalender: Ort/Treffpunkt + Hinweis ausblenden statt horizontal
     zu scrollen -- alle Details stehen ohnehin im Termin-Popup beim Antippen. */
  .table-scroll .event-table { min-width: 0; }
  .event-table th:nth-child(3), .event-table td:nth-child(3),
  .event-table th:nth-child(4), .event-table td:nth-child(4) {
    display: none;
  }
  .event-table th, .event-table td { padding: 14px 12px; }
  .event-table .btn-text-more { display: none; }
  .event-table .btn { padding: 8px 10px; }

  /* Hero */
  .hero { min-height: 360px; }
  .hero h1 { font-size: 1.6rem; }
  .hero p.lead { font-size: 0.95rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; width: 100%; }
  /* Text auf dem Hero-Foto nimmt auf Mobile fast die volle Breite ein -- der
     ansonsten rechtslastige Abdunklungs-Verlauf reicht da nicht mehr, Kontrast
     war je nach Foto zu schwach. Einheitliche, kraeftigere Abdunklung ersetzt
     den Verlauf komplett. */
  .hero-showcase::after { background: rgba(15, 22, 16, 0.6); }
  /* Hero ohne Foto (Impressum/Datenschutz/Kontakt): fixe Mindesthoehe sorgte
     bei kurzem Inhalt auf Mobile fuer riesigen Leerraum. */
  .hero-plain { min-height: 200px !important; }

  /* Zeitleisten-Galerie auf Touch-Größe */
  .gt-dot { width: 44px; height: 44px; font-size: 0.82rem; }
  .gt-arrow { width: 32px; height: 32px; }
  .gt-label { font-size: 0.82rem; }

  /* Popup-Galerie (Stage + Vorschauleiste) */
  .gallery-modal-overlay { padding: 10px 8px; }
  .gallery-modal-header { padding: 14px 16px; }
  .gallery-modal-body { padding: 14px 16px 18px; }
  .gm-stage { min-height: 200px; max-height: 44vh; }
  .gm-stage img { max-height: 44vh; }
  .gm-prev, .gm-next { width: 36px; height: 36px; }
  .gm-strip img { width: 58px; height: 46px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 1.4rem; }
}

/* Sponsor-Banner (volle Breite, bricht bewusst aus .wrap aus) */
.sponsor-banner {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 56px;
  margin-bottom: 56px;
}
.sponsor-banner a { display: block; }
.sponsor-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* Kontaktformular */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); }
.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.form-consent { background: rgba(201,164,92,0.08); border: 1px solid var(--line-gold); border-radius: var(--radius-md); padding: 14px 16px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--ink-soft); cursor: pointer; }
.checkbox-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.checkbox-label a { color: var(--green-mid); font-weight: 700; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-feedback { padding: 16px 20px; border-radius: var(--radius-md); font-size: 0.9rem; }
.form-feedback p { margin: 0 0 4px; }
.form-feedback p:last-child { margin-bottom: 0; }
.form-feedback-ok { background: rgba(201,164,92,0.12); border: 1px solid var(--line-gold); color: var(--ink); }
.form-feedback-error { background: rgba(178,58,58,0.08); border: 1px solid rgba(178,58,58,0.35); color: #8a3030; }
.data-item[hidden] { display: none; }
