/* ============================================================
   tools-page.css — Components for calculator/tools pages
   Phase 6: aktienrechner, termingeschaefterechner
   ============================================================ */

/* ---------------------------------------------------------------
   0b. Card overrides
   Center cross-sell card body text since brand-page.css isn't loaded
   --------------------------------------------------------------- */

.ffo-brand-hero ~ .ffo-section .ffo-card__body {
  text-align: center;
}

.ffo-card__body .ffo-btn--link {
  margin-top: auto;
}

.ffo-card__body > img {
  display: block;
  margin-inline: auto;
  margin-bottom: 12px;
}

/* ---------------------------------------------------------------
   1. Calculator embed container
   Wraps the React calculator widget — preserves React mount point
   --------------------------------------------------------------- */

.ffo-calculator {
  max-width: 1180px;
  margin-inline: auto;
  padding: 0 20px 40px;
}

.ffo-calculator .tax-calculator {
  max-width: 100%;
}

/* ---------------------------------------------------------------
   2. Video section (split: text left, video right)
   Used on all 3 calculator pages for the "how to use" video
   --------------------------------------------------------------- */

.ffo-video-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.ffo-video-split__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 768px) {
  .ffo-video-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------------------------------------------------------------
   3. Benefits list (checkmark items with bold subheading)
   Used on termingeschaefterechner for "Darum handelst du..."
   --------------------------------------------------------------- */

.ffo-benefits {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.ffo-benefit {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.ffo-benefit__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--ffo-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.ffo-benefit__icon svg {
  width: 20px;
  height: 20px;
  fill: var(--ffo-white);
}

.ffo-benefit__content h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.ffo-benefit__content p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ffo-neutral-400);
}

.ffo-benefit__content a {
  color: var(--ffo-primary);
  text-decoration: underline;
}

.ffo-benefit__content a:hover {
  color: var(--ffo-dark);
}

/* ---------------------------------------------------------------
   4. Split content (image left, text right)
   Used on termingeschaefterechner for "Was zählt alles..."
   --------------------------------------------------------------- */

.ffo-content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.ffo-content-split__image {
  border-radius: var(--ffo-radius-lg);
  width: 100%;
  height: auto;
}

.ffo-content-split__text h2 {
  margin-bottom: 24px;
}

.ffo-content-split__text p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ffo-neutral-400);
}

.ffo-content-split__text p + p {
  margin-top: 16px;
}

.ffo-content-split__text a {
  color: var(--ffo-primary);
  text-decoration: underline;
}

.ffo-content-split__text a:hover {
  color: var(--ffo-dark);
}

@media (max-width: 768px) {
  .ffo-content-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------------------------------------------------------------
   5. FAQ answer links (visible on dark background)
   --------------------------------------------------------------- */

.ffo-faq .ffo-faq__answer a {
  color: var(--ffo-primary);
  text-decoration: underline;
}

.ffo-faq .ffo-faq__answer a:hover {
  color: var(--ffo-primary-border-48);
}
