/* =========================================================
   Schiessverein Dickbuch — Design „Hell & präzise" (Variante 3)
   Weiss · Anthrazit · Schützen-Rot. Eigenständig, ohne Abhängigkeiten.
   ========================================================= */

:root {
  --brand: #161514;     /* Anthrazit: Überschriften, dunkle Flächen */
  --brand-deep: #1b1a18;/* Footer */
  --brand-2: #2a2826;   /* Hover dunkel */
  --gold: #c1121f;      /* Akzent Rot */
  --gold-dark: #c1121f; /* Akzent Rot (Labels) */
  --sand: #f6f5f2;      /* helle Alt-Fläche */
  --sand-2: #eeeae3;
  --ink: #161514;       /* Fliesstext */
  --paper: #ffffff;
  --muted: #6f6b66;
  --line: #e6e3dd;

  --font-head: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; letter-spacing: -.4px; margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Kopf / Navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .logo { height: 42px; width: auto; display: block; }
.brand .name { color: var(--ink); font-weight: 600; font-size: 18px; letter-spacing: -.3px; }
.brand .name small { display: block; font-weight: 600; font-size: 10.5px; letter-spacing: 2.5px; color: var(--gold); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 14.5px; padding: 9px 14px; border-radius: 6px; transition: color .15s; }
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }
.nav-cta { border: 1px solid var(--gold); color: var(--gold) !important; font-weight: 600; margin-left: 10px; padding: 8px 16px !important; }
.nav-cta:hover { background: var(--gold); color: #fff !important; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; text-decoration: none; padding: 12px 22px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s; }
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #8e0d16; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: var(--brand-2); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ---------- Hero (Startseite) ---------- */
.hero { position: relative; background: var(--paper); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .target { position: absolute; right: 6%; top: 64px; width: 220px; height: 220px; }
.hero .wrap { position: relative; padding: 92px 24px 84px; }
.hero-inner { max-width: 720px; }
.kicker { color: var(--gold); font-size: 11.5px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 22px; }
.hero h1 { font-size: clamp(38px, 6.2vw, 70px); font-weight: 600; color: var(--ink); }
.hero h1::after { content: ""; display: block; width: 64px; height: 4px; background: var(--gold); margin: 26px 0 0; }
.hero p.lead { font-size: 18.5px; color: var(--muted); max-width: 520px; margin: 26px 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Seitentitel-Band ---------- */
.page-hero { background: var(--sand); border-bottom: 1px solid var(--line); padding: 70px 0 60px; position: relative; overflow: hidden; }
.page-hero .target { position: absolute; right: 24px; top: 40px; width: 200px; }
.page-hero .kicker { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 48px); color: var(--ink); position: relative; }
.page-hero p { color: var(--muted); max-width: 560px; margin: 14px 0 0; position: relative; font-size: 17px; }

/* ---------- Sektionen ---------- */
.section { padding: 78px 0; }
.section.alt { background: var(--sand); }
.section.paper { background: var(--paper); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 40px); color: var(--ink); }
.section-head .eyebrow { color: var(--gold); font-size: 11.5px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px; }
.section-link { color: var(--gold); font-weight: 600; text-decoration: none; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.section-link:hover { color: #8e0d16; }
.section-link svg { width: 17px; height: 17px; }
.lead-narrow { max-width: 640px; color: var(--muted); font-size: 16.5px; }

/* ---------- Anlass-Karten (Top-Border, minimal) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.evt-card { background: transparent; border: 0; border-top: 2px solid var(--ink); border-radius: 0; padding: 18px 0 0; transition: border-color .15s; text-decoration: none; color: inherit; display: block; }
.evt-card:hover { border-color: var(--gold); }
.evt-card:hover h3 { color: var(--gold); }
.date-chip { display: inline-flex; flex-direction: row; align-items: baseline; gap: 6px; width: auto; height: auto; background: transparent; color: var(--gold); margin-bottom: 8px; }
.date-chip .d { font-size: 15px; font-weight: 600; line-height: 1; font-family: var(--font-body); letter-spacing: .5px; }
.date-chip .m { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.evt-card h3 { font-size: 23px; margin-bottom: 8px; color: var(--ink); transition: color .15s; }
.meta { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; }
.meta svg { width: 15px; height: 15px; flex: none; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* ---------- Ranglisten-/Dokumentenliste (Hairline) ---------- */
.rl-list { border-top: 1px solid var(--line); }
.rl-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 20px 4px; text-decoration: none; color: inherit; transition: background .12s; }
.rl-row:hover { background: var(--sand); }
.rl-row:hover .t { color: var(--gold); }
.rl-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.rl-ico { width: 38px; height: 38px; border-radius: 8px; background: transparent; color: var(--gold); display: grid; place-items: center; flex: none; }
.rl-ico svg { width: 22px; height: 22px; }
.rl-row .t { font-weight: 600; color: var(--ink); font-size: 16px; transition: color .12s; }
.rl-row .s { color: var(--muted); font-size: 13.5px; }
.rl-go { color: var(--gold); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.rl-go svg { width: 17px; height: 17px; }
.badge-res { display: inline-block; background: var(--sand-2); color: var(--gold-dark); font-size: 11px; font-weight: 600; letter-spacing: .3px; padding: 2px 9px; border-radius: 999px; margin-left: 8px; vertical-align: 1px; }
.rl-row .pages { color: var(--muted); }

/* ---------- Kennzahlen ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.stat { text-align: left; padding: 30px 22px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .n { font-size: 42px; font-weight: 600; color: var(--ink); line-height: 1; letter-spacing: -1px; }
.stat:first-child .n { color: var(--gold); }
.stat .l { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* ---------- Sponsoren ---------- */
.sponsors { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.sponsor { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px 24px; font-weight: 500; color: var(--muted); letter-spacing: .3px; font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-deep); color: #c9c4bd; padding: 56px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: var(--gold); font-family: var(--font-body); font-size: 11.5px; text-transform: uppercase; letter-spacing: 2px; margin: 0 0 14px; }
.site-footer a { color: #c9c4bd; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.foot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.foot-brand .name { color: #fff; font-family: var(--font-head); font-size: 21px; font-weight: 600; }
.foot-contact { font-size: 14.5px; line-height: 1.9; }
.foot-bottom { border-top: 1px solid #34322e; margin-top: 34px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: #8b867e; }

/* ---------- Jahr-Filter (Tabs) ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.tab { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; transition: all .15s; }
.tab.active { background: var(--gold); color: #fff; border-color: var(--gold); }
.tab:hover:not(.active) { border-color: var(--gold); }
.year-group { display: none; }
.year-group.show { display: block; }

/* ---------- Online-Tabelle (sortierbar) ---------- */
.table-scroll { overflow-x: auto; border-radius: 12px; }
.result-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.result-table th, .result-table td { text-align: left; padding: 12px 16px; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.result-table thead th { background: var(--brand); color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 12.5px; letter-spacing: .4px; text-transform: uppercase; }
.result-table tbody tr:nth-child(even) { background: var(--sand); }
.result-table tbody tr:last-child td { border-bottom: 0; }
.result-table td.rank { font-weight: 700; color: var(--gold-dark); width: 56px; }
.result-table td.pts { font-weight: 600; text-align: right; }
.result-table td.kat { color: var(--muted); }
.result-table th.sortable { cursor: pointer; white-space: nowrap; }
.result-table th.sortable:hover { background: var(--brand-2); }
.result-table th .ar { opacity: .55; font-size: 10px; margin-left: 4px; }
.kranz { color: var(--gold-dark); margin-left: 6px; }
.medal { color: var(--gold-dark); }

/* ---------- Jahresprogramm-Tabelle ---------- */
.subhead { display: flex; align-items: center; gap: 12px; margin: 36px 0 16px; }
.subhead:first-child { margin-top: 0; }
.subhead .pin { width: 38px; height: 38px; border-radius: 10px; background: var(--sand); color: var(--gold-dark); display: grid; place-items: center; flex: none; }
.subhead .pin svg { width: 20px; height: 20px; }
.subhead h3 { color: var(--ink); font-size: 22px; }
.subhead .pin-sub { color: var(--muted); font-size: 13.5px; }

.prog-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.prog-table th, .prog-table td { padding: 11px 15px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prog-table thead th { background: var(--brand); color: #fff; font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; }
.prog-table tbody tr:nth-child(even) { background: var(--sand); }
.prog-table tbody tr:last-child td { border-bottom: 0; }
.prog-table td.mon { font-weight: 600; color: var(--gold-dark); white-space: nowrap; width: 92px; }
.prog-table td.day { white-space: nowrap; font-weight: 600; color: var(--ink); width: 132px; }
.prog-table td.time { white-space: nowrap; color: var(--muted); width: 120px; }
.prog-table td .hl { color: var(--gold-dark); font-weight: 600; }

.info-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.info-card h4 { font-family: var(--font-head); color: var(--ink); font-size: 17px; font-weight: 600; margin: 0 0 10px; }
.info-card ul { margin: 0; padding-left: 18px; }
.info-card li { font-size: 14px; margin-bottom: 5px; }
.info-card li b { color: var(--gold-dark); font-weight: 600; }

/* ---------- Info-Box ---------- */
.note { background: var(--sand); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; padding: 16px 18px; font-size: 14.5px; color: var(--ink); margin: 24px 0; }
.note strong { color: var(--ink); }
.note code { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: 13px; }

/* ---------- Timeline (Geschichte) ---------- */
.timeline { position: relative; margin: 10px 0 0; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 26px; }
.tl-item::before { content: ""; position: absolute; left: -28px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); }
.tl-year { font-family: var(--font-head); font-weight: 600; color: var(--gold-dark); font-size: 18px; }
.tl-item p { margin: 4px 0 0; color: var(--ink); }

/* ---------- Foto-Platzhalter ---------- */
.photo-ph { background: var(--sand); border: 1px solid var(--line); color: var(--muted); border-radius: 14px; display: grid; place-items: center; min-height: 220px; text-align: center; font-size: 14px; padding: 20px; }
.photo-ph svg { width: 34px; height: 34px; color: var(--gold); margin-bottom: 8px; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 10px 18px 18px; gap: 2px; border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; border-radius: 8px; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .stat { border-left: 0; padding: 18px 0; }
}
@media (max-width: 620px) {
  .prog-table td.mon { width: auto; }
}

/* ---------- Zielscheibe: blinkender schwarzer Punkt ---------- */
@keyframes sv-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
.target .bull { animation: sv-blink 2.4s step-end infinite; }
@media (prefers-reduced-motion: reduce) { .target .bull { animation: none; } }
