/* Musikverein Schönholthausen */

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

:root {
  --green-dark:    #1e4d2b;
  --green-main:    #2e7d46;
  --green-light:   #3a9957;
  --green-pale:    #e8f3ec;
  --gold:          #c8a84b;
  --text-dark:     #1a1a1a;
  --text-muted:    #555;
  --border:        #c5d8cc;
  --white:         #ffffff;
  --bg:            #f7f9f7;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-dark);
  background: var(--bg);
}

/* ── HEADER ── */
header {
  background: var(--green-dark);
  border-bottom: 4px solid var(--gold);
  padding: 1.25rem 0;
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-logo {
  height: 80px;
  width: auto;
  flex-shrink: 0;
}

.header-title {
  color: var(--white);
}

.header-title h1 {
  font-size: 1.6rem;
  font-weight: normal;
  letter-spacing: 0.03em;
}

.header-title p {
  font-size: 0.9rem;
  color: var(--gold);
  margin-top: 0.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── NAVIGATION ── */
nav {
  background: var(--green-main);
  border-bottom: 2px solid var(--green-dark);
}

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

nav a {
  display: block;
  color: var(--white);
  text-decoration: none;
  padding: 0.75rem 1.1rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
  font-family: Arial, Helvetica, sans-serif;
}

nav a:hover,
nav a.active {
  background: var(--green-dark);
  color: var(--gold);
}

/* ── MAIN CONTENT ── */
main {
  max-width: 1000px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

.content-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--green-main);
  padding: 2.5rem;
  border-radius: 2px;
}

h2 {
  font-size: 1.6rem;
  color: var(--green-dark);
  font-weight: normal;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--green-pale);
}

h3 {
  font-size: 1.15rem;
  color: var(--green-main);
  margin: 1.5rem 0 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* ── HERO IMAGE ── */
.hero-image {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

/* ── CHRONIK TABLE ── */
.chronik-list {
  list-style: none;
  margin-top: 1rem;
}

.chronik-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--green-pale);
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  line-height: 1.5;
}

.chronik-list li:last-child {
  border-bottom: none;
}

.chronik-year {
  font-weight: bold;
  color: var(--green-dark);
  white-space: nowrap;
}

/* ── VORSTAND TABLE ── */
.vorstand-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.vorstand-table th {
  background: var(--green-main);
  color: var(--white);
  text-align: left;
  padding: 0.65rem 1rem;
  font-weight: normal;
  font-size: 0.95rem;
  font-family: Arial, Helvetica, sans-serif;
}

.vorstand-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
}

.vorstand-table tr:nth-child(even) td {
  background: var(--green-pale);
}

/* ── DIRIGENTEN LIST ── */
.dirigenten-list {
  list-style: none;
  margin-top: 1rem;
}

.dirigenten-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--green-pale);
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
}

.dirigenten-list li:last-child {
  border-bottom: none;
}

.dirigent-years {
  color: var(--green-dark);
  font-weight: bold;
}

.dirigenten-list li.current .dirigent-years,
.dirigenten-list li.current .dirigent-name {
  color: var(--green-light);
  font-style: italic;
}

/* ── CONTENT WITH IMAGE ── */
.content-with-image {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.content-with-image img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 2px;
}

/* ── JUGEND ANGEBOTE ── */
.angebote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.angebot-card {
  background: var(--green-pale);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green-main);
  padding: 1.25rem;
  border-radius: 2px;
}

.angebot-card h3 {
  margin-top: 0;
  font-size: 1rem;
}

.angebot-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ── GALERIE ── */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.galerie-grid a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
}

.galerie-grid a img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.galerie-grid a:hover img {
  transform: scale(1.04);
}

/* ── KONTAKT ── */
.kontakt-box {
  background: var(--green-pale);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  border-radius: 2px;
}

.kontakt-box a {
  color: var(--green-dark);
  text-decoration: none;
  font-weight: bold;
}

.kontakt-box a:hover {
  color: var(--green-light);
  text-decoration: underline;
}

/* ── LIGHTBOX ── */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lb-overlay.active {
  display: flex;
}

.lb-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 82vh;
}

.lb-overlay img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border: 3px solid var(--white);
  border-radius: 2px;
  display: block;
}

.lb-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  padding: 0.25rem 0.5rem;
}

.lb-close:hover {
  color: var(--gold);
}

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  user-select: none;
  transition: color 0.2s;
}

.lb-arrow:hover {
  color: var(--gold);
}

.lb-prev { left: -3.5rem; }
.lb-next { right: -3.5rem; }

.lb-counter {
  color: rgba(255,255,255,0.7);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

/* ── FOOTER ── */
footer {
  background: var(--green-dark);
  border-top: 4px solid var(--gold);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  font-family: Arial, Helvetica, sans-serif;
  margin-top: 3rem;
}

footer a {
  color: var(--gold);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer .footer-links {
  margin-bottom: 0.5rem;
}

footer .footer-links a {
  margin: 0 0.5rem;
}

/* ── HAMBURGER / MOBILE NAV ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.5rem 1.5rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .header-title h1 { font-size: 1.2rem; }
  .header-logo { height: 60px; }

  .nav-toggle { display: block; }

  .nav-inner {
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    padding: 0;
  }

  .nav-inner.open {
    max-height: 500px;
  }

  .content-box { padding: 1.5rem; }

  .content-with-image {
    grid-template-columns: 1fr;
  }

  .content-with-image img {
    order: -1;
  }

  .angebote-grid {
    grid-template-columns: 1fr;
  }

  .galerie-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dirigenten-list li,
  .chronik-list li {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .lb-prev { left: -2.5rem; }
  .lb-next { right: -2.5rem; }
}

@media (max-width: 420px) {
  .galerie-grid {
    grid-template-columns: 1fr;
  }
}
