/* ==========================================================================
   Imkerverein Bönen und Umgebung e. V. – Stylesheet
   Eine einzige CSS-Datei für die gesamte Seite. Kein Framework.

   Farbschema: weiches Wiesengrün als Leitfarbe, Honiggelb als warmer Akzent.
   Alle Farben stehen unten in :root und lassen sich dort zentral ändern.
   ========================================================================== */

:root {
  --gruen:        #7a9c62;   /* Leitfarbe, weiches Wiesengrün           */
  --gruen-dunkel: #4d6b3c;   /* für Text und Links auf hellem Grund     */
  --gruen-knopf:  #5b7845;   /* Schaltflächen: dunkel genug für weiße Schrift */
  --creme:        #f8f1db;   /* zartes Gelb: Flächen, Kästen, Menü      */
  --gruen-hell:   #e8eee0;   /* blasses Grün, nur für kleine Marker     */
  --honig:        #d2a13c;   /* warmer Akzent, sparsam eingesetzt       */
  --text:         #2a3126;
  --text-leise:   #63695a;
  --linie:        #e6e2d2;
  --grund:        #fdfcf7;
  --breite:       60rem;
}

/* --- Grundlagen --------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--gruen-dunkel); }
a:hover { color: var(--gruen); }

:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.25; font-weight: 700; }
h1 { font-size: 2.1rem; margin: 0 0 .6rem; }
h2 { font-size: 1.5rem; margin: 2.5rem 0 .8rem; }
h3 { font-size: 1.15rem; margin: 1.8rem 0 .4rem; }

/* Dezente Linie unter jeder Abschnittsüberschrift */
h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: .5rem;
  background: var(--gruen);
  border-radius: 2px;
}

p { margin: 0 0 1rem; }

.zentriert { max-width: var(--breite); margin: 0 auto; padding: 0 1.25rem; }

/* Sprungmarke für Tastatur- und Screenreader-Nutzung */
.skip-link {
  position: absolute; left: -9999px;
  background: var(--gruen-dunkel); color: #fff;
  padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* --- Kopfbereich und Navigation ----------------------------------------- */

header.seitenkopf {
  background: #fff;
  border-bottom: 1px solid var(--linie);
}

.kopf-inhalt {
  max-width: var(--breite);
  margin: 0 auto;
  padding: .9rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
}

.marke { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; }
.marke img { width: 46px; height: auto; }
.marke b { display: block; font-size: 1.05rem; line-height: 1.2; }
.marke span { display: block; font-size: .8rem; color: var(--text-leise); }

nav.hauptmenue { margin-left: auto; }
nav.hauptmenue ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .25rem .4rem;
}
nav.hauptmenue a {
  display: block;
  padding: .4rem .7rem;
  border-radius: 4px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
}
nav.hauptmenue a:hover { background: var(--creme); color: var(--gruen-dunkel); }
nav.hauptmenue a[aria-current="page"] {
  background: var(--creme);
  color: var(--gruen-dunkel);
  box-shadow: inset 0 -3px 0 var(--gruen);
}

/* --- Menü-Schalter für schmale Bildschirme -------------------------------
   Der Schalter wird von menu.js eingefügt. Ohne JavaScript erscheint er nicht
   und das Menü bleibt wie bisher aufgeklappt.
   ------------------------------------------------------------------------ */

.menu-knopf { display: none; }

.menu-knopf .balken {
  display: block;
  position: relative;
  width: 20px;
  height: 14px;
}
.menu-knopf .balken span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-knopf .balken span:nth-child(1) { top: 0; }
.menu-knopf .balken span:nth-child(2) { top: 6px; }
.menu-knopf .balken span:nth-child(3) { top: 12px; }

/* Aufgeklappt werden aus den drei Strichen ein Kreuz */
.menu-knopf[aria-expanded="true"] .balken span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-knopf[aria-expanded="true"] .balken span:nth-child(2) { opacity: 0; }
.menu-knopf[aria-expanded="true"] .balken span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .menu-knopf .balken span { transition: none; }
}

@media (max-width: 46rem) {
  .js-menu .menu-knopf {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-left: auto;
    padding: .55rem .85rem;
    background: var(--creme);
    color: var(--text);
    border: 1px solid var(--linie);
    border-radius: 6px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }
  .js-menu .menu-knopf:hover { background: #f3ead0; }

  /* Menü zunächst eingeklappt, volle Breite unter dem Logo */
  .js-menu .hauptmenue {
    display: none;
    flex-basis: 100%;
    margin-left: 0;
  }
  .js-menu .hauptmenue.offen { display: block; }

  .js-menu .hauptmenue ul {
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--linie);
    padding-top: .4rem;
  }
  .js-menu .hauptmenue a {
    padding: .75rem .8rem;   /* großzügige Fläche zum Antippen */
    border-radius: 6px;
  }
}

/* --- Titelbereich ------------------------------------------------------- */

.titelbereich {
  background: var(--creme);
  border-bottom: 1px solid var(--linie);
  padding: 2.5rem 0;
}
.titelbereich p.leitsatz {
  font-size: 1.15rem;
  color: var(--text-leise);
  max-width: 42rem;
  margin: 0;
}

.startbild {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.startbild img {
  width: 210px;
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
}
@media (max-width: 44rem) {
  .startbild { grid-template-columns: 1fr; }
  .startbild img { display: none; }
}

/* --- Hauptinhalt -------------------------------------------------------- */

main { padding: 2rem 0 3rem; }
main > .zentriert > :first-child { margin-top: 0; }

/* --- Wiederverwendbare Bausteine ---------------------------------------- */

.knopf {
  display: inline-block;
  background: var(--gruen-knopf);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: .6rem 1.2rem;
  border-radius: 6px;
  margin: .3rem .4rem .3rem 0;
}
.knopf:hover { background: var(--gruen-dunkel); color: #fff; }
.knopf.schlicht {
  background: transparent;
  color: var(--gruen-dunkel);
  border: 2px solid var(--gruen);
  padding: calc(.6rem - 2px) calc(1.2rem - 2px);
}
.knopf.schlicht:hover { background: var(--creme); }

/* Zeile mit Schaltflächen am Ende eines Abschnitts */
.knopfzeile { margin-top: 1.5rem; }

/* Kleiner, zurückhaltender Hinweistext */
.hinweis-klein { color: var(--text-leise); font-size: .92rem; }

/* Karten-Raster, z. B. für Vorstand oder Themen */
.karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}
.karte {
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
}
.karte h3 { margin-top: 0; }
.karte p:last-child { margin-bottom: 0; }
.karte .rolle {
  display: block;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gruen-dunkel);
  font-weight: 700;
  margin-bottom: .15rem;
}
.karte .name { font-size: 1.1rem; font-weight: 700; }

/* Hervorgehobener Kasten, z. B. Stammtisch oder Kontaktdaten */
.kasten {
  background: var(--creme);
  border-left: 4px solid var(--gruen);
  border-radius: 0 8px 8px 0;
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
}
.kasten > :first-child { margin-top: 0; }
.kasten > :last-child { margin-bottom: 0; }

/* Zahlenreihe auf der Startseite */
.zahlen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  text-align: center;
}
.zahlen b { display: block; font-size: 1.9rem; color: var(--gruen-dunkel); line-height: 1.1; }
.zahlen span { font-size: .9rem; color: var(--text-leise); }

/* --- Terminliste --------------------------------------------------------
   Aufbau eines Eintrags siehe termine.html – dort steht eine Kopiervorlage.
   ------------------------------------------------------------------------ */

.termine { list-style: none; margin: 1.2rem 0; padding: 0; }

.termin {
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: 1.1rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-bottom: .8rem;
}
.termin .datum {
  text-align: center;
  background: var(--creme);
  border-radius: 6px;
  padding: .45rem .2rem .35rem;
}
.termin .datum .tag {
  display: block;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--gruen-dunkel);
}
.termin .datum .monat {
  display: block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-leise);
}
.termin h3 { margin: 0 0 .3rem; font-size: 1.1rem; }
.termin p { margin: 0 0 .3rem; }
.termin p:last-child { margin-bottom: 0; }
.termin .wann { color: var(--text-leise); font-size: .92rem; }

/* Vergangener Termin – gedämpft, aber gut lesbar */
.termin.vergangen { background: var(--grund); opacity: .8; }

/* Abgesagter Termin */
.termin.abgesagt { background: var(--grund); opacity: .8; }
.termin.abgesagt h3 { text-decoration: line-through; }

/* Platzhalter, wenn gerade kein Termin ansteht (z. B. Winterpause) */
.termin-leer {
  list-style: none;
  background: var(--creme);
  border-left: 4px solid var(--gruen);
  border-radius: 0 8px 8px 0;
  padding: 1.1rem 1.3rem;
}

/* Zeile "Stand der Terminplanung" */
.stand {
  color: var(--text-leise);
  font-size: .88rem;
  margin-top: -.2rem;
}

/* Kleine Kennzeichnung hinter einer Terminüberschrift */
.marker {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .15rem .55rem;
  border-radius: 99px;
  background: var(--gruen-hell);
  color: var(--gruen-dunkel);
  margin-left: .4rem;
  vertical-align: .12em;
}
.marker.rot     { background: #f6e3e0; color: #9a4034; }
.marker.honig   { background: #f2e2b6; color: #7c5a0e; }

@media (max-width: 30rem) {
  .termin { grid-template-columns: 3.6rem 1fr; gap: .8rem; padding: .9rem 1rem; }
  .termin .datum .tag { font-size: 1.3rem; }
}

/* --- Chronik als schlichte Zeitleiste ------------------------------------ */

.chronik { list-style: none; margin: 1.2rem 0; padding: 0; }
.chronik li {
  border-left: 2px solid var(--linie);
  padding: 0 0 1.2rem 1.2rem;
  position: relative;
}
.chronik li::before {
  content: "";
  position: absolute; left: -7px; top: .45rem;
  width: 12px; height: 12px;
  background: var(--honig);
  border-radius: 50%;
}
.chronik b { display: block; color: var(--gruen-dunkel); }
.chronik li:last-child { border-left-color: transparent; padding-bottom: 0; }

/* Linkliste mit Beschreibung */
.linkliste { list-style: none; margin: 1rem 0; padding: 0; }
.linkliste li { padding: .7rem 0; border-bottom: 1px solid var(--linie); }
.linkliste b { display: block; }
.linkliste a { word-break: break-word; font-size: .92rem; }

/* Zitat eines Mitglieds */
.stimme {
  border-left: 4px solid var(--linie);
  padding-left: 1.2rem;
  margin: 1.5rem 0;
}
.stimme p { font-style: italic; }
.stimme footer { font-style: normal; font-weight: 700; color: var(--gruen-dunkel); }

/* Rechtstexte: etwas schmaler und kleiner gesetzt */
.rechtstext { max-width: 46rem; }
.rechtstext h2 { font-size: 1.3rem; }
.rechtstext h3 { font-size: 1.05rem; }
.rechtstext ul { padding-left: 1.2rem; }
.rechtstext li { margin-bottom: .4rem; }

/* --- Fußbereich --------------------------------------------------------- */

footer.seitenfuss {
  background: #2f3a28;
  color: #dfe6d6;
  padding: 2.5rem 0 2rem;
  font-size: .95rem;
}
footer.seitenfuss a { color: #c3d8ab; }
footer.seitenfuss a:hover { color: #fff; }
.fuss-spalten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem;
}
.fuss-spalten h2 {
  font-size: 1rem;
  margin: 0 0 .6rem;
  color: #fff;
}
.fuss-spalten h2::after { display: none; }
.fuss-spalten ul { list-style: none; margin: 0; padding: 0; }
.fuss-spalten li { margin-bottom: .35rem; }
.fuss-unten {
  border-top: 1px solid #46543c;
  margin-top: 1.8rem;
  padding-top: 1rem;
  font-size: .85rem;
  color: #a9b59c;
}

/* --- Druckausgabe ------------------------------------------------------- */

@media print {
  header.seitenkopf, footer.seitenfuss, .knopf { display: none; }
  body { font-size: 11pt; background: #fff; }
}
