/* Magic Moves Guntersblum — modern static site stylesheet */

:root {
  --color-bg-primary: #FFFFFF;
  --color-bg-secondary: #FAEEDA;
  --color-bg-dark: #2C2C2A;
  --color-accent: #639922;
  --color-accent-light: #97C459;
  --color-text: #2C2C2A;
  --color-text-muted: #5F5E5A;
  --color-border: #E5E1D9;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Oxygen, Ubuntu, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;

  --container-max: 1080px;
  --reading-max: 720px;

  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: #2d4a1a;
  background-image: url('/assets/img/hintergrund-blaetter.png');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

.reading {
  max-width: var(--reading-max);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.site-logo img { height: 48px; width: auto; }
.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-text);
  font-weight: bold;
}
.site-logo:hover { text-decoration: none; }

/* Mobile menu toggle (CSS-only checkbox trick) */
.menu-toggle { display: none; }
.menu-icon {
  display: block;
  cursor: pointer;
  padding: 0.5rem;
  user-select: none;
}
.menu-icon span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-text);
  margin: 5px 0;
  transition: transform 0.2s;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}
.site-nav a {
  color: var(--color-text);
  font-weight: 500;
  padding: 0.5rem 0;
  display: block;
}
.site-nav a:hover { color: var(--color-accent); text-decoration: none; }
.site-nav a.active { color: var(--color-accent); border-bottom: 2px solid var(--color-accent); }

@media (max-width: 767px) {
  .menu-icon { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--color-bg-primary);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  .menu-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.5rem;
  }
  .site-nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--color-border); }
  .site-nav li:last-child a { border-bottom: none; }
}

@media (min-width: 768px) {
  .menu-icon { display: none; }
}

/* === HERO === */
.hero {
  width: 100%;
  background: var(--color-bg-secondary);
  margin-bottom: 2rem;
}
.hero img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-caption {
  text-align: center;
  padding: 1rem;
  color: var(--color-text-muted);
  font-style: italic;
  font-family: var(--font-display);
}

/* === SECTIONS === */
section.block {
  padding: 3rem 0;
}
section.block-secondary {
  background: var(--color-bg-secondary);
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 1.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .section-title { font-size: 2.25rem; margin-bottom: 2rem; }
}

/* === STAT CARDS === */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; gap: 0.75rem; }
}
.stat-card {
  background: var(--color-bg-secondary);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
}
.stat-card .number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-accent);
  display: block;
  font-weight: bold;
  line-height: 1.1;
}
.stat-card .label {
  display: block;
  margin-top: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* === CHRONIK GRID === */
.chronik-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (min-width: 768px) {
  .chronik-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}
.chronik-card {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.chronik-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.chronik-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--color-bg-secondary);
}
.chronik-card .meta {
  padding: 0.75rem 1rem 1rem;
  flex: 1;
}
.chronik-card .year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-accent);
  display: block;
  font-weight: bold;
}
.chronik-card .title {
  display: block;
  margin-top: 0.25rem;
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.3;
}

/* === GALERIE (Chronik-Detail) === */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 2rem 0;
}
@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}
.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--color-bg-secondary);
}

/* === TABELLE (Erfolge) === */
.year-block {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--color-bg-secondary);
  border-radius: var(--radius);
}
.year-block h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  color: var(--color-accent);
  font-size: 1.5rem;
}
.year-block .theme {
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.year-block table {
  width: 100%;
  border-collapse: collapse;
}
.year-block td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.year-block tr:last-child td { border-bottom: none; }
.year-block td:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 500;
}
.podium-1 td:last-child { color: #B8860B; font-weight: bold; }
.podium-2 td:last-child { color: #708090; font-weight: bold; }
.podium-3 td:last-child { color: #CD7F32; font-weight: bold; }

/* === COMING SOON BOX === */
.coming-soon {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  color: white;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 2rem 0;
}
.coming-soon h2 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}
.coming-soon p { margin: 0.5rem 0; opacity: 0.95; }

/* === FOOTER === */
.site-footer {
  background: var(--color-bg-dark);
  color: #C5C3BD;
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
}
.site-footer a { color: #C5C3BD; }
.site-footer a:hover { color: var(--color-accent-light); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-block h4 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  color: white;
  font-size: 1.1rem;
}
.footer-block ul { list-style: none; padding: 0; margin: 0; }
.footer-block li { padding: 0.25rem 0; }
.footer-block .social a { display: inline-block; margin-right: 1rem; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #44443F;
  text-align: center;
  font-size: 0.875rem;
  color: #80807A;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--color-accent);
  color: white;
  border-radius: var(--radius);
  font-weight: 500;
  transition: background 0.2s;
}
.btn:hover {
  background: #527d1c;
  text-decoration: none;
  color: white;
}
.btn-block { display: block; text-align: center; }

/* === GENERIC === */
h1, h2, h3 { line-height: 1.2; }
h1 { font-family: var(--font-display); font-size: 2rem; margin-top: 2rem; }
h2 { font-family: var(--font-display); font-size: 1.5rem; }
@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.875rem; }
}

.text-center { text-align: center; }
.muted { color: var(--color-text-muted); }

/* === TERMINE-SEITE === */
.coming-soon-block {
  background: var(--color-bg-secondary);
  border-left: 4px solid var(--color-accent);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}
.coming-soon-block h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  color: var(--color-accent);
  font-size: 1.5rem;
}
.coming-soon-block p { margin: 0.5rem 0 0; }

.past-events-section {
  background: #F7F5F0;
  position: relative;
}
.past-events-section .section-title {
  color: var(--color-text-muted);
}

.events-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  background: var(--color-bg-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.events-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
}
.events-table th {
  background: var(--color-bg-secondary);
  text-align: left;
  padding: 0.75rem 1rem;
  font-family: var(--font-display);
  color: var(--color-text);
  border-bottom: 2px solid var(--color-border);
  font-size: 0.95rem;
}
.events-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.events-table tbody tr:nth-child(even) td {
  background: #FBFAF7;
}
.events-table tbody tr:last-child td { border-bottom: none; }
.events-table .date-cell {
  width: 130px;
  white-space: nowrap;
  font-weight: 500;
  color: var(--color-text);
}
.events-table .ort-cell {
  color: var(--color-text-muted);
  white-space: nowrap;
}
/* Continuation-Zeilen (Datum gilt von oben): leise visuelle Markierung */
.events-table tr.continuation .date-cell {
  border-left: 3px solid var(--color-accent-light);
  color: var(--color-text-muted);
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

@media (max-width: 600px) {
  .events-table .ort-cell { white-space: normal; }
  .events-table th, .events-table td { padding: 0.5rem 0.75rem; font-size: 0.9rem; }
}


/* ===== Page Hero (Wald-Hintergrund + Logo, alle Unterseiten) ===== */
.page-hero {
  position: relative;
  min-height: 280px;
  background-image: url('/assets/img/hintergrund-blaetter.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
.page-hero img.hero-logo {
  position: relative;
  z-index: 1;
  width: 200px;
  height: auto;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6));
}
@media (max-width: 768px) {
  .page-hero { min-height: 200px; }
  .page-hero img.hero-logo { width: 140px; }
}

/* ===== Team-Photo (magic-moves/) ===== */
.team-photo-section {
  padding: 2rem 0;
  max-width: 1080px;
  margin: 0 auto;
}
.team-photo-section h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.team-photo-section .lead {
  font-size: 1.1rem;
  max-width: 720px;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.team-photo {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}
.team-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.team-caption {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ===== Coming-Soon-Bild auf der Termine-Seite ===== */
.coming-soon-image {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: block;
}

/* ===== Footer-Logo ===== */
.footer-logo {
  display: block;
  width: 80px;
  height: auto;
  opacity: 0.6;
  margin-bottom: 1rem;
}
.site-footer { text-align: center; }
@media (min-width: 768px) {
  .footer-logo { margin-bottom: 0; }
  .site-footer { text-align: left; }
}


/* ===== Lightbox (Gruppenfoto-Vollbild) ===== */
.zoom-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}
.lightbox.is-open {
  display: flex;
  animation: lightboxFadeIn 0.2s ease;
}
@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  user-select: none;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.lightbox-close:hover,
.lightbox-close:focus {
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}
@media (max-width: 768px) {
  .lightbox { padding: 0; }
  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}


/* ========================================================== */
/* === Layout-Redesign: Wald-BG + weisser Inhalts-Container === */
/* ========================================================== */

/* Header: transparent, zentral, ueberschreibt .site-header alt */
.site-header,
header {
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  position: relative;
  z-index: 10;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.site-header .container { display: contents; }  /* alter container loest sich auf */

.header-logo-link {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
}
.header-logo {
  width: 160px;
  height: auto;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5));
}

header nav {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 0.75rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}
header nav a {
  color: var(--color-text);
  font-weight: 500;
  padding: 0.25rem 0;
  display: inline-block;
}
header nav a:hover { color: var(--color-accent); text-decoration: none; }
header nav a.active { color: var(--color-accent); border-bottom: 2px solid var(--color-accent); }

/* Mobile: Hamburger + Slide-In-Menue */
@media (max-width: 768px) {
  .site-header,
  header {
    padding: 1rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .header-logo { width: 100px; }
  .menu-icon span { background: #ffffff; }

  header nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    transition: right 0.3s ease;
    border-radius: 0;
    padding: 4rem 1.5rem 1.5rem;
    z-index: 200;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.25);
    display: block;
  }
  .menu-toggle:checked ~ nav,
  .menu-toggle:checked ~ .site-nav { right: 0; }
  header nav ul { flex-direction: column; gap: 0; }
  header nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    display: block;
  }
  header nav li:last-child a { border-bottom: none; }

  .menu-icon { z-index: 250; position: relative; }
}

/* Main: weisses, schwebendes Panel */
main {
  max-width: 1000px;
  margin: 2rem auto 4rem;
  padding: 3rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  main {
    margin: 1rem;
    padding: 1.5rem;
    border-radius: 6px;
  }
}

/* Sektionen INNERHALB des weissen Panels: padding entdrucksen */
main section.block { padding: 2rem 0; }
main section.block:first-child { padding-top: 0; }
main section.block:last-child { padding-bottom: 0; }
main section.block-secondary {
  background: var(--color-bg-secondary);
  margin: 2rem -3rem;
  padding-left: 3rem;
  padding-right: 3rem;
  border-radius: 6px;
}
@media (max-width: 768px) {
  main section.block-secondary {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Page-Hero ausgeblendet: Wald ist jetzt durchgehend */
.page-hero { display: none !important; }

/* Footer: dunkel halbtransparent ueber Wald */
.site-footer,
footer {
  background: rgba(44, 44, 42, 0.95);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 2rem;
  margin: 0;
  text-align: center;
  position: relative;
  z-index: 1;
}
.site-footer a,
footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover,
footer a:hover { color: var(--color-accent-light); }
.site-footer h4,
footer h4 { color: #ffffff; }
.site-footer .footer-grid {
  text-align: left;
  max-width: 1000px;
  margin: 0 auto 1rem;
}
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.7;
}
.footer-logo {
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

/* Teaser/Hero auf Startseite: passt jetzt in das weisse Panel */
.hero {
  background: transparent;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  overflow: hidden;
}
.hero img { border-radius: 6px; }
