/* == Allgemeine Footer-Stile == */
.width--schmal {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

.trustgarn-footer-main {
  padding: 4rem 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.trustgarn-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

/* == Menü-Block == */
.trustgarn-footer-menu {
  width: 100%;
}

/* Divider */
.width--content .trustgarn-footer-divider,
.width--schmal .trustgarn-footer-divider {
  max-width: 100%;
}

.trustgarn-footer-divider-wrapper {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.trustgarn-footer-divider {
  width: 100%;
  height: 1px;
  background-color: #ffffff;
  display: block;
}

/* Überschrift */
.trustgarn-footer-heading {
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Menü-Grid */
.trustgarn-footer-links-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(var(--menu-rows, 3), auto);
  justify-content: space-between;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Link-Elemente */
.trustgarn-footer-links-grid li {
  text-align: left;
  margin: 0;
}

.trustgarn-footer-links-grid a {
  color: inherit;
  text-decoration: none;
  font-size: 1rem;
  display: inline-block;
  transition: color 0.3s ease;
}

.trustgarn-footer-links-grid a:hover {
  color: var(--color-accent, #E68819);
}

/* == Bild-Block == */
.trustgarn-footer-image {
  text-align: center;
}

.trustgarn-footer-image-wrapper {
  display: inline-block;
  width: 100%;
  max-width: none;
  text-align: center;
}

.trustgarn-footer-image-content img,
.trustgarn-footer-image-content svg {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

/* == Button-Block == */
.trustgarn-footer-button-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.trustgarn-footer-button-wrapper {
  display: flex;
  justify-content: center;
}

.trustgarn-footer-button {
  width: fit-content;
}

.trustgarn-footer-button.btn,
.trustgarn-footer-button.btn--secondary,
.trustgarn-footer-button.btn--underlined {
  display: inline-flex;
}

/* Optional: falls der Button links ausgerichtet werden soll */
.footer-alignment--left .trustgarn-footer-button-wrapper {
  justify-content: flex-start;
}

.footer-alignment--center .trustgarn-footer-button-wrapper {
  justify-content: center;
}

.footer-alignment--center .trustgarn-footer-button-block {
  align-items: center;
}

/* == Desktop Bildbreite == */
@media screen and (min-width: 769px) {
  .trustgarn-footer-image-wrapper {
    width: var(--footer-image-width, 100%);
  }
}

/* == Mobile == */
@media screen and (max-width: 769px) {
  .trustgarn-footer-image-wrapper {
    width: 80%;
  }
}

/* == Responsive Verhalten == */
@media screen and (max-width: 768px) {
  .trustgarn-footer-links-grid {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    justify-content: center;
    text-align: center;
  }

  .trustgarn-footer-links-grid li {
    text-align: center;
  }

  .trustgarn-footer-links-grid a {
    display: inline-block;
    text-align: center;
  }

  .trustgarn-footer-heading {
    text-align: center;
  }

  .footer-alignment--left .trustgarn-footer-button-wrapper {
    justify-content: center;
  }
}