/* NZL Divi 5 Universal Footer – v1.2.0 */
.nzl_d5_universal_footer,
.nzl_d5_universal_footer .et_pb_module_inner {
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  padding: 0;
}

/*
 * A footer normally sits alone in its Theme Builder row. Make that row full width,
 * retain its top spacing and remove only the empty area below the module.
 */
.et_pb_section:has(.nzl_d5_universal_footer) {
  padding-bottom: 0 !important;
  overflow-x: hidden;
  overflow-x: clip;
}

.et_pb_row:has(.nzl_d5_universal_footer) {
  width: 100% !important;
  max-width: 100% !important;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
}

.nzl-d5-footer {
  --nzl-footer-primary: #06264b;
  --nzl-footer-primary-dark: #031a33;
  --nzl-footer-accent: #f28c00;
  --nzl-footer-heading: #ffffff;
  --nzl-footer-company-weight: 500;
  --nzl-footer-text: #d7e1ec;
  --nzl-footer-muted: #9fb0c2;
  --nzl-footer-border: rgba(255, 255, 255, 0.12);
  --nzl-footer-card: rgba(255, 255, 255, 0.06);

  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  color: var(--nzl-footer-text);
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--nzl-footer-accent) 12%, transparent), transparent 31%),
    linear-gradient(135deg, var(--nzl-footer-primary) 0%, var(--nzl-footer-primary-dark) 100%);
  font-family: inherit;
  overflow: hidden;
}

@supports not (background: color-mix(in srgb, #000 50%, transparent)) {
  .nzl-d5-footer {
    background: linear-gradient(135deg, var(--nzl-footer-primary) 0%, var(--nzl-footer-primary-dark) 100%);
  }
}

.nzl-d5-footer::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--nzl-footer-accent);
}

.nzl-d5-footer *,
.nzl-d5-footer *::before,
.nzl-d5-footer *::after {
  box-sizing: border-box;
}

.nzl-footer-container {
  width: min(1400px, calc(100% - 48px));
  max-width: 1400px;
  margin-inline: auto;
}

.nzl-footer-main {
  position: relative;
  z-index: 2;
  padding: 76px 0 62px;
}

.nzl-footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) minmax(150px, .75fr) minmax(260px, 1.15fr) minmax(220px, .9fr);
  gap: 55px;
}

.nzl-footer-column {
  min-width: 0;
}

.nzl-d5-footer .nzl-footer-heading {
  position: relative;
  margin: 0 0 25px;
  padding: 0 0 13px;
  color: var(--nzl-footer-heading, #ffffff) !important;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}


.nzl-d5-footer .nzl-footer-heading *,
.nzl-d5-footer .nzl-footer-heading a {
  color: inherit !important;
}

.nzl-d5-footer .nzl-footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 34px;
  height: 3px;
  border-radius: 10px;
  background: var(--nzl-footer-accent);
}

.nzl-footer-logo {
  display: inline-flex;
  align-items: center;
  max-width: 270px;
  min-height: 60px;
  margin-bottom: 23px;
  color: #fff !important;
  text-decoration: none !important;
}

.nzl-footer-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 88px;
  object-fit: contain;
  object-position: left center;
}

.nzl-footer-wordmark {
  color: #fff;
  font-size: clamp(24px, 2vw, 34px);
  font-weight: var(--nzl-footer-company-weight, 500);
  line-height: 1.1;
}

.nzl-footer-description {
  max-width: 430px;
  margin: 0 0 24px;
  padding: 0;
  color: var(--nzl-footer-text);
  font-size: 15.5px;
  line-height: 1.75;
  white-space: pre-line;
}

.nzl-footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nzl-footer-badges > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--nzl-footer-border);
  border-radius: 100px;
  color: #fff;
  background: var(--nzl-footer-card);
  font-size: 12.5px;
  font-weight: 600;
}

.nzl-footer-badges svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  fill: var(--nzl-footer-accent);
}

.nzl-footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.nzl-footer-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0;
  color: var(--nzl-footer-text) !important;
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none !important;
  overflow-wrap: anywhere;
  transition: color .25s ease, transform .25s ease;
}

.nzl-footer-links a::before {
  content: "";
  flex: 0 0 auto;
  width: 0;
  height: 2px;
  margin-right: 0;
  border-radius: 5px;
  background: var(--nzl-footer-accent);
  transition: width .25s ease, margin-right .25s ease;
}

.nzl-footer-links a:hover,
.nzl-footer-links a:focus-visible {
  color: #fff !important;
  transform: translateX(3px);
}

.nzl-footer-links a:hover::before,
.nzl-footer-links a:focus-visible::before {
  width: 13px;
  margin-right: 8px;
}

.nzl-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nzl-contact-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #fff !important;
  background: var(--nzl-footer-card);
  text-decoration: none !important;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.nzl-contact-item:hover,
.nzl-contact-item:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--nzl-footer-accent) 48%, transparent);
  background: rgba(255, 255, 255, 0.1);
}

.nzl-contact-icon {
  display: flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: #fff;
  background: var(--nzl-footer-accent);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--nzl-footer-accent) 20%, transparent);
}

.nzl-contact-icon svg,
.nzl-hours-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nzl-contact-item > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.nzl-contact-item small,
.nzl-footer-hours small {
  color: var(--nzl-footer-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.nzl-contact-item strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nzl-footer-hours {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--nzl-footer-border);
}

.nzl-hours-icon {
  display: flex;
  flex: 0 0 37px;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  color: var(--nzl-footer-accent);
  background: color-mix(in srgb, var(--nzl-footer-accent) 13%, transparent);
}

.nzl-footer-hours > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.nzl-footer-hours strong {
  color: #fff;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.nzl-footer-bottom {
  position: relative;
  z-index: 2;
  margin: 0;
  border-top: 1px solid var(--nzl-footer-border);
  background: rgba(0, 0, 0, 0.16);
}

.nzl-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-height: 74px;
  padding-top: 17px;
  padding-bottom: 17px;
}

.nzl-footer-bottom p {
  margin: 0;
  padding: 0;
  color: var(--nzl-footer-muted);
  font-size: 13px;
  line-height: 1.5;
}

.nzl-company-name {
  color: #fff;
  font-weight: var(--nzl-footer-company-weight, 500);
}

.nzl-footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.nzl-footer-bottom-links > span {
  color: var(--nzl-footer-accent);
}

.nzl-footer-bottom-links a {
  color: var(--nzl-footer-muted) !important;
  font-size: 13px;
  text-decoration: none !important;
  transition: color .25s ease;
}

.nzl-footer-bottom-links a:hover,
.nzl-footer-bottom-links a:focus-visible {
  color: #fff !important;
}

@media (max-width: 1100px) {
  .nzl-footer-grid {
    grid-template-columns: 1.2fr .8fr;
    gap: 50px 60px;
  }
}

@media (max-width: 700px) {
  .nzl-footer-container {
    width: min(100% - 34px, 1400px);
  }

  .nzl-footer-main {
    padding: 60px 0 45px;
  }

  .nzl-footer-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .nzl-footer-logo {
    max-width: 225px;
  }

  .nzl-footer-description {
    font-size: 15px;
  }

  .nzl-footer-heading {
    margin-bottom: 20px;
  }

  .nzl-footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 9px;
    padding-top: 21px;
    padding-bottom: 21px;
  }

  .nzl-footer-bottom-links {
    flex-wrap: wrap;
    white-space: normal;
  }
}

@media (max-width: 390px) {
  .nzl-footer-container {
    width: min(100% - 26px, 1400px);
  }

  .nzl-contact-item {
    padding: 11px;
  }

  .nzl-contact-icon {
    flex-basis: 39px;
    width: 39px;
    height: 39px;
  }

  .nzl-contact-item strong {
    font-size: 13px;
  }
}

/* =========================================================
   NZL Kontakt Buttons
   ========================================================= */
.nzl-contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nzl-btn-gap, 14px);
  align-items: center;
  width: 100%;
}

.nzl-contact-buttons--column {
  flex-direction: column;
  align-items: stretch;
}

.nzl-contact-buttons.nzl-align--left { justify-content: flex-start; }
.nzl-contact-buttons.nzl-align--center { justify-content: center; }
.nzl-contact-buttons.nzl-align--right { justify-content: flex-end; }

.nzl-contact-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: var(--nzl-btn-min-width, 220px);
  padding: var(--nzl-btn-pad-y, 15px) var(--nzl-btn-pad-x, 24px);
  border: 0;
  border-radius: var(--nzl-btn-radius, 10px);
  font-size: var(--nzl-btn-font-size, 17px);
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: 0 10px 26px rgba(7, 30, 51, 0.18);
  transition: transform .25s ease, background-color .25s ease, color .25s ease, box-shadow .25s ease;
  will-change: transform;
}

.nzl-contact-button--phone {
  background: var(--nzl-phone-bg, #F59E0B);
  color: var(--nzl-phone-text, #fff) !important;
  animation: nzlBtnWiggle 5.8s ease-in-out infinite;
}

.nzl-contact-button--whatsapp {
  background: var(--nzl-wa-bg, #25D366);
  color: var(--nzl-wa-text, #fff) !important;
  animation: nzlBtnWiggle 5.8s ease-in-out 1.3s infinite;
}

.nzl-contact-button--email {
  background: var(--nzl-email-bg, #071E33);
  color: var(--nzl-email-text, #fff) !important;
  animation: nzlBtnWiggle 5.8s ease-in-out 2.6s infinite;
}

.nzl-contact-button::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: -90px;
  width: 55px;
  height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.36), transparent);
  transform: skewX(-18deg);
  animation: nzlButtonShine 5.8s ease-in-out infinite;
  pointer-events: none;
}

.nzl-contact-button--whatsapp::after { animation-delay: 1.3s; }
.nzl-contact-button--email::after { animation-delay: 2.6s; }

.nzl-contact-button--phone:hover,
.nzl-contact-button--phone:focus-visible {
  background: var(--nzl-phone-hover-bg, #F59E0B);
  color: var(--nzl-phone-hover-text, #071E33) !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(245, 158, 11, .24);
  animation-play-state: paused;
}

.nzl-contact-button--whatsapp:hover,
.nzl-contact-button--whatsapp:focus-visible {
  background: var(--nzl-wa-hover-bg, #1ebe5d);
  color: var(--nzl-wa-hover-text, #fff) !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(37, 211, 102, .24);
  animation-play-state: paused;
}

.nzl-contact-button--email:hover,
.nzl-contact-button--email:focus-visible {
  background: var(--nzl-email-hover-bg, #0b2b49);
  color: var(--nzl-email-hover-text, #fff) !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(7, 30, 51, .24);
  animation-play-state: paused;
}

.nzl-contact-button__icon {
  display: inline-flex;
  width: var(--nzl-btn-icon-size, 22px);
  height: var(--nzl-btn-icon-size, 22px);
  flex: 0 0 var(--nzl-btn-icon-size, 22px);
}

.nzl-contact-button__icon svg { width: 100%; height: 100%; fill: currentColor; }
.nzl-contact-buttons.nzl-no-wiggle .nzl-contact-button { animation: none !important; }
.nzl-contact-buttons.nzl-no-shine .nzl-contact-button::after { display: none; }
.nzl-contact-buttons.nzl-no-lift .nzl-contact-button:hover,
.nzl-contact-buttons.nzl-no-lift .nzl-contact-button:focus-visible { transform: none; }
.nzl-contact-buttons--column .nzl-contact-button { width: 100%; }

@keyframes nzlBtnWiggle {
  0%, 82%, 100% { transform: rotate(0deg) translateY(0) scale(1); }
  84% { transform: rotate(-1.6deg) translateY(-1px) scale(1.015); }
  86% { transform: rotate(1.6deg) translateY(-1px) scale(1.015); }
  88% { transform: rotate(-1deg) translateY(0) scale(1.01); }
  90% { transform: rotate(1deg) translateY(0) scale(1.01); }
  92% { transform: rotate(0deg) translateY(0) scale(1); }
}

@keyframes nzlButtonShine {
  0%, 70% { left: -90px; opacity: 0; }
  78% { opacity: 1; }
  88%, 100% { left: calc(100% + 90px); opacity: 0; }
}

/* =========================================================
   NZL Google Bewertungsbanner
   ========================================================= */
.nzl-google-rating {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  max-width: 100%;
  padding: var(--nzl-rating-pad-y, 14px) var(--nzl-rating-pad-x, 18px);
  border: 1px solid var(--nzl-rating-border, #e2e8f0);
  border-radius: var(--nzl-rating-radius, 14px);
  background: var(--nzl-rating-bg, #fff);
  color: var(--nzl-rating-text, #475569) !important;
  text-decoration: none !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .09);
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.nzl-google-rating--column { flex-direction: column; }
.nzl-google-rating.nzl-align--left { text-align: left; justify-content: flex-start; }
.nzl-google-rating.nzl-align--center { text-align: center; justify-content: center; }
.nzl-google-rating.nzl-align--right { text-align: right; justify-content: flex-end; }
.nzl-google-rating:hover,
.nzl-google-rating:focus-visible {
  background: var(--nzl-rating-hover-bg, #fff);
  border-color: var(--nzl-rating-hover-border, #F59E0B);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .13);
}
.nzl-google-rating.nzl-no-shadow { box-shadow: none; }
.nzl-google-rating.nzl-no-lift:hover,
.nzl-google-rating.nzl-no-lift:focus-visible { transform: none; }

.nzl-google-rating__google {
  display: inline-flex;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
}
.nzl-google-rating__google svg { width: 100%; height: 100%; }
.nzl-google-rating__score {
  color: var(--nzl-rating-value, #071E33);
  font-size: var(--nzl-rating-size, 25px);
  font-weight: 800;
  line-height: 1;
}
.nzl-google-rating__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.2;
}
.nzl-google-rating__stars {
  display: inline-flex;
  gap: 1px;
  color: var(--nzl-rating-stars, #F59E0B);
  font-size: var(--nzl-star-size, 20px);
  line-height: 1;
  letter-spacing: .02em;
}
.nzl-google-rating__label { font-weight: 700; color: inherit; }
.nzl-google-rating__copy small { font-size: 12px; opacity: .8; }

/* Bewertungsanimation: Die Bewertung zählt beim ersten Sichtkontakt hoch,
   die Sterne erscheinen nacheinander und funkeln anschließend dezent. */
.nzl-google-rating__score {
  font-variant-numeric: tabular-nums;
  min-width: 2.2ch;
}

.nzl-js .nzl-rating-animate-stars:not(.nzl-rating-is-visible) .nzl-google-rating__stars span {
  opacity: 0;
  transform: translateY(9px) scale(.35) rotate(-8deg);
}

.nzl-rating-animate-stars .nzl-google-rating__stars span {
  display: inline-block;
  transform-origin: 50% 70%;
  will-change: transform, opacity, filter;
}

.nzl-rating-animate-stars.nzl-rating-is-visible .nzl-google-rating__stars span {
  animation:
    nzlRatingStarPop .62s cubic-bezier(.2, .9, .24, 1.35) both,
    nzlRatingStarGlow 4.8s ease-in-out infinite;
}

.nzl-rating-animate-stars.nzl-rating-is-visible .nzl-google-rating__stars span:nth-child(1) { animation-delay: 0ms, 2100ms; }
.nzl-rating-animate-stars.nzl-rating-is-visible .nzl-google-rating__stars span:nth-child(2) { animation-delay: 110ms, 2220ms; }
.nzl-rating-animate-stars.nzl-rating-is-visible .nzl-google-rating__stars span:nth-child(3) { animation-delay: 220ms, 2340ms; }
.nzl-rating-animate-stars.nzl-rating-is-visible .nzl-google-rating__stars span:nth-child(4) { animation-delay: 330ms, 2460ms; }
.nzl-rating-animate-stars.nzl-rating-is-visible .nzl-google-rating__stars span:nth-child(5) { animation-delay: 440ms, 2580ms; }

.nzl-rating-count-complete .nzl-google-rating__score {
  animation: nzlRatingScoreSettle .48s cubic-bezier(.2, .9, .24, 1.3);
}

@keyframes nzlRatingStarPop {
  0% { opacity: 0; transform: translateY(9px) scale(.35) rotate(-8deg); filter: brightness(1); }
  65% { opacity: 1; transform: translateY(-3px) scale(1.18) rotate(3deg); filter: brightness(1.25); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); filter: brightness(1); }
}

@keyframes nzlRatingStarGlow {
  0%, 72%, 100% { transform: translateY(0) scale(1); filter: brightness(1) drop-shadow(0 0 0 transparent); }
  78% { transform: translateY(-1px) scale(1.12); filter: brightness(1.28) drop-shadow(0 0 5px currentColor); }
  84% { transform: translateY(0) scale(1); filter: brightness(1) drop-shadow(0 0 0 transparent); }
}

@keyframes nzlRatingScoreSettle {
  0% { transform: scale(.86); opacity: .75; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* =========================================================
   NZL Stacking Cards
   ========================================================= */
.nzl-stacking-cards {
  width: min(100%, var(--nzl-stack-max, 980px));
  margin-inline: auto;
  padding: var(--nzl-stack-outer-pad, 70px);
  border-radius: var(--nzl-stack-outer-radius, 34px);
  background: var(--nzl-stack-outer-bg, #f1f3f8);
  overflow: visible !important;
}

.nzl-stacking-cards__inner { overflow: visible !important; }
.nzl-stack-card {
  position: sticky;
  top: calc(var(--nzl-stack-top, 80px) + (var(--nzl-stack-index, 0) * var(--nzl-stack-gap, 18px)));
  z-index: var(--nzl-stack-z, 10);
  margin: 0 0 var(--nzl-stack-spacing, 70px);
  padding: var(--nzl-stack-card-pad, 0px);
  border: 1px solid var(--nzl-stack-border, #e2e8f0);
  border-radius: var(--nzl-stack-card-radius, 24px);
  background: var(--nzl-stack-card-bg, #f1f3f8);
  box-shadow: 0 24px 55px rgba(15, 23, 42, .13);
  overflow: hidden;
  transform: translateZ(0);
}
.nzl-stack-card:last-child { margin-bottom: 0; }
.nzl-stacking-cards.nzl-no-shadow .nzl-stack-card { box-shadow: none; }
.nzl-stack-card a { display: block; color: inherit; }
.nzl-stack-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--nzl-stack-ratio, 4/3);
  object-fit: var(--nzl-stack-fit, cover);
  border-radius: max(0px, calc(var(--nzl-stack-card-radius, 24px) - var(--nzl-stack-card-pad, 0px)));
}
.nzl-stacking-cards__empty {
  padding: 24px;
  border: 1px dashed #94a3b8;
  border-radius: 12px;
  color: #475569;
  text-align: center;
}

@media (max-width: 767px) {
  .nzl-contact-buttons.nzl-mobile-full { width: 100%; }
  .nzl-contact-buttons.nzl-mobile-full .nzl-contact-button { width: 100%; min-width: 0; }
  .nzl-google-rating { width: 100%; }
  .nzl-stacking-cards { padding: min(7vw, 28px); border-radius: min(7vw, 24px); }
  .nzl-stacking-cards.nzl-stack-disable-mobile .nzl-stack-card {
    position: relative;
    top: auto;
    margin-bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nzl-contact-button,
  .nzl-contact-button::after { animation: none !important; transition: none !important; }
  .nzl-google-rating { transition: none !important; }
  .nzl-google-rating__score,
  .nzl-google-rating__stars span { animation: none !important; transition: none !important; transform: none !important; opacity: 1 !important; filter: none !important; }
}
