/* =========================================================================
   SVM Modern – Stylesheet für den Schützenverein Marianne von 1971 e.V.
   Keine externen Schriften, keine CDNs, keine Cookies.
   Farbwelt abgeleitet vom Vereinswappen: Marineblau, Gold, Sandweiß.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Design-Token
   ------------------------------------------------------------------------- */
:root {
  /* Markenfarben */
  --navy-900: #08131f;
  --navy-800: #0d2135;
  --navy-700: #102a45;
  --navy-600: #17395c;
  --gold-600: #9c7420;
  --gold-500: #b8862b;
  --gold-400: #d4a53f;
  --gold-300: #e8c470;

  /* Flächen und Text (helles Design) */
  --bg: #f4f6f8;
  --bg-alt: #eaeef2;
  --surface: #ffffff;
  --surface-2: #f8fafb;
  --text: #14202c;
  --text-muted: #566675;
  --border: #dde3e9;
  --border-strong: #c6d0da;
  --accent: var(--gold-600);
  --accent-soft: rgba(184, 134, 43, 0.12);
  --brand: var(--navy-700);
  --on-brand: #ffffff;

  --shadow-sm: 0 1px 2px rgba(8, 19, 31, 0.06), 0 1px 3px rgba(8, 19, 31, 0.05);
  --shadow-md: 0 4px 14px rgba(8, 19, 31, 0.08), 0 2px 6px rgba(8, 19, 31, 0.04);
  --shadow-lg: 0 18px 40px rgba(8, 19, 31, 0.14), 0 4px 12px rgba(8, 19, 31, 0.06);

  /* Maße */
  --wrap: 1140px;
  --wrap-narrow: 760px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --gap: clamp(1rem, 2.5vw, 1.75rem);
  --section-y: clamp(3rem, 7vw, 5.5rem);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    "Noto Sans", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: light;
}

/* Dunkles Design – automatisch nach Systemeinstellung … */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1520;
    --bg-alt: #0d1c2a;
    --surface: #10202e;
    --surface-2: #152838;
    --text: #e7eef6;
    --text-muted: #96a8ba;
    --border: #20364b;
    --border-strong: #2c4761;
    --accent: var(--gold-300);
    --accent-soft: rgba(232, 196, 112, 0.14);
    --brand: #0d2135;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}

/* … und per Schalter in der Kopfzeile umstellbar. */
:root[data-theme="dark"] {
  --bg: #0a1520;
  --bg-alt: #0d1c2a;
  --surface: #10202e;
  --surface-2: #152838;
  --text: #e7eef6;
  --text-muted: #96a8ba;
  --border: #20364b;
  --border-strong: #2c4761;
  --accent: var(--gold-300);
  --accent-soft: rgba(232, 196, 112, 0.14);
  --brand: #0d2135;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

/* -------------------------------------------------------------------------
   2. Grundlagen
   ------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.97rem + 0.16vw, 1.075rem);
  line-height: 1.7;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 1.4rem + 2.3vw, 3rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); }

p { margin: 0 0 1.1em; }

a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: 0.2em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover { text-decoration-color: currentColor; }

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

hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 2.5rem 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.muted { color: var(--text-muted); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* Nur für Screenreader sichtbar */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* -------------------------------------------------------------------------
   3. Layout-Hilfen
   ------------------------------------------------------------------------- */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); }

.section { padding-block: var(--section-y); }
.section--tint { background: var(--bg-alt); }

.section__head {
  max-width: 62ch;
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}
.section__head p { color: var(--text-muted); margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

main { display: block; }

/* -------------------------------------------------------------------------
   4. Kopfzeile und Navigation
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  flex: 0 1 auto;
  min-width: 0;
}
.brand__logo {
  width: auto;
  height: 2.75rem;
  border-radius: 5px;
  flex: none;
}
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.1rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__list a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.site-nav__list a:hover { background: var(--accent-soft); color: var(--accent); }
.site-nav__list a.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-left: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: pointer;
  flex: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--border-strong); }
.theme-toggle svg {
  grid-area: 1 / 1;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Menüknopf – nur auf kleinen Bildschirmen sichtbar. Das Ankreuzfeld bleibt
   für die Tastatur erreichbar, ist aber optisch durch den Knopf ersetzt. */
.nav-burger { display: none; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .site-header__inner { flex-wrap: wrap; }

  .nav-toggle {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip-path: inset(50%);
    overflow: hidden;
  }
  .nav-toggle:focus-visible ~ .site-header__inner .nav-burger {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
  }

  .nav-burger {
    display: grid;
    gap: 5px;
    padding: 0.7rem 0.6rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    order: 3;
  }
  .nav-burger__bar {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.22s ease, opacity 0.22s ease;
  }
  .nav-toggle:checked ~ .site-header__inner .nav-burger__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle:checked ~ .site-header__inner .nav-burger__bar:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .site-header__inner .nav-burger__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.28s ease, opacity 0.2s ease, padding 0.28s ease;
  }
  .nav-toggle:checked ~ .site-header__inner .site-nav {
    max-height: 34rem;
    opacity: 1;
    padding-bottom: 1.1rem;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
  }
  .site-nav__list a { padding: 0.7rem 0.8rem; font-size: 1rem; }
  .theme-toggle { margin-left: 0.8rem; }
}

/* -------------------------------------------------------------------------
   5. Schaltflächen
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
  color: #201603;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { box-shadow: var(--shadow-lg); }

.btn--ghost {
  border-color: color-mix(in srgb, currentColor 35%, transparent);
  color: inherit;
  background: transparent;
}
.btn--ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }

.btn--outline {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--surface);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* -------------------------------------------------------------------------
   6. Startseite: Bühne
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  color: #f2f6fb;
  background:
    radial-gradient(circle at 80% 26%, rgba(212, 165, 63, 0.22), transparent 46%),
    repeating-radial-gradient(circle at 80% 26%,
      transparent 0 44px, rgba(255, 255, 255, 0.05) 44px 45px),
    linear-gradient(155deg, var(--navy-900) 0%, var(--navy-700) 48%, var(--navy-600) 100%);
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 5rem;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: -1;
  opacity: 0.9;
}

.hero__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}
@media (min-width: 880px) {
  .hero__inner { grid-template-columns: 1.15fr 0.85fr; }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.9rem 0.35rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 1.4rem;
}
.hero__eyebrow img { height: 1.7rem; width: auto; border-radius: 4px; }

.hero h1 {
  color: #fff;
  margin-bottom: 0.7rem;
}
.hero h1 span { color: var(--gold-300); display: block; }

.hero__lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  color: rgba(233, 240, 248, 0.82);
  max-width: 46ch;
  margin-bottom: 0;
}

.hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

.hero__figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  aspect-ratio: 16 / 11;
}
.hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 45%;
}
.hero__figure figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1.1rem 0.9rem;
  font-size: 0.85rem;
  color: #eef3f9;
  background: linear-gradient(to top, rgba(8, 19, 31, 0.85), transparent);
}

/* Kennzahlen unterhalb der Bühne */
.hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero__fact {
  background: linear-gradient(180deg, rgba(8, 19, 31, 0.35), rgba(8, 19, 31, 0.55));
  padding: 1.35rem 1rem;
  text-align: center;
}
.hero__fact b {
  display: block;
  font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem);
  font-weight: 700;
  color: var(--gold-300);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero__fact span {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(233, 240, 248, 0.72);
}
/* für längere Werte wie "Di · Do · So" */
.hero__fact--klein b { font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.35rem); }

/* -------------------------------------------------------------------------
   7. Karten und Raster
   ------------------------------------------------------------------------- */
.cards {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
}
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card--link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.card__link { text-decoration: none; color: inherit; }
.card__more {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent);
}
.card__more::after { content: " →"; }

.card__icon {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}
.card__icon svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Disziplinenliste in Karten */
.disziplinen {
  list-style: none;
  margin: 0;
  padding: 0;
}
.disziplinen li {
  position: relative;
  padding: 0.42rem 0 0.42rem 1.6rem;
  border-bottom: 1px dashed var(--border);
  font-size: 0.96rem;
}
.disziplinen li:last-child { border-bottom: 0; padding-bottom: 0; }
.disziplinen li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.05rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 2px solid var(--accent);
}

/* -------------------------------------------------------------------------
   8. Hinweisbox
   ------------------------------------------------------------------------- */
.notice {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border));
  background: var(--accent-soft);
  box-shadow: var(--shadow-sm);
}
.notice__icon {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.15rem;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.notice p { margin: 0; }
.notice strong { display: block; }

/* -------------------------------------------------------------------------
   9. Seitenkopf der Unterseiten
   ------------------------------------------------------------------------- */
.page-head {
  background:
    radial-gradient(circle at 88% 0%, rgba(212, 165, 63, 0.16), transparent 55%),
    linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.page-head h1 { color: #fff; margin-bottom: 0.35rem; }
.page-head p { color: rgba(233, 240, 248, 0.78); margin: 0; max-width: 60ch; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  font-size: 0.84rem;
  color: rgba(233, 240, 248, 0.65);
}
.breadcrumb a { color: var(--gold-300); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.55; }

/* -------------------------------------------------------------------------
   10. Fließtext (Markdown-Ausgabe)
   ------------------------------------------------------------------------- */
.prose {
  max-width: 68ch;
}
.prose--wide { max-width: none; }

.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }

.prose h2 {
  margin-top: 2.4em;
  padding-top: 0.2em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.9em; }

.prose ul, .prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--accent); }

.prose img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-block: 1.75rem;
}

.prose blockquote {
  margin: 1.75rem 0;
  padding: 0.4rem 0 0.4rem 1.25rem;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
  font-style: italic;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1em 0.35em;
}
.prose pre {
  background: var(--navy-900);
  color: #e6edf5;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
}
.prose pre code { background: none; border: 0; padding: 0; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.prose th, .prose td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.prose th { background: var(--surface-2); font-weight: 600; }

.table-scroll { overflow-x: auto; }

/* Karte im Fließtext (z. B. Anfahrtsskizze) */
.prose figure { margin: 1.75rem 0; }
.prose figure figcaption {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* -------------------------------------------------------------------------
   11. Beitragsliste (Aktuelles)
   ------------------------------------------------------------------------- */
.post-list {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.post-item {
  position: relative;
  display: grid;
  gap: 0.35rem 1.5rem;
  align-items: baseline;
  padding: 1.25rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
@media (min-width: 620px) {
  .post-item { grid-template-columns: 8.5rem 1fr; }
}
.post-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.post-item__date {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.post-item__title {
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1.35;
  margin: 0;
}
.post-item__title a { color: var(--text); text-decoration: none; }
.post-item__title a::after { content: ""; position: absolute; inset: 0; }
.post-item:hover .post-item__title a { color: var(--accent); }
.post-item__summary {
  grid-column: 1 / -1;
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
@media (min-width: 620px) {
  .post-item__summary { grid-column: 2; }
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
}
.post-meta__dot { opacity: 0.5; }

.post-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.post-nav > span { flex: 1 1 14rem; }
.post-nav a { display: block; font-weight: 600; text-decoration: none; }
.post-nav a:hover { text-decoration: underline; }
.post-nav__label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

/* -------------------------------------------------------------------------
   12. Vorstand
   ------------------------------------------------------------------------- */
.people {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.person {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.person:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
/* Die Vereinsfotos haben sehr unterschiedliche Seitenverhältnisse –
   ein einheitlicher Hochformat-Ausschnitt bringt sie auf eine Linie. */
.person__photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  object-position: center 25%;
  background: var(--surface-2);
}
.person__body { padding: 1.1rem 1rem 1.35rem; }
.person__role {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.person__name {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 0;
  letter-spacing: -0.01em;
}

/* -------------------------------------------------------------------------
   12b. Zeitleiste (Chronik)
   ------------------------------------------------------------------------- */
.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.75rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
  border-radius: 2px;
}
.timeline__item { position: relative; padding-bottom: 1.9rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 0.5rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline__year {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.15rem;
}
.timeline__body h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.timeline__body p { margin: 0; color: var(--text-muted); font-size: 0.96rem; }

/* -------------------------------------------------------------------------
   13. Downloads
   ------------------------------------------------------------------------- */
.files {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.file:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.file__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.file__body { min-width: 0; }
.file__title {
  display: block;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  line-height: 1.35;
}
.file__title::after { content: ""; position: absolute; inset: 0; }
.file:hover .file__title { color: var(--accent); }
.file__meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------
   14. Linksammlung
   ------------------------------------------------------------------------- */
.linkgroup + .linkgroup { margin-top: clamp(2rem, 4vw, 3rem); }
.linkgroup__title {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}
.linkgroup__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.linkgroup__note { color: var(--text-muted); margin-top: -0.6rem; }

.linklist {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.linkitem {
  position: relative;
  padding: 0.95rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.linkitem:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.linkitem__name {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.linkitem__name::after { content: ""; position: absolute; inset: 0; }
.linkitem:hover .linkitem__name { color: var(--accent); }
.linkitem__desc {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.linkitem__host {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.8;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
}

/* -------------------------------------------------------------------------
   15. Kontakt / Infoleiste
   ------------------------------------------------------------------------- */
.infogrid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.infobox {
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.infobox h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.infobox p, .infobox address { margin: 0; font-style: normal; }
.infobox a { font-weight: 600; }

.contact-split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 900px) {
  .contact-split { grid-template-columns: 1fr 1fr; }
}
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.map-frame img { width: 100%; }

/* -------------------------------------------------------------------------
   16. Aufruf am Seitenende
   ------------------------------------------------------------------------- */
.cta {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.25rem);
  color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgba(212, 165, 63, 0.25), transparent 50%),
    linear-gradient(140deg, var(--navy-800), var(--navy-600));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(233, 240, 248, 0.82); max-width: 52ch; margin-bottom: 0; }
.cta .btn-row { margin-bottom: 0; }

/* -------------------------------------------------------------------------
   17. Fußzeile
   ------------------------------------------------------------------------- */
.site-footer {
  margin-top: var(--section-y);
  background: var(--navy-900);
  color: #c8d5e2;
  font-size: 0.94rem;
}
.site-footer a { color: #e9eff6; text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); text-decoration: underline; }
.site-footer .muted { color: #8fa3b6; }

.site-footer__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.site-footer__brand { display: flex; gap: 1rem; align-items: flex-start; }
.site-footer__brand img { height: 3.2rem; width: auto; border-radius: 5px; flex: none; }
.site-footer__name { font-weight: 700; color: #fff; margin: 0 0 0.25rem; line-height: 1.3; }
.site-footer__brand p:last-child { margin-bottom: 0; }

.site-footer__head {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 0.85rem;
}
.site-footer address { font-style: normal; line-height: 1.75; }
.site-footer__list { list-style: none; margin: 0; padding: 0; line-height: 1.9; }

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding-block: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}
.site-footer__bar p { margin: 0; }

/* -------------------------------------------------------------------------
   18. Fehlerseite
   ------------------------------------------------------------------------- */
.error-page {
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(4rem, 12vw, 8rem);
}
.error-page__code {
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

/* -------------------------------------------------------------------------
   19. Druckansicht
   ------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .btn-row, .theme-toggle, .skip-link, .post-nav { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-head { background: none !important; color: #000; padding-block: 0; }
  .page-head h1, .page-head p { color: #000; }
  a { color: #000; text-decoration: underline; }
  .card, .file, .person, .linkitem { box-shadow: none; border-color: #999; }
}
