/* ════════════════════════════════════════════════════════════════
 * Schaad Advisors — Site footer · Swiss minimalism · 88 px tall · DARK
 * ──────────────────────────────────────────────────────────────────
 * Single source of truth for the footer used on every public page
 * (home, ueber-mich, lesezeichen, kontakt). Three-column row:
 *   left  — logo (full-height brand mark)
 *   centre — legal links list (UPPERCASE Inter 13/400, middle-dot)
 *   right — copyright line (tabular numerals)
 * Hairline top divider in faint white is the only ornament.
 *
 * Markup contract:
 *   <footer class="site-footer">
 *     <div class="site-footer__inner">
 *       <a class="site-footer__logo" href="…">…</a>
 *       <ul class="site-footer__links">…</ul>
 *       <p class="site-footer__copy">…</p>
 *     </div>
 *   </footer>
 *
 * Stacks to a single column at <820 px viewport width.
 * ════════════════════════════════════════════════════════════════ */

.site-footer {
  /* 100vw mirrors hero coordinate system so right-edge guides match
     the Kontakt-button right edge in the header even when a vertical
     scrollbar narrows body width. body has overflow-x:hidden so the
     extra width past viewport is clipped, not scrollable. */
  width: 100vw;
  background: var(--color-bg-deep);
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__inner {
  padding: 0 var(--rail-pad);
  height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}

.site-footer__logo {
  display: block;
  height: 88px;
  flex-shrink: 0;
}
.site-footer__logo img {
  display: block;
  height: 100%;
  width: auto;
}

.site-footer__copy {
  margin: 0;
  justify-self: end;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.025em;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.site-footer__links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
}
.site-footer__links li {
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-footer__links li + li::before {
  content: "·";
  color: rgba(255, 255, 255, 0.3);
  font-size: 16px;
  line-height: 1;
}
.site-footer__links a {
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  transition: color 220ms ease;
}
.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--color-alpine);
}
.site-footer__links a:focus-visible {
  outline: 2px solid var(--color-alpine);
  outline-offset: 4px;
  border-radius: 1px;
}

/* Stack on narrow viewports — logo flush to the top edge, links + copy below */
@media (max-width: 820px) {
  .site-footer__inner {
    height: auto;
    padding-top: 0;             /* logo presses against the top edge of the footer */
    padding-bottom: 24px;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 14px;
  }
  .site-footer__logo { height: 64px; }
  .site-footer__links {
    justify-self: start;
    flex-wrap: wrap;
    gap: 12px 16px;
  }
  .site-footer__copy { justify-self: start; }
}
