/* ============================================================
   Feldschützen Dornach – Stylesheet
   Farben, Schriften und Layout für alle Seiten.
   Farbschema abgeleitet vom Vereinswappen (Rot / Schwarz / Weiss).
   ============================================================ */

:root {
  --rot: #6c793d;            /* Wappenrot – Akzentfarbe */
  --rot-dunkel: #2f3422;
  --schwarz: #14161a;        /* Fast-Schwarz für dunkle Flächen */
  --anthrazit: #1e2127;
  --papier: #f7f6f3;         /* Heller Seitenhintergrund */
  --weiss: #ffffff;
  --text: #2a2d33;
  --text-hell: #6b6f76;
  --linie: #e4e2dd;
  --radius: 14px;
  --schatten: 0 10px 30px rgba(20, 22, 26, 0.10);
  --schrift: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
             "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Grundlagen ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ---------- Typografie ---------- */

h1, h2, h3, h4 {
  line-height: 1.15;
  color: var(--schwarz);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.ueberzeile {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rot);
  margin-bottom: 0.9rem;
}
.ueberzeile::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--rot);
}

.section-titel { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 1rem; }

.vorspann { font-size: 1.12rem; color: var(--text-hell); max-width: 62ch; }

/* ---------- Kopfbereich / Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(42, 47, 32, 1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--weiss);
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--weiss);
  padding: 3px;
}
.brand-name { font-weight: 800; font-size: 1.05rem; line-height: 1.2; letter-spacing: 0.01em; }
.brand-name small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hauptnav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}
.hauptnav a {
  display: block;
  padding: 0.55rem 0.85rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.hauptnav a:hover { background: rgba(255, 255, 255, 0.10); color: var(--weiss); text-decoration: none; }
.hauptnav a.aktiv { background: var(--rot); color: var(--weiss); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--weiss);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.offen span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.offen span:nth-child(2) { opacity: 0; }
.nav-toggle.offen span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero (grosse Kopfgrafik) ---------- */

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  color: var(--weiss);
  overflow: hidden;
  isolation: isolate;
}
.hero.klein { min-height: 46vh; }

.hero-bild {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 18s ease-out forwards;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg,
    rgba(15, 16, 20, 0.88) 0%,
    rgba(15, 16, 20, 0.62) 45%,
    rgba(15, 16, 20, 0.30) 100%);
}

@keyframes kenburns {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

.hero-inhalt { max-width: 640px; padding: 6rem 0; }

.hero-inhalt .ueberzeile { color: #b50c0c; }
.hero-inhalt .ueberzeile::before { background: #b50c0c; }

.hero h1 {
  color: var(--weiss);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  margin-bottom: 1.2rem;
}
.hero h1 .akzent { color: #b50c0c; }

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
  max-width: 54ch;
}

/* Einblend-Animation beim Laden der Hero-Texte */
.hero-inhalt > * {
  opacity: 0;
  transform: translateY(26px);
  animation: hero-rein 0.8s ease forwards;
}
.hero-inhalt > *:nth-child(2) { animation-delay: 0.15s; }
.hero-inhalt > *:nth-child(3) { animation-delay: 0.3s; }
.hero-inhalt > *:nth-child(4) { animation-delay: 0.45s; }

@keyframes hero-rein {
  to { opacity: 1; transform: none; }
}

/* Dekorative Zielscheibe im Hero */
.hero-ziel {
  position: absolute;
  right: 4%;
  bottom: -8%;
  width: min(420px, 42vw);
  opacity: 0.4;
  z-index: -1;
  pointer-events: none;
}
.hero-ziel circle.ring {
  fill: none;
  stroke: var(--weiss);
  stroke-width: 1.5;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: ring-zeichnen 2.4s ease-out forwards;
}
.hero-ziel circle.ring:nth-of-type(2) { animation-delay: 0.25s; }
.hero-ziel circle.ring:nth-of-type(3) { animation-delay: 0.5s; }
.hero-ziel circle.ring:nth-of-type(4) { animation-delay: 0.75s; }
.hero-ziel .treffer {
  fill: var(--rot);
  opacity: 0;
  animation: treffer-rein 0.5s cubic-bezier(0.2, 2.2, 0.4, 1) 1.5s forwards;
}

@keyframes ring-zeichnen { to { stroke-dashoffset: 0; } }
@keyframes treffer-rein  { from { opacity: 0; transform: scale(3); } to { opacity: 1; transform: scale(1); } }

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

.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-rot {
  background: var(--rot);
  color: var(--weiss);
  box-shadow: 0 8px 20px rgba(176, 30, 35, 0.35);
}
.btn-rot:hover { background: var(--rot-dunkel); }

.btn-hell {
  background: rgba(255, 255, 255, 0.12);
  color: var(--weiss);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-hell:hover { background: rgba(255, 255, 255, 0.22); }

.btn-gruppe { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Abschnitte ---------- */

.abschnitt { padding: 5rem 0; }
.abschnitt.dunkel {
  background: var(--schwarz);
  color: rgba(255, 255, 255, 0.85);
}
.abschnitt.dunkel h2, .abschnitt.dunkel h3 { color: var(--weiss); }
.abschnitt.dunkel .vorspann { color: rgba(255, 255, 255, 0.65); }

.abschnitt-kopf { margin-bottom: 2.8rem; }
.abschnitt-kopf.zentriert { text-align: center; }
.abschnitt-kopf.zentriert .ueberzeile::before { display: none; }
.abschnitt-kopf.zentriert .vorspann { margin-inline: auto; }

/* Zweispaltiges Layout Text + Bild */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.split .bild img {
  border-radius: var(--radius);
  box-shadow: var(--schatten);
}

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

.karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}

.karte {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(20, 22, 26, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.karte:hover { transform: translateY(-6px); box-shadow: var(--schatten); }

.karte .karte-bild { aspect-ratio: 16 / 10; overflow: hidden; }
.karte .karte-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.karte:hover .karte-bild img { transform: scale(1.06); }

.karte-text { padding: 1.5rem 1.6rem 1.7rem; flex: 1; display: flex; flex-direction: column; }
.karte-text h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.karte-text p { color: var(--text-hell); font-size: 0.98rem; flex: 1; }
.karte-text .mehr {
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.karte-text .mehr::after { content: " →"; transition: margin 0.2s; }
.karte:hover .mehr::after { margin-left: 4px; }

/* Info-Kästchen (z.B. Trainingszeiten) */
.info-box {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-left: 5px solid var(--rot);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  box-shadow: 0 3px 12px rgba(20, 22, 26, 0.05);
}
.info-box h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.abschnitt.dunkel .info-box {
  background: var(--anthrazit);
  border-color: rgba(255, 255, 255, 0.08);
  border-left-color: var(--rot);
}

/* ---------- Kennzahlen (animierte Zähler) ---------- */

.kennzahlen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.kennzahl .zahl {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--rot);
  line-height: 1.1;
}
.kennzahl .zahl .einheit { font-size: 0.5em; font-weight: 700; }
.kennzahl .beschriftung {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: inherit;
  opacity: 0.75;
}

/* ---------- Tabellen ---------- */

.tabelle-umbruch { overflow-x: auto; }

table.daten {
  width: 100%;
  border-collapse: collapse;
  background: var(--weiss);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(20, 22, 26, 0.05);
}
table.daten th, table.daten td {
  padding: 0.9rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--linie);
}
table.daten th {
  background: var(--schwarz);
  color: var(--weiss);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
table.daten tr:last-child td { border-bottom: 0; }
table.daten tr:nth-child(even) td { background: #fbfaf8; }

/* ---------- Checkliste ---------- */

ul.checkliste { list-style: none; }
ul.checkliste li {
  position: relative;
  padding: 0.45rem 0 0.45rem 2.3rem;
}
ul.checkliste li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--rot);
  color: var(--weiss);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Vorstand ---------- */

.vorstand {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.person {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.person:hover { transform: translateY(-5px); box-shadow: var(--schatten); }
.person .initialen {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rot), var(--rot-dunkel));
  color: var(--weiss);
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.person .funktion {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rot);
  margin-bottom: 0.3rem;
}
.person h3 { font-size: 1.12rem; }
.person .kontakt { font-size: 0.9rem; color: var(--text-hell); margin-top: 0.4rem; word-break: break-word; }

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

.galerie-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.galerie-raster a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
}
.galerie-raster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.galerie-raster a:hover img { transform: scale(1.07); }
.galerie-raster a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 22, 26, 0.35), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
}
.galerie-raster a:hover::after { opacity: 1; }

/* Lightbox (Grossansicht) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 11, 14, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.offen { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: lb-rein 0.25s ease;
}
@keyframes lb-rein { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--weiss);
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox .lb-schliessen { top: 1.2rem; right: 1.2rem; }
.lightbox .lb-zurueck { left: 1rem; }
.lightbox .lb-weiter { right: 1rem; }

/* ---------- Call-to-Action Band ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--rot-dunkel), var(--rot));
  color: var(--weiss);
  text-align: center;
  padding: 4.5rem 0;
}
.cta-band h2 { color: var(--weiss); font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 0.8rem; }
.cta-band p { max-width: 60ch; margin: 0 auto 1.8rem; color: rgba(255, 255, 255, 0.88); }
.cta-band .btn-hell { border-color: rgba(255, 255, 255, 0.6); }

/* ---------- Fussbereich ---------- */

.site-footer {
  background: var(--schwarz);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}
.footer-spalten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.site-footer h4 {
  color: var(--weiss);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: rgba(255, 255, 255, 0.7); }
.site-footer a:hover { color: var(--weiss); }
.footer-unten {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Scroll-Einblendungen ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.sichtbar { opacity: 1; transform: none; }
/* Gestaffelte Verzögerung für Kartenreihen */
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

/* ---------- Barrierefreiheit: reduzierte Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .hero { min-height: 70vh; }

  .nav-toggle { display: block; }
  .hauptnav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--schwarz);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
  }
  .hauptnav.offen { display: block; }
  .hauptnav ul { flex-direction: column; padding: 0.8rem 4%; }
  .hauptnav a { padding: 0.8rem 1rem; font-size: 1rem; }
}

@media (max-width: 560px) {
  .abschnitt { padding: 3.2rem 0; }
  .hero-inhalt { padding: 4rem 0; }
  .brand-name { font-size: 0.95rem; }
}
