/* ============================================================
   Schützenverein-Website — Design-Tokens & Basisstile
   ============================================================ */

@font-face {
  font-family: 'Rajdhani';
  src: url('../fonts/rajdhani-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rajdhani';
  src: url('../fonts/rajdhani-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rajdhani';
  src: url('../fonts/rajdhani-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:        #12130f;
  --bg-panel:  #191b14;
  --bg-raised: #20221a;
  --line:      #2e3126;
  --line-soft: #23251d;
  --brass:     #b6893f;
  --brass-dim: #8a6a34;
  --olive:     #626a45;
  --text:      #e8e5d8;
  --text-dim:  #a7a493;
  --text-faint:#6f6c5f;
  --danger:    #a1503c;

  --font-head: 'Rajdhani', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  --maxw: 1180px;
  --edge: clamp(20px, 5vw, 64px);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: 1.02; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.1; }
h3 { font-size: 1.3rem; line-height: 1.25; }

p { margin: 0 0 1em; max-width: 62ch; color: var(--text-dim); }
p.lead { font-size: 1.15rem; color: var(--text); max-width: 58ch; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

/* ---------- Kopfzeile / Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18, 19, 15, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}
.brand span { color: var(--brass); }
.brand small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--text-faint);
}
@media (max-width: 700px) {
  .brand small { display: none; }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
}

.main-nav a {
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--brass);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: '';
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle::before { top: 14px; }
.nav-toggle span { top: 20px; }
.nav-toggle::after { top: 26px; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px var(--edge);
    gap: 22px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav a { font-size: 1.05rem; }
}

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

.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  opacity: 1;
  filter: none;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18,19,15,0) 0%, rgba(18,19,15,0.1) 55%, var(--bg) 96%),
    linear-gradient(90deg, rgba(18,19,15,0.5) 0%, rgba(18,19,15,0.22) 32%, rgba(18,19,15,0) 62%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 96px 0 64px;
  width: 100%;
}

.hero-kicker {
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.85);
}

.hero h1 {
  max-width: 15ch;
  text-shadow: 0 4px 24px rgba(0,0,0,0.75), 0 1px 3px rgba(0,0,0,0.9);
}

.hero-lead {
  margin-top: 22px;
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 46ch;
  text-shadow: 0 2px 12px rgba(0,0,0,0.85);
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--brass);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-solid { background: var(--brass); color: #16170f; }
.btn-solid:hover { background: #c99a4c; border-color: #c99a4c; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brass); color: var(--brass); }

/* ---------- Sektionen ---------- */

section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.bg-panel { background: var(--bg-panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head .eyebrow {
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  display: block;
  margin-bottom: 10px;
}

/* ---------- Disziplinen-Grid ---------- */

.discipline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.discipline {
  background: var(--bg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.discipline .idx {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

.discipline h3 { color: var(--text); }
.discipline p { margin: 0; font-size: 0.94rem; }

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

/* ---------- Zwei-Spalten / Teaser ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}

.teaser-card {
  border-top: 2px solid var(--brass);
  background: var(--bg-panel);
  padding: 34px 30px;
}
.teaser-card h3 { margin-bottom: 12px; }
.teaser-card .btn { margin-top: 18px; }

/* ---------- Werte-Liste (Verein) ---------- */

.value-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 30px 0;
  border-top: 1px solid var(--line-soft);
}
.value-row:last-child { border-bottom: 1px solid var(--line-soft); }
.value-row h3 { color: var(--brass); }
@media (max-width: 700px) {
  .value-row { grid-template-columns: 1fr; gap: 10px; }
}

.callout {
  background: var(--bg-raised);
  border-left: 3px solid var(--brass);
  padding: 26px 30px;
  margin: 8px 0 0;
}
.callout p { color: var(--text); margin: 0; max-width: none; }

/* ---------- Ablauf / Schritte (WBK) ---------- */

.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
  position: relative;
}
.step:last-child { border-bottom: 1px solid var(--line-soft); }
.step .num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brass-dim);
  line-height: 1;
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; }
@media (max-width: 640px) {
  .step { grid-template-columns: 44px 1fr; gap: 16px; }
  .step .num { font-size: 1.3rem; }
}

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

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

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-panel);
  border: none;
  padding: 0;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-item.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: default;
  border: 1px dashed var(--line);
}

.ai-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(18,19,15,0.82);
  border: 1px solid var(--brass-dim);
  color: var(--brass);
  font-family: var(--font-head);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 8, 0.96);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}
.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(90vw, 1100px);
  max-height: 82vh;
  object-fit: contain;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 2px;
}
.lightbox-close:hover { border-color: var(--brass); color: var(--brass); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 2px;
}
.lightbox-nav:hover { border-color: var(--brass); color: var(--brass); }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }

.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
}

@media (max-width: 640px) {
  .lightbox-nav { display: none; }
}

/* ---------- Hinweis-Leiste (KI-Kennzeichnung, allgemein) ---------- */

.notice-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-panel);
  padding: 16px 0;
}
.notice-bar .wrap {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--text-dim);
}
.notice-bar strong { color: var(--brass); }

/* ---------- Rechtstexte ---------- */

.legal main {
  padding: 64px 0 100px;
}
.legal h2 { margin-top: 2.2em; margin-bottom: 0.6em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--text-dim); max-width: 72ch; }
.legal ul { padding-left: 1.2em; }
.legal .fill {
  color: var(--brass);
  background: rgba(182, 137, 63, 0.12);
  padding: 0 4px;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  background: var(--bg-panel);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
.footer-grid h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.footer-grid a, .footer-grid p {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 8px;
  max-width: none;
}
.footer-grid a:hover { color: var(--brass); }

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-faint);
}
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--brass); }
