/*
  tuscheteam.de footer, variant "brand left like zencnc" (decision E22). Every value comes from a footer that already exists:
  - WordPress footer (Astra footer-adv): background #004f66, white text, Roboto 17px / 20.4px, 60px padding top and bottom,
    container 1100px with 20px left padding (content edge 190px at 1440 wide, the edge of the header logo and the menu).
  - Astro footer.css of this project (removed with this footer): column gap 40px, title 700 17px/20.4px with 20px margin,
    breakpoints 1140 / 921 / 600, dotted white focus outline, Trustindex box 150 x 145px and its tooltip rule.
  - Astra token --ast-global-color-6 (#e2e8f0, 7.4:1 on #004f66) for secondary text.
  - From zencnc.com: the brand column left of the link columns, a 1px divider rgba(255,255,255,.14) above the legal row.
  Selectors start with .site-footer.tt-footer so that Astra rules (a:hover red, h2 40px, list margins) lose.
  Typography budget: one family (Roboto), one size (17px), two weights (400, 700), one secondary colour (#e2e8f0).
*/
.site-footer.tt-footer {
  background: #004f66;
  color: #fff;
  padding: 60px 0;
  font: 400 17px/20.4px Roboto, sans-serif;
}

.site-footer.tt-footer .tt-footer__inner {
  box-sizing: border-box;
  width: min(100%, 1100px);
  margin-inline: auto;
  padding-inline: 20px 0;
}

.site-footer.tt-footer p,
.site-footer.tt-footer ul,
.site-footer.tt-footer li,
.site-footer.tt-footer h2 {
  margin: 0;
  padding: 0;
  color: #fff;
  font: 400 17px/20.4px Roboto, sans-serif;
  list-style: none;
}

.site-footer.tt-footer a,
.site-footer.tt-footer a:visited {
  color: #fff;
  text-decoration: none;
}

.site-footer.tt-footer a:hover,
.site-footer.tt-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.site-footer.tt-footer :focus-visible {
  outline: 2px dotted #fff;
  outline-offset: 4px;
}

/* Brand column on the left, the three link columns on the right */
.site-footer.tt-footer .tt-footer__top {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(0, 3fr);
  column-gap: 40px;
  row-gap: 40px;
  align-items: start;
}

.site-footer.tt-footer .tt-footer__logo {
  display: block;
  width: 260px;
  max-width: 100%;
  margin-bottom: 20px;
}

.site-footer.tt-footer .tt-footer__logo img {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
}

.site-footer.tt-footer .tt-footer__line {
  max-width: 260px;
  margin-bottom: 20px;
  color: #e2e8f0;
}

.site-footer.tt-footer .tt-footer__address {
  margin-bottom: 20px;
}

.site-footer.tt-footer .tt-footer__contact {
  margin-bottom: 20px;
}

.site-footer.tt-footer .tt-footer__contact a {
  display: inline-block;
  padding-block: 2px;
}

.site-footer.tt-footer .tt-footer__social {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-footer.tt-footer .tt-footer__social a {
  display: flex;
  align-items: center;
  width: 24px;
  height: 24px;
}

.site-footer.tt-footer .tt-footer__social img {
  display: block;
  width: 24px;
  height: auto;
}

.site-footer.tt-footer .tt-footer__trust {
  display: flex;
  justify-content: flex-start;
  margin-top: 40px;
  min-width: 0;
}

.site-footer.tt-footer .tt-footer__trust-box {
  position: relative;
  width: 150px;
  min-height: 145px;
}

/* The vendor's widget container carries a 25px left margin that pushes the badge off the column edge. */
.site-footer.tt-footer .tt-footer__trust-box .ti-widget-container {
  margin-left: 0 !important;
}

.site-footer.tt-footer .tt-footer__trust-box iframe,
.site-footer.tt-footer .tt-footer__trust-box > div {
  max-width: 100%;
}

.site-footer.tt-footer .tt-footer__trust-link {
  position: absolute;
  inset: 0;
  z-index: 999;
  display: block;
}

/* Link columns: Leistungen, Ratgeber, Flurkarten */
.site-footer.tt-footer .tt-footer__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 40px;
  align-items: start;
}

.site-footer.tt-footer h2.tt-footer__title {
  margin: 0 0 20px;
  font-weight: 700;
}

.site-footer.tt-footer .tt-footer__col li {
  margin-bottom: 3px;
}

.site-footer.tt-footer .tt-footer__col a,
.site-footer.tt-footer .tt-footer__legal li a {
  display: inline-block;
  padding-block: 2px;
}

/* Legal row, separated by one divider */
.site-footer.tt-footer .tt-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer.tt-footer .tt-footer__legal p {
  color: #e2e8f0;
}

.site-footer.tt-footer .tt-footer__legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 40px;
  margin-right: auto;
}

.site-footer.tt-footer .tt-footer__cta {
  display: inline-block;
  padding-block: 2px;
  font-weight: 700;
}

/* The vendor's centred 220px tooltip otherwise extends past the page edge (rule from the Astro footer). */
@media (min-width: 922px) and (max-width: 1140px) {
  .site-footer.tt-footer .tt-footer__trust-box .ti-widget .ti-disclaimer {
    left: auto !important;
    right: 0 !important;
    transform: none !important;
  }
}

@media (max-width: 1140px) {
  .site-footer.tt-footer .tt-footer__inner {
    width: 100%;
    padding-inline: 20px;
  }
  .site-footer.tt-footer .tt-footer__top,
  .site-footer.tt-footer .tt-footer__links {
    column-gap: 34px;
  }
}

/* Tablet: brand block above the link columns, Trustindex box beside it */
@media (max-width: 921px) {
  .site-footer.tt-footer {
    padding: 50px 0;
  }
  .site-footer.tt-footer .tt-footer__top {
    grid-template-columns: minmax(0, 1fr);
  }
  .site-footer.tt-footer .tt-footer__brand {
    display: grid;
    grid-template-columns: 260px 150px;
    column-gap: 40px;
    justify-content: start;
  }
  .site-footer.tt-footer .tt-footer__brand > * {
    grid-column: 1;
  }
  .site-footer.tt-footer .tt-footer__trust {
    grid-column: 2;
    grid-row: 1 / span 5;
    margin-top: 0;
  }
}

@media (max-width: 700px) {
  .site-footer.tt-footer .tt-footer__brand {
    display: block;
  }
  .site-footer.tt-footer .tt-footer__trust {
    margin-top: 30px;
  }
  .site-footer.tt-footer .tt-footer__links {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 30px;
  }
}

@media (max-width: 600px) {
  .site-footer.tt-footer .tt-footer__trust-box .ti-widget .ti-disclaimer {
    left: 0 !important;
    right: auto !important;
    transform: none !important;
  }
  .site-footer.tt-footer {
    padding: 38px 0;
  }
  .site-footer.tt-footer .tt-footer__inner {
    padding-inline: 18px;
  }
  .site-footer.tt-footer .tt-footer__top {
    row-gap: 30px;
  }
  .site-footer.tt-footer .tt-footer__legal {
    margin-top: 30px;
  }
  .site-footer.tt-footer .tt-footer__legal ul {
    gap: 3px 20px;
  }
}

/* Trustindex slider inside the page content (not the footer badge): its hidden tooltips and tab items reach past the right edge
   of the viewport and added 4 px of horizontal scroll at 360 px. Clipping the track on the x axis removes that; y stays visible. */
.ti-reviews-container-wrapper {
  overflow-x: clip;
}
