/* R550 – compacte footer, betrouwbare pagina-overgang en vaste ruimte boven de footer */

/* De footer mag in geen enkele layout in een vaste hoogte worden gedrukt. */
#container.fullscreen {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

#footer.site-footer {
  display: block !important;
  grid-area: footer;
  width: 100%;
  min-width: 0;
  margin: 20px 0 0;
  padding: 0;
  overflow: hidden;
  align-self: end;
  border: 1px solid rgba(128, 70, 0, 0.28);
  border-radius: 5px;
  background: linear-gradient(180deg, #f9a62b 0%, #f19620 58%, #eb8d0e 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), var(--shadow-base, 0 7px 18px rgba(31, 45, 61, 0.08));
  color: #442804;
  font: inherit;
  line-height: 1.35;
}

#footer.site-footer *,
#footer.site-footer *::before,
#footer.site-footer *::after {
  box-sizing: border-box;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(175px, auto) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 62px;
  padding: 11px 16px;
}

.site-footer-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.site-footer-brand-mark {
  display: inline-flex;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(112, 58, 0, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px #fff, 0 2px 7px rgba(91, 49, 0, 0.13);
}

.site-footer-brand-mark svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: #557a3e;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer-brand-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.site-footer-brand-copy strong {
  color: #3d2302;
  font-size: 15px;
  line-height: 1.2;
}

.site-footer-brand-copy span {
  overflow: hidden;
  color: rgba(68, 40, 4, 0.78);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer-links {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3px 5px;
}

.site-footer-links a {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  justify-content: center;
  padding: 4px 7px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #442804;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
  border-color: rgba(99, 55, 0, 0.2);
  background: rgba(255, 255, 255, 0.42);
  outline: none;
}

.site-footer-top {
  display: inline-flex;
  min-height: 33px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(91, 49, 0, 0.35);
  border-radius: 4px;
  background: linear-gradient(180deg, #fff, #fff4df);
  box-shadow: inset 0 1px #fff;
  color: #442804;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.site-footer-top:hover,
.site-footer-top:focus-visible {
  border-color: #557a3e;
  background: #eef5ea;
  outline: none;
}

.site-footer-top svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer-bottom {
  display: flex;
  min-height: 31px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 16px;
  border-top: 1px solid rgba(107, 56, 0, 0.16);
  background: rgba(112, 60, 0, 0.07);
  color: rgba(68, 40, 4, 0.8);
  font-size: 11px;
  line-height: 1.3;
}

/* Alleen een loaderbalk; de inhoud zelf vervaagt niet meer. */
.snoeten-page-loader {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20000;
  height: 3px;
  pointer-events: none;
  opacity: 0;
}

.snoeten-page-loader::before {
  content: '';
  display: block;
  width: 38%;
  height: 100%;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, #3f642f, #7ca665, #557a3e);
  box-shadow: 0 1px 4px rgba(63, 100, 47, 0.32);
  transform: translateX(-110%);
}

html.is-page-loading .snoeten-page-loader {
  opacity: 1;
}

html.is-page-loading .snoeten-page-loader::before {
  animation: snoeten-page-progress-r542 0.9s ease-in-out infinite;
}

@keyframes snoeten-page-progress-r542 {
  from { transform: translateX(-110%); }
  to { transform: translateX(300%); }
}

@media (min-width: 769px) and (max-width: 1024px) {
  #footer.site-footer {
    margin-top: 20px;
  }

  .site-footer-inner {
    grid-template-columns: minmax(170px, auto) minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 12px;
  }

  .site-footer-brand-copy span {
    display: none;
  }

  .site-footer-links {
    justify-content: flex-start;
  }

  .site-footer-links a {
    padding-inline: 5px;
  }
}

@media (max-width: 768px) {
  #footer.site-footer {
    margin-top: 16px;
    border-radius: 5px 5px 0 0;
  }

  .site-footer-inner {
    grid-template-columns: 1fr auto;
    gap: 11px;
    min-height: 0;
    padding: 13px 14px 11px;
  }

  .site-footer-brand-copy span {
    white-space: normal;
  }

  .site-footer-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 2px;
  }

  .site-footer-links a {
    min-height: 32px;
    padding: 6px 7px;
    white-space: normal;
  }

  .site-footer-top {
    min-width: 40px;
    min-height: 36px;
  }

  .site-footer-top span {
    display: none;
  }

  .site-footer-bottom {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 8px 14px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.is-page-loading .snoeten-page-loader::before {
    animation: none;
    transform: none;
  }
}

.no-css #footer.site-footer {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.no-css #footer.site-footer .site-footer-bottom {
  background: transparent;
}
