/* ============================================================
   Sportschützen Seengen – Public Stylesheet
   Design: "Präzision" – Navy / Messing / Ziel-Rot, Barlow Condensed
   ============================================================ */

:root {
  /* Farbpalette: Blau / Schwarz / Weiss.
     Hauptfarbe #0050B4, Links #0072FF, Menü-Hellblau #77B4FF.
     Variablennamen historisch "navy"/"brass" – Werte sind jetzt Blautöne. */
  --navy: #0050b4;        /* Hauptfarbe */
  --navy-2: #004097;      /* dunkler, für Verläufe */
  --steel: #00448f;
  --steel-line: #2f63b4;
  --paper: #f2f6fc;
  --paper-2: #ffffff;
  --ink: #12161d;         /* Schwarz */
  --muted: #57647a;
  --brass: #0072ff;       /* Akzent = Links-Blau */
  --brass-soft: #bcd7ff;  /* heller Akzent auf dunklem Grund */
  --red: #e23a2e;         /* Akzentfarbe Rot (Ziel-/Buttons) */
  --red-dark: #c22a20;
  --white: #ffffff;

  --blue-light: #77b4ff;  /* Menü-Hellblau */
  --navy-rgb: 0, 80, 180; /* fuer Overlays */

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Roboto", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1160px;
  --radius: 4px;
  --shadow: 0 18px 50px -24px rgba(15, 34, 28, 0.5);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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; }

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

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: 0.005em; margin: 0; }

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

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  padding: 13px 26px; border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-soft); }

/* On light sections */
.section .btn-ghost { border-color: var(--steel-line); color: var(--ink); }
.section .btn-ghost:hover { border-color: var(--brass); color: #0072ff; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #dfe7f2;
  color: var(--ink);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; color: var(--navy); flex: none; }
.brand-logo { height: 56px; width: auto; flex: none; filter: drop-shadow(0 3px 6px rgba(0,80,180,0.22)); transition: transform 0.3s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-2deg) scale(1.04); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.02em; color: var(--ink); }
.brand-place { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.42em; color: var(--navy); text-transform: uppercase; margin-top: 2px; }

.mainnav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.mainnav a {
  display: block; text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 8px 14px; border-radius: var(--radius);
  position: relative; transition: color 0.2s, background 0.2s;
}
.mainnav a:hover { color: var(--navy); background: rgba(0,80,180,0.07); }
.mainnav a.is-active { color: var(--white); background: var(--navy); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: transform 0.3s, opacity 0.3s; }

/* Dropdown (Schiessanlässe) */
.mainnav .has-dropdown { position: relative; }
.mainnav .caret { display: inline-block; width: 0; height: 0; margin-left: 7px; vertical-align: middle; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: 0.75; transition: transform 0.25s var(--ease); }
.mainnav .has-dropdown:hover .caret, .mainnav .has-dropdown:focus-within .caret { transform: rotate(180deg); }
.mainnav .dropdown {
  display: block; position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #ffffff; border: 1px solid #dfe7f2; border-radius: 0 0 8px 8px;
  padding: 6px; margin: 0; list-style: none; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.mainnav .dropdown li { width: 100%; margin: 0; }
.mainnav .has-dropdown:hover .dropdown, .mainnav .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.mainnav .dropdown a { display: block; padding: 10px 14px; font-size: 1rem; letter-spacing: 0.03em; border-radius: 4px; color: var(--ink); }
.mainnav .dropdown a::after { display: none; }
.mainnav .dropdown a:hover { background: rgba(0,80,180,0.07); color: var(--navy); }
.mainnav .dropdown a.is-active { background: var(--navy); color: #fff; }

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

.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
/* Grün-Verlauf: links/unten kräftig (Text lesbar), rechts oben gibt die Landschaft frei */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(var(--navy-rgb),0.95) 0%, rgba(var(--navy-rgb),0.88) 34%, rgba(var(--navy-rgb),0.6) 62%, rgba(var(--navy-rgb),0.32) 100%),
    linear-gradient(0deg, rgba(var(--navy-rgb),0.75) 0%, rgba(var(--navy-rgb),0) 42%);
}
.hero-inner {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px;
  align-items: center; padding: 96px 24px 104px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--brass-soft); margin: 0 0 22px;
}
.eyebrow .tick { width: 26px; height: 2px; background: var(--red); display: inline-block; }
.hero-copy h1 { font-size: clamp(2.9rem, 6vw, 4.9rem); text-transform: uppercase; letter-spacing: 0.01em; }
.hero-copy .lead { font-size: 1.18rem; color: rgba(255,255,255,0.78); max-width: 30em; margin: 26px 0 34px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; margin: 0; padding: 0; }
.hero-stats li { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.08em; color: rgba(255,255,255,0.72); }
.hero-stats .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

/* Hero card – scoreboard */
.hero-card {
  background: rgba(var(--navy-rgb), 0.66);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 26px 24px;
  box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.card-kicker { font-family: var(--font-body); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.01em; color: #fff; }
.card-more { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; color: var(--brass-soft); text-decoration: none; transition: color 0.2s; }
.card-more:hover { color: var(--white); }
.card-empty { color: rgba(255,255,255,0.6); font-size: 0.95rem; }

.event-strip { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.event-strip li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 15px 6px; border-radius: 10px; border-bottom: 1px solid rgba(255,255,255,0.07); transition: background 0.25s var(--ease); }
.event-strip li:last-child { border-bottom: 0; }
.event-strip li:hover { background: rgba(255,255,255,0.05); }
.date-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 54px; height: 54px; background: rgba(255,255,255,0.07); border-radius: 12px; }
.date-day { font-family: var(--font-body); font-weight: 600; font-size: 1.3rem; color: var(--white); line-height: 1; }
.date-mon { font-family: var(--font-body); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brass-soft); margin-top: 3px; }
.event-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.event-title { font-weight: 600; font-size: 1.02rem; color: var(--white); line-height: 1.25; }
.event-meta { font-size: 0.85rem; color: rgba(255,255,255,0.66); line-height: 1.4; }
.event-cat { --cat: var(--brass); font-size: 0.72rem; font-weight: 600; color: var(--ink); background: #ffffff; border-radius: 999px; padding: 5px 12px; white-space: nowrap; box-shadow: 0 2px 6px -2px rgba(0,0,0,0.35); }
.event-cat::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cat); margin-right: 7px; vertical-align: middle; }

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

.section { padding: 84px 0; }
.section-alt { background: var(--paper-2); border-top: 1px solid #e2eaf4; border-bottom: 1px solid #e2eaf4; }
.section-head { display: flex; align-items: center; gap: 18px; margin-bottom: 44px; }
.section-tick { flex: none; display: inline-flex; align-items: center; line-height: 0; }
.section-tick svg { width: 64px; height: 15px; display: block; overflow: visible; }
.section-tick .s-line { fill: var(--brass); }
.section-tick .s-bullet { fill: var(--red); }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); text-transform: uppercase; letter-spacing: 0.01em; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature { background: var(--paper-2); border: 1px solid #e2eaf4; border-radius: 6px; padding: 32px; position: relative; transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #ded8c6; }
.feature-ring { display: block; width: 46px; height: 46px; color: var(--navy); margin-bottom: 20px; transition: transform 0.5s var(--ease); }
.feature-ring svg { width: 100%; height: 100%; }
.feature:hover .feature-ring { transform: rotate(90deg); }
.feature h3 { font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 12px; }
.feature p { color: var(--muted); margin: 0; }

/* Split cards (Ranglisten / Programm teaser) */
.section-split { padding-top: 0; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.split-card {
  display: block; text-decoration: none; color: var(--white);
  background: var(--navy); border: 1px solid var(--steel-line); border-radius: 6px;
  padding: 40px; position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.split-icon { position: absolute; right: 26px; bottom: 22px; width: 116px; height: 116px; color: var(--brass); opacity: 0.24; transition: transform 0.4s var(--ease), opacity 0.4s; pointer-events: none; }
.split-icon svg { width: 100%; height: 100%; }
.split-card:hover { transform: translateY(-4px); border-color: var(--brass); }
.split-card:hover .split-icon { transform: translateY(-4px) rotate(-4deg); opacity: 0.4; }
.split-kicker { position: relative; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-soft); }
.split-card h3 { position: relative; font-size: 2.3rem; text-transform: uppercase; margin: 10px 0 12px; }
.split-card p { color: rgba(255,255,255,0.75); margin: 0 0 22px; position: relative; }
.split-card p strong { color: var(--brass-soft); font-family: var(--font-mono); }
.split-arrow { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--white); position: relative; }

/* ---------------------------------------------------------- Page hero (inner pages) */

.page-hero { background: var(--navy); color: var(--white); padding: 60px 0 60px; position: relative; overflow: hidden; border-bottom: 1px solid var(--steel-line); }
.hero-rings-sm { position: absolute; top: 50%; right: -220px; transform: translateY(-50%); width: 460px; height: 460px; color: rgba(255,255,255,0.06); pointer-events: none; }
.hero-rings-sm svg { width: 100%; height: 100%; }
.crumbs { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 18px; position: relative; }
.crumbs a { color: var(--brass-soft); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-current] { color: rgba(255,255,255,0.85); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); text-transform: uppercase; position: relative; }
.page-hero .lead { color: rgba(255,255,255,0.76); max-width: 40em; margin-top: 16px; font-size: 1.1rem; position: relative; }

/* Seiten-Header mit Hintergrundbild */
.page-hero-img { padding: 84px 0 76px; }
.page-hero-img .wrap { position: relative; z-index: 2; }
.page-hero-media { position: absolute; inset: 0; z-index: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.page-hero-img::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--navy-rgb),0.66) 0%, rgba(var(--navy-rgb),0.80) 60%, rgba(var(--navy-rgb),0.90) 100%);
}
.page-hero-img .lead { color: rgba(255,255,255,0.88); }

/* ---------------------------------------------------------- Downloads / Year blocks */

.section-downloads { padding-top: 64px; }
.year-list { display: flex; flex-direction: column; gap: 20px; }
.year-block { background: var(--paper-2); border: 1px solid #e2eaf4; border-radius: 6px; overflow: hidden; }
.year-head { display: flex; align-items: center; gap: 16px; padding: 20px 26px; background: linear-gradient(180deg, #f8fbff, #eef3fb); border-bottom: 1px solid #e2eaf4; }
.year-ring { width: 40px; height: 40px; color: var(--navy); flex: none; }
.year-ring svg { width: 100%; height: 100%; }
.year-label { font-family: var(--font-mono); font-weight: 600; font-size: 1.9rem; color: var(--navy); letter-spacing: 0.02em; }
.year-count { margin-left: auto; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border: 1px solid #dbe4f0; border-radius: 999px; padding: 4px 12px; }

.file-rows { list-style: none; margin: 0; padding: 0; }
.file-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 16px 26px; border-bottom: 1px solid #eef2f8; transition: background 0.2s; }
.file-row:last-child { border-bottom: 0; }
.file-row:hover { background: #f4f8ff; }
.file-ext { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em; color: var(--red); background: rgba(226,58,46,0.08); border: 1px solid rgba(226,58,46,0.2); border-radius: var(--radius); padding: 8px 10px; }
.file-info { display: flex; flex-direction: column; min-width: 0; }
.file-title { font-weight: 600; color: var(--ink); }
.file-sub { font-size: 0.8rem; color: var(--muted); font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; }
.file-actions { display: flex; gap: 8px; }
.btn-file { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; padding: 8px 16px; border-radius: var(--radius); border: 1.5px solid var(--steel-line); color: var(--navy); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn-file-view:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }
.btn-file-dl { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-file-dl:hover { background: var(--red); border-color: var(--red); }

/* Empty states */
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); max-width: 34em; margin: 0 auto; }
.empty-state.small { padding: 32px 20px; }
.empty-mark { width: 64px; height: 64px; color: #b8c8de; margin: 0 auto 20px; }

/* ---------------------------------------------------------- Agenda (Anlässe) */

.agenda { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.agenda-row { --cat: var(--brass); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; background: var(--paper-2); border: 1px solid #e2eaf4; border-radius: 6px; padding: 18px 24px; transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s; }
.agenda-row:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #ded8c6; }
.agenda-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 62px; padding-bottom: 8px; border-bottom: 2px solid var(--cat); }
.agenda-day { font-family: var(--font-mono); font-weight: 600; font-size: 1.9rem; color: var(--navy); line-height: 1; }
.agenda-mon { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cat); margin-top: 3px; }
.agenda-year { font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); margin-top: 2px; }
.agenda-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.agenda-title { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.1; }
.agenda-desc { color: var(--muted); font-size: 0.95rem; }
.agenda-meta { display: flex; flex-wrap: wrap; gap: 16px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); margin-top: 3px; }
.agenda-cat { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); border: 1px solid #d7e1ee; border-radius: 999px; padding: 5px 12px 5px 10px; white-space: nowrap; }
.agenda-cat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cat); flex: none; }

/* Discipline cards */
.discipline-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.discipline-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--paper-2); border: 1px solid #dbe4f0; border-radius: 6px; padding: 30px; position: relative; transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s; }
.discipline-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brass); }
.discipline-card h3 { font-size: 1.7rem; text-transform: uppercase; margin: 0 0 10px; }
.discipline-teaser { font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.discipline-text { color: var(--muted); margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.discipline-more { margin-top: auto; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--navy); }
.discipline-card:hover .discipline-more { color: var(--red); }

/* ---------------------------------------------------------- Prose / side card */

.prose-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.prose h2 { font-size: 2rem; text-transform: uppercase; margin-bottom: 14px; }
.prose h3 { font-size: 1.4rem; text-transform: uppercase; margin: 28px 0 10px; }
.prose p { color: #2a2f38; margin: 0 0 16px; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; color: #2a2f38; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--brass); }
.check-list li::after { content: ""; position: absolute; left: 5px; top: 12px; width: 4px; height: 4px; border-radius: 50%; background: var(--red); }

.side-card { background: var(--navy); color: var(--white); border-radius: 6px; padding: 30px; position: sticky; top: 100px; }
.side-card h3 { font-size: 1.6rem; text-transform: uppercase; margin-bottom: 12px; }
.side-card p { color: rgba(255,255,255,0.78); margin: 0 0 18px; }
.side-card .btn { width: 100%; justify-content: center; }
.side-note { font-size: 0.85rem; margin-top: 18px !important; }
.side-note a { color: var(--brass-soft); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-block h2 { font-size: 1.8rem; text-transform: uppercase; margin-bottom: 14px; }
.contact-block h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 22px 0 6px; color: var(--muted); }
.contact-block address { font-style: normal; color: #2a2f38; line-height: 1.8; }
.contact-block a { color: #0072ff; }

.contact-mail { font-family: var(--font-mono); font-size: 1.05rem; }

/* Vorstand */
.vorstand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vorstand-card { display: flex; flex-direction: column; gap: 4px; background: var(--paper-2); border: 1px solid #e2eaf4; border-radius: 6px; padding: 20px 22px; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.vorstand-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.vorstand-role { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); }
.vorstand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.01em; color: var(--ink); }
.vorstand-mail { font-family: var(--font-mono); font-size: 0.82rem; color: #0072ff; text-decoration: none; word-break: break-all; }
.vorstand-mail:hover { color: var(--red); }

/* ---------------------------------------------------------- Disziplin-Unterseiten */

.disc-subnav { background: var(--paper-2); border-bottom: 1px solid #e2eaf4; position: sticky; top: 76px; z-index: 20; }
.disc-subnav-inner { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; padding-bottom: 14px; }
.disc-pill { text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); padding: 8px 16px; border-radius: 999px; border: 1.5px solid #d7e1ee; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.disc-pill:hover { border-color: var(--brass); color: var(--ink); }
.disc-pill.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.content-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; }
.content { max-width: 68ch; }
.content-lead { font-size: 1.15rem; line-height: 1.75; color: #2a2f38; margin: 0 0 18px; }
.content-block { margin-top: 34px; }
.content-block h2 { font-size: 1.55rem; text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--brass); }
.content-block p { color: #2a2f38; margin: 0 0 12px; }
.content-list { list-style: none; margin: 0 0 8px; padding: 0; }
.content-list li { position: relative; padding: 9px 0 9px 26px; border-bottom: 1px solid #e7edf6; color: #2a2f38; }
.content-list li:last-child { border-bottom: 0; }
.content-list li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }
.content-note { background: #eaf2fe; border: 1px solid #bcd6f7; border-radius: 6px; padding: 13px 16px; color: var(--ink) !important; font-size: 0.95rem; font-weight: 500; margin-top: 14px !important; }
.content-side .side-card { position: sticky; top: 150px; }

/* 404 */
.section-404 { text-align: center; padding: 120px 0; }
.section-404 h1 { font-size: 4rem; text-transform: uppercase; margin: 10px 0; }
.section-404 p { color: var(--muted); }
.section-404 a { color: #0072ff; }

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

.site-footer { background: var(--navy); color: rgba(255,255,255,0.72); padding: 64px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand .brand-mark { width: 46px; height: 46px; color: var(--brass); margin-bottom: 14px; }
.footer-logo { height: 104px; width: auto; margin-bottom: 16px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)); }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--white); text-transform: uppercase; margin: 0; }
.footer-tag { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--brass-soft); margin: 4px 0 0; }
.footer-col h4 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--white); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: rgba(255,255,255,0.72); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--brass-soft); }
.footer-col address { font-style: normal; line-height: 1.8; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-top: 1px solid var(--steel-line); font-family: var(--font-mono); font-size: 0.76rem; }
.footer-bottom a { color: var(--brass-soft); text-decoration: none; }
.footer-bottom p { margin: 0; }

/* ---------------------------------------------------------- Beiträge / Posts */

.section-head .section-link { margin-left: auto; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; color: #0072ff; font-size: 1.05rem; }
.section-head .section-link:hover { color: var(--red); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.04em;
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid #d7e1ee; color: var(--muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s; --chip: var(--brass);
}
.filter-chip .chip-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--chip); }
.filter-chip:hover { border-color: var(--chip); color: var(--ink); }
.filter-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--paper-2); border: 1px solid #e2eaf4; border-radius: 8px; overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.section-alt .post-card { background: var(--paper); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.post-thumb { position: relative; aspect-ratio: 16 / 10; background: var(--navy); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb-empty { background: linear-gradient(140deg, #10263a, #0b1b2b); color: rgba(255,255,255,0.14); }
.post-thumb-empty svg { width: 78px; height: 78px; }
.post-badge {
  position: absolute; top: 12px; left: 12px; --chip: var(--brass);
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: var(--chip); border-radius: 999px; padding: 4px 11px;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,0.5);
}
.post-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-date { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.post-title { font-size: 1.45rem; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.08; margin: 8px 0 10px; }
.post-excerpt { color: var(--muted); margin: 0 0 16px; font-size: 0.96rem; }
.post-more { margin-top: auto; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--navy); }
.post-card:hover .post-more { color: var(--red); }

/* Single article */
.article-hero { background: var(--navy); color: #fff; padding: 60px 0 44px; position: relative; overflow: hidden; border-bottom: 1px solid var(--steel-line); }
.article-hero::before { content: ""; position: absolute; right: -150px; top: -120px; width: 400px; height: 400px; border-radius: 50%; border: 60px solid rgba(255,255,255,0.04); }
.article-back { display: inline-block; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--brass-soft); text-decoration: none; margin-bottom: 18px; position: relative; }
.article-back:hover { color: #fff; }
.article-badge { position: static; display: inline-block; margin-bottom: 14px; }
.article-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); text-transform: uppercase; max-width: 18ch; position: relative; }
.article-date { display: block; margin-top: 14px; font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.06em; color: rgba(255,255,255,0.6); position: relative; }
.article-wrap { max-width: 760px; padding-top: 46px; padding-bottom: 20px; }
.article-figure { margin: 0 0 34px; border-radius: 8px; overflow: hidden; border: 1px solid #e2eaf4; }
.article-figure img { width: 100%; display: block; }
.article-body { font-size: 1.12rem; line-height: 1.8; color: #2a2f38; }
.article-body p { margin: 0 0 22px; }
.related { border-top: 1px solid #e2eaf4; margin-top: 30px; }

/* Bildergalerie im Beitrag */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 34px 0 8px; }
.gallery-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; border: 1px solid #e2eaf4; background: var(--paper); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }

/* ---------------------------------------------------------- Motion */

/* Scroll-Reveal – nur wenn JS aktiv ist, sonst sofort sichtbar */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Hero-Eingang: ein einziger, orchestrierter Moment beim Laden */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes heroZoom { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero-media img { animation: heroZoom 7s var(--ease) both; }
.hero-copy > * { animation: rise 0.85s var(--ease) both; }
.hero-copy > *:nth-child(1) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.32s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.40s; }
.hero-card { animation: rise 0.9s var(--ease) 0.42s both; }

/* ---------------------------------------------------------- Focus & motion */

a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible, .btn-file:focus-visible {
  outline: 3px solid var(--brass); outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .hero-copy > *, .hero-card, .hero-media img { opacity: 1 !important; transform: none !important; }
}

html.nav-open { overflow: hidden; }

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

/* Navigation früher aufs Menü umschalten (7 Punkte brauchen Platz) */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .mainnav {
    position: fixed; inset: 76px 0 auto 0; background: #ffffff;
    border-bottom: 1px solid #dfe7f2; box-shadow: var(--shadow); overflow: auto; max-height: calc(100vh - 76px);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .mainnav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .mainnav ul { flex-direction: column; padding: 12px 24px 24px; gap: 2px; }
  .mainnav a { padding: 14px 8px; font-size: 1.2rem; border-bottom: 1px solid #eef2f8; }
  /* Dropdown im Mobilmenü als eingerückte Liste */
  .mainnav .caret { display: none; }
  .mainnav .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 6px 16px; min-width: 0; }
  .mainnav .dropdown a { padding: 12px 8px; font-size: 1.02rem; border-bottom: 1px solid #eef2f8; color: var(--ink); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; padding: 56px 24px 64px; }
  /* Auf schmalen Screens gleichmässig dunkler Verlauf -> Text immer lesbar */
  .hero::before {
    background:
      linear-gradient(180deg, rgba(var(--navy-rgb),0.72) 0%, rgba(var(--navy-rgb),0.88) 60%, rgba(var(--navy-rgb),0.95) 100%);
  }
  .hero-media img { object-position: 50% 34%; }
  .feature-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .split-grid, .discipline-grid, .prose-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .content-wrap { grid-template-columns: 1fr; gap: 34px; }
  .content-side .side-card { position: static; }
  .vorstand-grid { grid-template-columns: 1fr 1fr; }
  .disc-subnav { position: static; }
  .disc-subnav-inner { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .disc-pill { white-space: nowrap; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .section { padding: 60px 0; }
  .file-row { grid-template-columns: 1fr; gap: 12px; }
  .file-actions { width: 100%; }
  .btn-file { flex: 1; text-align: center; justify-content: center; }
  .post-grid { grid-template-columns: 1fr; }
  .vorstand-grid { grid-template-columns: 1fr; }
  .agenda-row { grid-template-columns: auto 1fr; }
  .agenda-cat { grid-column: 2; justify-self: start; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
