/* ==========================================================================
   Footer — dark, quiet; continues the Kontakt section on the same column axis
   (columns start at 1, 5 and 9 like the contact details above).
   ========================================================================== */

.footer {
  --gap: clamp(0.75rem, 1.4vw, 1.25rem);
  position: relative;
  z-index: 1;
  background: var(--c-ink-800);
  color: var(--c-paper);
}

.footer__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(1.5rem, 2.6vw, 2.25rem);
}

/* the one horizontal rule that separates the footer from the contact section */
.footer__inner::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: clamp(2rem, 3.6vw, 3rem);
  background: var(--c-line-strong);
}

/* --------------------------------------------------------------------------
   Top: brand, navigation, contact
   -------------------------------------------------------------------------- */
.footer__top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 2rem;
  align-items: start;
}

.footer__brand {
  grid-column: 1 / 5;
}

.footer__logo {
  display: inline-block;
}

.footer__logo img {
  height: 2.75rem;
  width: auto;
}

.footer__tagline {
  margin-top: 1rem;
  max-width: 17rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgb(242 238 230 / 0.7);
}

.footer__nav {
  grid-column: 5 / 9;
}

.footer__company {
  grid-column: 9 / -1;
}

.footer__label {
  margin: 0 0 0.75rem;
  font-family: var(--f-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-oak);
}

.footer__col ul {
  display: grid;
  gap: 0;
}

/* company data is plain text, set in the same rhythm as the links */
.footer__company li {
  padding-block: 0.3rem;
  font-size: 1rem;
  color: rgb(242 238 230 / 0.82);
  font-variant-numeric: tabular-nums;
}

.footer__company li span {
  margin-right: 0.45rem;
  color: rgb(242 238 230 / 0.62);
}

.footer__col a,
.footer__top-link {
  position: relative;
  display: inline-block;
  padding-block: 0.3rem;
  font-size: 1rem;
  color: rgb(242 238 230 / 0.82);
  transition: color var(--dur-base) var(--ease-out);
}

.footer__col a::after,
.footer__top-link::after {
  content: "";
  position: absolute;
  inset: auto 0 0.15rem 0;
  height: 1px;
  background: var(--c-oak);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}

.footer__col a:hover,
.footer__col a:focus-visible,
.footer__top-link:hover,
.footer__top-link:focus-visible {
  color: var(--c-paper);
}

.footer__col a:hover::after,
.footer__col a:focus-visible::after,
.footer__top-link:hover::after,
.footer__top-link:focus-visible::after {
  transform: scaleX(1);
}

.footer :focus-visible {
  outline: 2px solid var(--c-oak);
  outline-offset: 4px;
  border-radius: 1px;
}

/* --------------------------------------------------------------------------
   Bottom: copyright, seat and registry data, back to top
   -------------------------------------------------------------------------- */
.footer__bottom {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 0.5rem;
  align-items: center;
  margin-top: clamp(2rem, 3.4vw, 2.75rem);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: rgb(242 238 230 / 0.62);
}

.footer__copy {
  grid-column: 1 / 7;
}

.footer__top-link {
  grid-column: 7 / -1;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: rgb(242 238 230 / 0.82);
}

.footer__top-link svg {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--c-oak);
  transition: transform 0.6s var(--ease-out);
}

.footer__top-link:hover svg,
.footer__top-link:focus-visible svg {
  transform: translateY(-0.2rem);
}

.footer__top-link::after {
  inset: auto 0 0.15rem 0;
}

/* --------------------------------------------------------------------------
   Tablet / mobile
   -------------------------------------------------------------------------- */
@media (max-width: 959.98px) {
  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__nav {
    grid-column: 1 / 7;
  }

  .footer__company {
    grid-column: 7 / -1;
  }

}

@media (max-width: 759.98px) {
  /* narrow screens: navigation and company data become single wrapping lines, 44 px tap targets */
  .footer__nav,
  .footer__company {
    grid-column: 1 / -1;
  }

  .footer__col ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.6rem;
  }

  .footer__col a,
  .footer__top-link {
    padding-block: 0.65rem;
  }

  .footer__label {
    margin-bottom: 0.15rem;
  }
}

@media (max-width: 479.98px) {
  .footer__inner::before {
    margin-bottom: 2.25rem;
  }

  .footer__top {
    row-gap: 1.1rem;
  }

  .footer__logo img {
    height: 2.5rem;
  }

  .footer__bottom {
    margin-top: 2.25rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  .footer__col a::after,
  .footer__top-link::after,
  .footer__top-link svg {
    transition-duration: 0.01ms;
  }
}
