/* ===== Schrift (lokal eingebunden, keine Google-Server → DSGVO-freundlich) ===== */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #5d5d5d;
  --line: #e6e4df;
  --soft: #f6f5f2;
  --accent: #1f5135;        /* Schützengrün */
  --accent-ink: #ffffff;
  --radius: 6px;
  --wrap: 1180px;
  --narrow: 760px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.005em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: var(--narrow); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* ===== Kopf ===== */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 1.05rem; line-height: 1.25; letter-spacing: -0.01em; }
.brand img { flex: none; }

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a, .main-nav .sub-toggle, .main-nav .nolink {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px; font: inherit; font-size: 0.97rem; font-weight: 500;
  color: var(--text); background: none; border: 0; cursor: pointer; text-decoration: none; border-radius: var(--radius);
}
.main-nav a:hover, .main-nav .sub-toggle:hover { background: var(--soft); color: var(--text); }
.main-nav .nolink { cursor: default; color: var(--muted); }
.main-nav .sub-toggle svg { transition: transform .2s; }
.main-nav .sub {
  list-style: none; margin: 0; padding: 6px; position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.18);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.main-nav > ul > li:nth-last-child(-n+2) .sub { left: auto; right: 0; }
.main-nav .has-sub:hover .sub,
.main-nav .has-sub:focus-within .sub,
.main-nav .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.main-nav .has-sub.open .sub-toggle svg { transform: rotate(180deg); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 24px; height: 2px; background: var(--text); position: relative; transition: transform .2s;
}
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.25);
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav a, .main-nav .sub-toggle, .main-nav .nolink { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 1.05rem; }
  .main-nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; display: none; }
  .main-nav .has-sub:hover .sub, .main-nav .has-sub:focus-within .sub { display: none; }
  .main-nav .has-sub.open .sub { display: block; }
  .main-nav .sub a, .main-nav .sub .nolink { padding: 10px 4px; font-size: 1rem; }
}

/* ===== Titelbild ===== */
.hero { background: var(--soft); }
.hero img { width: 100%; height: clamp(220px, 46vw, 560px); object-fit: cover; }

/* ===== Inhalt ===== */
main { padding: 48px 0 80px; }
.page-title { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 12px; }
.insta-hint { color: var(--muted); margin: 0 0 32px; }
.back { margin: 0 0 24px; font-size: .95rem; }
.back a { text-decoration: none; color: var(--muted); }

.post { padding: 40px 0; border-top: 1px solid var(--line); }
.post:first-of-type { border-top: 0; padding-top: 16px; }
.post-head time { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.post-head h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 14px; }
.post-head h2 a { text-decoration: none; }

.prose p { margin: 0 0 1em; }
.prose h3 { font-size: 1.15rem; margin: 1.6em 0 .4em; letter-spacing: -0.01em; }
.prose h3:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin: .25em 0; }
.prose a { color: var(--accent); font-weight: 500; word-break: break-word; }
.prose a.pdf::after {
  content: "PDF"; display: inline-block; margin-left: 6px; padding: 0 5px; font-size: .68em; font-weight: 700; letter-spacing: .04em;
  border: 1px solid currentColor; border-radius: 3px; vertical-align: .15em; line-height: 1.5;
}

.gallery { display: grid; gap: 14px; margin-top: 18px; }
.gallery.count-2, .gallery.count-3 { grid-template-columns: repeat(2, 1fr); }
.gallery.count-3 figure:first-child { grid-column: 1 / -1; }
.gallery figure { margin: 0; }
.gallery a { display: block; background: var(--soft); border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; max-height: 640px; object-fit: contain; transition: transform .3s; }
.gallery.count-2 img, .gallery.count-3 figure:not(:first-child) img { aspect-ratio: 4/5; object-fit: cover; max-height: none; }
.gallery a:hover img { transform: scale(1.015); }
.gallery figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }
@media (max-width: 520px) { .gallery.count-2, .gallery.count-3 { grid-template-columns: 1fr; } .gallery.count-2 img, .gallery.count-3 img { aspect-ratio: auto; object-fit: contain; } }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 8px; font-weight: 600; }
.pager a { text-decoration: none; color: var(--accent); }
.pager-info { color: var(--muted); font-weight: 500; font-size: .92rem; }

/* Archiv */
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; margin-top: 28px; }
.archive-card { text-decoration: none; display: block; }
.archive-card img, .archive-card .noimg { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); background: var(--soft); display: block; }
.archive-meta { display: block; margin-top: 12px; font-size: .82rem; font-weight: 600; letter-spacing: .06em; color: var(--accent); }
.archive-title { display: block; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }

/* ===== Fuß ===== */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 64px 0 28px; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.footer-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
.footer-tagline { color: var(--muted); margin: 6px 0 24px; }
.footer-figure { margin: 0; max-width: 460px; }
.footer-figure img { border-radius: var(--radius); }
.footer-figure figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.footer-col h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; color: var(--muted); }
.footer-col p { margin: 0 0 10px; }
.footer-col a { word-break: break-word; }
.footer-links { list-style: none; padding: 0; margin: 18px 0 0; }
.footer-links li { margin: 6px 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-intro { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } .footer-bottom { flex-direction: column; } }

/* ===== Lightbox ===== */
.lb { position: fixed; inset: 0; background: rgba(10,10,10,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; z-index: 100; }
.lb img { max-height: 82vh; max-width: 100%; object-fit: contain; }
.lb p { color: #ddd; max-width: 760px; text-align: center; font-size: .92rem; margin: 14px 0 0; }
.lb button { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1; }
