/* ==========================================================================
   Schützenverein Schlierbach 1924 e.V. — Hauptstylesheet
   Stil: traditionell mit modernem Touch
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  /* Farben — Wald- & Jägergrün, warmes Messing/Gold, cremiger Hintergrund */
  --green-950: #16261c;
  --green-900: #1e3327;
  --green-800: #274232;
  --green-700: #33553f;
  --green-600: #46714f;
  --gold-600: #a9812f;
  --gold-500: #c49a3f;
  --gold-400: #d6b463;
  --cream-100: #faf7ef;
  --cream-200: #f3ede0;
  --cream-300: #e9dfc9;
  --ink-900: #21201b;
  --ink-700: #4a473e;
  --ink-500: #726d5f;
  --white: #ffffff;
  --red-700: #7a2e2e;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(22, 38, 28, 0.12);
  --shadow-md: 0 8px 24px rgba(22, 38, 28, 0.14);
  --shadow-lg: 0 20px 50px rgba(22, 38, 28, 0.20);

  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-100);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--green-950);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-600);
  margin-bottom: 0.6em;
}

/* ---------- Zielscheiben-Motiv (dekoratives SVG-Icon) ---------- */
.target-icon { display: inline-block; vertical-align: middle; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-950);
  border-bottom: 3px solid var(--gold-500);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.brand-emblem {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-950);
  flex-shrink: 0;
}

.brand-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text .brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.15;
  display: block;
}

.brand-text .brand-sub {
  font-size: 0.78rem;
  color: var(--gold-400);
  letter-spacing: 0.06em;
}

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

.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--cream-200);
  font-weight: 600;
  font-size: 0.94rem;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-400);
}

.main-nav a.active {
  color: var(--gold-400);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold-500);
  color: var(--cream-100);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 1rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(160deg, rgba(22,38,28,0.88), rgba(30,51,39,0.82)),
    var(--green-800);
  color: var(--cream-100);
  padding: 88px 0 96px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(circle, rgba(196,154,63,0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-photos {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
}

.hero-photos img {
  flex: 1 1 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero h1 { color: var(--white); margin-bottom: 0.35em; }

.hero p.lead {
  font-size: 1.15rem;
  color: var(--cream-300);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.96rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold-500);
  color: var(--green-950);
}
.btn-primary:hover { background: var(--gold-400); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  border-color: rgba(250,247,239,0.55);
  color: var(--cream-100);
}
.btn-outline:hover { border-color: var(--gold-400); color: var(--gold-400); }

.btn-dark {
  background: var(--green-950);
  color: var(--cream-100);
}
.btn-dark:hover { background: var(--green-900); }

/* ---------- Sektionen ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--cream-200); }
.section-dark {
  background: var(--green-950);
  color: var(--cream-200);
}
.section-dark h2 { color: var(--white); }

.section-head {
  max-width: 640px;
  margin: 0 0 40px;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Karten / Grid ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(22,38,28,0.06);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream-200);
  color: var(--green-800);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-person {
  display: flex;
  align-items: center;
  gap: 16px;
}
.card-person img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.card-person h3 { margin: 0 0 4px; }
.card-person p { margin: 0; }

/* ---------- News / Termine Liste ---------- */
.news-list { display: flex; flex-direction: column; gap: 18px; }

.news-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(22,38,28,0.06);
}

.news-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--green-950);
  color: var(--cream-100);
  border-radius: 8px;
  padding: 10px 4px;
  text-align: center;
}
.news-date .day { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1; color: var(--gold-400); }
.news-date .month { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }

.news-item h3 { margin-bottom: 6px; font-size: 1.15rem; }
.news-item p { margin: 0; color: var(--ink-700); }

@media (max-width: 560px) {
  .news-item { grid-template-columns: 64px 1fr; padding: 16px; }
  .news-date .day { font-size: 1.15rem; }
}

/* ---------- Tabellen (Schützenkönige etc.) ---------- */
.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(22,38,28,0.06);
}

table.styled { width: 100%; border-collapse: collapse; min-width: 420px; }
table.styled th, table.styled td { text-align: left; padding: 12px 20px; }
table.styled thead th {
  background: var(--green-950);
  color: var(--gold-400);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
table.styled tbody tr:nth-child(odd) { background: var(--cream-200); }
table.styled tbody tr:hover { background: var(--cream-300); }
table.styled td { border-bottom: 1px solid rgba(22,38,28,0.05); }

/* ---------- Platzhalter-Hinweisbox ---------- */
.todo-box {
  background: #fbf1da;
  border: 1.5px var(--gold-600);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 32px;
  color: var(--ink-700);
  font-size: 0.96rem;
}
.todo-box strong { color: var(--red-700); }

/* ---------- Infoblöcke (Kontakt, Adresse) ---------- */
.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 780px) { .info-strip { grid-template-columns: 1fr; } }

/* ---------- Bildergalerie / Platzhalterkacheln ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 780px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.gallery-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cream-300), var(--cream-200));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-500);
  border: 1px dashed var(--gold-600);
  font-size: 0.85rem;
  text-align: center;
  padding: 10px;
}

.gallery-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
}
.gallery-photo:has(video)::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(22, 38, 28, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FAF7EF'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") no-repeat center / 18px;
  pointer-events: none;
}
.gallery-photo img,
.gallery-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Eingebettete Fotos in Fließtext ---------- */
.content-figure {
  margin: 20px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(22,38,28,0.06);
}
.content-figure img { width: 100%; display: block; }
.content-figure figcaption {
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--ink-500);
  background: var(--white);
}

/* ---------- Presse ---------- */
.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .press-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .press-grid { grid-template-columns: 1fr; } }

.press-item {
  background: var(--cream-100, #fff);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius);
  overflow: hidden;
}

.press-thumb {
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--cream-300), var(--cream-200));
  border-bottom: 1px dashed var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-500);
  font-size: 0.85rem;
  text-align: center;
  padding: 14px;
}
.press-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.press-info {
  padding: 14px 16px 18px;
}
.press-info h3 { margin: 0 0 4px; font-size: 1.05rem; }
.press-info .press-meta { color: var(--ink-500); font-size: 0.85rem; margin: 0; }

.lightbox-trigger { cursor: zoom-in; }

/* ---------- Lightbox ---------- */
body.lightbox-lock { overflow: hidden; }

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(22, 38, 28, 0.94);
  align-items: center;
  justify-content: center;
  padding: 48px;
}
.lightbox-overlay.open { display: flex; }

.lightbox-figure {
  margin: 0;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox-img,
.lightbox-video {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-caption {
  color: var(--cream-200);
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(250, 247, 239, 0.1);
  border: 1px solid var(--gold-500);
  color: var(--cream-100);
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(250, 247, 239, 0.22); }

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  font-size: 1.6rem;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 640px) {
  .lightbox-overlay { padding: 20px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
  .lightbox-close { top: 10px; right: 10px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ---------- Sponsoren ---------- */
.sponsor-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
}
.sponsor-chip {
  background: var(--white);
  border: 1px solid rgba(22,38,28,0.08);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  color: var(--ink-700);
  font-size: 0.92rem;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.sponsor-chip:hover,
.sponsor-chip:focus-visible {
  border-color: var(--gold-600);
  color: var(--green-800);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-950);
  color: var(--cream-300);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer-grid h4 {
  color: var(--gold-400);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  margin-bottom: 16px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { text-decoration: none; color: var(--cream-300); }
.footer-grid a:hover { color: var(--gold-400); }

.footer-bottom {
  border-top: 1px solid rgba(250,247,239,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--cream-300);
  opacity: 0.85;
}
.footer-bottom a { text-decoration: underline; }

/* ---------- Breadcrumb / Seiten-Hero (Unterseiten) ---------- */
.page-hero {
  background: var(--green-900);
  color: var(--cream-100);
  padding: 56px 0 48px;
  border-bottom: 3px solid var(--gold-500);
}
.page-hero .eyebrow { color: var(--gold-400); }
.page-hero h1 { color: var(--white); margin-bottom: 0.2em; }
.page-hero p { color: var(--cream-300); max-width: 60ch; margin: 0; }

.back-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  color: var(--cream-300);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.back-link:hover { color: var(--gold-400); }

/* ---------- Bildergalerie: Ordner-Kacheln ---------- */
.folder-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.folder-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--folder-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}
.folder-card > * { position: relative; z-index: 1; }
.folder-card h3 { margin: 0 0 4px; }
.folder-card p { margin: 0; color: var(--ink-500); font-size: 0.9rem; }

.card.is-placeholder {
  border-style: dashed;
  border-color: var(--gold-600);
  box-shadow: none;
  color: var(--ink-500);
  cursor: default;
}
.card.is-placeholder:hover { box-shadow: none; transform: none; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Mobile Nav ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .main-nav {
    position: fixed;
    top: var(--header-h, 70px);
    left: 0;
    right: 0;
    background: var(--green-950);
    border-bottom: 3px solid var(--gold-500);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open {
    max-height: calc(100dvh - var(--header-h, 70px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav ul { flex-direction: column; padding: 8px 24px 20px; }
  .main-nav a { display: block; padding: 12px 6px; }
  body.nav-open { overflow: hidden; }
}
