
.footer {
  position: relative;
  z-index: 9999;

  background: var(--c-ink);
  color: rgba(247, 244, 239, 0.72);
  padding-block: var(--sp-2xl) var(--sp-m);
  font-size: 0.9375rem;
}

.footer__grid {
  display: grid;
  gap: var(--sp-xl);
  align-items: start;
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid rgba(219, 211, 194, 0.18);
}

@media (min-width: 48rem) {
  .footer__grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
  }
}

/* Marke */
.footer__logo {
  display: block;
  width: clamp(9rem, 13vw, 11.5rem);
}

.footer__logo img {
  width: 100%;
  height: auto;
}

.footer__tagline {
  margin: var(--sp-s) 0 0;
  max-width: 30ch;
  line-height: 1.75;
  color: rgba(247, 244, 239, 0.72);
}

/* Spaltenüberschriften */
.footer h2,
.footer h3 {
  color: var(--c-bg);
}

.footer h3 {
  margin: 0 0 var(--sp-s);

  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;

  letter-spacing: 0.2em;
  text-transform: uppercase;

  color: var(--c-sand);
}

.footer p {
  color: rgba(247, 244, 239, 0.72);
  max-width: 34ch;
}

/* Listen */
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;

  display: grid;
  gap: 0.7rem;
  line-height: 1.6;
}

.footer__list a {
  position: relative;
  color: rgba(247, 244, 239, 0.82);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

.footer__list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;

  background: var(--c-sand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease);
}

.footer__list a:hover,
.footer__list a:focus-visible {
  color: var(--c-white);
}

.footer__list a:hover::after,
.footer__list a:focus-visible::after {
  transform: scaleX(1);
}

.footer__address {
  font-style: normal;
  line-height: 1.6;
  color: rgba(247, 244, 239, 0.72);
}

.footer a:focus-visible {
  outline: 1px solid var(--c-sand);
  outline-offset: 4px;
}

/* Abschlusszeile */
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs) var(--sp-m);
  justify-content: space-between;
  align-items: center;

  padding-top: var(--sp-m);

  font-size: 0.8125rem;
  color: rgba(247, 244, 239, 0.55);
}

.footer__bottom p {
  margin: 0;
  max-width: none;
  color: inherit;
}


.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs) var(--sp-m);
}

.footer__legal a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

.footer__legal a:hover,
.footer__legal a:focus-visible {
  color: var(--c-white);
}

footer .atemkurve {
  margin-top: -30px;
  margin-bottom: -10px
}

@media (prefers-reduced-motion: reduce) {
  .footer__list a::after {
    transition: none;
  }
}

/* Nach-oben-Button: wird per JavaScript eingeblendet, sobald der Footer sichtbar ist */
.button-up {
  position: fixed;
  right: clamp(16px, 4vw, 28px);
  bottom: clamp(16px, 4vw, 28px);
  z-index: 10;

  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 0;

  border: 1px solid rgba(247, 244, 239, 0.28);
  border-radius: 50%;
  background: var(--c-ink);
  color: var(--c-white);
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);

  transition:
    opacity var(--t-base) var(--ease),
    visibility var(--t-base) var(--ease),
    transform var(--t-base) var(--ease),
    background-color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}

.button-up.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.button-up svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-up:hover {
  background: var(--c-sand);
  border-color: var(--c-sand);
  color: var(--c-ink);
}

.button-up:focus-visible {
  outline: 2px solid var(--c-sand);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .button-up {
    transition: none;
  }
}
