/* ============================================================
   Schützenverein Osterberg 1906 e.V. — Stylesheet
   Design: Loden/Wappen-Palette, Zielscheiben-Ringe als Signatur
   ============================================================ */

/* Bewusst KEINE Google Fonts eingebunden (Datenschutz) – stattdessen
   hochwertige, überall vorinstallierte Systemschriften. */

:root {
  /* Farbpalette */
  --cream:        #F3EEE3;   /* Papier/Zielscheiben-Karton */
  --cream-deep:   #EAE2CF;   /* Karten-Hintergrund */
  --loden:        #2F3D2A;   /* Trachtenjanker-Grün */
  --loden-dark:   #212B1E;
  --brass:        #A8823C;   /* Messing/Wappen-Gold */
  --brass-light:  #C9A466;
  --wappen-red:   #7A2530;   /* Wappen-Rot */
  --ink:          #26201A;   /* Walnuss/Schaft-Dunkel */
  --ink-soft:      #4A423A;
  --stone:        #D9D0BC;   /* Trennlinien */
  --white:        #FFFDF9;

  /* Typografie */
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--wappen-red); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brass);
}

/* Fokus-Sichtbarkeit */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--wappen-red);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------------- Header / Navigation ---------------- */

.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--loden);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.brand img {
  height: 52px;
  width: 52px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--loden-dark);
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--wappen-red);
  text-decoration: none;
  border-bottom-color: var(--wappen-red);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--loden);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 780px) {
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.2rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--stone);
    margin-top: 0.8rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.55rem 0.2rem; }
  .nav-toggle { display: inline-block; }
  .nav-wrap { flex-wrap: wrap; }
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  border-bottom: 1px solid var(--stone);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2.5rem;
  padding: 4.5rem 1.5rem 4rem;
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
}

.hero-copy .eyebrow { display: block; margin-bottom: 0.9rem; }

.hero h1 { margin-bottom: 0.6rem; }

.hero-tagline {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

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

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid var(--loden);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--loden);
  color: var(--white);
}
.btn-primary:hover { background: var(--loden-dark); text-decoration: none; }

.btn-secondary {
  background: transparent;
  color: var(--loden-dark);
}
.btn-secondary:hover { background: var(--loden); color: var(--white); text-decoration: none; }

/* Ziel-Ring-Emblem hinter dem Logo */
.hero-emblem {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.target-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.target-rings svg { width: 100%; height: auto; max-width: 420px; opacity: 0.9; }

.hero-emblem img {
  position: relative;
  width: 46%;
  max-width: 190px;
  filter: drop-shadow(0 6px 14px rgba(38,32,26,0.25));
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 3rem; }
  .hero-copy { order: 2; }
  .hero-emblem { order: 1; margin-bottom: 1rem; }
  .hero-actions { justify-content: center; }
  .target-rings svg { max-width: 280px; }
}

/* ---------------- Sections generic ---------------- */

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--cream-deep);
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-head.left { text-align: left; margin-left: 0; }

/* ---------------- Disziplin-Karten ---------------- */

.discipline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

@media (max-width: 980px) {
  .discipline-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .discipline-grid { grid-template-columns: 1fr; }
}

.discipline-card {
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.discipline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(38,32,26,0.12);
}

.discipline-card .thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.discipline-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
}

.discipline-card .body {
  padding: 1.2rem 1.3rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.discipline-card h3 { margin-bottom: 0.4rem; }
.discipline-card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }

.discipline-card .card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--wappen-red);
}

/* ---------------- Disziplinen-Detailseite ---------------- */

.discipline-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 3.2rem 0;
}

.discipline-detail:not(:last-child) {
  border-bottom: 1px solid var(--stone);
}

.discipline-detail.reverse .gallery-col { order: 2; }
.discipline-detail.reverse .text-col { order: 1; }

@media (max-width: 860px) {
  .discipline-detail { grid-template-columns: 1fr; }
  .discipline-detail.reverse .gallery-col,
  .discipline-detail.reverse .text-col { order: initial; }
}

.gallery-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.gallery-col img {
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.gallery-col.single { grid-template-columns: 1fr; }
.gallery-col.single img { aspect-ratio: 3/2; }

.training-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--loden);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  margin-top: 1rem;
}

.training-badge .ring {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--brass-light);
}

/* ---------------- Aktuelles / News ---------------- */

.news-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.news-card {
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  overflow: hidden;
}

.news-card img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
}

.news-card .news-body {
  padding: 1.6rem 1.8rem 1.8rem;
}

.news-card .news-date {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brass);
  display: block;
  margin-bottom: 0.5rem;
}

.news-card h2, .news-card h3 { margin-bottom: 0.5rem; }
.news-card p:last-child { margin-bottom: 0; }

/* ---------------- Termine ---------------- */

.event-card {
  display: flex;
  gap: 1.5rem;
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 1.6rem;
  align-items: center;
  max-width: 720px;
  margin: 0 auto 1.2rem;
}

.event-date {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid var(--wappen-red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--wappen-red);
  font-family: var(--font-display);
}
.event-date .day { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.event-date .month { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }

.event-note {
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
  max-width: 620px;
  margin: 2rem auto 0;
}

/* ---------------- Downloads ---------------- */

.download-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--white);
  border: 1px solid var(--stone);
  border-left: 5px solid var(--brass);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}

.download-item .icon {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--cream-deep);
  display: flex; align-items: center; justify-content: center;
  color: var(--loden);
  font-weight: 700;
  border: 2px solid var(--loden);
}

.download-item .meta { flex: 1; }
.download-item h3 { margin-bottom: 0.2rem; font-size: 1.1rem; }
.download-item p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

.download-item .btn { flex: 0 0 auto; }

/* ---------------- Galerie ---------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s ease; }
.gallery-grid a:hover img { transform: scale(1.05); }

/* ---------------- Kontakt ---------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.contact-card dt { font-weight: 700; color: var(--loden-dark); margin-top: 1rem; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 0.15rem 0 0; color: var(--ink-soft); }

/* ---------------- Legal pages ---------------- */

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h2 { margin-top: 2.2rem; }
.legal-content h2:first-child { margin-top: 0; }

.placeholder-note {
  background: #FBF2E4;
  border: 1px dashed var(--brass);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 2rem 0;
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--loden-dark);
  color: #E7E2D3;
  padding: 3rem 0 1.6rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 {
  color: var(--brass-light);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}

.footer-grid a { color: #E7E2D3; }
.footer-grid a:hover { color: var(--brass-light); }

.footer-brand {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.8rem;
}
.footer-brand img { height: 40px; width: 40px; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--white); }

.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }

.footer-bottom {
  border-top: 1px solid rgba(231,226,211,0.2);
  padding-top: 1.4rem;
  font-size: 0.85rem;
  color: #B9B3A0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.footer-bottom a { color: #B9B3A0; }

/* ---------------- Page header (non-hero pages) ---------------- */

.page-header {
  background: var(--cream-deep);
  border-bottom: 1px solid var(--stone);
  padding: 3rem 0 2.4rem;
  text-align: center;
}
.page-header .eyebrow { display: block; margin-bottom: 0.6rem; }
.page-header p { max-width: 620px; margin: 0.6rem auto 0; color: var(--ink-soft); }
