/* Musikverein Schönholthausen – Moderne Variante */

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

:root {
  --g900: #0d3320;
  --g800: #155230;
  --g700: #1b6b3a;
  --g600: #228b4a;
  --g500: #2aab5c;
  --g400: #4dc97c;
  --g100: #e6f6ed;
  --g050: #f2faf5;
  --accent: #f0a500;
  --accent-light: #fff3cd;
  --text:  #111827;
  --text2: #374151;
  --text3: #6b7280;
  --border: #d1e8da;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
  --radius: 12px;
  --radius-sm: 6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--g050);
}

/* ── STICKY HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(13, 51, 32, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.header-logo {
  height: 46px;
  width: auto;
  border-radius: 50%;
  border: 2px solid var(--g500);
}

.header-title h1 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.header-title p {
  font-size: 0.72rem;
  color: var(--g400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── NAV (desktop inline, mobile dropdown) ── */
.nav-inner {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-inner a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}

.nav-inner a:hover,
.nav-inner a.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

.nav-inner a.active {
  background: var(--g600);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
}

/* ── HERO (home only) ── */
.hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: var(--g900);
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(to bottom, transparent 30%, rgba(13,51,32,0.7));
}

.hero-badge {
  display: inline-block;
  background: var(--g500);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.hero-overlay h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  margin-bottom: 1rem;
  border: none;
  padding: 0;
}

.hero-overlay p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}

/* ── PAGE BANNER (inner pages) ── */
.page-banner {
  background: linear-gradient(135deg, var(--g800) 0%, var(--g600) 100%);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}

.page-banner h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  border: none;
  padding: 0;
}

.page-banner p {
  color: rgba(255,255,255,0.75);
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

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

/* ── CARD ── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 2.5rem;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* ── HEADINGS ── */
h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--g800);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--g100);
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--g700);
  margin: 1.5rem 0 0.4rem;
}

p { margin-bottom: 0.9rem; color: var(--text2); }
p:last-child { margin-bottom: 0; }

/* ── HOME INTRO ── */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.home-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--g500);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.home-stat .stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--g700);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.home-stat .stat-label {
  font-size: 0.85rem;
  color: var(--text3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.home-text {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-sm);
  margin-top: 1.25rem;
}

/* ── CONTACT STRIP ── */
.contact-strip {
  background: linear-gradient(135deg, var(--g700), var(--g600));
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.contact-strip p {
  color: rgba(255,255,255,0.85);
  margin: 0;
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  color: var(--g800);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.25rem;
  border-radius: 100px;
  white-space: nowrap;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background: var(--g050);
  box-shadow: var(--shadow-md);
}

/* ── JUGEND ── */
.jugend-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  align-items: start;
}

.jugend-layout img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  order: 2;
}

.angebote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.angebot-card {
  background: var(--g050);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.angebot-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--g500), var(--g400));
  border-radius: var(--radius) var(--radius) 0 0;
}

.angebot-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--g700);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.angebot-card h3 {
  margin-top: 0;
  font-size: 0.95rem;
  color: var(--g800);
}

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

/* ── DIRIGENTEN ── */
.dirigenten-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 2rem;
  align-items: start;
}

.dirigenten-layout img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.dirigenten-timeline {
  list-style: none;
  position: relative;
  padding-left: 2rem;
  margin-top: 1rem;
}

.dirigenten-timeline::before {
  content: '';
  position: absolute;
  left: 0.45rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--border);
}

.dirigenten-timeline li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1rem;
  border-bottom: 1px solid var(--g100);
}

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

.dirigenten-timeline li::before {
  content: '';
  position: absolute;
  left: -1.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--g400);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--g400);
}

.dirigenten-timeline li.current::before {
  background: var(--g500);
  box-shadow: 0 0 0 2px var(--g500), 0 0 0 4px rgba(42,171,92,0.25);
  width: 14px;
  height: 14px;
  left: -1.8rem;
}

.dir-years {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--g600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
}

.dir-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.current .dir-name {
  color: var(--g600);
}

.current-badge {
  display: inline-block;
  background: var(--g100);
  color: var(--g700);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  border-radius: 100px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ── VORSTAND ── */
.vorstand-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  align-items: start;
}

.vorstand-layout img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.vorstand-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.vorstand-card {
  background: var(--g050);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  transition: box-shadow 0.18s;
}

.vorstand-card:hover {
  box-shadow: var(--shadow-sm);
}

.vorstand-role {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--g600);
  margin-bottom: 0.2rem;
}

.vorstand-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.vorstand-phone {
  font-size: 0.85rem;
  color: var(--text3);
  text-decoration: none;
  display: block;
}

.vorstand-phone:hover { color: var(--g600); }

/* ── CHRONIK (TIMELINE) ── */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  margin-top: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.6rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--g500), var(--border));
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.9rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--g500);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--g400);
}

.timeline-year {
  display: inline-block;
  background: var(--g700);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.65rem;
  border-radius: 100px;
  margin-bottom: 0.3rem;
  letter-spacing: 0.03em;
}

.timeline-text {
  font-size: 0.93rem;
  color: var(--text2);
  line-height: 1.6;
}

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

.galerie-grid a {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.galerie-grid a img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s;
}

.galerie-grid a:hover img {
  transform: scale(1.06);
  filter: brightness(0.9);
}

.galerie-grid a::after {
  content: '⊕';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  opacity: 0;
  background: rgba(13,51,32,0.45);
  transition: opacity 0.25s;
}

.galerie-grid a:hover::after {
  opacity: 1;
}

/* ── LIGHTBOX ── */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  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-radius: var(--radius-sm);
  display: block;
}

.lb-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: background 0.18s;
}

.lb-close:hover { background: rgba(255,255,255,0.2); }

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: background 0.18s;
  user-select: none;
}

.lb-arrow:hover { background: rgba(255,255,255,0.2); }
.lb-prev { left: -4rem; }
.lb-next { right: -4rem; }

.lb-counter {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

/* ── LEGAL PAGES ── */
.legal-content h3 {
  margin-top: 2rem;
  font-size: 1rem;
  color: var(--g800);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}

.legal-content h3:first-child { margin-top: 0; }

.legal-content ul {
  margin: 0.5rem 0 1rem 1.25rem;
  color: var(--text2);
  line-height: 1.8;
}

.legal-content a { color: var(--g700); }
.legal-content a:hover { color: var(--g500); }

/* ── FOOTER ── */
footer {
  background: var(--g900);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  margin-top: 4rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.18s;
}

.footer-links a:hover { color: var(--g400); }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .nav-toggle { display: flex; align-items: center; }

  .nav-inner {
    position: fixed;
    top: 70px;
    left: 0; right: 0;
    background: var(--g900);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem 1rem;
    gap: 0.15rem;
    transform: translateY(-110%);
    transition: transform 0.25s ease;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 199;
  }

  .nav-inner.open { transform: translateY(0); }
  .nav-inner a { padding: 0.7rem 0.75rem; font-size: 0.95rem; }

  .hero { height: 360px; }
  .hero-overlay h2 { font-size: 1.6rem; }

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

  .jugend-layout,
  .dirigenten-layout,
  .vorstand-layout { grid-template-columns: 1fr; }

  .jugend-layout img,
  .dirigenten-layout img,
  .vorstand-layout img { max-height: 280px; object-fit: cover; }

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

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

  .contact-strip { flex-direction: column; text-align: center; }
}

@media (max-width: 500px) {
  .home-grid { grid-template-columns: 1fr; }
  .galerie-grid { grid-template-columns: 1fr; }
  .card { padding: 1.5rem; }
  .home-text { padding: 1.5rem; }
  .lb-prev { left: -2.5rem; }
  .lb-next { right: -2.5rem; }
}
