/**
 * Print Assistant — Footer
 */

footer,
.pa-site-footer {
  background-color: var(--wp--preset--color--contrast);
  color: var(--wp--preset--color--base);
  position: relative;
}

footer .wp-block-spacer,
.pa-site-footer .wp-block-spacer {
  position: relative;
}

.pa-site-footer .is-style-text-specimen {
  color: color-mix(in srgb, var(--wp--preset--color--base) 45%, transparent);
  border-color: color-mix(in srgb, var(--wp--preset--color--base) 20%, transparent);
}

/* Spaltenköpfe — Überschrift, nicht klickbar; klar unterhalb der Nav-Links */
.pa-site-footer .pa-footer-col-label {
  margin: 0 0 var(--pa-space-3);
  padding: 0;
  font-family: var(--wp--preset--font-family--geist-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--wp--preset--color--base) 45%, transparent) !important;
  cursor: default;
}

.pa-site-footer .pa-footer-col-label:hover,
.pa-site-footer .pa-footer-col-label:focus {
  color: color-mix(in srgb, var(--wp--preset--color--base) 45%, transparent) !important;
}

.pa-site-footer .wp-block-navigation .wp-block-navigation-item__content {
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}

.pa-footer-grid .wp-block-column {
  border-right: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 12%, transparent);
  padding-right: var(--pa-space-6);
}

.pa-footer-grid .wp-block-column:last-child {
  border-right: none;
  padding-right: 0;
}

footer .wp-block-spacer::before,
.pa-site-footer .wp-block-spacer::before {
  content: "";
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  height: 3px;
  background-image: radial-gradient(
    circle at center,
    var(--wp--preset--color--light-gray) 1.5px,
    transparent 1.5px
  );
  background-repeat: repeat-x;
  background-size: 8px 3px;
  z-index: 1;
  opacity: 0.7;
}

footer .wp-block-group,
.pa-site-footer .wp-block-group {
  background-color: var(--wp--preset--color--contrast);
  color: var(--wp--preset--color--light-gray);
}

footer .wp-block-group a,
.pa-site-footer .wp-block-group a {
  color: var(--wp--preset--color--light-gray);
}

footer .wp-block-group a:not(.wp-block-navigation-item__content):not(.custom-logo-link),
.pa-site-footer .wp-block-group a:not(.wp-block-navigation-item__content):not(.custom-logo-link) {
  background-image: linear-gradient(var(--wp--preset--color--base), var(--wp--preset--color--base));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition:
    color var(--pa-transition-fast),
    background-size var(--pa-transition-base) var(--pa-ease-print);
}

footer .wp-block-group a:not(.wp-block-navigation-item__content):not(.custom-logo-link):hover,
.pa-site-footer .wp-block-group a:not(.wp-block-navigation-item__content):not(.custom-logo-link):hover {
  color: var(--wp--preset--color--base);
  background-size: 100% 1px;
  text-decoration: none;
}

.pa-site-footer .wp-block-navigation .wp-block-navigation-item__content,
.pa-site-footer .wp-block-navigation .wp-block-navigation-item__content:hover,
.pa-site-footer .wp-block-navigation .wp-block-navigation-item__content:focus {
  text-decoration: none;
  background-image: none;
  transition: color var(--pa-transition-fast), opacity var(--pa-transition-fast);
}

.pa-site-footer .wp-block-navigation .wp-block-navigation-item__content:hover,
.pa-site-footer .wp-block-navigation .wp-block-navigation-item__content:focus {
  color: var(--pa-color-interaction);
  opacity: 1;
}

/* Footer brand block — mirrors header logo + title + tagline */
.pa-site-footer .pa-footer-brand {
  margin-top: 0;
  gap: var(--pa-space-2) !important;
}

.pa-site-footer .pa-footer-brand-text {
  gap: 3px;
  width: fit-content;
  max-width: 100%;
}

.pa-site-footer .pa-footer-brand .wp-block-site-logo {
  width: 44px;
  flex-shrink: 0;
}

.pa-site-footer .pa-footer-brand .wp-block-site-logo img,
.pa-site-footer .pa-footer-brand .custom-logo {
  max-width: 44px;
  filter: grayscale(100%) brightness(1.3);
  opacity: 0.9;
}

.pa-site-footer .pa-footer-brand .wp-block-site-title,
.pa-site-footer .pa-footer-brand .wp-block-site-title a,
.pa-site-footer .pa-footer-brand p.wp-block-site-title {
  color: var(--wp--preset--color--base);
  font-family: var(--wp--preset--font-family--geist-sans);
  font-size: var(--wp--preset--font-size--medium);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
  background-image: none;
  margin: 0;
  transition: opacity var(--pa-transition-fast), color var(--pa-transition-fast);
}

.pa-site-footer .pa-footer-brand .wp-block-site-title a:hover,
.pa-site-footer .pa-footer-brand .wp-block-site-title a:focus {
  color: var(--wp--preset--color--base);
  text-decoration: none;
  background-image: none;
  opacity: 0.85;
}

.pa-site-footer .pa-footer-brand .wp-block-site-tagline,
.pa-site-footer .pa-footer-brand p.wp-block-site-tagline {
  display: block;
  color: color-mix(in srgb, var(--wp--preset--color--base) 65%, transparent);
  font-family: var(--wp--preset--font-family--geist-sans);
  font-size: 0.75rem !important;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
  white-space: nowrap !important;
  margin: 0;
}

.pa-site-footer .pa-footer-brand .custom-logo-link,
.pa-site-footer .pa-footer-brand .custom-logo-link:hover,
.pa-site-footer .pa-footer-brand .custom-logo-link:focus {
  text-decoration: none;
  background-image: none;
  box-shadow: none;
}

.pa-site-footer .pa-footer-brand .custom-logo-link {
  transition: opacity var(--pa-transition-fast);
}

.pa-site-footer .pa-footer-brand .custom-logo-link:hover,
.pa-site-footer .pa-footer-brand .custom-logo-link:focus {
  opacity: 0.85;
}

.pa-footer-grid .wp-block-column {
  transition: border-color var(--pa-transition-base);
}

.pa-footer-grid .wp-block-column:has(a:hover) {
  border-right-color: color-mix(in srgb, var(--wp--preset--color--base) 28%, transparent);
}

footer .wp-block-heading,
footer .wp-block-paragraph,
footer .wp-block-navigation-item__content,
.pa-site-footer .wp-block-heading,
.pa-site-footer .wp-block-paragraph,
.pa-site-footer .wp-block-navigation-item__content {
  color: var(--wp--preset--color--light-gray);
}

/* Copyright — muted tone, mixed-case brand claim */
.pa-site-footer .wp-block-paragraph.is-style-text-specimen,
.pa-site-footer p.is-style-text-specimen {
  color: color-mix(in srgb, var(--wp--preset--color--base) 45%, transparent) !important;
  border-color: color-mix(in srgb, var(--wp--preset--color--base) 20%, transparent);
}

.pa-site-footer .pa-footer-copyright {
  font-family: var(--wp--preset--font-family--geist-sans) !important;
  font-size: var(--wp--preset--font-size--small) !important;
  font-weight: 400;
  letter-spacing: 0.01em !important;
  line-height: 1.4;
  text-transform: none !important;
}

/* --- Go to top (fixed, footer height) --- */

.pa-go-top {
  position: fixed;
  right: var(--pa-space-5);
  bottom: var(--pa-space-5);
  z-index: 99990;
  pointer-events: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 44px;
  min-height: 44px;
  padding: var(--pa-space-2) var(--pa-space-3);
  border: 1px solid var(--wp--preset--color--line);
  background-color: var(--wp--preset--color--warm-white);
  color: var(--wp--preset--color--contrast);
  box-shadow: var(--pa-shadow-sheet);
  font-family: var(--wp--preset--font-family--geist-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity var(--pa-transition-base) var(--pa-ease-print),
    transform var(--pa-transition-base) var(--pa-ease-print),
    visibility var(--pa-transition-base),
    box-shadow var(--pa-transition-fast),
    border-color var(--pa-transition-fast),
    background-color var(--pa-transition-fast);
}

.pa-go-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.pa-go-top:hover {
  border-color: var(--pa-color-interaction);
  background-color: var(--wp--preset--color--paper-dark);
  box-shadow: var(--pa-shadow-stack);
  color: var(--pa-color-interaction);
  text-decoration: none;
}

.pa-go-top:focus-visible {
  outline: 2px solid var(--pa-color-interaction);
  outline-offset: 2px;
}

.pa-go-top__icon {
  font-size: 0.875rem;
  line-height: 1;
}

@media (min-width: 782px) {
  .pa-go-top {
    right: var(--pa-space-6);
    bottom: var(--pa-space-6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pa-go-top {
    transition: opacity var(--pa-transition-fast), visibility var(--pa-transition-fast);
    transform: none;
  }

  .pa-go-top.is-visible {
    transform: none;
  }
}
