/* =========================
   FOOTER
========================= */

.tm-site-footer {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 7vw, 104px) 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background:
    radial-gradient(circle at 82% -8%, rgba(37, 99, 235, 0.18), transparent 35%),
    linear-gradient(135deg, #050816 0%, #08111f 56%, #020617 100%);
  color: rgba(255, 255, 255, 0.72);
}

.tm-site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.025), transparent 230px);
  pointer-events: none;
}

.tm-site-footer a:not(.tm-btn) {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.tm-site-footer a:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.75);
  outline-offset: 4px;
  border-radius: 6px;
}

.tm-site-footer .tm-footer-inner {
  position: relative;
  z-index: 2;
}

.tm-site-footer .tm-footer-main {
  display: grid;
  grid-template-columns: minmax(310px, 1.18fr) minmax(0, 1.82fr);
  gap: clamp(64px, 8vw, 118px);
  align-items: start;
}

.tm-site-footer .tm-footer-brand {
  max-width: 500px;
}

.tm-site-footer .tm-footer-logo {
  display: inline-flex;
  align-items: baseline;
  margin-bottom: 28px;
  color: var(--tm-color-white);
  font-size: clamp(1.75rem, 2vw, 2.05rem);
  font-weight: 840;
  line-height: 1;
  letter-spacing: -0.05em;
}

.tm-site-footer .tm-logo-main,
.tm-site-footer .tm-logo-dot,
.tm-site-footer .tm-logo-sub {
  display: inline;
}

.tm-site-footer .tm-logo-main {
  color: var(--tm-color-white);
}

.tm-site-footer .tm-logo-dot,
.tm-site-footer .tm-logo-sub {
  color: var(--tm-logo-accent);
}

.tm-site-footer .tm-footer-brand h2 {
  max-width: 12ch;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2rem, 3vw, 3.15rem);
  font-weight: 820;
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.tm-site-footer .tm-footer-brand p {
  max-width: 44ch;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 1.02rem;
  line-height: 1.72;
}

.tm-site-footer .tm-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  align-items: center;
}

.tm-site-footer .tm-footer-contact {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  transition: color 0.18s ease;
}

.tm-site-footer .tm-footer-contact::after {
  content: "→";
  margin-left: 9px;
  color: #60a5fa;
  transition: transform 0.18s ease;
}

.tm-site-footer .tm-footer-contact:hover {
  color: #bfdbfe;
}

.tm-site-footer .tm-footer-contact:hover::after {
  transform: translateX(3px);
}

.tm-site-footer .tm-footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.05fr 0.8fr;
  gap: clamp(38px, 4vw, 64px);
  padding-top: 6px;
}

.tm-site-footer .tm-footer-grid nav {
  min-width: 0;
}

.tm-site-footer .tm-footer-grid strong {
  display: block;
  margin-bottom: 20px;
  color: #fff;
  font-size: 0.94rem;
  font-weight: 780;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.tm-site-footer .tm-footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tm-site-footer .tm-footer-grid li + li {
  margin-top: 13px;
}

.tm-site-footer .tm-footer-grid a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.67);
  font-size: 1rem;
  line-height: 1.5;
  transition: color 0.18s ease, transform 0.18s ease;
}

.tm-site-footer .tm-footer-grid a:hover {
  color: #fff;
  transform: translateX(2px);
}

.tm-site-footer .tm-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(62px, 7vw, 92px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tm-site-footer .tm-footer-bottom span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .tm-site-footer {
    padding-bottom: 26px;
  }

  .tm-site-footer .tm-footer-main {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .tm-site-footer .tm-footer-brand {
    max-width: 620px;
  }

  .tm-site-footer .tm-footer-brand h2 {
    max-width: 15ch;
  }

  .tm-site-footer .tm-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px 32px;
    padding-top: 0;
  }
}

@media (max-width: 700px) {
  .tm-site-footer {
    padding-top: 62px;
    padding-bottom: 22px;
  }

  .tm-site-footer .tm-footer-main {
    gap: 48px;
  }

  .tm-site-footer .tm-footer-logo {
    margin-bottom: 22px;
    font-size: 1.58rem;
  }

  .tm-site-footer .tm-footer-brand h2 {
    max-width: 14ch;
    margin-bottom: 15px;
    font-size: clamp(2rem, 10vw, 2.55rem);
  }

  .tm-site-footer .tm-footer-brand p {
    margin-bottom: 26px;
    font-size: 0.96rem;
    line-height: 1.68;
  }

  .tm-site-footer .tm-footer-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tm-site-footer .tm-footer-cta {
    width: 100%;
    text-align: center;
  }

  .tm-site-footer .tm-footer-contact {
    justify-content: center;
  }

  .tm-site-footer .tm-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 26px;
  }

  .tm-site-footer .tm-footer-grid strong {
    margin-bottom: 14px;
    font-size: 0.9rem;
  }

  .tm-site-footer .tm-footer-grid li + li {
    margin-top: 10px;
  }

  .tm-site-footer .tm-footer-grid a {
    font-size: 0.93rem;
  }

  .tm-site-footer .tm-footer-bottom {
    flex-direction: column;
    margin-top: 44px;
    padding-top: 19px;
  }

  .tm-site-footer .tm-footer-bottom span {
    font-size: 0.78rem;
  }
}

@media (max-width: 460px) {
  .tm-site-footer .tm-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tm-site-footer .tm-footer-grid a,
  .tm-site-footer .tm-footer-contact,
  .tm-site-footer .tm-footer-contact::after {
    transition: none;
  }
}


/* v1150: central contact channels */
.tm-site-footer .tm-footer-channels{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:26px}
.tm-site-footer .tm-footer-channels a{display:inline-flex;align-items:center;gap:9px;color:rgba(255,255,255,.78);font-size:.92rem;font-weight:650}
.tm-site-footer .tm-footer-channels a:hover{color:#fff}
.tm-site-footer .tm-footer-channels span{width:20px;height:20px;display:grid;place-items:center;color:#93c5fd}
.tm-site-footer .tm-footer-channels svg{width:18px;height:18px}
@media(max-width:700px){.tm-site-footer .tm-footer-channels{display:grid;gap:12px;margin-top:24px}.tm-site-footer .tm-footer-channels a{min-height:32px}}


/* v1153: Desktop-Footer wieder als ruhiges Zwei-Bereiche-Raster.
   Kontaktwege stehen in einer flachen Zeile unter dem Hauptinhalt, nicht
   als gequetschte vierte Navigationsspalte. Mobil bleibt die Kontaktliste
   direkt unter der Markenbotschaft. */
.tm-site-footer .tm-footer-contact-bar {
  display: none;
}

@media (min-width: 981px) {
  .tm-site-footer .tm-footer-main {
    grid-template-columns: minmax(360px, 1.18fr) minmax(0, 1.82fr);
    gap: clamp(72px, 8vw, 118px);
  }

  .tm-site-footer .tm-footer-brand {
    max-width: 500px;
  }

  .tm-site-footer .tm-footer-grid {
    grid-template-columns: 1.05fr 1.05fr 0.8fr;
    gap: clamp(38px, 4vw, 64px);
  }

  .tm-site-footer .tm-footer-channels-brand {
    display: none;
  }

  .tm-site-footer .tm-footer-contact-bar {
    display: flex;
    align-items: center;
    gap: 24px 34px;
    margin-top: 54px;
    padding: 22px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .tm-site-footer .tm-footer-contact-bar-label {
    flex: 0 0 auto;
    color: #fff;
    font-size: .9rem;
    font-weight: 780;
  }

  .tm-site-footer .tm-footer-contact-bar a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(255,255,255,.72);
    font-size: .94rem;
    font-weight: 650;
    white-space: nowrap;
  }

  .tm-site-footer .tm-footer-contact-bar a:hover {
    color: #fff;
  }

  .tm-site-footer .tm-footer-contact-bar a span {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    color: #93c5fd;
  }

  .tm-site-footer .tm-footer-contact-bar svg {
    display: block;
    width: 18px;
    height: 18px;
  }

  .tm-site-footer .tm-footer-bottom {
    margin-top: 24px;
    padding-top: 0;
    border-top: 0;
  }
}

@media (max-width: 980px) {
  .tm-site-footer .tm-footer-contact-bar {
    display: none;
  }
}


/* v1154: Der Link zur Kontaktseite sitzt am Desktop in der Zeile
   „Direkter Kontakt“. Auf Tablet und Mobil bleibt er bei der Markenbotschaft. */
@media (min-width: 981px) {
  .tm-site-footer .tm-footer-actions .tm-footer-contact {
    display: none;
  }

  .tm-site-footer .tm-footer-contact-bar-message {
    color: #fff;
    font-weight: 750;
  }

  .tm-site-footer .tm-footer-contact-bar-message > span {
    color: #93c5fd;
  }
}


/* v1155: Kontaktwege in priorisierter Reihenfolge.
   Nachricht senden, WhatsApp, E-Mail, Telefon. */
