: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);
}

.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: 110px;
  gap: 20px;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.2px;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.site-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.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 {
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,0.78) 0%,
rgba(20,16,12,0.58) 35%,
rgba(20,16,12,0.35) 65%,
rgba(20,16,12,0.25) 100%
);

z-index: 1;
}

.hero-content {
position: relative;
z-index: 2;
max-width: 700px;
padding: 120px 0;
}

.hero h1,
.hero .hero-text,
.hero .eyebrow {
color: white;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(20, 16, 12, 0.72) 0%,
    rgba(20, 16, 12, 0.42) 45%,
    rgba(20, 16, 12, 0.28) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 100px 0;
}

.hero .eyebrow,
.hero h1,
.hero .hero-text {
  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 {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.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 {
  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-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 50px;
  align-items: center;
}

.intro-image img {
  width: 100%;
  height: 540px;
  object-fit: contain;
  background: #efe7da;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.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, 0.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-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);
}

.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: 0.16;
  filter: grayscale(100%);
  z-index: 0;
}

.cta-box > * {
  position: relative;
  z-index: 1;
}

.cta-box p:last-child {
  margin-bottom: 0;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer {
  background: #2c241d;
  color: rgba(255, 255, 255, 0.9);
  padding: 36px 0;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.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, 0.9);
}

.footer-links a:hover {
  text-decoration: underline;
}

.page-hero {
  padding: 110px 0 70px;
  background: linear-gradient(180deg, rgba(139, 106, 69, 0.08), rgba(246, 241, 232, 0));
}

.page-hero-text {
  max-width: 720px;
  font-size: 1.1rem;
}

.two-column-text {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.term-list {
  display: grid;
  gap: 24px;
}

.term-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  background: rgba(255, 255, 255, 0.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, 0.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: 0.9rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
}

.term-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* wieder links */
  text-align: left;        /* wieder normal */
}

.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: 0.75em;
  margin: 0 2px;
  line-height: 1;
}

.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);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.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 {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow);
  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;
}

@media (max-width: 980px) {
  .intro-grid,
  .card-grid,
  .gallery-grid,
  .cta-box,
  .footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .card-grid {
    display: grid;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    gap: 18px;
  }

  .two-column-text,
  .contact-grid,
  .gallery-page-grid,
  .term-item {
    grid-template-columns: 1fr;
  }

  .term-date {
    border-right: 0;
    border-bottom: 1px solid rgba(47, 42, 38, 0.08);
    padding-right: 0;
    padding-bottom: 18px;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 70px 0;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav {
    position: absolute;
    top: 110px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid rgba(47, 42, 38, 0.08);
    padding: 18px 20px 24px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .main-nav.open {
    display: flex;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-content {
    padding: 80px 0;
  }

  .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: 90px 0 50px;
  }

  .logo-wrap span {
    font-size: 1.1rem;
  }

  .site-logo {
    width: 60px;
    height: 60px;
  }

  .legal-box {
    padding: 24px;
  }

  .mobile-only {
    display: flex;
  }

  .contact-actions {
    flex-direction: column;
    width: 100%;
  }

  .contact-actions .btn {
    width: 100%;
  }
  }

.gallery-image {
  cursor: pointer;
  transition: transform .25s ease, opacity .25s ease;
}

.gallery-image:hover {
  transform: scale(1.03);
  opacity: .9;
}

.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-counter {
  margin-top: 14px;
  color: white;
  font-weight: 600;
}

.lightbox-caption {
  color: white;
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 500;
}

.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;
}

@media (max-width: 760px) {
  .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;
  }
}