/* Heimatbund Emsdetten — eigenes Stylesheet (ohne Theme-Code der alten Agentur).
   Ergänzt Bootstrap 4 (MIT, lokal). Keine externen Schriften/Skripte. */
:root {
  --gruen: #20A052;
  --gruen-dunkel: #1D7E3F;
  --link: #0B6930;
  --grau: #E6E7E9;
  --text: #333;
}
body { color: var(--text); padding-top: 84px; }
h1, h2, h3, h4, h5, h6 { color: var(--gruen); }
a { color: var(--link); }
a:hover { color: #11A94D; }

/* Kopf + Navigation (ohne JavaScript: details/summary + Checkbox) */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 30; background: #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,.08); }
.nav-wrap { display: flex; align-items: center; min-height: 84px; }
.brand img { height: 64px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; }
.main-nav a, .main-nav summary { display: block; padding: .5rem .75rem; color: #464646; font-weight: 700;
  text-transform: uppercase; font-size: .9rem; cursor: pointer; text-decoration: none; }
.main-nav summary { list-style: none; }
.main-nav summary::-webkit-details-marker { display: none; }
.main-nav summary::after { content: " ▾"; font-size: .75em; }
.main-nav a:hover, .main-nav summary:hover { color: var(--gruen); }
.has-sub { position: relative; }
.has-sub details > ul { position: absolute; right: 0; top: 100%; min-width: 260px; background: #fff;
  list-style: none; margin: 0; padding: .4rem 0; box-shadow: 0 8px 20px rgba(0,0,0,.12); z-index: 40; }
.has-sub details > ul a { font-weight: 600; font-size: .85rem; }
.has-sub details > ul a:hover { background: var(--grau); }
/* Desktop: Untermenüs auch per Hover/Tastatur öffnen */
@media (min-width: 992px) {
  .has-sub:hover details > ul, .has-sub:focus-within details > ul { display: block; }
  .has-sub details:not([open]) > ul { display: none; }
  .has-sub:hover details:not([open]) > ul, .has-sub:focus-within details:not([open]) > ul { display: block; }
}
.nav-toggle, .nav-burger { display: none; }
@media (max-width: 991px) {
  .nav-burger { display: block; margin-left: auto; cursor: pointer; padding: .5rem; }
  .nav-burger span { display: block; width: 28px; height: 3px; margin: 5px 0; background: #464646; }
  .main-nav { display: none; position: absolute; top: 84px; left: 0; right: 0; background: #fff;
    max-height: calc(100vh - 84px); overflow-y: auto; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav > ul { flex-direction: column; padding: .5rem 1rem 1rem; }
  .has-sub details > ul { position: static; box-shadow: none; padding-left: 1rem; }
}

/* Kopfbild je Seite */
.keyvisual { position: relative; }
.keyvisual img { display: block; width: 100%; height: 420px; object-fit: cover; }
.keyvisual.home img { height: 560px; }
.slide-content { position: absolute; bottom: 0; left: 0; width: 55%; padding: 15px 15px 15px 6%;
  background: rgba(32,160,82,.89); color: #fff; }
.slide-content h2 { color: #fff; text-transform: uppercase; font-weight: 700; font-size: 1.8rem; }
.slide-content p { margin: 0; }
@media (max-width: 767px) {
  .keyvisual img, .keyvisual.home img { height: 240px; }
  .slide-content { position: static; width: 100%; padding: 12px 16px; }
  .slide-content h2 { font-size: 1.3rem; }
}

.page-title { padding-top: 24px; }
.content-area { padding: 20px 0; }
.btn-heim { background: var(--gruen); color: #fff; }
.btn-heim:hover { background: var(--gruen-dunkel); color: #fff; }
img { max-width: 100%; height: auto; }

/* Bausteine */
.download-card { height: 100%; }
.download-card img { max-height: 110px; object-fit: contain; margin: 10px auto 0; }
.download-card .card-body p { font-size: .9rem; margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.gallery .item { max-width: none; padding: 0; }
.gallery-img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.image-element figure img { max-height: 70vh; width: auto; }
.vorstand.row, .card-deck { row-gap: 1rem; }
.vorstand .card-img-top { object-fit: cover; }
.table-element table { width: 100%; }
.table-element { overflow-x: auto; }
details.akkordeon, details.readmore { margin: .5rem 0; border: 1px solid #ddd; border-radius: 4px; }
details.akkordeon > summary, details.readmore > summary { cursor: pointer; padding: .6rem 1rem; background: var(--gruen);
  color: #fff; font-weight: 600; list-style: none; }
details.readmore > summary { display: inline-block; border-radius: 4px; }
details.readmore { border: 0; }
details > summary::-webkit-details-marker { display: none; }
details.akkordeon > summary::after { content: "+"; float: right; font-weight: 700; }
details.akkordeon[open] > summary::after { content: "−"; }
details.akkordeon > :not(summary) { padding: 1rem; }
.map-link a::before, .mailto-box .btn::before { content: "→ "; }
.map-link a { display: inline-block; padding: .6rem 1rem; background: var(--grau); border-radius: 4px; font-weight: 600; }
.mailto-box { background: var(--grau); padding: 1.2rem; border-radius: 4px; }
.mailto-fields { margin: .8rem 0 0; color: #555; font-size: .9rem; }
video { max-width: 100%; height: auto; background: #000; }
.news .one-news { margin-bottom: 1.5rem; }
.news-img img { width: 100%; object-fit: cover; }

/* Fußzeile */
footer { background: var(--gruen); color: #fff; padding: 40px 0; margin-top: 40px; }
footer a { color: #fff; }
footer ul { list-style: none; padding: 0; }
.footer-nav { columns: 2; }
.footer-nav a { text-transform: uppercase; }
/* Formulare (Formular-Dienst auf web1) */
.hb-form { background: var(--grau); padding: 1.2rem; border-radius: 4px; max-width: 46rem; }
.hb-form .form-group { margin-bottom: .8rem; }
.hb-form label { font-weight: 600; margin-bottom: .2rem; }
.hb-pflicht { color: #a00; }
.hb-form-abschnitt { margin: 1.2rem 0 .6rem; font-size: 1.05rem; }
.hb-form-hinweis { font-size: .85rem; color: #555; }
.hb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
