.site-footer {
  border-top: 1px solid var(--border);
  border-image: none;
  background: var(--surface);
  color: var(--muted);
}

.site-footer__inner {
  position: relative;
  width: min(1360px, 100%);
  min-height: 3.4rem;
  margin: 0 auto;
  padding: .45rem 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.site-footer__brand {
  width: 11rem;
  min-width: 9rem;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  border-radius: .35rem;
  text-decoration: none;
}

.site-footer__brand:focus-visible,
.site-footer__link:focus-visible {
  outline: 3px solid rgb(8 120 249 / 22%);
  outline-offset: .18rem;
}

.site-footer__logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 2.2rem;
  max-width: none;
  object-fit: contain;
  object-position: left center;
}

.site-footer__content {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .25rem .9rem;
  color: var(--muted);
  text-align: right;
  font-size: .76rem;
  line-height: 1.3;
}

.site-footer__content strong {
  color: var(--navy);
  font-weight: 700;
}

.site-footer__version {
  color: #9aa8bb;
  font-size: .62rem;
  line-height: 1.3;
  letter-spacing: .02em;
  white-space: nowrap;
  opacity: .72;
}

.site-footer__link {
  color: inherit;
  text-decoration: none;
}

.site-footer__link:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: .16em;
}

/*
 * Desktop-/Notebook-Modus verwendet in viewport.css ein festes Grid für
 * Header, Inhalt und Footer. Der frühere 26px-Footer war kleiner als der
 * neue Flowgrid-Labs-Footer und schnitt Logo sowie Metadaten unten ab.
 * Da diese Datei nach den Viewport-Styles geladen wird, setzt sie die
 * endgültige Footer-Höhe passend zum tatsächlichen Footer-Inhalt.
 */
@media (min-width: 900px) and (min-height: 600px) {
  :root {
    --compact-footer-h: 3.4rem;
  }

  .app-body .site-footer,
  .app-body .site-footer__inner {
    min-height: var(--compact-footer-h);
  }
}

@media (max-width: 52rem) {
  .site-footer__inner {
    min-height: 3rem;
    padding-block: .4rem;
    flex-direction: row;
    align-items: center;
    gap: .75rem;
  }

  .site-footer__brand {
    width: 8.5rem;
    min-width: 7.5rem;
  }

  .site-footer__logo {
    max-height: 1.8rem;
  }

  .site-footer__content {
    justify-content: flex-end;
    font-size: .7rem;
  }

  .site-footer__description {
    display: none;
  }

  .site-footer__version {
    font-size: .58rem;
  }
}

@media (max-width: 34rem) {
  .site-footer__inner {
    justify-content: center;
  }

  .site-footer__brand {
    width: 8rem;
    min-width: 8rem;
  }

  .site-footer__content {
    position: absolute;
    right: 20px;
  }

  .site-footer__content > :not(.site-footer__version) {
    display: none;
  }

  .site-footer__logo {
    object-position: center;
  }
}
