/* TMK Viehhofen — 2026 Relaunch */

:root {
  --green-dark: #17324f;
  --green: #1f5c8a;
  --green-light: #4a8fc0;
  --gold: #c9a227;
  --gold-light: #e6c866;
  --cream: #faf6ec;
  --cream-dark: #f0e9d8;
  --ink: #26241d;
  --ink-soft: #5a5646;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(23, 50, 79, 0.12);
  --radius: 14px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--green-dark);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; color: var(--green); }

p { margin: 0 0 1em; }

a { color: var(--green); }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Nav */
.site-header {
  background: var(--green-dark);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  text-decoration: none;
}

.brand img { height: 48px; width: auto; }

.brand-text {
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 1.15rem;
  line-height: 1.15;
}

.brand-text span {
  display: block;
  font-family: "Segoe UI", sans-serif;
  font-weight: normal;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  text-transform: uppercase;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  display: block;
  color: var(--cream);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--green-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  nav.main-nav.open { max-height: 600px; }
  nav.main-nav ul {
    flex-direction: column;
    padding: 8px 24px 20px;
  }
}

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(rgba(20,35,24,0.35), rgba(15,25,18,0.75)), var(--img) center/cover no-repeat;
}

.hero .container { padding-bottom: 64px; padding-top: 64px; }
.hero h1 { color: var(--white); }
.hero p.lead {
  font-size: 1.2rem;
  max-width: 620px;
  color: var(--cream-dark);
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--green-dark);
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 40px;
  font-weight: bold;
  margin-top: 12px;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { background: var(--gold-light); color: var(--green-dark); transform: translateY(-2px); }
.btn.outline {
  background: transparent;
  border: 2px solid var(--cream);
  color: var(--cream);
}
.btn.outline:hover { background: var(--cream); color: var(--green-dark); }

/* Sections */
section { padding: 60px 0; }
section.alt { background: var(--cream-dark); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head .kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: bold;
  font-size: 0.8rem;
}

.grid {
  display: grid;
  gap: 24px;
}
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

/* Mitglieder */
.instrument-card h3 {
  border-bottom: 2px solid var(--gold-light);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.instrument-card ul { list-style: none; padding: 0; margin: 0; }
.instrument-card li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--cream-dark);
}
.instrument-card li:last-child { border-bottom: none; }
.badge {
  display: inline-block;
  background: var(--green);
  color: var(--cream);
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.03em;
}

/* Vorstand */
.person-card {
  text-align: center;
}
.person-card .role {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: bold;
  margin-bottom: 6px;
}
.person-card .name { font-family: Georgia, serif; font-size: 1.3rem; color: var(--green-dark); }

/* Timeline (Chronik) */
.timeline {
  border-left: 3px solid var(--gold-light);
  padding-left: 28px;
  margin-left: 6px;
}
.timeline .entry { margin-bottom: 28px; position: relative; }
.timeline .entry::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--cream);
}
.timeline .entry .year {
  font-weight: bold;
  color: var(--green);
  font-family: Georgia, serif;
}

table.roster {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 32px;
}
table.roster th, table.roster td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--cream-dark);
}
table.roster th { color: var(--green-dark); font-family: Georgia, serif; }
table.roster tr:nth-child(even) { background: var(--cream-dark); }

.figure { margin: 24px 0; }
.figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.figure figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 8px; font-style: italic; }

/* Gallery */
.gallery-album { margin-bottom: 56px; }
.gallery-album h2 { margin-bottom: 4px; }
.gallery-album .count { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 20px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.gallery-grid a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-grid a:hover img { transform: scale(1.08); }

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 12, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 30px;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}
#lightbox .lb-close, #lightbox .lb-prev, #lightbox .lb-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  border-radius: 50%;
  width: 46px;
  height: 46px;
}
#lightbox .lb-close { top: 24px; right: 24px; }
#lightbox .lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
#lightbox .lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
#lightbox .lb-close:hover, #lightbox .lb-prev:hover, #lightbox .lb-next:hover { background: var(--gold); color: var(--green-dark); }

/* Contact */
.contact-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.contact-card .icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

/* Footer */
footer.site-footer {
  background: var(--green-dark);
  color: var(--cream-dark);
  padding: 40px 0 24px;
  margin-top: 40px;
}
footer.site-footer a { color: var(--gold-light); }
footer.site-footer .foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
footer.site-footer .fine {
  text-align: center;
  font-size: 0.8rem;
  color: var(--green-light);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
}

.note {
  background: var(--cream-dark);
  border-left: 4px solid var(--gold);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.links-list { list-style: none; padding: 0; margin: 0; }
.links-list li { margin-bottom: 8px; }
.links-list a { text-decoration: none; }
.links-list a:hover { text-decoration: underline; }
