/*
Theme Name: NZ Knerbli
Theme URI: https://example.invalid/
Author: Narrenzunft Knerbli Berghaupten e. V.
Description: Schlankes, responsives Block-Theme für die Narrenzunft Knerbli.
Version: 1.5.7
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: nz-knerbli
*/

:root {
  --nz-green: #146b3a;
  --nz-green-dark: #083f27;
  --nz-green-soft: #eaf6ef;
  --nz-ink: #202420;
  --nz-yellow: #ffea00;
  --nz-red: #e30613;
  --nz-radius: 26px;
  --nz-shadow: 0 18px 50px rgba(7, 91, 50, 0.12);
  --nz-control-hover: #1b7444;
  --nz-control-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { text-underline-offset: 0.18em; }

.wp-block-button__link {
  color: #fff !important;
  background-color: var(--nz-green-dark) !important;
  border: 2px solid #fff !important;
  border-radius: 999px !important;
  padding: 0.75rem 1.4rem !important;
  font-weight: 750;
  line-height: 1.2;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease,
    box-shadow 160ms ease, transform 160ms ease;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
  color: var(--nz-yellow) !important;
  background-color: var(--nz-control-hover) !important;
  border-color: #fff !important;
  box-shadow: var(--nz-control-shadow);
  transform: translateY(-2px);
}

.wp-block-button__link:focus-visible {
  outline: 2px solid var(--nz-yellow);
  outline-offset: 3px;
}

.nz-header {
  position: sticky;
  top: 0;
  z-index: 20;
  box-sizing: border-box;
  width: min(1440px, calc(100% - 2rem)) !important;
  max-width: none !important;
  margin-inline: auto !important;
  padding-inline: clamp(1.75rem, 4vw, 3.5rem) !important;
  border-bottom: 1px solid rgba(7, 91, 50, 0.09);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(7, 91, 50, 0.05);
  overflow: visible;
  border-radius: var(--nz-radius);
}

.nz-header,
.nz-header.has-white-background-color {
  color: #fff;
  background-color: var(--nz-green-dark) !important;
}

.admin-bar .nz-header { top: 32px; }

.nz-brand a { text-decoration: none; }

.nz-brand-logo {
  display: block;
  flex: 0 0 auto;
  width: clamp(34px, 3vw, 42px);
  line-height: 0;
}

.nz-brand-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.nz-brand-copy {
  min-width: 0;
}

.nz-brand-title {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
}

.nz-brand-kicker {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wp-block-navigation .wp-block-navigation-item__content {
  color: #fff;
  padding: 0.55rem 0.95rem;
  background-color: var(--nz-green-dark);
  border: 2px solid #fff;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease,
    box-shadow 160ms ease, transform 160ms ease;
}

.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation .wp-block-navigation-item__content:focus-visible {
  color: var(--nz-yellow) !important;
  background-color: var(--nz-control-hover) !important;
  border-color: #fff !important;
  box-shadow: var(--nz-control-shadow);
  transform: translateY(-2px);
}

.wp-block-navigation-item__content:focus-visible {
  outline: 2px solid var(--nz-yellow);
  outline-offset: 2px;
}

.nz-header .wp-block-navigation__responsive-container.is-menu-open {
  color: #fff;
  background: var(--nz-green-dark);
}

.nz-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: min(670px, calc(100vh - 130px));
  display: grid;
  align-items: center;
  padding-top: clamp(2.25rem, 5vw, 4.5rem) !important;
  padding-bottom: clamp(2.25rem, 5vw, 4.5rem) !important;
}

.home .wp-site-blocks > main {
  margin-block-start: 0;
}

.home .nz-hero {
  padding-top: 1.25rem !important;
}

.home .nz-hero.has-green-background-color {
  background-color: #000 !important;
}

.home,
.home .wp-site-blocks,
.home main {
  background-color: #000;
}

.home .nz-hero::before,
.home .nz-hero::after {
  display: none;
}

.nz-hero::before,
.nz-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
}

.nz-hero::before {
  width: 48rem;
  height: 48rem;
  right: -18rem;
  top: -15rem;
  background: rgba(255, 234, 0, 0.2);
}

.nz-hero::after {
  width: 32rem;
  height: 32rem;
  left: -18rem;
  bottom: -20rem;
  background: rgba(255, 255, 255, 0.13);
}

.nz-hero-title {
  max-width: 14ch;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem) !important;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.nz-hero-copy {
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem) !important;
  line-height: 1.5;
}

.nz-club-name {
  white-space: nowrap;
}

.nz-hero > .wp-block-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  box-sizing: border-box;
  width: min(1440px, calc(100% - 2rem));
  max-width: none;
  margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  background: var(--nz-green-dark);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--nz-radius);
  box-shadow: 0 24px 60px rgba(0, 49, 24, 0.24);
}

.nz-hero > .wp-block-columns > .wp-block-column {
  min-width: 0;
  width: auto;
}

.nz-hero .wp-block-buttons {
  margin-top: 1.25rem !important;
}

.nz-jubilee-badge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(100px, 13vw, 145px);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: center;
  box-sizing: border-box;
  width: min(100%, 42rem);
  margin: 0.65rem 0 2rem;
  padding: clamp(1.6rem, 3vw, 2.25rem) clamp(1.6rem, 3.5vw, 2.5rem);
  color: var(--nz-yellow);
  background: rgba(0, 0, 0, 0.2);
  border: 3px solid var(--nz-yellow);
  border-radius: 24px;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 750;
  line-height: 1.2;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease,
    transform 160ms ease;
}

.nz-jubilee-badge-copy {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  color: var(--nz-yellow);
  text-decoration: none;
}

.nz-jubilee-badge-copy span {
  font-size: 0.8em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nz-jubilee-badge-copy strong {
  color: #fff;
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  line-height: 1.02;
}

.nz-jubilee-badge-copy time {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 800;
}

.nz-jubilee-badge-poster {
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  cursor: zoom-in;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.nz-jubilee-badge-poster:hover,
.nz-jubilee-badge-poster:focus-visible {
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.48);
  transform: scale(1.035);
}

.nz-jubilee-badge-poster:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.nz-jubilee-badge-poster img {
  display: block;
  width: 100%;
  height: auto;
}

.nz-jubilee-badge:hover,
.nz-jubilee-badge:focus-within {
  color: #fff;
  background: var(--nz-control-hover);
  box-shadow: var(--nz-control-shadow);
  transform: translateY(-2px);
}

.nz-jubilee-badge:focus-within {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.nz-logo-card {
  width: min(100%, 440px);
  aspect-ratio: 1392 / 1130;
  margin-inline: auto;
  background: transparent url("assets/images/logo-nz-transparent.png") center / contain no-repeat;
  transform: rotate(1.5deg);
}

.nz-hero-jubilee-poster {
  justify-self: center;
  width: min(100%, 430px);
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--nz-radius);
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.42);
  cursor: zoom-in;
  transform: rotate(1deg);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.nz-hero-jubilee-poster:hover,
.nz-hero-jubilee-poster:focus-visible {
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.58);
  transform: rotate(0deg) translateY(-5px) scale(1.015);
}

.nz-hero-jubilee-poster:focus-visible {
  outline: 3px solid var(--nz-yellow);
  outline-offset: 5px;
}

.nz-hero-jubilee-poster img {
  display: block;
  width: 100%;
  height: auto;
}

.nz-section { padding-block: clamp(4rem, 8vw, 7rem); }
.nz-section-title { text-wrap: balance; }

.nz-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(7, 91, 50, 0.1);
  border-radius: var(--nz-radius);
  background: #fff;
  box-shadow: var(--nz-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.nz-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(7, 91, 50, 0.17);
}

.nz-card .wp-block-post-featured-image img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.nz-card-body { padding: 1.4rem 1.5rem 1.7rem; }
.nz-card .wp-block-post-title a { text-decoration: none; }

.nz-gallery-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--nz-radius);
  box-shadow: var(--nz-shadow);
}

.nz-footer a { color: inherit; }

.nz-footer-links {
  flex-wrap: nowrap !important;
  gap: clamp(0.25rem, 0.6vw, 0.45rem);
}

.nz-footer-links .wp-block-button {
  flex: 0 0 auto;
}

.nz-footer-links .wp-block-button__link {
  padding: clamp(0.38rem, 0.7vw, 0.5rem) clamp(0.58rem, 1vw, 0.85rem) !important;
  font-size: clamp(0.7rem, 1.15vw, 0.86rem);
  white-space: nowrap;
}

/* Die Inhaltsflaeche bleibt konsequent im Vereinsgruen. */
body {
  background: #000;
}

main.nz-section {
  box-sizing: border-box;
  width: min(1440px, calc(100% - 2rem));
  min-height: calc(100vh - 250px);
  margin: 2rem auto;
  color: #fff;
  background: var(--nz-green-dark);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--nz-radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

main.nz-section a,
main.nz-section .wp-block-post-title a,
main.nz-section .wp-block-query-pagination a {
  color: #fff;
}

main .nz-section.has-white-background-color,
main .nz-section.has-soft-green-background-color {
  color: #fff;
  background-color: var(--nz-green-dark) !important;
}

main .nz-section a:not(.wp-block-button__link) {
  color: inherit;
}

.nz-card {
  color: #fff;
  background: var(--nz-green-dark);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 50px rgba(0, 49, 24, 0.22);
}

.nz-card .has-green-color,
.nz-card .wp-block-post-date {
  color: var(--nz-yellow) !important;
}

main.nz-section .wpforms-field-label,
main.nz-section .wpforms-field-sublabel {
  color: #fff;
}

main.nz-section .wpforms-field input,
main.nz-section .wpforms-field textarea,
main.nz-section .wpforms-field select {
  color: #fff;
  background: #062f1e;
  border-color: rgba(255, 255, 255, 0.3);
}

main.nz-section .wpforms-submit {
  color: #fff !important;
  background: var(--nz-green-dark) !important;
  border: 2px solid #fff !important;
  border-radius: 999px !important;
  padding: 0.75rem 1.4rem !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease,
    box-shadow 160ms ease, transform 160ms ease;
}

main.nz-section .wpforms-submit:hover,
main.nz-section .wpforms-submit:focus-visible {
  color: var(--nz-yellow) !important;
  background: var(--nz-control-hover) !important;
  border-color: #fff !important;
  box-shadow: var(--nz-control-shadow) !important;
  transform: translateY(-2px);
}

main.nz-section .wpforms-submit:focus-visible {
  outline: 2px solid var(--nz-yellow) !important;
  outline-offset: 3px;
}

/* Header und Footer bilden die ruhigen, weissen Abschlussflaechen. */
.nz-footer,
.nz-footer.has-dark-green-background-color {
  color: #fff !important;
  background-color: var(--nz-green-dark) !important;
  border-radius: var(--nz-radius);
  overflow: hidden;
}

/* Einheitlicher weißer Rahmen für die tragenden Flächen auf jeder Seite. */
.nz-header,
main.nz-section,
.nz-footer {
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.home main > .nz-section:not(.nz-hero) {
  box-sizing: border-box;
  width: min(1440px, calc(100% - 2rem));
  margin: 2rem auto;
  padding-inline: clamp(1.75rem, 4vw, 4rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--nz-radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.home .nz-hero > .wp-block-columns,
.home main > .nz-section:not(.nz-hero) {
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.home main > .nz-jubilee-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  color: #fff;
  background: var(--nz-green-dark);
}

.nz-jubilee-copy {
  max-width: 38rem;
}

.nz-jubilee-kicker {
  margin-bottom: 0.75rem;
  color: var(--nz-yellow);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nz-jubilee-copy h2 {
  margin-block: 0 0.75rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.nz-jubilee-date {
  margin-block: 0 1rem;
  color: var(--nz-yellow);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 800;
}

.nz-jubilee-copy > p:not(.nz-jubilee-kicker):not(.nz-jubilee-date) {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.55;
}

.nz-jubilee-open {
  margin-top: 0.75rem;
  cursor: pointer;
}

.nz-jubilee-poster {
  justify-self: center;
  width: min(100%, 360px);
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: calc(var(--nz-radius) - 6px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.34);
  cursor: zoom-in;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.nz-jubilee-poster:hover,
.nz-jubilee-poster:focus-visible {
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
  transform: translateY(-4px) scale(1.01);
}

.nz-jubilee-poster:focus-visible {
  outline: 3px solid var(--nz-yellow);
  outline-offset: 4px;
}

.nz-jubilee-poster img {
  display: block;
  width: 100%;
  height: auto;
}

.nz-jubilee-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: start center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 2vh 1rem;
  overflow: auto;
  background: rgba(0, 0, 0, 0.88);
}

.nz-jubilee-dialog[hidden] {
  display: none;
}

.nz-lightbox-open {
  overflow: hidden;
}

.nz-jubilee-dialog-panel {
  position: relative;
  width: min(92vw, 760px);
  overflow: hidden;
  background: #000;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--nz-radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72);
}

.nz-jubilee-dialog-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.nz-jubilee-close {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.nz-footer h1,
.nz-footer h2,
.nz-footer h3,
.nz-footer h4,
.nz-footer h5,
.nz-footer h6 {
  color: #fff !important;
}

.home .wp-block-button__link.has-white-background-color:not(:hover):not(:focus-visible) {
  color: #fff !important;
  background-color: var(--nz-green-dark) !important;
}

/* Galerie: Vereinsgruen als Hauptflaeche, Inhalte bewusst hell gehalten. */
.page-id-8 {
  background: #000;
}

.page-id-8 main.nz-section {
  color: #fff;
}

.page-id-8 main.nz-section a {
  color: #fff;
}

.page-id-8 .ngg-albumoverview.default-view .ngg-album-compact {
  color: #fff;
  background: var(--nz-green-dark);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--nz-radius);
  box-shadow: 0 14px 34px rgba(0, 49, 24, 0.2);
}

.page-id-8 .ngg-albumoverview.default-view .ngg-album-compact a {
  color: #fff;
}

.page-id-8 .ngg-albumoverview.default-view .ngg-album-compactbox {
  overflow: hidden;
  border-radius: calc(var(--nz-radius) - 8px);
}

.page-id-8 .ngg-albumoverview.default-view {
  position: relative;
  left: 50%;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: min(1180px, calc(100vw - 3rem));
  max-width: none !important;
  margin: 2.5rem 0 3rem !important;
  transform: translateX(-50%);
}

.page-id-8 .ngg-albumoverview.default-view .ngg-album-compact {
  display: block;
  float: none;
  width: auto;
  margin: 0 !important;
}

.page-id-8 .ngg-albumoverview.default-view .ngg-album-link img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-id-8 .ngg-albumoverview.default-view > .ngg-clear {
  display: none;
}

.page-id-8 .ngg-navigation a,
.page-id-8 .ngg-navigation span {
  color: #fff;
}

.page-id-8 .ngg-navigation .current {
  color: var(--nz-yellow);
}

@media (max-width: 782px) {
  .admin-bar .nz-header { top: 46px; }
  .nz-hero { min-height: auto; }
  .nz-hero > .wp-block-columns {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .nz-logo-card { width: min(82vw, 330px); }
  .nz-hero-jubilee-poster { width: min(88vw, 420px); }
  .nz-hero-title { max-width: 14ch; }

  .home main > .nz-jubilee-section {
    grid-template-columns: 1fr;
  }

  .nz-jubilee-copy {
    max-width: none;
  }

  .nz-jubilee-poster {
    width: min(100%, 420px);
  }

  main.nz-section,
  .home main > .nz-section:not(.nz-hero) {
    width: min(100% - 1rem, 1440px);
    margin-block: 1rem;
    padding-inline: 1.5rem;
  }
}

@media (max-width: 1240px) {
  .nz-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none;
  }

  .nz-header .wp-block-navigation__responsive-container-open {
    display: flex;
  }
}

@media (max-width: 700px) {
  .page-id-8 .ngg-albumoverview.default-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100% - 2rem, 620px);
  }
}

@media (max-width: 430px) {
  .nz-jubilee-badge {
    grid-template-columns: 1fr;
  }

  .nz-jubilee-badge-poster {
    width: min(62vw, 220px);
    justify-self: center;
  }

  .nz-club-name {
    white-space: normal;
  }

  .page-id-8 .ngg-albumoverview.default-view {
    grid-template-columns: 1fr;
  }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nz-card,
  .wp-block-navigation-item__content,
  .wp-block-button__link,
  .nz-jubilee-badge,
  .nz-jubilee-badge-poster,
  .nz-hero-jubilee-poster,
  .nz-jubilee-poster,
  main.nz-section .wpforms-submit { transition: none; }
}

/* Selected club photographs: restrained grids, full uncropped images. */
.nz-club-photo {
  margin: 0;
}

.nz-club-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.nz-club-photo figcaption {
  margin-top: 0.65rem;
  color: inherit;
  opacity: 0.8;
  font-size: 0.875rem;
  line-height: 1.5;
}

.nz-club-portraits,
.nz-club-gallery {
  display: grid;
  gap: 2rem 1.25rem;
  margin-block: 2rem 3.5rem;
  align-items: start;
}

.nz-club-portraits {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nz-club-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nz-club-portraits > *,
.nz-club-gallery > * {
  min-width: 0;
  margin-block: 0;
}

.nz-club-portraits img,
.nz-club-gallery img {
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #082b1c;
}

@media (max-width: 600px) {
  .nz-club-portraits,
  .nz-club-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }
}

/* Fixed page backdrop, outside all content panels. */
body:not(.wp-admin) {
  isolation: isolate;
}

body:not(.wp-admin)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  background: #000 url("assets/images/zunft-masken-ohne-blaetter-hexe.png") center 90px / auto 90vh no-repeat;
  mix-blend-mode: screen;
  opacity: 0.055;
  pointer-events: none;
}

.home .wp-site-blocks,
.home main,
.home .nz-hero,
.home .nz-hero.has-green-background-color {
  background-color: transparent !important;
}

.nz-board-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-block: 1.5rem 2.5rem;
  border: 3px solid var(--nz-yellow);
  border-radius: 24px;
  background: #0d3323;
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}
.nz-board-link span { color: var(--nz-yellow); }
.nz-board-link:hover { background: var(--nz-green-dark); color: var(--nz-yellow); }
.nz-board-link:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.nz-board-table { overflow-x: auto; }
.nz-board-table table { width: 100%; border-collapse: collapse; }
.nz-board-table th, .nz-board-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid #ffffff40; }
.nz-board-table th { color: var(--nz-yellow); }
.nz-board-table tbody tr:nth-child(even) { background: #ffffff08; }

.nz-figures-nav { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block: 2rem; }
.nz-figures-nav a { padding: 0.5rem 1rem; border: 1px solid var(--nz-yellow); border-radius: 999px; text-decoration: none; }
.nz-figures-nav a:hover { color: var(--nz-yellow); }
.nz-figure-description { display: flow-root; margin-block: 3rem; }
.nz-figure-description h2 { scroll-margin-top: 110px; }
.nz-figure-description img { float: left; max-width: 35%; height: auto; margin: 0.35rem 1.5rem 1rem 0; border-radius: 12px; }

/* Keep all desktop menu entries on a single line. */
@media (min-width: 1241px) {
  .nz-header {
    padding-inline: clamp(1.5rem, 2.5vw, 2rem) !important;
  }
  .nz-header > .wp-block-group {
    flex-wrap: nowrap;
    gap: 1.25rem;
  }
  .nz-header .nz-brand { flex-shrink: 0; }
  .nz-header .nz-brand-title { font-size: 1.2rem; }
  .nz-header .wp-block-navigation { flex-shrink: 0; }
  .nz-header .wp-block-navigation__container {
    flex-wrap: nowrap;
    gap: 0.45rem;
  }
  .nz-header .wp-block-navigation-item__content {
    white-space: nowrap;
    font-size: 0.95rem;
    padding: 0.55rem 0.6rem;
  }
}



#haesfiguren-uebersicht { scroll-margin-top: 110px; }
.nz-back-top { clear: both; padding-top: 1rem; }
.nz-back-top .wp-block-button__link { font-size: 1rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Abstand zum Kopfbereich beim News-Sprung. */
#news { scroll-margin-top: 1rem; }
body.admin-bar #news { scroll-margin-top: calc(32px + 1rem); }
@media (max-width: 782px) {
  body.admin-bar #news { scroll-margin-top: calc(46px + 1rem); }
}

/* Aufklappbarer Kontaktbereich im Hauptmenü. */
.nz-header .wp-block-navigation .wp-block-navigation__submenu-container {
  background: var(--nz-green-dark);
  color: #fff;
  border: 1px solid #ffffffcc;
  border-radius: 16px;
  padding: 0.6rem;
  gap: 0.45rem;
  min-width: 15rem;
}
.nz-header .wp-block-navigation__submenu-container .wp-block-navigation-item {
  width: 100%;
}
.nz-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  display: block;
  width: 100%;
  box-sizing: border-box;
}
.nz-header .wp-block-navigation-submenu:last-child > .wp-block-navigation__submenu-container {
  left: auto;
  right: 0;
}

/* WordPress setzt beim aufklappbaren Button den linken Innenabstand zurück. */
.nz-header .wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle {
  padding: 0.55rem 1.6rem 0.55rem 0.95rem;
}
.nz-header .wp-block-navigation__submenu-container {
  z-index: 30;
}

/* Luft zwischen Kontakt-Button und aufgeklapptem Menü auf Desktop. */
.nz-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-submenu > .wp-block-navigation__submenu-container {
  top: calc(100% + 0.75rem);
}

/* Mobile navigation: use WordPress's accessible dialog and keyboard controls. */
@media (max-width: 1240px) {
  .nz-header {
    /* A backdrop filter would constrain the fixed menu to the header. */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0.75rem 1rem !important;
  }
  .nz-header > .wp-block-group { gap: 0.75rem; }
  .nz-header .nz-brand { min-width: 0; gap: 0.6rem; }
  .nz-header .wp-block-navigation { flex-shrink: 0; }
  .nz-header .wp-block-navigation__responsive-container-open,
  .nz-header .wp-block-navigation__responsive-container-close {
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 48px;
    min-height: 48px;
    padding: 0.5rem;
    border: 1px solid #ffffffb3;
    border-radius: 14px;
    color: #fff;
    background: var(--nz-green-dark);
  }
  .nz-header .wp-block-navigation__responsive-container-open::after {
    content: "Menü";
    font-size: 1rem;
    font-weight: 700;
  }
  .nz-header .wp-block-navigation__responsive-container-open:focus-visible,
  .nz-header .wp-block-navigation__responsive-container-close:focus-visible {
    outline: 3px solid var(--nz-yellow);
    outline-offset: 3px;
  }
  .nz-header .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #123f2d;
  }
  .nz-header .is-menu-open .wp-block-navigation__responsive-dialog {
    max-width: 32rem;
    margin-inline: auto;
  }
  .nz-header .is-menu-open .wp-block-navigation__responsive-container-content {
    align-items: stretch;
    padding-top: 4.5rem;
    padding-bottom: 1rem;
  }
  .nz-header .is-menu-open .wp-block-navigation__container {
    width: 100%;
    align-items: stretch;
    gap: 0.65rem;
  }
  .nz-header .is-menu-open .wp-block-navigation-item {
    width: 100%;
    align-items: stretch;
  }
  .nz-header .is-menu-open .wp-block-navigation-item__content {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    font-size: 1.1rem;
    text-align: left;
    white-space: normal;
  }
  .nz-header .is-menu-open .wp-block-navigation__submenu-container {
    position: static;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0 0 0 0.9rem;
    border: 0;
    border-left: 2px solid var(--nz-yellow);
    border-radius: 0;
    background: transparent;
    gap: 0.5rem;
  }
}

@media (max-width: 600px) {
  .nz-header { width: calc(100% - 1rem) !important; border-radius: 18px; }
  .nz-brand-title { white-space: normal; font-size: 1rem; }
  .nz-brand-kicker { font-size: 0.6rem; letter-spacing: 0.08em; }
  .nz-brand-logo { width: 30px; }
  .nz-header .nz-brand-copy { max-width: 12rem; }
  .admin-bar .nz-header { top: 0; }
  .nz-hero > .wp-block-columns {
    width: calc(100% - 1rem);
    padding: 1.25rem;
    gap: 1.5rem;
    border-radius: 20px;
  }
  main.nz-section,
  .home main > .nz-section:not(.nz-hero) {
    box-sizing: border-box;
    padding: 2rem 1.25rem;
    border-radius: 20px;
  }
  .nz-hero-title { font-size: clamp(1.85rem, 7.6vw, 2.75rem) !important; }
  .nz-hero-copy { font-size: 1rem !important; }
  .nz-club-name { white-space: normal; }
  .nz-jubilee-badge { padding: 1rem; gap: 1rem; border-radius: 18px; }
  .nz-jubilee-badge-copy strong { font-size: clamp(1.75rem, 7vw, 2.6rem); }
  .nz-jubilee-badge-copy time { font-size: clamp(1.1rem, 4.6vw, 1.5rem); }
  .nz-jubilee-badge-poster { max-width: 160px; justify-self: center; }
  .nz-logo-card { max-width: min(100%, 230px); margin-inline: auto; }
  .wp-block-buttons { gap: 0.75rem; }
  .wp-block-button__link { min-height: 44px; box-sizing: border-box; }
  .nz-figure-description img {
    float: none;
    display: block;
    max-width: min(100%, 280px);
    margin: 0 auto 1.25rem;
  }
  .nz-figures-nav a { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; }
  main.nz-section input,
  main.nz-section textarea,
  main.nz-section select { font-size: max(16px, 1rem); }
  body:not(.wp-admin)::before { background-size: auto 75vh; background-position: center 100px; }
}

@media (max-width: 360px) {
  .nz-header .wp-block-navigation__responsive-container-open::after { content: none; }
}

/* Override WordPress's default white overlay and its high-specificity resets. */
.nz-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open {
  background-color: #123f2d !important;
  color: #fff !important;
}
.nz-header .wp-block-navigation .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
  color: #fff !important;
  padding: 0.8rem 1rem !important;
  border: 1px solid #ffffffb3;
}
.nz-header .wp-block-navigation .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content:hover,
.nz-header .wp-block-navigation .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content:focus-visible {
  color: var(--nz-yellow) !important;
}
.nz-header .wp-block-navigation .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,
.nz-header .wp-block-navigation .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
  align-items: stretch;
  width: 100%;
}
.nz-header .wp-block-navigation .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 0 0 0 0.9rem;
  margin-top: 0.5rem;
  background: transparent;
  color: #fff;
}
