/* ==========================================================================
   transformis® · Footer Component
   --------------------------------------------------------------------------
   Pfeile am Viewport-Rand, Content in 880px Container.
   Aktiviert nur auf page-id-156978 (via footer.php Condition).
   ========================================================================== */

.tm-footer {
  width: 100%;
  background: var(--tm-blue);
  color: var(--tm-white);
  overflow: hidden;
}

/* ── Hauptbereich ── */
.tm-footer__main {
  position: relative;
  width: 100%;
}

/* ── Pfeile: absolut am linken Viewport-Rand ── */
.tm-footer__arrows {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  pointer-events: none;
}

.tm-footer__arrow {
  position: absolute;
  bottom: 0;
}

/* Duenner Pfeil: ganz links am Rand, kein Abstand */
.tm-footer__arrow--thin {
  left: -60px;
  top: -80px;
  bottom: 40px;
  height: auto;
  width: auto;
  max-height: 280px;
}

/* Dicker Pfeil: Default fuer Viewports bis 1610px */
.tm-footer__arrow--thick {
  width: 126px;
  height: 110px;
  left: 170px;
  bottom: 220px;
}

/* Ab 1610px: Pfeil weiter rechts + tiefer, da genug Platz */
@media (min-width: 1610px) {
  .tm-footer__arrow--thick {
    height: 136px;
    left: 240px;
    bottom: 179px;
  }
}

/* ── Content: zentrierter 880px Container ── */
.tm-footer__content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  width: 1000px;
  max-width: 100%;
  margin: 0 auto;
  padding: 80px 20px 48px;
  position: relative;
  z-index: 1;
}

/* ── Linke Spalte: Claim ── */
.tm-footer__brand {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.tm-footer__claim {
  margin: 0;
  font-family: var(--tm-font-heading);
  font-weight: var(--tm-fw-regular);
  font-size: 34px;
  line-height: 1.3;
  color: var(--tm-white);
}

/* ── Rechte Spalte: Kontakt ── */
.tm-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tm-footer__address {
  font-family: var(--tm-font-body);
  font-weight: var(--tm-fw-regular);
  font-size: 16px;
  line-height: 1.6;
  font-style: normal;
  color: rgba(255, 255, 255, 0.85);
}

.tm-footer__address p {
  margin: 0;
}

/* Firmenname fett */
.tm-footer__company {
  font-weight: var(--tm-fw-bold);
  color: var(--tm-white);
  margin-bottom: 4px;
}

/* Abstaende zwischen Adresszeilen-Bloecken */
.tm-footer__address p + p {
  margin-top: 12px;
}

.tm-footer__address a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--tm-transition);
}

.tm-footer__address a:hover {
  color: var(--tm-green);
}

/* Button: nicht stretchen */
.tm-footer__contact .tm-btn {
  align-self: flex-start;
}

/* ── Social Icons ── */
.tm-footer__social {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tm-footer__social-link,
.tm-footer__social-link:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tm-white);
  text-decoration: none;
  transition: opacity var(--tm-transition);
}

/* Hover/Focus: Farbe NICHT ueberschreiben (sonst faerbt The7-Parent
   currentColor und das Inline-SVG vom E-Mail-Icon wird gelb). */
.tm-footer__social-link:hover,
.tm-footer__social-link:focus {
  opacity: 0.7;
  color: var(--tm-white);
}

.tm-footer__social-link img,
.tm-footer__social-link svg {
  display: block;
  width: 24px;
  height: 24px;
}

/* E-Mail-Icon: Inline-SVG fuellt seinen viewBox weniger aus als die
   PNG/SVG-Imports daneben → visuell angleichen (kleines Bisschen groesser). */
.tm-footer__social-link[href^="mailto:"] svg {
  width: 28px;
  height: 28px;
}

/* ── Bottom Bar: gleicher 880px Container ── */
.tm-footer__bottom {
  /* kein border-top */
}

.tm-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 1000px;
  max-width: 100%;
  margin: 0 auto;
  padding: 24px 20px 32px;
}

.tm-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.tm-footer__legal a {
  font-family: var(--tm-font-body);
  font-weight: var(--tm-fw-bold);
  font-size: 14px;
  line-height: 1.6;
  color: var(--tm-white);
  text-decoration: none;
  transition: color var(--tm-transition);
}

.tm-footer__legal a:hover {
  color: var(--tm-white);
}

.tm-footer__copy {
  margin: 0;
  font-family: var(--tm-font-body);
  font-weight: var(--tm-fw-regular);
  font-size: 14px;
  line-height: 1.6;
  color: var(--tm-white);
}

/* ── Responsive ── */

/* Ab 1370px: Footer-Pfeile ausblenden */
@media (max-width: 1370px) {
  .tm-footer__arrows {
    display: none;
  }
}

@media (max-width: 900px) {
  .tm-footer__content {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 60px 20px 40px;
    text-align: center;
  }

  .tm-footer__claim {
    font-size: 28px;
  }

  .tm-footer__contact {
    align-items: center;
  }

  .tm-footer__address {
    text-align: center;
  }

  .tm-footer__contact .tm-btn {
    align-self: center;
  }

  .tm-footer__social {
    justify-content: center;
  }

  .tm-footer__bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .tm-footer__legal {
    gap: 20px;
    justify-content: center;
  }
}

@media (max-width: 540px) {
  .tm-footer__content {
    padding: 48px 20px 32px;
  }

  .tm-footer__arrows {
    width: 150px;
  }

  .tm-footer__arrow--thin {
    max-height: 140px;
  }

  .tm-footer__arrow--thick {
    width: 80px;
    left: 40px;
  }

  .tm-footer__claim {
    font-size: 24px;
  }

  .tm-footer__legal {
    flex-direction: column;
    gap: 12px;
  }
}
