/* LfB Archiv – Lauffreunde Bönen 1985 e.V.
   Archiv-Version der Hauptseiten-CSS, reduziert auf Berichte + Presse.
   Farben: Grautöne (dunkles Grau #3A3F44 statt Vereinsblau, helles
   Grau #9AA0A6 statt Gelb-Akzent), BG #F2F3F5 / Karten weiß.
   Mobil-first, kein Framework. */

:root {
  --blau: #3A3F44;          /* Hauptfarbe (Menü/Banner) – dunkles Grau */
  --blau-hover: #2C3034;    /* Hover dunkler */
  --blau-dunkel: #23262A;   /* Überschriften, Footer */
  --gelb: #9AA0A6;          /* Akzentbalken – helles Grau */
  --gelb-hover: #8A9096;
  --text: #1a1a1a;
  --text-hell: #5c5c5c;
  --bg: #F2F3F5;
  --karte: #ffffff;
  --linie: #d5d8dc;
  --radius: 10px;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--blau); }
a:hover { color: var(--blau-dunkel); }

/* ---------- Kopf (gleiche Struktur wie Hauptseite: zweifarbiges Band,
   Logo-Kasten ragt in den hellgrauen Akzentbalken) ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  background: linear-gradient(to bottom,
    var(--blau) 0, var(--blau) 89px,
    var(--gelb) 89px, var(--gelb) 107px,
    var(--blau) 107px);
}

.kopf-innen {
  max-width: var(--max); margin: 0 auto; padding: 0 1rem;
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; min-height: 64px;
}

.marke { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; gap: 1rem; }
.marke-logo-box {
  display: flex; align-items: center; justify-content: center;
  width: 120px; height: 120px; background: #ffffff; border: 1px solid rgba(0,0,0,.12);
  border-radius: var(--radius); padding: 10px; box-shadow: 0 2px 6px rgba(0,0,0,.25);
  position: relative; z-index: 2;
}
.marke-logo-box img { max-width: 100px; max-height: 100px; width: auto; height: auto; object-fit: contain; }
.marke-text { color: #fff; font-weight: 800; font-size: 1.35rem; line-height: 1.1; white-space: nowrap; }

.navi { margin-left: auto; display: flex; gap: .15rem; flex-wrap: wrap; }
.navi a { color: #fff; text-decoration: none; padding: .5rem .7rem; border-radius: 6px; font-size: .93rem; font-weight: 600; }
.navi a:hover { background: var(--blau-hover); }
.navi a[aria-current="page"] { background: var(--gelb); color: #1a1a1a; }

/* Hamburger-Button nur auf Mobil sichtbar */
.navi-toggle { display: none; background: #fff; color: var(--blau); border: none;
  font-size: 1.4rem; line-height: 1; padding: .45rem .7rem; cursor: pointer; border-radius: 6px;
  min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

/* ---------- Layout ---------- */
main.haupt { max-width: var(--max); margin: 0 auto; padding: 1.8rem 1rem 3rem; }

.seite h1 { margin: 0 0 1.2rem; color: var(--blau-dunkel); font-size: clamp(1.5rem, 4vw, 2.1rem); }
.seite h2 { margin: 1.8rem 0 .7rem; color: var(--blau-dunkel); font-size: 1.28rem; }
.seite h3 { margin: 1.4rem 0 .5rem; color: var(--blau-dunkel); font-size: 1.05rem; }

/* ---------- Startseite ---------- */
.willkommen {
  background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 2rem 1.8rem; margin: 1.5rem 0;
}
.willkommen h1 { margin: 0 0 1rem; }
.start-hinweis {
  background: var(--karte); border: 1px solid var(--linie); border-left: 4px solid var(--gelb);
  border-radius: var(--radius); padding: 1.4rem 1.6rem;
}
.start-hinweis h2 { margin: 0 0 .6rem; }

.btn { display: inline-block; padding: .35rem .9rem; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .88rem; }
.btn-info { background: var(--blau); color: #fff; }
.btn-info:hover { background: var(--blau-hover); }
.btn-oeffen { background: var(--gelb); color: #1a1a1a; }
.btn-oeffen:hover { background: var(--gelb-hover); }

/* ---------- Bilderarchiv (galerie-karte) ---------- */
.galerie-karte {
  background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; margin: 0 0 1.4rem;
}
.galerie-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; }
@media (max-width: 640px) { .galerie-grid { grid-template-columns: repeat(2, 1fr); } }
.galerie-grid img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 7px;
  display: block; background: var(--bg);
}
.galerie-info { margin: .9rem 0 .25rem; font-size: .95rem; color: var(--blau-dunkel); }
.galerie-weiterer { margin: 0; font-size: .88rem; color: var(--text-hell); }

/* ---------- Berichte-Liste (Jahresseite) ---------- */
.jahres-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.2rem 0 1.6rem; }
.jahres-tabs a { background: var(--karte); border: 1px solid var(--linie); border-radius: 999px; padding: .35rem .9rem; text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--blau-dunkel); }
.jahres-tabs a[aria-current="page"], .jahres-tabs a:hover { background: var(--blau); color: #fff; border-color: var(--blau); }

.bericht-liste .bericht-eintrag {
  background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; margin-bottom: 1rem; display: grid; grid-template-columns: 110px 1fr; gap: 1.1rem;
}
@media (max-width: 560px) { .bericht-liste .bericht-eintrag { grid-template-columns: 1fr; } }
.bericht-eintrag img { width: 110px; height: 82px; object-fit: cover; border-radius: 8px; }
.bericht-eintrag .titel { font-weight: 700; font-size: 1.02rem; color: var(--blau-dunkel); text-decoration: none; }
.bericht-eintrag .titel:hover { text-decoration: underline; }
.bericht-eintrag .datum { font-size: .82rem; color: var(--text-hell); }
.bericht-eintrag .vorschau { margin: .3rem 0 0; font-size: .92rem; color: var(--text-hell); }

/* ---------- Artikel (Einzelbericht) ---------- */
.artikel-inhalt img { border-radius: var(--radius); margin: 1rem auto; }
.artikel-inhalt .inline-bild { margin: 1.4rem 0; text-align: center; }
.artikel-inhalt .inline-bild img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.artikel-inhalt .bild-reihe { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; align-items: flex-start; margin: 1.4rem 0; }
.artikel-inhalt .bild-reihe .inline-bild { flex: 0 1 auto; margin: 0; max-width: 100%; }
.artikel-inhalt .bild-reihe .inline-bild img { max-width: 100%; height: auto; }
.artikel-kopfbild img { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--radius); }

.artikel-nav-oben { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin: 0 0 .3rem; font-size: .9rem; }
.artikel-nav-oben .nav-zurueck { color: var(--blau); text-decoration: none; font-weight: 600; }
.artikel-nav-oben .nav-zurueck:hover { text-decoration: underline; }
.nav-nachbarn .nav-pfeil { color: var(--blau); text-decoration: none; font-weight: 600; }
.nav-nachbarn .nav-pfeil:hover { text-decoration: underline; }
.artikel-nav-unten { margin-top: 1.4rem; padding-top: .8rem; border-top: 1px solid var(--linie); font-size: .92rem; }
.artikel-nav-unten .nav-pfeil { color: var(--blau); text-decoration: none; font-weight: 600; }
.artikel-nav-unten .nav-pfeil:hover { text-decoration: underline; }

/* ---------- Presse-Tabellen ---------- */
.tabelle-wrap { overflow-x: auto; }
table.lfb { border-collapse: collapse; width: 100%; background: var(--karte); border-radius: var(--radius); overflow: hidden; }
table.lfb th { background: var(--blau); color: #fff; text-align: left; padding: .6rem .8rem; font-size: .9rem; }
table.lfb td { padding: .55rem .8rem; border-bottom: 1px solid var(--linie); font-size: .92rem; vertical-align: top; }
table.lfb tr:nth-child(even) td { background: #f7f7f8; }

/* ---------- Hinweisbox ---------- */
.hinweis { background: #f4f4f5; border: 1px solid #e2e4e7; border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.5rem 0; }
.fehlt { color: var(--text-hell); font-style: italic; font-size: .85rem; }

/* ---------- Fuss ---------- */
.fuss { background: var(--blau-dunkel); color: #c9cdd2; padding: 1.6rem 1rem 2.2rem; font-size: .9rem; }
.fuss-innen { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.fuss a { color: #dfe3e8; text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss-links { display: inline-flex; gap: 1rem; align-items: center; }
.fuss-links svg { vertical-align: -2px; }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  .navi-toggle { display: inline-flex; }
  .navi { display: none; width: 100%; flex-direction: column; padding-bottom: .8rem; }
  .navi.offen { display: flex; }
  .navi a { padding: .6rem .8rem; }
  .marke-text { white-space: normal; font-size: 1.05rem; line-height: 1.15; }
}

@media print {
  .kopf, .fuss, .navi-toggle { display: none; }
  body { background: #fff; }
}
