footer {
  color: white;

  font-weight: 500;
  align-items: center;
  height: 100%;
  margin: 0;
  color: #ffffff;
  font-size: calc(0.3 * var(--m));

  margin-top: 10%;
  z-index: 5;
  width: 100%;
  
  min-height: 400px;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: flex-end;
  padding: 5rem 2vw;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0, 0, 0, 0) 5%,
    rgba(0, 0, 0, 0.3) 20%,
    rgba(0, 0, 0, 0.6) 30%,
    rgba(0, 0, 0, 0.8) 40%,
    rgba(0, 0, 0, 1) 50%,
    rgb(0, 0, 0)
  );
  z-index: -7;
}

.backdrop {
  z-index: -5;
  position: absolute;
  inset: 0;
  width: 100%;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);

  mask-image: linear-gradient(
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.5) 10%,
    rgba(0, 0, 0, 0.8) 20%,
    rgba(0, 0, 0, 1) 30%,
    rgb(0, 0, 0)
  );

  -webkit-mask-image: linear-gradient(
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.5) 10%,
    rgba(0, 0, 0, 0.8) 20%,
    rgba(0, 0, 0, 1) 30%,
    rgb(0, 0, 0)
  );
}

/* Footer Columns */
.col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: calc(0.5 * var(--m)) calc(0.8 * var(--m));
  width: 28%;
  gap: 1rem;
  margin: 1rem 0;
}

.col1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.col2,
.col3 {
  background-color: #121212;
  border-radius: calc(0.5 * var(--m));
}
/* Spezifische Spalten-Abstände */
.col2, .col3 {
  gap: clamp(1.5rem, 2.5vw, 2rem);
  }
  
.col2 p, .col3 p {
  margin: 0;
  padding: clamp(0.5rem, 1vw, 0.8rem) 0;
}

footer img {
  height: calc(0.3 * var(--m));
  object-fit: cover;
}

.footer-logo {
  width: 80px;
  height: auto;
  margin-bottom: 1rem;
  display: block;
}

a {
  text-decoration: none;
}

a:hover {
  color: #6b7280;
}

.social {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 1rem;
  margin: 1rem 0;
}

.social .link img {
  width: 24px;
  height: 24px;
  filter: invert(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.social .link:hover img {
  opacity: 1;
  transform: translateY(-2px);
}

.link {
  width: calc(0.8 * var(--m));
  height: calc(0.8 * var(--m));
  background-color: rgba(206, 206, 206, 0.2);
  border-radius: calc(0.1 * var(--m));

  display: flex;
  justify-content: center;
  align-items: center;
}

@media screen and (max-width: 768px) {
  :root {
    --m: 3rem;
  }

  footer {
    flex-direction: column;
    padding: 5rem 20vw;
  }
  .col {
    width: 100%;
  }

  .col {
      padding: clamp(2rem, 1vw, 1rem);
  }
  
  .col2, .col3 {
      gap: 1.5rem;
  }
  
  .col2 p, .col3 p {
      padding: 0.8rem 0;
  }
}
