#footer {
  position: relative;
  background-color: var(--ast-global-color-2);
  padding-top: var(--gap-l);
  padding-bottom: 80px;
}

#footer::before {
  content: "";
  position: absolute;
  height: var(--gap-l);
  background-image: url("/wp-content/themes/astra-impuls-child/img/footer-bg-before.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  top: 1%;
  right: 0;
  width: calc(100vw - var(--sidebar-width));
  transform: translateY(-80%);
}

footer a {
  text-decoration: none;
  transition: all 0.5s ease 0s;
  color: inherit;
}

#footer a {
  display: block;
  flex-direction: column;
  width: fit-content;
  margin: 0 auto;
  position: relative;
}

#footer a:hover {
  color: var(--ast-global-color-0);
}

#footer a:hover:after {
  width: 100%;
}

/* -------------------------- start fonts footer -------------------------- */

footer p,
footer li {
  font-size: var(--base-font-size);
  font-family: var(--mainfont);
  list-style: none;
  color: var(--ast-global-color-0);
  font-weight: 300;
}

/* menü */
footer li a {
  color: var(--ast-global-color-3);
}

#footer-grafik {
  width: clamp(108px, 13vw, 172px);
  right: clamp(30px, 5vw, 185px);
  position: absolute;
  top: calc(var(--cont-gap) - 15px);
  z-index: 9;
}

#menu-footer-menu {
  margin: 0 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--gap-l);
}

#footer-links,
#footer-mitte,
#footer-rechts {
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
}

#menu-item-1492 {
  display: none;
}

#footer .wrap .inner-wrap {
  gap: calc(var(--gap-l) - 20px);
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

/* footer headings */

#footer-links .textwidget {
  text-align: center;
}

#footer-links .textwidget h3::after {
  content: "";
  display: block;
  width: 160px;
  height: 4px;
  border-radius: 3em;
  background-color: var(--ast-global-color-0);
  margin: var(--gap-s) auto;
}

/* footer text */

#footer-mitte .textwidget {
  text-align: center;
}

.footer-rechts-inner-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--gap-xl);
  max-width: 90vw;
}

.footer-rechts-inner-wrapper img {
  height: 53px !important;
  width: 100% !important;
}

/* footer links */

#footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: calc(var(--gap-l) - 20px);
}

.ft-logo {
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

#footer-logo {
  margin-right: 59px;
}

#footer-logos a:hover {
  color: var(--ast-global-color-0);
}

/*----------------- END SOCIAL SHARE -------------*/

@media (min-width: 1920px) {
  .ft-logo {
    margin: 0 50px;
  }
}

@media (max-width: 1500px) {
  /*----------------- ELEMENT -------------*/
  /*----------------- END ELEMENT ---------*/
}
@media (max-width: 1300px) {
  #footer {
    margin-bottom: calc(var(--btn-font-size) * 1.4 + 2rem - 2px);
  }
  #footer::before {
    width: 100vw;
  }
}

@media (max-width: 1200px) {
  /*----------------- ELEMENT -------------*/
  /*----------------- END ELEMENT ---------*/
}

@media (max-width: 1024px) {
  /*----------------- ELEMENT -------------*/
  /*----------------- END ELEMENT ---------*/
}

@media (max-width: 990px) {
  div#mobile-bar {
    display: flex;
  }

  .footer-rechts-inner-wrapper {
    gap: var(--gap-l);
  }
  #menu-footer-menu {
    gap: var(--gap-s);
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  #menu-footer-menu {
    flex-direction: column;
    gap: 5px;
  }

  #footer-logos {
    margin-top: var(--gap-l);
  }

  .footer-rechts-inner-wrapper img {
    height: 47px !important;
  }

  #footer::before {
    transform: translateY(-60%);
  }

  #footer-logos {
    justify-self: center;
    max-width: unset;
  }

  #footer .wrap .inner-wrap {
    gap: 40px;
  }
  #footer-links {
    max-width: 150px;
  }

  #footer {
    padding-bottom: 50px;
  }

  #footer::before {
    top: 0%;
    background-size: cover;
  }
}

@media (max-width: 576px) {
  #footer-grafik {
    position: relative;
    right: unset;
    margin: 0 auto var(--gap-xl) auto;
    top: unset;
  }

  .footer-rechts-inner-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-s) var(--gap-l);
  }
}

@media (max-width: 420px) {
  /*----------------- ELEMENT -------------*/
  /*----------------- END ELEMENT ---------*/
}

@media (max-width: 320px) {
  /*----------------- ELEMENT -------------*/
  /*----------------- END ELEMENT ---------*/
}
