/*
 * Kontrastkopf Shell Footer · Version 0.1.0
 * Einziger Footer-Vertrag fuer statische Kontrastkopf-Oberflaechen.
 * Wird nach den jeweiligen Seiten-Stylesheets geladen.
 */

.site-footer.kk-shell-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 0;
  margin: 0;
  padding: clamp(24px, 2.5vw, 36px) 0;
  border: 0;
  border-top: 4px solid var(--kk-color-pink);
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    var(--kk-color-night);
  background-size: 70px 70px;
  color: var(--kk-color-white);
}

.site-footer.kk-shell-footer::before {
  position: absolute;
  z-index: -1;
  top: -280px;
  right: -230px;
  width: 500px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 0, 127, .24), rgba(255, 0, 127, .06) 44%, transparent 70%);
  content: "";
  pointer-events: none;
}

.site-footer.kk-shell-footer .footer-inner {
  width: min(100%, var(--kk-content-wide, 1280px));
  margin-inline: auto;
  padding-inline: var(--kk-page-gutter, clamp(20px, 5vw, 72px));
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px clamp(28px, 4vw, 56px);
}

.site-footer.kk-shell-footer .footer-inner > a:first-child {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-footer.kk-shell-footer .footer-mark {
  width: 48px;
  height: 48px;
}

.site-footer.kk-shell-footer p {
  max-width: none;
  margin: 0;
  color: var(--kk-color-white);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .055em;
  line-height: 1.5;
  text-transform: uppercase;
}

.site-footer.kk-shell-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0 22px;
}

.site-footer.kk-shell-footer .footer-links a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  color: var(--kk-color-white);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-footer.kk-shell-footer :where(a, button):focus-visible {
  outline-color: var(--kk-color-lime);
}

@media (max-width: 980px) {
  .site-footer.kk-shell-footer .footer-inner {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 6px 24px;
  }

  .site-footer.kk-shell-footer .footer-inner > a:first-child {
    width: 44px;
    height: 44px;
    grid-row: 1 / span 2;
    align-self: start;
  }

  .site-footer.kk-shell-footer .footer-mark {
    width: 44px;
    height: 44px;
  }

  .site-footer.kk-shell-footer .footer-links {
    grid-column: 2;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-footer.kk-shell-footer {
    padding-block: 24px;
    background-size: 52px 52px;
  }

  .site-footer.kk-shell-footer .footer-inner {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 4px 18px;
  }

  .site-footer.kk-shell-footer .footer-inner > a:first-child,
  .site-footer.kk-shell-footer .footer-mark {
    width: 42px;
    height: 42px;
  }

  .site-footer.kk-shell-footer p,
  .site-footer.kk-shell-footer .footer-links a {
    font-size: .75rem;
    letter-spacing: .04em;
  }

  .site-footer.kk-shell-footer .footer-links {
    gap: 0 16px;
  }
}

@media (forced-colors: active) {
  .site-footer.kk-shell-footer {
    border-top: 2px solid CanvasText;
    background: Canvas;
    color: CanvasText;
  }

  .site-footer.kk-shell-footer::before {
    display: none;
  }

  .site-footer.kk-shell-footer p,
  .site-footer.kk-shell-footer .footer-links a {
    color: CanvasText;
  }
}
