/* ============================================================
   chrome.css — Header + Footer · Variante B
   Aus altem Theme portiert (_attic-elementor-FULL/css/chrome.css).
   ============================================================ */


/* ─── HEADER ──────────────────────────────────────────────── */

.wb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--bone);
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
  transition: box-shadow 200ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
.wb-header.is-sticky { box-shadow: 0 6px 28px -18px rgba(0, 0, 0, 0.6); }

.wb-header__inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: 18px 56px;
  overflow: visible;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.wb-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.wb-header__logo:hover { color: inherit; }

/* Bildmarke als Sticker, übersteht den Header nach unten */
.wb-header__bildmarke {
  position: relative;
  display: inline-block;
  margin-bottom: -56px;
  z-index: 2;
}
.wb-header__bildmarke img {
  height: 120px; width: 120px;
  display: block;
  border-radius: 14px;
  filter: drop-shadow(0 6px 20px rgba(23, 19, 17, 0.25));
}
.wb-header__wortmarke {
  display: block;
  height: 44px;
}
.wb-header__wortmarke img {
  height: 44px; width: auto; display: block;
  /* Wortmarke hat ink-Pfade auf bone-BG — auf dunklem Header invertieren */
  filter: invert(100%) hue-rotate(180deg) brightness(1.05);
}

.wb-header__nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}
.wb-header__nav-item {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 10px;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 17px;
  font-weight: 500;
  color: var(--wp--preset--color--bone);
  text-decoration: none;
  transition: background-color 120ms cubic-bezier(0.2, 0.7, 0.3, 1),
              color 120ms cubic-bezier(0.2, 0.7, 0.3, 1);
  white-space: nowrap;
}
.wb-header__nav-item:hover {
  background: rgba(244, 238, 226, 0.08);
  color: var(--wp--preset--color--bone);
}
.wb-header__nav-item.is-active,
.wb-header__nav-item[aria-current="page"] {
  background: var(--wp--preset--color--mustard);
  color: var(--wp--preset--color--ink);
}

/* Active-State per Body-Klasse — Header-Pattern ist statisch,
   wb_body_class_active_nav() in functions.php setzt die Klasse */
body.wb-nav-active-gemeinden   .wb-header__nav-item[href="/gemeinden/"],
body.wb-nav-active-lebensfeste .wb-header__nav-item[href="#lebensfeste"],
body.wb-nav-active-termine     .wb-header__nav-item[href="#termine"],
body.wb-nav-active-aktuelles   .wb-header__nav-item[href="/aktuelles/"],
body.wb-nav-active-kontakt     .wb-header__nav-item[href="/kontakt/"] {
  background: var(--wp--preset--color--mustard);
  color: var(--wp--preset--color--ink);
}
body.wb-nav-active-gemeinden   .wb-mobile-drawer__item[href="/gemeinden/"],
body.wb-nav-active-lebensfeste .wb-mobile-drawer__item[href="#lebensfeste"],
body.wb-nav-active-termine     .wb-mobile-drawer__item[href="#termine"],
body.wb-nav-active-aktuelles   .wb-mobile-drawer__item[href="/aktuelles/"],
body.wb-nav-active-kontakt     .wb-mobile-drawer__item[href="/kontakt/"] {
  background: var(--wp--preset--color--mustard);
  color: var(--wp--preset--color--ink);
}

.wb-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
}

/* Sechs-Dots-Strip — kleines 3×2-Raster in Gemeindefarben */
.wb-header__sixdots {
  display: grid;
  grid-template-columns: repeat(3, 9px);
  grid-auto-rows: 9px;
  gap: 5px;
}
.wb-header__sixdots span {
  display: block;
  background: var(--wp--preset--color--bone);
  border-radius: 2px;
  opacity: 0.6;
}
.wb-header__sixdots span:nth-child(1) { background: var(--wp--preset--color--westhofen); opacity: 1; }
.wb-header__sixdots span:nth-child(2) { background: var(--wp--preset--color--osthofen); opacity: 1; }
.wb-header__sixdots span:nth-child(3) { background: var(--wp--preset--color--bechtheim); opacity: 1; }
.wb-header__sixdots span:nth-child(4) { background: var(--wp--preset--color--monzernheim); opacity: 1; }
.wb-header__sixdots span:nth-child(5) { background: var(--wp--preset--color--dittelsheim); opacity: 1; }
.wb-header__sixdots span:nth-child(6) { background: var(--wp--preset--color--dorn); opacity: 1; }

/* Anmelden-CTA — Senf-Pille */
.wb-header__cta,
.wb-btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 12px 22px;
  background: var(--wp--preset--color--mustard);
  color: var(--wp--preset--color--ink);
  text-decoration: none;
  border-radius: 999px;
  font-family: var(--wp--preset--font-family--sans);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 120ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
.wb-header__cta:hover { transform: translateY(-1px); color: var(--wp--preset--color--ink); }

.wb-header__burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 10px;
  padding: 0;
}
.wb-header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--wp--preset--color--bone);
  border-radius: 2px;
  transition: transform 200ms cubic-bezier(0.2, 0.7, 0.3, 1),
              opacity 200ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* Mobile / Tablet */
@media (max-width: 960px) {
  .wb-header__inner {
    padding: 16px 20px 20px;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }
  .wb-header__nav,
  .wb-header__sixdots,
  .wb-header__cta { display: none; }
  .wb-header__burger { display: inline-flex; }
  .wb-header__bildmarke { margin-bottom: -32px; }
  .wb-header__bildmarke img { height: 78px; width: 78px; border-radius: 10px; }
  .wb-header__wortmarke { height: 30px; }
  .wb-header__wortmarke img { height: 30px; }
}


/* ─── MOBILE DRAWER ───────────────────────────────────────── */

.wb-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(23, 19, 17, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 200ms cubic-bezier(0.2, 0.7, 0.3, 1);
  pointer-events: none;
}
.wb-mobile-drawer[hidden] { display: block; visibility: hidden; }
.wb-mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.wb-mobile-drawer__panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(86vw, 380px);
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--bone);
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateX(100%);
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.3, 1);
  box-shadow: -16px 0 48px -24px rgba(0, 0, 0, 0.5);
}
.wb-mobile-drawer.is-open .wb-mobile-drawer__panel { transform: translateX(0); }

.wb-mobile-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wb-mobile-drawer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.wb-mobile-drawer__brand img { height: 36px; width: auto; display: block; }
.wb-mobile-drawer__brand .wb-mobile-drawer__bildmarke {
  height: 44px; width: 44px; border-radius: 8px;
  background: var(--wp--preset--color--bone);
  display: inline-flex; align-items: center; justify-content: center;
}
.wb-mobile-drawer__brand .wb-mobile-drawer__bildmarke img {
  height: 36px; width: 36px;
}
.wb-mobile-drawer__close {
  width: 44px; height: 44px;
  font-size: 28px;
  line-height: 1;
  color: var(--wp--preset--color--bone);
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.wb-mobile-drawer__close:hover { background: rgba(244, 238, 226, 0.08); }

.wb-mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}
.wb-mobile-drawer__item {
  padding: 14px 16px;
  border-radius: 10px;
  font-family: var(--wp--preset--font-family--display);
  font-weight: 700;
  font-size: 22px;
  color: var(--wp--preset--color--bone);
  text-decoration: none;
  transition: background-color 120ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
.wb-mobile-drawer__item:hover { background: rgba(244, 238, 226, 0.08); color: var(--wp--preset--color--bone); }
.wb-mobile-drawer__item.is-active,
.wb-mobile-drawer__item[aria-current="page"] {
  background: var(--wp--preset--color--mustard);
  color: var(--wp--preset--color--ink);
}

.wb-mobile-drawer__cta { margin-top: auto; justify-content: center; }

/* Body-Scroll-Lock wenn Drawer offen */
body.wb-drawer-open { overflow: hidden; }


/* ─── FOOTER ──────────────────────────────────────────────── */

.wb-footer-block { display: block; }

.wb-footer {
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--bone);
  padding: 72px 0 32px;
}

.wb-footer__inner {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.wb-footer__brand { display: flex; flex-direction: column; gap: 20px; }

.wb-footer__lockup {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.wb-footer__bildmarke img {
  height: 56px; width: 56px; border-radius: 6px; display: block;
}
.wb-footer__wortmarke { height: 34px; }
.wb-footer__wortmarke img {
  height: 34px; width: auto; display: block;
  filter: invert(100%) hue-rotate(180deg) brightness(1.05);
}

.wb-footer__verse {
  font-family: var(--wp--preset--font-family--sans);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.35;
  color: rgba(244, 238, 226, 0.92);
  max-width: 420px;
  margin: 0;
}
.wb-footer__verse-ref {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(244, 238, 226, 0.4);
  margin: 0;
}

.wb-footer__heading {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(244, 238, 226, 0.45);
  font-weight: 600;
  margin: 0 0 16px;
}
.wb-footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.wb-footer__list a {
  color: rgba(244, 238, 226, 0.92);
  font-size: 15px;
  font-family: var(--wp--preset--font-family--sans);
  text-decoration: none;
  transition: color 120ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
.wb-footer__list a:hover { color: var(--wp--preset--color--mustard); }

.wb-footer__bottom {
  max-width: 1440px;
  margin-inline: auto;
  padding: 24px 56px 0;
  border-top: 1px solid rgba(244, 238, 226, 0.12);
  display: flex;
  justify-content: space-between;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(244, 238, 226, 0.5);
}
.wb-footer__bottom p { margin: 0; color: inherit; }

@media (max-width: 960px) {
  .wb-footer { padding: 40px 0 24px; }
  .wb-footer__inner {
    padding-inline: 20px;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 28px;
  }
  .wb-footer__bottom {
    padding-inline: 20px;
    flex-direction: column;
    gap: 8px;
    text-align: left;
  }
  .wb-footer__verse {
    font-size: 22px;
  }
}

/* Sticky-Header-Fix: Template-Part-Wrapper aus dem Layoutfluss nehmen,
   sonst begrenzt seine Eigenhöhe (≈100px) das position:sticky. */
header.wp-block-template-part { display: contents; }
