/* ──────────────────────────────────────────
   RESET & BASE
────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-light:   #c8e6c0;
  --green-mid:     #a5d49a;
  --green-accent:  #7bbf72;
  --green-dark:    #4a8f43;
  --white:         #ffffff;
  --offwhite:      #f8faf7;
  --text:          #2c3e2d;
  --text-muted:    #5a6e5b;
  --red-btn:       #c0392b;
  --red-btn-hover: #a93226;
  --nav-h:         72px;
  --radius:        12px;
  --shadow:        0 4px 24px rgba(74,143,67,.13);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.65;
}

/* ──────────────────────────────────────────
   STICKY NAVBAR
────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 2px solid var(--green-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(74,143,67,.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-brand-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: .01em;
  line-height: 1.2;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  align-items: center;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  transition: background .2s, color .2s;
}

nav ul li a:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

/* ──────────────────────────────────────────
   SECTIONS GENERAL
────────────────────────────────────────── */
section {
  padding: 80px 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
  letter-spacing: -.01em;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--green-accent);
  border-radius: 2px;
  margin: 0 auto 48px;
}

/* alternating section backgrounds */
section:nth-child(even) { background: var(--offwhite); }

/* ──────────────────────────────────────────
   HERO
────────────────────────────────────────── */
#hero {
  margin-top: var(--nav-h);
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: var(--text);
}

#hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: .55;
}

@media (max-width: 768px) {
  #hero img.hero-bg {
    object-position: center 20%;
  }
}

/* oberes Drittel: Titel + Leitspruch */
.hero-top {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 24px 24px;
  max-width: 780px;
  width: 100%;
}

/* unterer Bereich: Button */
.hero-bottom {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-bottom: 5%;
  width: 100%;
}

.hero-tagline {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--green-light);
  margin-bottom: 20px;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
  letter-spacing: .01em;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 28px;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}

.btn-mitglied {
  display: inline-block;
  padding: 16px 40px;
  background: rgba(192, 57, 43, 0.85);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 40px;
  text-decoration: none;
  letter-spacing: .03em;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: background .2s, transform .15s, box-shadow .2s;
  backdrop-filter: blur(4px);
  margin-top: 30px;
}

.btn-mitglied:hover {
  background: var(--red-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(192,57,43,.5);
}

/* ──────────────────────────────────────────
   ÜBER UNS
────────────────────────────────────────── */
#ueber {
  background: var(--white);
}

.ueber-text {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ──────────────────────────────────────────
   GALERIE
────────────────────────────────────────── */
#galerie { background: var(--offwhite); }

.galerie-label {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-dark);
  margin: 0 0 20px;
}

.galerie-sub {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 400;
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}

.galerie-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 700px;
  margin: 0 auto;
}

.galerie-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  background: #ddd;
}

.galerie-item {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  background: #ddd;
  cursor: zoom-in;
  text-decoration: none;
}

.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(0.4, 0, 0.2, 1);
}

.galerie-item:hover img {
  transform: scale(1.12);
}

.galerie-overlay {
  position: absolute;
  inset: 0;
  background: rgba(74, 143, 67, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 2;
}

.galerie-overlay span {
  color: white;
  font-size: 3rem;
  font-weight: 300;
  transform: scale(0.5);
  transition: transform .3s ease;
}

.galerie-item:hover .galerie-overlay {
  opacity: 1;
}

.galerie-item:hover .galerie-overlay span {
  transform: scale(1);
}

/* ──────────────────────────────────────────
   VORSTAND
────────────────────────────────────────── */
#vorstand { background: var(--white); }

.vorstand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.vorstand-card {
  background: var(--offwhite);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1.5px solid var(--green-light);
  transition: box-shadow .2s, transform .2s;
}

.vorstand-card:hover {
  box-shadow: 0 8px 32px rgba(74,143,67,.2);
  transform: translateY(-4px);
}

.vorstand-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.vorstand-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform .5s cubic-bezier(0.4, 0, 0.2, 1);
}

.vorstand-card:hover img {
  transform: scale(1.08);
}

.vorstand-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(74, 143, 67, 0.3), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
}

.vorstand-card:hover .vorstand-img-wrap::after {
  opacity: 1;
}

.vorstand-info {
  padding: 16px 12px 20px;
}

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

.vorstand-role {
  font-size: .85rem;
  color: var(--green-dark);
  font-weight: 500;
  background: var(--green-light);
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
}

/* ──────────────────────────────────────────
   TERMINE
────────────────────────────────────────── */
#termine { background: var(--offwhite); }

.termine-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.termin-item {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 28px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--green-accent);
}

.termin-datum {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  min-width: 130px;
  white-space: nowrap;
}

.termin-name {
  font-size: 1.05rem;
  color: var(--text);
}

.termine-hint {
  text-align: center;
  margin-top: 28px;
  font-size: .82rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ──────────────────────────────────────────
   IMPRESSUM / FOOTER
────────────────────────────────────────── */
#impressum {
  background: var(--green-dark);
  color: rgba(255,255,255,.85);
  padding: 60px 0 40px;
}

#impressum .section-title {
  color: var(--white);
}

.impressum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-top: 0;
}

.impressum-col h4 {
  color: var(--green-light);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
}

.impressum-col p, .impressum-col a {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  line-height: 1.8;
  text-decoration: none;
}

.impressum-col a:hover { color: var(--green-light); }

.btn-kontakt {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 32px;
  background: var(--green-accent);
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  border-radius: 30px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}

.btn-kontakt:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}

/* ──────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────── */
@media (max-width: 768px) {
  #navbar { padding: 0 16px; }
  .galerie-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .vorstand-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .nav-brand-text { font-size: .9rem; }
  .nav-brand img { height: 40px; }
  
  section { padding: 60px 0; }
  .section-title { font-size: 1.6rem; }
  
  .hero-tagline { font-size: 1rem; padding: 0 16px; }
  .btn-mitglied { padding: 14px 36px; font-size: 1rem; }
  
  .container { padding: 0 16px; }
}

@media (max-width: 480px) {
  .galerie-grid, .galerie-grid-2 { grid-template-columns: 1fr; gap: 12px; }
  .vorstand-grid { grid-template-columns: 1fr; gap: 16px; }
  .termin-item { flex-direction: column; gap: 6px; padding: 16px 20px; }
  .termin-datum { min-width: unset; }
  .ueber-text { font-size: 1rem; padding: 0 8px; }
  
  .impressum-grid { gap: 24px; }
  .impressum-col { text-align: center; }
  
  .btn-mitglied { margin-top: 15px; padding: 12px 28px; font-size: 0.95rem; }
  .hero-top { padding: 36px 16px 16px; }
}

/* Performance: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
