/*
 * Footer und "Nach oben"-Button.
 */

.ds-footer {
  position: relative;
  overflow: hidden;
  padding: 80px 0 0;
  background: var(--ds-navy);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  --pattern-width: 40%;
}

.ds-footer > .container {
  position: relative;
  z-index: 1;
}

.ds-footer-brand {
  display: block;
  margin-bottom: 12px;
  color: var(--ds-white);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ds-footer h4 {
  margin: 0 0 14px;
  color: var(--ds-white);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ds-footer p {
  margin: 0 0 6px;
}

.ds-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.ds-footer a:hover {
  color: var(--ds-white);
  text-decoration: underline;
}

.ds-footer-funding {
  font-size: 0.8125rem;
  line-height: 1.55;
}

.ds-footer-logo {
  display: inline-block;
  padding: 14px 18px;
  border-radius: var(--ds-radius);
  background: var(--ds-white);
}

.ds-footer-logo img {
  display: block;
  max-width: 100%;
  max-height: 110px;
}

.ds-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 64px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
}

.ds-footer-bottom ul {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* "Nach oben"-Button, wird von main.js ab 100px Scrollweite eingeblendet */
.scroll-top {
  position: fixed;
  right: 16px;
  bottom: -16px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ds-navy);
  box-shadow: var(--ds-shadow);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, bottom 0.3s, background 0.2s;
}

.scroll-top i {
  font-size: 1.5rem;
  line-height: 0;
  color: var(--ds-white);
}

.scroll-top:hover {
  background: var(--ds-blue);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 16px;
}
