/* ── FOOTER ───────────────────────────────────────────── */
footer {
  background: var(--black);
  border-top: 1px solid var(--gray-70);
  padding: 60px var(--page-px) 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}
.footer-addr {
  font-size: 12px;
  font-weight: 300;
  color: var(--gray-10);
  line-height: 1.75;
  margin-bottom: 20px;
}
.footer-addr__link {
  color: inherit;
  text-decoration: none;
  position: relative;
}
.footer-addr__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--gray-10);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.footer-addr__link:hover::after { transform: scaleX(1); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 30px; height: 30px;
  border: 1px solid var(--gray-70);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-40);
  transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: var(--yellow); background: var(--yellow); color: var(--black); }
.footer-social__icon {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}
.footer-col h5 {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a {
  font-size: 13px;
  font-weight: 300;
  color: var(--gray-40);
  transition: color 0.2s;
  position: relative;
  text-decoration: none;
}
.footer-col ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--gray-20);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.footer-col ul li a:hover { color: var(--gray-20); }
.footer-col ul li a:hover::after { transform: scaleX(1); }
.footer-bottom {
  border-top: 1px solid var(--gray-70);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-size: 11px;
  font-weight: 300;
  color: var(--gray-40);
  transition: color 0.2s;
  position: relative;
  text-decoration: none;
}
.footer-legal a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--gray-20);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.footer-legal a:hover { color: var(--gray-20); }
.footer-legal a:hover::after { transform: scaleX(1); }
.footer-copy {
  font-size: 11px;
  font-weight: 300;
  color: var(--gray-40);
  letter-spacing: 0.04em;
}

/* ── FOOTER — responsive ─────────────────────────────── */

/* Tablet: 2 kolommen */
@media (max-width: 1023px) {
  footer {
    padding: 56px 40px 28px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px 48px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    border-top: none;
  }
}

/* Mobile: 1 kolom, collapsible columns */
@media (max-width: 599px) {
  footer {
    padding: 48px clamp(18px, 5vw, 32px) 24px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 36px;
  }

  /* First column (logo + contact) keeps its spacing */
  .footer-top > div:first-child {
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gray-70);
  }

  /* Collapsible columns */
  .footer-col--collapsible {
    border-bottom: 1px solid var(--gray-70);
  }

  .footer-col__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 18px 0;
    cursor: pointer;
    text-align: left;
  }

  .footer-col__toggle h5 {
    margin-bottom: 0;
  }

  .footer-col__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--gray-40);
    transition: transform 0.25s ease;
  }

  .footer-col__icon-v {
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform-origin: center;
    transform-box: fill-box;
  }

  .footer-col--collapsible.is-open .footer-col__icon-v {
    opacity: 0;
    transform: rotate(90deg);
  }

  .footer-col__body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
  }

  .footer-col--collapsible.is-open .footer-col__body {
    max-height: 400px;
  }

  .footer-col__body ul {
    padding-bottom: 18px;
  }

  .footer-legal {
    flex-direction: column;
    gap: 10px;
  }
}

/* Desktop/tablet: reset toggle to plain block, body always visible */
@media (min-width: 600px) {
  .footer-col__toggle {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    cursor: default;
    pointer-events: none;
  }

  .footer-col__icon {
    display: none;
  }
}
