:root {
  --bg: #f6f1e8;
  --bg-alt: #efe7da;
  --text: #2f2a26;
  --text-soft: #645c55;
  --accent: #8b6a45;
  --accent-dark: #6f5335;
  --white: #ffffff;
  --shadow: 0 12px 30px rgba(38, 30, 20, 0.08);
  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.section { padding: 90px 0; }
.alt-section { background: var(--bg-alt); }

h1, h2, h3 { margin-top: 0; line-height: 1.15; }
h1, h2 { font-family: "Playfair Display", serif; font-weight: 600; }
h1 { font-size: clamp(2.6rem, 5vw, 5rem); margin-bottom: 18px; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
p { margin-top: 0; margin-bottom: 16px; color: var(--text-soft); }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(47, 42, 38, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 140px;
  gap: 20px;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

.site-logo {
  max-height: 120px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.logo:hover .site-logo { transform: scale(1.05); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  position: relative;
  font-weight: 500;
  color: var(--text);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  margin: 6px 0;
}

/* HERO */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/img/musikantengrußalle.jpg") center center / cover no-repeat;
  filter: grayscale(30%);
  transform: scale(1.02);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,16,12,.78) 0%, rgba(20,16,12,.58) 35%, rgba(20,16,12,.35) 65%, rgba(20,16,12,.25) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 100px 0;
}

.hero h1,
.hero .hero-text,
.hero .eyebrow { color: var(--white); }

.eyebrow,
.section-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: #d7c2a5;
  margin-bottom: 14px;
}

.section-label { color: var(--accent); }

.hero-text {
  font-size: 1.15rem;
  max-width: 620px;
  margin-bottom: 30px;
}

.hero-buttons,
.cta-actions,
.membership-buttons,
.event-popup-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.mitmachen-cta .btn-secondary,
.cta-box .btn-secondary {
  border: 1px solid rgba(47, 42, 38, 0.18);
  color: var(--text);
  background: transparent;
}

.btn-whatsapp { background: #25d366; color: white; }
.btn-whatsapp:hover { background: #1ebe5d; }

.text-link { font-weight: 600; color: var(--accent-dark); }
.text-link:hover { text-decoration: underline; }

/* INTRO */
.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 50px;
  align-items: start;
}

.intro-image img {
  width: 100%;
  height: 540px;
  object-fit: contain;
  background: #efe7da;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* CARDS */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: rgba(255,255,255,.82);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card-date { color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.card-place { font-weight: 600; color: var(--text); margin-bottom: 0; }

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #efe7da;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gallery-page-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.gallery-image {
  cursor: pointer;
  transition: transform .25s ease, opacity .25s ease;
}

.gallery-image:hover { transform: scale(1.03); opacity: .9; }

/* CTA */
.cta-box {
  position: relative;
  overflow: hidden;
  background: #efe7da;
  border-radius: 24px;
  padding: 48px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/img/musikantengrußalle.jpg") center center / cover no-repeat;
  opacity: .16;
  filter: grayscale(100%);
  z-index: 0;
}

.cta-box > * { position: relative; z-index: 1; }
.cta-box p:last-child { margin-bottom: 0; }

/* FOOTER */
.site-footer {
  background: #2c241d;
  color: rgba(255,255,255,.9);
  padding: 36px 0;
}

.site-footer p { color: rgba(255,255,255,.72); margin-bottom: 8px; }
.footer-title { color: var(--white); font-family: "Playfair Display", serif; font-size: 1.25rem; font-weight: 600; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.9); }
.footer-links a:hover { text-decoration: underline; }

/* PAGE HERO */
.page-hero {
  padding: 40px 0 20px;
  background: linear-gradient(180deg, rgba(139,106,69,.08), rgba(246,241,232,0));
}

.page-hero-text { max-width: 720px; font-size: 1.1rem; }
.page-hero + .section { padding-top: 30px; }

.two-column-text {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

/* TERMINE */
.term-list { display: grid; gap: 24px; }

.term-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  background: rgba(255,255,255,.82);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  align-items: center;
}

.term-date {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-right: 1px solid rgba(47,42,38,.08);
  padding-right: 20px;
  min-height: 100%;
}

.term-day {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--accent-dark);
  line-height: 1;
  text-align: center;
  word-break: keep-all;
}

.term-month {
  margin-top: 8px;
  font-size: .9rem;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
}

.term-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.term-content h2 { font-size: 1.7rem; margin: 0 0 10px 0; }
.term-content p { margin: 0 0 8px 0; }
.term-content p:last-child { margin-bottom: 0; }
.day-number { font-size: 1em; }
.day-separator { font-size: .75em; margin: 0 2px; line-height: 1; }

/* KONTAKT / LEGAL */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.contact-card, .legal-box { background: rgba(255,255,255,.82); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.contact-card a { color: var(--accent-dark); font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }
.legal-box { max-width: 900px; }
.legal-box h2 { font-size: 1.5rem; margin-top: 32px; margin-bottom: 12px; }
.legal-box h2:first-child { margin-top: 0; }
.legal-box p { max-width: 760px; }

.mobile-only { display: none; }
.contact-actions { gap: 12px; flex-wrap: wrap; margin-top: 15px; }

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,16,12,.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open { display: flex; }
.lightbox-content { max-width: 90vw; max-height: 90vh; text-align: center; }
.lightbox-content img { max-width: 90vw; max-height: 82vh; object-fit: contain; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.lightbox-caption { color: white; margin-top: 18px; margin-bottom: 6px; font-size: 1rem; font-weight: 500; }
.lightbox-counter { margin-top: 14px; color: white; font-weight: 600; }

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.12);
  color: white;
  cursor: pointer;
}

.lightbox-close { top: 24px; right: 28px; width: 48px; height: 48px; border-radius: 50%; font-size: 34px; }
.lightbox-arrow { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; font-size: 32px; }
.lightbox-prev { left: 28px; }
.lightbox-next { right: 28px; }

/* EVENT POPUP */
.event-popup {
  position: fixed;
  inset: 0;
  background: rgba(20,16,12,.78);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.event-popup.open { display: flex; }

.event-popup-box {
  position: relative;
  background: var(--bg);
  border-radius: 24px;
  padding: 36px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}

.event-popup-close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: 0;
  background: transparent;
  font-size: 34px;
  cursor: pointer;
  color: var(--text);
}

.event-popup-actions { margin-top: 24px; }

/* MEMBERSHIP */
.membership-download { padding: 30px 0 90px; }

.membership-box {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(239,231,218,.95));
  border-radius: 24px;
  padding: 52px;
  box-shadow: var(--shadow);
}

.membership-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/img/Galerie/alle.jpg") center center / cover no-repeat;
  opacity: .08;
  filter: grayscale(100%);
  z-index: 0;
}

.membership-box > * { position: relative; z-index: 1; }
.membership-text { max-width: 720px; }
.membership-buttons { margin-top: 28px; }
.membership-note { display: flex; flex-direction: column; gap: 14px; min-width: 180px; }

.membership-note span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(139,106,69,.12);
  color: var(--accent-dark);
  font-weight: 700;
}

/* TABLET */
@media (max-width: 980px) {
  .intro-grid,
  .card-grid,
  .gallery-grid,
  .footer-inner,
  .two-column-text,
  .contact-grid,
  .gallery-page-grid,
  .term-item {
    grid-template-columns: 1fr;
  }

  .cta-box,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .main-nav { gap: 18px; }

  .term-date {
    border-right: 0;
    border-bottom: 1px solid rgba(47,42,38,.08);
    padding-right: 0;
    padding-bottom: 18px;
  }
}

/* MOBILE */
@media (max-width: 760px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section { padding: 70px 0; }

  .header-inner { min-height: 90px; }
  .site-logo { max-height: 70px; width: auto; }
  .logo-wrap { gap: 10px; }
  .logo-wrap span { font-size: 1.05rem; line-height: 1.1; }

  .nav-toggle { display: block; margin-left: auto; }

  .main-nav {
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid rgba(47,42,38,.08);
    padding: 18px 20px 24px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .main-nav.open { display: flex; }

  .hero {
    min-height: 65vh;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
  }

  .hero-content { padding: 70px 0; }
  .hero h1 { font-size: 2.6rem; }
  .hero-text { font-size: 1rem; }

  .hero-buttons,
  .cta-actions,
  .event-popup-actions,
  .membership-buttons,
  .contact-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn,
  .cta-actions .btn,
  .event-popup-actions .btn,
  .membership-buttons .btn,
  .contact-actions .btn { width: 100%; }

  .intro-image img { height: 360px; }
  .card-grid,
  .gallery-grid,
  .gallery-page-grid { grid-template-columns: 1fr; }
  .gallery-page-grid img { height: 260px; }
  .cta-box { padding: 30px; }
  .page-hero { padding: 40px 0 25px; }
  .legal-box { padding: 24px; }
  .mobile-only { display: flex; }

  .lightbox { padding: 14px; }
  .lightbox-content img { max-width: 94vw; max-height: 76vh; }
  .lightbox-arrow { width: 44px; height: 44px; font-size: 26px; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .lightbox-close { top: 14px; right: 14px; }

  .event-popup { padding: 16px; }
  .event-popup-box { padding: 28px; }

  .membership-download { padding: 20px 0 70px; }
  .membership-box { flex-direction: column; align-items: flex-start; padding: 32px; }
  .membership-note { width: 100%; }
  .membership-note span { width: 100%; }
}
