/* Schritt 13: der freigegebene Footer; alle Regeln bleiben auf ihn begrenzt. */
#site-footer.site-footer {
  border-top: 2px solid #147cff;
  background: #061526;
  color: var(--text);
}

#site-footer .footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(40px, 4vw, 64px) clamp(24px, 6vw, 84px) 26px;
}

#site-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .65fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}

#site-footer .footer-brand-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: -6px 0 18px -6px;
}

#site-footer .footer-logo {
  display: block;
  width: clamp(210px, 18vw, 255px);
  max-width: 100%;
  height: auto;
}

#site-footer .footer-description {
  max-width: 340px;
  margin: 0;
  color: #bdcadb;
  font-size: 15px;
  line-height: 1.8;
}

#site-footer h3 {
  margin: 7px 0 18px;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.5;
}

#site-footer .footer-links {
  display: grid;
  gap: 10px;
  font-size: 15px;
  line-height: 1.6;
}

#site-footer .footer-contact {
  display: grid;
  gap: 16px;
  margin: 0;
  font-size: 15px;
  font-style: normal;
  line-height: 1.6;
}

#site-footer a {
  color: #bdcadb;
  text-decoration: none;
  overflow-wrap: anywhere;
}

#site-footer a:hover {
  color: #49a2ff;
}

#site-footer a:focus-visible {
  outline: 2px solid #49a2ff;
  outline-offset: 5px;
}

#site-footer .footer-contact-label {
  display: block;
  margin-bottom: 3px;
  color: #bdcadb;
  font-size: 12px;
  line-height: 1.5;
}

#site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding-top: 26px;
  margin-top: 40px;
  border-top: 1px solid #254363;
  color: #bdcadb;
  font-size: 13px;
  line-height: 1.7;
}

#site-footer .footer-bottom p {
  margin: 0;
}

#site-footer .footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

#site-footer .footer-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #49a2ff;
  white-space: nowrap;
}

#site-footer .footer-top svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

@media (max-width: 820px) {
  #site-footer .footer-inner {
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (max-width: 620px) {
  #site-footer .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px 24px;
  }

  #site-footer .footer-brand {
    grid-column: 1 / -1;
  }

  #site-footer .footer-description {
    max-width: 380px;
  }

  #site-footer .footer-inner {
    padding-top: 32px;
    padding-bottom: 22px;
  }
}

@media (max-width: 400px) {
  #site-footer .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  #site-footer .footer-links {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }

  #site-footer .footer-bottom {
    align-items: start;
    flex-direction: column;
  }
}

@media (pointer: coarse) {
  #site-footer .footer-links a,
  #site-footer .footer-contact a,
  #site-footer .footer-legal a,
  #site-footer .footer-top {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
