/* ============================================================
   Globaler Footer
   ============================================================ */
:root {
  --kachel-footer-bg: #f0efeb;
  --kachel-footer-text: #2f2618;
  --kachel-footer-link-hover: #5a2500;
}

.site-footer {
  background: var(--kachel-footer-bg);
  color: var(--kachel-footer-text);
  padding: 26px 24px;
  margin-top: 48px;
}

@media (min-width: 1025px) {
  body.kachel-side-nav-active .site-footer {
    margin-left: calc(-1 * (var(--kachel-side-nav-width) + (var(--kachel-side-nav-offset) * 2)));
    width: calc(100% + var(--kachel-side-nav-width) + (var(--kachel-side-nav-offset) * 2));
  }
}

.site-footer .footer-inner,
.kachel-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.kachel-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  flex-wrap: wrap;
}

.kachel-footer-copyright {
  margin: 0;
  font-family: var(--schrift-display);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--kachel-footer-text);
}

.kachel-footer-nav ul,
.footer-nav ul {
  display: flex;
  align-items: center;
  gap: 10px 24px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kachel-footer-nav a,
.footer-nav a {
  font-family: var(--schrift-display);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--kachel-footer-text);
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.kachel-footer-nav a:hover,
.kachel-footer-nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--kachel-footer-link-hover);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.kachel-footer-nav a:focus-visible,
.footer-nav a:focus-visible {
  outline: 2px solid rgba(47, 38, 24, 0.55);
  outline-offset: 5px;
  border-radius: 6px;
}

@media (max-width: 640px) {
  .site-footer {
    padding: 24px 18px;
  }

  .kachel-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .kachel-footer-nav ul,
  .footer-nav ul {
    gap: 8px 18px;
  }
}
