/* ============================================================
   Bürgerverein Kleintierzucht & Naturfreunde Steinstücken 80 e.V.
   Modernisiertes Design (v2) – Vereinsfarben und Logo bleiben erhalten.
   Farbwelt:  Grün #a1cf3d (Akzent) · Dunkelgrün #44631f
              Hellcyan #a3e2eb / #93dde8 (Logo-Himmel) · Schiefer #2c3338
   Schriften: Source Sans Pro · Open Sans · Montserrat · Lusitana
   ============================================================ */

:root {
  --green: #a1cf3d;
  --green-dark: #44631f;
  --green-deep: #2e441a;
  --green-soft: #f2f8e3;
  --cyan: #a3e2eb;
  --cyan-soft: #eaf7fa;
  --ink: #2c3338;
  --ink-soft: #5a656d;
  --paper: #f6f7f4;
  --card-border: #e6e9e2;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(30, 41, 20, .08);
  --shadow-md: 0 6px 24px rgba(30, 41, 20, .12);
  --shadow-lg: 0 14px 40px rgba(30, 41, 20, .18);
  /* Schriften – werden per Admin-Einstellung überschrieben */
  --font-body: 'Source Sans Pro', Arial, sans-serif;
  --font-heading: 'Lusitana', Georgia, serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
}

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

a { color: var(--green-dark); transition: color .15s; }
a:hover { color: var(--green-deep); }

::selection { background: var(--green); color: #1c2b00; }

/* ---------- Kopfbereich ---------- */
.site-header {
  background:
    radial-gradient(ellipse at 50% 120%, rgba(255,255,255,.75), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, var(--cyan) 0%, #c9edf3 60%, #daf3f7 100%);
  text-align: center;
  padding: 34px 10px 26px;
  border-bottom: 4px solid var(--green);
}
.site-logo { display: inline-block; transition: transform .25s ease; }
.site-logo:hover { transform: scale(1.02); }
.site-logo img {
  height: 250px;
  width: auto;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(20, 60, 70, .25));
}

/* ---------- Navigation (grüner Balken wie im Original) ---------- */
.site-nav {
  background: var(--green);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 14px rgba(30, 41, 20, .18);
}
.nav-inner { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 6px;
}
.nav-list a {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.4px;
  color: #1c2b00;
  text-decoration: none;
  padding: 15px 13px 12px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}
.nav-list a:hover {
  color: #000;
  border-bottom-color: rgba(28, 43, 0, .45);
}
.nav-list a.active {
  color: #000;
  border-bottom-color: #1c2b00;
}

.nav-toggle { display: none; }

/* ---------- Hauptbereich ---------- */
.site-main {
  background: #fff;
  min-height: 45vh;
  padding: 18px 0 56px;
}

.section { position: relative; }
.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 28px;
  position: relative;
  z-index: 1;
}

/* Sektionen mit Hintergrundbild (Hero) */
.section.has-bg-image {
  background-size: cover;
  background-position: center;
  color: #fff;
  border-radius: 0;
  overflow: hidden;
}
.section.has-bg-image .section-inner { padding-top: 96px; padding-bottom: 96px; }
.section-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 25, 10, .45), rgba(15, 25, 10, .28));
}
.section.has-bg-image .blk-text,
.section.has-bg-image .blk-text * { color: #fff !important; }
.section.has-bg-image .blk-text { text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }

/* Kasten-Stil (grüner Rahmen, z. B. Veranstaltungen) */
.section.section-box > .section-inner {
  border: 2px solid var(--green);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fdfffa, #f7fbec);
  box-shadow: var(--shadow-md);
  margin-top: 26px;
  margin-bottom: 26px;
  padding: 46px 38px;
  max-width: 920px;
}

/* Dunkler Stil */
.section.section-dark {
  background: linear-gradient(160deg, #35424a, #2c3338);
  color: #fff;
}
.section.section-dark .section-inner { padding-top: 46px; padding-bottom: 46px; }
.section.section-dark .blk-text, .section.section-dark .blk-text * { color: #fff !important; }
.section.section-dark .btn { border-color: var(--green); background: var(--green); color: #1c2b00; }
.section.section-dark .btn:hover { background: #b7dd5e; }

/* Spaltenraster */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  align-items: flex-start;
}
.col { flex: 1 1 0; min-width: 0; }
.col.span-12 { flex-basis: 100%; }
.col.span-9 { flex-basis: calc(75% - 26px); }
.col.span-8 { flex-basis: calc(66.66% - 23px); }
.col.span-7 { flex-basis: calc(58.33% - 20px); }
.col.span-6 { flex-basis: calc(50% - 17px); }
.col.span-5 { flex-basis: calc(41.66% - 14px); }
.col.span-4 { flex-basis: calc(33.33% - 23px); }
.col.span-3 { flex-basis: calc(25% - 26px); }

/* ---------- Blöcke ---------- */
.blk { margin: 14px 0; }

/* Text */
.blk-text { overflow-wrap: break-word; }
.blk-text p { margin: 0 0 3px; }
.blk-text h1, .blk-text h2, .blk-text h3, .blk-text h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink);
  margin: 14px 0 10px;
  line-height: 1.25;
}
.blk-text h1 { font-size: 40px; }
.blk-text h2 { font-size: 30px; }
.blk-text h3 { font-size: 24px; }
.blk-text h4 { font-size: 19px; }
.blk-text ul, .blk-text ol { margin: 8px 0; padding-left: 26px; }
.blk-text a { text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* Bild */
.blk-image { margin: 18px 0; text-align: center; }
.blk-image img {
  display: inline-block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.blk-image figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }
.blk-image a.lightbox { cursor: zoom-in; display: inline-block; transition: transform .2s ease; }
.blk-image a.lightbox:hover { transform: translateY(-2px); }

/* Galerie */
.blk-gallery {
  display: grid;
  gap: 16px;
  margin: 22px 0;
}
.blk-gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.blk-gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.blk-gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
.blk-gallery.cols-5 { grid-template-columns: repeat(5, 1fr); }
.blk-gallery.cols-6 { grid-template-columns: repeat(6, 1fr); }
.gal-item { margin: 0; }
.gal-item a {
  display: block;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.gal-item a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.gal-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.gal-item a:hover img { transform: scale(1.05); }
.gal-item figcaption {
  font-size: 13.5px; color: var(--ink-soft);
  text-align: center; margin-top: 7px;
}
.gallery-circle .gal-item a { border-radius: 50%; }
.gallery-circle .gal-item img { border-radius: 50%; aspect-ratio: 1 / 1; }

/* Button */
.blk-button { text-align: center; margin: 26px 0; }
.btn {
  display: inline-block;
  min-width: 220px;
  padding: 13px 32px;
  border: 2px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: #1c2b00;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .3px;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background .18s, color .18s, transform .18s, box-shadow .18s;
}
.btn:hover {
  background: #8fbc2d;
  border-color: #8fbc2d;
  color: #14200a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Trennlinie */
.blk-divider {
  border: 0;
  height: 3px;
  width: 90px;
  margin: 30px auto;
  background: var(--green);
  border-radius: 2px;
  opacity: .85;
}

/* Icon */
.blk-icon { margin: 20px auto; }
.blk-icon svg { width: 100%; height: auto; display: block; }
.blk-icon.circle {
  border: 2px solid var(--ink);
  border-radius: 50%;
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

/* Karten-Stil (z. B. Sparten-Übersicht) */
.section-cards .row { align-items: stretch; }
.section-cards .col {
  border: 1px solid var(--card-border);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px 26px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.section-cards .col:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Karte */
.blk-map iframe {
  width: 100%; height: 420px; border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.blk-map .map-link { font-size: 12.5px; text-align: right; margin: 6px 2px 0; }

/* Abstand */
.blk-spacer { margin: 0; }

/* ---------- Blog (Über Steinstücken) ---------- */
.blk-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 28px 0;
}
.post-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-cover { overflow: hidden; display: block; }
.post-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.post-card:hover .post-cover img { transform: scale(1.05); }
.post-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 {
  font-family: var(--font-heading);
  font-size: 21px; font-weight: 700; margin: 0 0 6px;
}
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--green-dark); }
.post-date {
  font-size: 12.5px; color: #97a0a6;
  text-transform: uppercase; letter-spacing: .6px;
  margin: 0 0 10px;
}
.post-excerpt { font-size: 15px; color: var(--ink-soft); margin: 0 0 14px; flex: 1; }
.post-more { margin: 0; }
.post-more a {
  font-size: 14.5px; font-weight: 600;
  color: var(--green-dark); text-decoration: none;
}
.post-more a:hover { text-decoration: underline; }

/* Einzelner Beitrag */
.post-single .post-header { padding-top: 30px; }
.post-single .post-header h1 {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 36px; margin: 0 0 6px;
}
.post-back { margin: 34px 0 10px; }
.post-back a { text-decoration: none; font-weight: 600; }

/* ---------- Fußbereich ---------- */
.site-footer { margin-top: 0; }
.footer-main {
  background: linear-gradient(160deg, #33421f, var(--green-deep));
  color: #dfe8d0;
  border-top: 4px solid var(--green);
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 46px 28px 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
  gap: 36px;
}
.footer-col h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 13.5px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--green);
  margin: 0 0 12px;
}
.footer-col p { margin: 0 0 8px; font-size: 15px; line-height: 1.6; }
.footer-col a { color: #eef5e0; text-decoration: none; }
.footer-col a:hover { color: var(--green); }
.footer-brand p { font-size: 14.5px; margin-top: 12px; }
.footer-logo {
  height: 110px; width: auto;
  background: #fdfdfb;
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: var(--shadow-sm);
}
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 6px; }
.footer-nav a { font-size: 14.5px; }

.footer-band {
  background: #24350f;
  text-align: center;
  padding: 14px 10px;
}
.footer-band p { margin: 0; font-size: 12.5px; color: #b9c8a2; }
.footer-band a { color: #b9c8a2; }
.footer-band a:hover { color: var(--green); }

/* ---------- Schriftgrößen-Klassen (aus dem Baukasten übernommen) ---------- */
.font-size-8{font-size:8px}.font-size-9{font-size:9px}.font-size-10{font-size:10px}
.font-size-11{font-size:11px}.font-size-12{font-size:12px}.font-size-13{font-size:13px}
.font-size-14{font-size:14px}.font-size-15{font-size:15px}.font-size-16{font-size:16px}
.font-size-17{font-size:17px}.font-size-18{font-size:18px}.font-size-19{font-size:19px}
.font-size-20{font-size:20px}.font-size-21{font-size:21px}.font-size-22{font-size:22px}
.font-size-24{font-size:24px}.font-size-26{font-size:26px}.font-size-28{font-size:28px}
.font-size-30{font-size:30px}.font-size-32{font-size:32px}.font-size-34{font-size:34px}
.font-size-36{font-size:36px}.font-size-40{font-size:40px}.font-size-44{font-size:44px}
.font-size-48{font-size:48px}.font-size-60{font-size:60px}
.size-10{font-size:10px}.size-11{font-size:11px}.size-12{font-size:12px}
.size-13{font-size:13px}.size-14{font-size:14px}.size-15{font-size:15px}
.size-16{font-size:16px}.size-18{font-size:18px}.size-20{font-size:20px}
.text-align-left{text-align:left}.text-align-center{text-align:center}.text-align-right{text-align:right}
.text-align-justify{text-align:justify}

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(12, 18, 8, .92);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.lightbox-overlay[hidden] { display: none; }
.lightbox-overlay img {
  max-width: 92vw; max-height: 84vh;
  border-radius: 6px;
  box-shadow: 0 8px 60px rgba(0, 0, 0, .7);
}
.lightbox-overlay .lb-caption {
  position: absolute; bottom: 14px; left: 0; right: 0;
  text-align: center; color: #e8eee0; font-size: 15px; margin: 0;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255, 255, 255, .08);
  border: 0; color: #fff;
  font-size: 26px; cursor: pointer;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(161, 207, 61, .45); }
.lb-close { top: 16px; right: 18px; font-size: 30px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .site-header { padding: 24px 10px 18px; }
  .site-logo img { height: 180px; }

  .nav-inner { padding: 0; }
  .nav-toggle {
    display: block;
    background: none; border: 0; cursor: pointer;
    padding: 12px;
    margin: 0 auto;
  }
  .nav-toggle span {
    display: block; width: 26px; height: 3px;
    background: var(--ink); margin: 5px 0; border-radius: 2px;
    transition: transform .2s, opacity .2s;
  }
  .site-nav.open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .site-nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-nav.open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-list {
    display: none;
    flex-direction: column;
    align-items: center;
    padding-bottom: 12px;
  }
  .site-nav.open .nav-list { display: flex; }
  .nav-list a { padding: 11px 13px 8px; }

  .row { display: block; }
  .col { margin-bottom: 20px; }

  .blk-gallery.cols-3, .blk-gallery.cols-4,
  .blk-gallery.cols-5, .blk-gallery.cols-6 { grid-template-columns: repeat(2, 1fr); }
  .blk-posts { grid-template-columns: 1fr; }

  .section.has-bg-image .section-inner { padding-top: 52px; padding-bottom: 52px; }
  .section.section-box > .section-inner { padding: 26px 18px; }
  .section-inner { padding: 12px 20px; }

  .blk-text h1 { font-size: 30px; }
  .blk-text h2 { font-size: 25px; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 26px; padding: 34px 22px 28px; }

  /* Mobile Schriftgrößen des Baukastens */
  .m-font-size-11{font-size:11px !important}.m-font-size-12{font-size:12px !important}
  .m-font-size-13{font-size:13px !important}.m-font-size-14{font-size:14px !important}
  .m-font-size-15{font-size:15px !important}.m-font-size-16{font-size:16px !important}
  .m-font-size-18{font-size:18px !important}.m-font-size-20{font-size:20px !important}
  .m-font-size-22{font-size:22px !important}.m-font-size-24{font-size:24px !important}
  .m-font-size-26{font-size:26px !important}.m-font-size-28{font-size:28px !important}
  .m-font-size-30{font-size:30px !important}.m-font-size-36{font-size:36px !important}
}

@media (max-width: 480px) {
  .site-logo img { height: 150px; }
  .blk-gallery.cols-4, .blk-gallery.cols-5, .blk-gallery.cols-6 { grid-template-columns: repeat(2, 1fr); }
  .blk-map iframe { height: 300px; }
  .footer-inner { grid-template-columns: 1fr; }
  .btn { min-width: 0; width: 100%; }
}
