/* ==========================================================================
   Speichersdorfer Musikanten – One-Pager
   Farbwelt: Tannengrün (Fichtelgebirge) + Messing (Blasinstrumente) + Creme
   ========================================================================== */

/* ---------- Fonts (lokal gehostet, DSGVO-konform) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../assets/fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
}

/* ---------- Design-Tokens ---------- */
:root {
  --gruen: #1e3d2f;
  --gruen-dunkel: #142a20;
  --gruen-hell: #2c5844;
  --messing: #c9a227;
  --messing-hell: #e3c65a;
  --creme: #faf7f0;
  --weiss: #ffffff;
  --ink: #24312a;
  --ink-soft: #5a6a61;
  --linie: #e4ded1;
  --radius: 14px;
  --schatten: 0 10px 30px rgba(20, 42, 32, 0.10);
  --font-display: "Fraunces", Georgia, serif;
  --font-text: "Inter", -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Basis ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gruen-hell); }
a:hover { color: var(--messing); }

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Bayerische Raute als dezentes Muster (inline SVG) */
.raute-muster,
.hero-raute {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='32' viewBox='0 0 56 32'%3E%3Cpath d='M14 0L28 16L14 32L0 16Z M42 0L56 16L42 32L28 16Z' fill='none' stroke='%23c9a227' stroke-opacity='0.35' stroke-width='1'/%3E%3C/svg%3E");
}

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 42, 32, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.65rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--weiss);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
}
.nav-brand:hover { color: var(--messing-hell); }

.nav-brand-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: var(--messing);
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-radius: 50%;
  padding: 6px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-menu a:hover { color: var(--messing-hell); border-bottom-color: var(--messing); }

.nav-menu .nav-cta {
  background: var(--messing);
  color: var(--gruen-dunkel);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border-bottom: none;
}
.nav-menu .nav-cta:hover { background: var(--messing-hell); color: var(--gruen-dunkel); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 26px;
  height: 2px;
  background: var(--weiss);
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  color: var(--weiss);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/img/hero-band.jpg") center 30% / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(20, 42, 32, 0.92) 0%,
    rgba(20, 42, 32, 0.72) 45%,
    rgba(20, 42, 32, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 5rem 6rem;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--messing-hell);
  border: 1px solid rgba(201, 162, 39, 0.55);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin: 0 0 1.4rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 1.2rem;
}
.hero h1 span { color: var(--messing-hell); }

.hero-claim {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 34em;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 2.2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--messing);
  color: var(--gruen-dunkel);
}
.btn-primary:hover { background: var(--messing-hell); color: var(--gruen-dunkel); }

.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: var(--weiss);
}
.btn-ghost:hover { border-color: var(--messing-hell); color: var(--messing-hell); }

.hero-raute {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32px;
  opacity: 0.8;
}

/* ---------- Sektionen ---------- */
.section { padding-block: 5rem; }
.section-alt { background: var(--weiss); }

.section-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--messing);
  margin: 0 0 0.5rem;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: var(--gruen);
  text-align: center;
  margin: 0 0 0.75rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: var(--messing);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.section > .container > .section-title { margin-bottom: 3rem; }

/* ---------- Termine ---------- */
.section-termine {
  background: var(--gruen);
  color: var(--weiss);
}
.section-termine .section-title { color: var(--weiss); }
.section-termine .section-kicker { color: var(--messing-hell); }

.termine-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.termin-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  transition: background 0.2s, transform 0.2s;
}
.termin-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.termin-datum {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 76px;
  background: var(--messing);
  color: var(--gruen-dunkel);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  text-align: center;
}

.termin-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
}

.termin-monat {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

.termin-info h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.3;
  margin: 0 0 0.2rem;
  color: var(--weiss);
}

.termin-info p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
}

.termine-hinweis {
  text-align: center;
  margin: 2.5rem 0 0;
  color: rgba(255, 255, 255, 0.85);
}
.termine-hinweis a { color: var(--messing-hell); font-weight: 600; }
.termine-hinweis a:hover { color: var(--weiss); }

.termine-leer {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  grid-column: 1 / -1;
  padding: 1.5rem;
}

/* ---------- Über uns ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--creme);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--schatten);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--gruen);
  color: var(--messing-hell);
  border-radius: 12px;
  margin-bottom: 1.2rem;
}
.card-icon svg { width: 28px; height: 28px; }

.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--gruen);
  margin: 0 0 0.6rem;
}

.card p { margin: 0; color: var(--ink-soft); }

.fgv-hinweis {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
  background: var(--creme);
  border: 1px dashed var(--messing);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}
.fgv-hinweis img { border-radius: 50%; flex-shrink: 0; }
.fgv-hinweis p { margin: 0; color: var(--ink-soft); }
.fgv-hinweis a { font-weight: 600; }

/* ---------- Höhepunkte / Timeline ---------- */
.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 720px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 37px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--messing), var(--gruen-hell));
}

.timeline li {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 2.1rem;
  padding: 0.65rem 0 0.65rem 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 1.25em;
  width: 12px;
  height: 12px;
  background: var(--creme);
  border: 3px solid var(--messing);
  border-radius: 50%;
  transform: translateY(-50%);
}

.timeline-jahr {
  flex-shrink: 0;
  width: 90px;
  padding-left: 58px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--messing);
  font-size: 1.05rem;
}

.timeline p { margin: 0; }

/* ---------- Galerie ---------- */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.galerie-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schatten);
  aspect-ratio: 4 / 3;
}

.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.galerie-item:hover img { transform: scale(1.05); }

/* ---------- FAQ / Mitmachen ---------- */
.faq { max-width: 760px; margin-inline: auto; }

.faq details {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3rem 1.1rem 1.4rem;
  font-weight: 600;
  color: var(--gruen);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--messing);
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: "–"; }

.faq details p {
  margin: 0;
  padding: 0 1.4rem 1.2rem;
  color: var(--ink-soft);
}

/* ---------- Kontakt ---------- */
.section-kontakt {
  background: var(--gruen-dunkel);
  color: var(--weiss);
}
.section-kontakt .section-title { color: var(--weiss); }
.section-kontakt .section-kicker { color: var(--messing-hell); }

.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.kontakt-card {
  display: block;
  text-decoration: none;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  color: var(--weiss);
  transition: background 0.2s, transform 0.2s;
}
.kontakt-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  color: var(--weiss);
}
.kontakt-card .card-icon {
  margin-inline: auto;
  background: var(--messing);
  color: var(--gruen-dunkel);
}
.kontakt-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}
.kontakt-card p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--gruen-dunkel);
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(201, 162, 39, 0.35);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding-block: 3rem;
}

.footer-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--weiss);
  margin: 0 0 0.5rem;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--messing-hell);
  margin: 0 0 0.75rem;
}

.footer-grid p { margin: 0; font-size: 0.95rem; }

.footer-partner a,
.footer-legal a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  padding-block: 0.2rem;
}
.footer-partner a:hover,
.footer-legal a:hover { color: var(--messing-hell); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding-block: 1.1rem;
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */
.rechtstext { max-width: 760px; }

.rechtstext .section-title {
  text-align: left;
  margin-bottom: 2rem;
}
.rechtstext .section-title::after { margin-left: 0; }

.rechtstext h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--gruen);
  margin: 2rem 0 0.5rem;
}

.rechtstext p { color: var(--ink-soft); }

.nav-menu-einfach { display: flex !important; position: static !important; }

.footer-bottom a { color: rgba(255, 255, 255, 0.8); }
.footer-bottom a:hover { color: var(--messing-hell); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 20, 15, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

.lightbox-img {
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}
.lightbox button:hover { color: var(--messing-hell); }

.lightbox-close { top: 0.75rem; right: 0.75rem; font-size: 2.8rem; }
.lightbox-prev { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 0.5rem; top: 50%; transform: translateY(-50%); }

/* ---------- Scroll-Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.sichtbar {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .galerie-item img { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--gruen-dunkel);
    border-bottom: 1px solid rgba(201, 162, 39, 0.35);
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav-menu.offen { display: flex; }

  .nav-menu a {
    display: block;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-menu .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding-block: 3.5rem; }

  .fgv-hinweis { flex-direction: column; text-align: center; }

  .timeline::before { left: 5px; }
  .timeline li { flex-direction: column; gap: 0.15rem; padding-left: 28px; }
  .timeline li::before { left: 0; }
  .timeline-jahr { width: auto; padding-left: 0; }
}
