/* =========================================================
   TOABAI CTA SYSTEM · v1.0.1022
   Verbindliche Darstellung für abschließende Handlungsblöcke.
   Wird nach Seiten-CSS und Layout-Foundation geladen.
========================================================= */

body section.tm-final-cta-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: var(--tm-section-space-lg);
  padding-bottom: var(--tm-section-space-lg);
  background:
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.22), transparent 38%),
    radial-gradient(circle at 12% 88%, rgba(96, 165, 250, 0.09), transparent 30%),
    linear-gradient(180deg, #020617 0%, #081127 100%);
  color: #ffffff;
}

body section.tm-final-cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.025), transparent),
    radial-gradient(circle at 82% 26%, rgba(37, 99, 235, 0.11), transparent 28%);
}

body section.tm-final-cta-section > .tm-page-inner,
body section.tm-final-cta-section > .tm-container {
  position: relative;
  z-index: 1;
}

body section.tm-final-cta-section .tm-final-cta-panel {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

body section.tm-final-cta-section .tm-final-cta-panel > .tm-eyebrow,
body section.tm-final-cta-section .tm-final-cta-copy > .tm-eyebrow {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 18px;
  padding: 0;
  color: #60a5fa;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.145em;
  line-height: 1.15;
  text-transform: uppercase;
}

body section.tm-final-cta-section .tm-final-cta-panel h2,
body section.tm-final-cta-section .tm-final-cta-copy h2 {
  max-width: 820px;
  margin: 0 auto;
  color: #ffffff;
  font-size: clamp(2.45rem, 4.8vw, 4.75rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

body section.tm-final-cta-section .tm-final-cta-panel > p:not(.tm-eyebrow):not(.tm-final-cta-note),
body section.tm-final-cta-section .tm-final-cta-copy > p:not(.tm-eyebrow):not(.tm-final-cta-note) {
  max-width: 680px;
  margin: 24px auto 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: 1.04rem;
  line-height: 1.72;
}

body section.tm-final-cta-section .tm-final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

body section.tm-final-cta-section .tm-final-cta-actions .tm-btn {
  margin-top: 0;
}

body section.tm-final-cta-section .tm-final-cta-note {
  max-width: 680px;
  margin: 20px auto 0;
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

body section.tm-final-cta-section .tm-final-cta-note a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 4px;
}

body section.tm-final-cta-section .tm-final-cta-note a:hover,
body section.tm-final-cta-section .tm-final-cta-note a:focus-visible {
  text-decoration-color: #ffffff;
}

/* Geteilte Variante, aktuell für die Über-mich-Seite. */
body section.tm-final-cta-section.tm-final-cta-section--split .tm-final-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  max-width: var(--tm-layout-content);
  text-align: left;
}

body section.tm-final-cta-section.tm-final-cta-section--split .tm-final-cta-copy {
  max-width: 760px;
}

body section.tm-final-cta-section.tm-final-cta-section--split .tm-final-cta-copy > .tm-eyebrow,
body section.tm-final-cta-section.tm-final-cta-section--split .tm-final-cta-copy h2,
body section.tm-final-cta-section.tm-final-cta-section--split .tm-final-cta-copy > p {
  margin-left: 0;
  margin-right: 0;
}

body section.tm-final-cta-section.tm-final-cta-section--split .tm-final-cta-copy h2 {
  font-size: clamp(2.25rem, 4vw, 4rem);
}

body section.tm-final-cta-section.tm-final-cta-section--split .tm-final-cta-actions {
  justify-self: end;
  margin-top: 0;
}

/* Kompakte CTA-Karte innerhalb des Wissen-Hubs. */
body .tm-wissen-page section.tm-final-cta-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
  margin-top: 0;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: var(--tm-radius-xl);
  background:
    radial-gradient(circle at 92% 18%, rgba(37, 99, 235, 0.58), transparent 36%),
    linear-gradient(145deg, #071426, #0d2a63 68%, #1d4ed8);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
}

body .tm-wissen-page section.tm-final-cta-card .tm-final-cta-card-eyebrow {
  margin: 0 0 10px;
  color: #93c5fd;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.15;
  text-transform: uppercase;
}

body .tm-wissen-page section.tm-final-cta-card h2 {
  max-width: 36rem;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.9rem, 2.8vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

body .tm-wissen-page section.tm-final-cta-card .tm-final-cta-card-text {
  display: block;
  max-width: 42rem;
  margin-top: 12px;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.65;
}

body .tm-wissen-page section.tm-final-cta-card > .tm-btn {
  white-space: nowrap;
}

@media (max-width: 820px) {
  body section.tm-final-cta-section.tm-final-cta-section--split .tm-final-cta-panel,
  body .tm-wissen-page section.tm-final-cta-card {
    grid-template-columns: 1fr;
  }

  body section.tm-final-cta-section.tm-final-cta-section--split .tm-final-cta-actions {
    justify-self: start;
    margin-top: 0;
  }

  body .tm-wissen-page section.tm-final-cta-card > .tm-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  body section.tm-final-cta-section {
    padding-top: var(--tm-section-space-sm);
    padding-bottom: var(--tm-section-space-sm);
  }

  body section.tm-final-cta-section .tm-final-cta-panel h2,
  body section.tm-final-cta-section .tm-final-cta-copy h2,
  body section.tm-final-cta-section.tm-final-cta-section--split .tm-final-cta-copy h2 {
    font-size: clamp(2.15rem, 10vw, 3rem);
    line-height: 1;
    letter-spacing: -0.055em;
  }

  body section.tm-final-cta-section .tm-final-cta-panel > p:not(.tm-eyebrow):not(.tm-final-cta-note),
  body section.tm-final-cta-section .tm-final-cta-copy > p:not(.tm-eyebrow):not(.tm-final-cta-note) {
    margin-top: 20px;
    font-size: 0.98rem;
    line-height: 1.65;
  }

  body section.tm-final-cta-section .tm-final-cta-actions {
    width: 100%;
    margin-top: 28px;
  }

  body section.tm-final-cta-section .tm-final-cta-actions .tm-btn {
    width: 100%;
  }

  body section.tm-final-cta-section.tm-final-cta-section--split .tm-final-cta-panel {
    gap: 28px;
  }

  body section.tm-final-cta-section.tm-final-cta-section--split .tm-final-cta-actions {
    width: 100%;
  }

  body .tm-wissen-page section.tm-final-cta-card {
    gap: 24px;
    padding: 26px 22px;
    border-radius: var(--tm-radius-lg);
  }

  body .tm-wissen-page section.tm-final-cta-card h2 {
    font-size: clamp(1.85rem, 9vw, 2.45rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  body section.tm-final-cta-section .tm-btn,
  body .tm-wissen-page section.tm-final-cta-card .tm-btn {
    transition: none;
  }
}
