/* ============================================================
   educational-page.css — Components for GmbH educational pages
   (Phase 7: 21 informational articles)

   Loaded alongside design-system.css.
   Pages may also load solution-page.css for tax comparisons.

   Existing components NOT duplicated here:
   - ffo-split / ffo-split--reverse  (design-system.css)
   - ffo-checklist                   (design-system.css)
   - ffo-video-wrapper / ffo-play-btn(design-system.css)
   - ffo-faq                         (design-system.css)
   - ffo-testimonial                 (design-system.css)
   - ffo-prose                       (brand-page.css — include if needed)
   - ffo-cta-box                     (product-page.css — include if needed)
   - ffo-cross-sell                  (solution-page.css)
   - ffo-callout                     (duplicated from solution-page.css)
   ============================================================ */


/* ================================================================
   1. Educational Hero
   Centered H1 + subtitle + optional image, accounts for header.
   Simpler than ffo-product-hero or ffo-brand-hero.
   ================================================================ */

.ffo-edu-hero {
  padding-top: 200px;
  padding-bottom: 80px;
}

.ffo-edu-hero .ffo-split {
  align-items: center;
}

.ffo-edu-hero__subtitle {
  font-size: 18px;
  font-weight: 500;
  color: var(--ffo-neutral-400);
  line-height: 1.6;
  margin-top: 20px;
  max-width: 560px;
}

.ffo-edu-hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.ffo-edu-hero__image {
  border-radius: var(--ffo-radius-lg);
  width: 100%;
}

@media (max-width: 767px) {
  .ffo-edu-hero {
    padding-top: 160px;
    padding-bottom: 56px;
  }
}


/* ================================================================
   2. Prose (educational variant)
   Long-form article text with proper typography, headings, lists,
   and in-content links. Extends brand-page ffo-prose for pages
   that don't load brand-page.css.
   ================================================================ */

.ffo-edu-prose {
  max-width: 900px;
}

.ffo-edu-prose p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ffo-dark);
  margin-bottom: 24px;
}

.ffo-edu-prose p:last-child {
  margin-bottom: 0;
}

.ffo-edu-prose a {
  color: var(--ffo-primary);
  text-decoration: underline;
  font-weight: 600;
}

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

.ffo-edu-prose h2 {
  margin-top: 56px;
  margin-bottom: 20px;
}

.ffo-edu-prose h3,
.ffo-edu-prose h4 {
  margin-top: 40px;
  margin-bottom: 16px;
}

.ffo-edu-prose ul,
.ffo-edu-prose ol {
  padding-left: 24px;
  margin-bottom: 24px;
  list-style: revert;
}

.ffo-edu-prose li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.ffo-edu-prose blockquote {
  margin: 32px 0;
  padding: 24px 32px;
  border-left: 4px solid var(--ffo-primary);
  background: var(--ffo-primary-light-12);
  border-radius: 0 var(--ffo-radius-sm) var(--ffo-radius-sm) 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ffo-dark);
}

.ffo-edu-prose strong {
  font-weight: 700;
}

/* Green-highlighted conclusion text */
.ffo-edu-prose__highlight {
  color: var(--ffo-primary);
  font-weight: 600;
}

/* Sub-heading styled as green inline label (not a heading tag) */
.ffo-edu-prose__subhead {
  display: block;
  color: var(--ffo-primary);
  font-weight: 700;
  font-size: 18px;
  margin-top: 32px;
  margin-bottom: 8px;
}


/* ================================================================
   3. Icon Checklist (enhanced)
   Checklist with icon + title + description, used for features
   like "Steuern sparen mit atypisch still" sections.
   The base ffo-checklist handles simple items; this adds
   title + desc structure.
   ================================================================ */

.ffo-edu-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ffo-edu-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.ffo-edu-checklist__icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  flex-shrink: 0;
  margin-top: 2px;
}

.ffo-edu-checklist__icon img {
  width: 100%;
  height: 100%;
}

.ffo-edu-checklist__content {
  flex: 1;
  min-width: 0;
}

.ffo-edu-checklist__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ffo-dark);
  margin-bottom: 6px;
}

.ffo-edu-checklist__desc {
  font-size: 15px;
  font-weight: 500;
  color: var(--ffo-neutral-400);
  line-height: 1.6;
}


/* ================================================================
   4. Numbered Card Grid
   3-6 cards with number badges or icon + H4 title + description.
   Used for Aufgaben/Pflichten, Haftungsgründe, Weitere
   Vereinbarungen, etc.
   ================================================================ */

.ffo-edu-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ffo-edu-card-grid--1 {
  grid-template-columns: 1fr;
}

.ffo-edu-card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.ffo-edu-card-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.ffo-edu-card {
  background: var(--ffo-white);
  border: 1.5px solid var(--ffo-primary-border-48);
  border-radius: var(--ffo-radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.ffo-edu-card:hover {
  box-shadow: var(--ffo-shadow-hover);
  transform: translateY(-4px);
}

.ffo-edu-card--horizontal {
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
}

.ffo-edu-card--horizontal .ffo-edu-card__icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.ffo-edu-card--horizontal .ffo-edu-card__num {
  flex-shrink: 0;
  margin-top: 2px;
}

.ffo-edu-card__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.ffo-edu-card__icon img {
  width: 100%;
  height: 100%;
}

.ffo-edu-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--ffo-white);
  border: 2px solid var(--ffo-primary);
  color: var(--ffo-primary);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  line-height: 1;
  text-align: center;
}

.ffo-edu-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ffo-dark);
}

.ffo-edu-card__desc {
  font-size: 15px;
  font-weight: 500;
  color: var(--ffo-neutral-400);
  line-height: 1.6;
}

.ffo-edu-card__desc ul {
  padding-left: 18px;
  margin-top: 8px;
  list-style: disc;
}

.ffo-edu-card__desc li {
  margin-bottom: 4px;
}

@media (max-width: 991px) {
  .ffo-edu-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .ffo-edu-card-grid,
  .ffo-edu-card-grid--2 {
    grid-template-columns: 1fr;
  }
}


/* ================================================================
   5. Content Accordion
   Collapsible topic sections for educational content (NOT FAQ).
   Light background variant with optional icon, used for
   tax-free gains, Gesellschafter types, etc.
   ================================================================ */

.ffo-edu-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ffo-edu-accordion details {
  border: 1.5px solid var(--ffo-primary-border-48);
  border-radius: var(--ffo-radius-sm);
  overflow: hidden;
  background: var(--ffo-white);
}

.ffo-edu-accordion summary {
  padding: 20px 24px;
  font-family: var(--ffo-font-primary);
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ffo-dark);
  transition: background 0.2s ease;
}

.ffo-edu-accordion summary::-webkit-details-marker {
  display: none;
}

.ffo-edu-accordion summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  flex-shrink: 0;
  margin-left: auto;
  transition: transform 0.3s ease;
  color: var(--ffo-primary);
}

.ffo-edu-accordion details[open] summary::after {
  content: '\2212';
}

.ffo-edu-accordion summary:hover {
  background: var(--ffo-primary-light-12);
}

.ffo-edu-accordion__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.ffo-edu-accordion__icon img {
  width: 100%;
  height: 100%;
}

.ffo-edu-accordion__body {
  padding: 0 24px 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ffo-neutral-400);
}

.ffo-edu-accordion__body p {
  margin-bottom: 16px;
}

.ffo-edu-accordion__body p:last-child {
  margin-bottom: 0;
}

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

.ffo-edu-accordion__body ul,
.ffo-edu-accordion__body ol {
  padding-left: 24px;
  margin-bottom: 16px;
  list-style: revert;
}


/* ================================================================
   6. Data Table
   Styled tables for educational content — comparison data,
   calculation examples, asset class tax rates, etc.
   Distinct from ffo-tax-table (solution-page.css) which is
   specifically for tax comparisons.
   ================================================================ */

.ffo-edu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-top: 24px;
}

.ffo-edu-table thead th {
  background: var(--ffo-dark);
  color: var(--ffo-white);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 20px;
  text-align: left;
}

.ffo-edu-table thead th:first-child {
  border-radius: var(--ffo-radius-sm) 0 0 0;
}

.ffo-edu-table thead th:last-child {
  border-radius: 0 var(--ffo-radius-sm) 0 0;
}

.ffo-edu-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--ffo-neutral-100);
  vertical-align: top;
  color: var(--ffo-dark);
  line-height: 1.5;
}

.ffo-edu-table tbody tr:last-child td {
  border-bottom: none;
}

.ffo-edu-table tbody tr:hover {
  background: var(--ffo-neutral-100);
}

/* Highlight row (e.g., total/result row) */
.ffo-edu-table__highlight td {
  font-weight: 700;
  color: var(--ffo-primary);
  border-top: 2px solid var(--ffo-primary-border-48);
}

/* Neutral header variant (light background) */
.ffo-edu-table--light thead th {
  background: var(--ffo-primary-light-12);
  color: var(--ffo-dark);
}

.ffo-edu-table--light thead th:first-child {
  border-radius: var(--ffo-radius-sm) 0 0 0;
}

.ffo-edu-table--light thead th:last-child {
  border-radius: 0 var(--ffo-radius-sm) 0 0;
}

@media (max-width: 767px) {
  .ffo-edu-table {
    font-size: 13px;
  }

  .ffo-edu-table thead th,
  .ffo-edu-table tbody td {
    padding: 10px 12px;
  }
}


/* ================================================================
   7. Comparison Columns
   Side-by-side concept comparison cards, e.g., Fremdgeschäftsführer
   vs. Gesellschafter-GF, or 3-column Gesellschafter types.
   ================================================================ */

.ffo-edu-comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ffo-edu-comparison--3 {
  grid-template-columns: repeat(3, 1fr);
}

.ffo-edu-comparison__col {
  background: var(--ffo-white);
  border: 1.5px solid var(--ffo-primary-border-48);
  border-radius: var(--ffo-radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ffo-edu-comparison__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: var(--ffo-primary);
  color: var(--ffo-white);
  font-size: 16px;
  font-weight: 700;
}

.ffo-edu-comparison__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ffo-dark);
}

.ffo-edu-comparison__desc {
  font-size: 15px;
  font-weight: 500;
  color: var(--ffo-neutral-400);
  line-height: 1.6;
}

.ffo-edu-comparison__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ffo-edu-comparison__list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ffo-neutral-400);
  line-height: 1.5;
}

.ffo-edu-comparison__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ffo-primary);
}

.ffo-edu-comparison__list a {
  color: var(--ffo-primary);
  text-decoration: underline;
  font-weight: 600;
}

@media (max-width: 991px) {
  .ffo-edu-comparison--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .ffo-edu-comparison,
  .ffo-edu-comparison--3 {
    grid-template-columns: 1fr;
  }
}


/* ================================================================
   8. Vertical Process Steps
   Numbered vertical steps (e.g., "Die Voraussetzungen" in
   gesellschafter, "In drei Schritten" in gewerbeanmeldung,
   "Schritte der Gewinnverteilung", etc.)
   ================================================================ */

.ffo-edu-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: edu-step;
}

.ffo-edu-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--ffo-neutral-200);
}

.ffo-edu-step:first-child {
  padding-top: 0;
}

.ffo-edu-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ffo-edu-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--ffo-white);
  border: 2px solid var(--ffo-primary);
  color: var(--ffo-primary);
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.ffo-edu-step__body {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}

.ffo-edu-step__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ffo-dark);
  margin-bottom: 8px;
}

.ffo-edu-step__desc {
  font-size: 15px;
  font-weight: 500;
  color: var(--ffo-neutral-400);
  line-height: 1.6;
}

.ffo-edu-step__desc a {
  color: var(--ffo-primary);
  text-decoration: underline;
  font-weight: 600;
}


/* ================================================================
   9. CTA Banner
   Full-width dark CTA section with heading + text + button.
   Used as mid-page CTA ("Gründe ohne vertragliches Wirrwarr",
   "Keine Lust auf Gesetzestexte wälzen?", etc.)
   Distinct from ffo-cta-box which is an inline box within a
   section. This is a standalone section-level CTA.
   ================================================================ */

.ffo-edu-cta-banner {
  background: var(--ffo-dark);
  padding: var(--ffo-section-py) 0;
}

.ffo-edu-cta-banner h2 {
  color: var(--ffo-white);
  margin-bottom: 20px;
}

.ffo-edu-cta-banner__text {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 32px;
}

.ffo-edu-cta-banner__text a {
  color: var(--ffo-primary);
  text-decoration: underline;
  font-weight: 600;
}

.ffo-edu-cta-banner__text p {
  margin-bottom: 16px;
}

.ffo-edu-cta-banner__text p:last-child {
  margin-bottom: 0;
}

/* Green variant */
.ffo-edu-cta-banner--green {
  background: var(--ffo-primary);
}

.ffo-edu-cta-banner--green .ffo-edu-cta-banner__text {
  color: rgba(255, 255, 255, 0.85);
}

/* Light variant (primary-light bg with dark text) */
.ffo-edu-cta-banner--light {
  background: var(--ffo-primary-light-12);
}

.ffo-edu-cta-banner--light h2 {
  color: var(--ffo-dark);
}

.ffo-edu-cta-banner--light .ffo-edu-cta-banner__text {
  color: var(--ffo-neutral-400);
}


/* ================================================================
   10. Collapsible Reference Text
   Single open/close block for long reference content like
   full statutory law text (e.g., § 8b KStG Gesetzestext).
   Distinct from ffo-edu-accordion (multi-item) — this is a
   single standalone collapsible.
   ================================================================ */

.ffo-edu-reference {
  border: 1.5px solid var(--ffo-neutral-200);
  border-radius: var(--ffo-radius-md);
  overflow: hidden;
}

.ffo-edu-reference summary {
  padding: 20px 24px;
  font-family: var(--ffo-font-primary);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ffo-dark);
  background: var(--ffo-neutral-100);
  transition: background 0.2s ease;
}

.ffo-edu-reference summary::-webkit-details-marker {
  display: none;
}

.ffo-edu-reference summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  flex-shrink: 0;
  color: var(--ffo-primary);
  transition: transform 0.3s ease;
}

.ffo-edu-reference[open] summary::after {
  content: '\2212';
}

.ffo-edu-reference summary:hover {
  background: var(--ffo-primary-light-12);
}

.ffo-edu-reference__body {
  padding: 24px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ffo-neutral-400);
  max-height: 500px;
  overflow-y: auto;
}

.ffo-edu-reference__body p {
  margin-bottom: 16px;
}

.ffo-edu-reference__body p:last-child {
  margin-bottom: 0;
}

/* Scrollbar styling for the reference body */
.ffo-edu-reference__body::-webkit-scrollbar {
  width: 6px;
}

.ffo-edu-reference__body::-webkit-scrollbar-track {
  background: var(--ffo-neutral-100);
  border-radius: 3px;
}

.ffo-edu-reference__body::-webkit-scrollbar-thumb {
  background: var(--ffo-neutral-200);
  border-radius: 3px;
}

.ffo-edu-reference__body::-webkit-scrollbar-thumb:hover {
  background: var(--ffo-neutral-300);
}


/* ================================================================
   11. Summary Cards
   Compact horizontal cards used for "Das Wichtigste zusammen-
   gefasst" sections (e.g., transparenzregister summary).
   Icon/number + title + desc in a bordered card.
   ================================================================ */

.ffo-edu-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.ffo-edu-summary-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--ffo-white);
  border: 1.5px solid var(--ffo-primary-border-48);
  border-radius: var(--ffo-radius-sm);
}

.ffo-edu-summary-card__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--ffo-primary-light-12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ffo-edu-summary-card__icon img {
  width: 20px;
  height: 20px;
}

.ffo-edu-summary-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ffo-dark);
  margin-bottom: 6px;
}

.ffo-edu-summary-card__desc {
  font-size: 14px;
  font-weight: 500;
  color: var(--ffo-neutral-400);
  line-height: 1.5;
}

@media (max-width: 767px) {
  .ffo-edu-summary-grid {
    grid-template-columns: 1fr;
  }
}


/* ================================================================
   12. Calculation Box
   Highlighted calculation/example box used in pages like
   gewinnausschuettung, gewinnverteilung, steuern for showing
   tax calculation examples with structured rows.
   ================================================================ */

.ffo-edu-calc-box {
  background: var(--ffo-neutral-100);
  border-radius: var(--ffo-radius-md);
  padding: 32px;
  margin-top: 24px;
}

.ffo-edu-calc-box__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ffo-dark);
  margin-bottom: 20px;
}

.ffo-edu-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--ffo-neutral-200);
  font-size: 15px;
  font-weight: 500;
  color: var(--ffo-dark);
}

.ffo-edu-calc-row:last-child {
  border-bottom: none;
}

.ffo-edu-calc-row__label {
  color: var(--ffo-neutral-400);
}

.ffo-edu-calc-row__value {
  font-weight: 700;
  white-space: nowrap;
}

/* Highlighted result row */
.ffo-edu-calc-row--result {
  border-top: 2px solid var(--ffo-primary-border-48);
  border-bottom: none;
  padding-top: 16px;
  margin-top: 8px;
}

.ffo-edu-calc-row--result .ffo-edu-calc-row__label {
  color: var(--ffo-dark);
  font-weight: 700;
}

.ffo-edu-calc-row--result .ffo-edu-calc-row__value {
  color: var(--ffo-primary);
  font-size: 18px;
}


/* ================================================================
   13. Process Gantt / Timeline Table
   Used for pages like in-gruendung.html that show a multi-step
   process with responsibilities (your tasks / FELSFO tasks /
   third-party dependencies). Horizontal scrollable on mobile.
   ================================================================ */

.ffo-edu-process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.ffo-edu-process__step {
  background: var(--ffo-white);
  border: 1.5px solid var(--ffo-primary-border-48);
  border-radius: var(--ffo-radius-sm);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.ffo-edu-process__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ffo-primary);
  color: var(--ffo-white);
  font-size: 16px;
  font-weight: 700;
  margin: 0 auto;
}

.ffo-edu-process__step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ffo-dark);
}

.ffo-edu-process__step-desc {
  font-size: 13px;
  font-weight: 500;
  color: var(--ffo-neutral-400);
  line-height: 1.5;
}

/* Tag for responsibility labels */
.ffo-edu-process__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 100px;
  align-self: center;
}

.ffo-edu-process__tag--you {
  background: var(--ffo-primary-light-12);
  color: var(--ffo-primary);
}

.ffo-edu-process__tag--felsfo {
  background: var(--ffo-dark);
  color: var(--ffo-white);
}

.ffo-edu-process__tag--external {
  background: var(--ffo-neutral-100);
  color: var(--ffo-neutral-400);
}


/* ================================================================
   14. Section Divider
   Decorative divider between article sections, used in
   content-heavy pages like gesetz.html.
   ================================================================ */

.ffo-edu-divider {
  width: 60px;
  height: 3px;
  background: var(--ffo-primary);
  border-radius: 2px;
  margin: 40px 0;
}

.ffo-edu-divider--center {
  margin-inline: auto;
}


/* ================================================================
   15. Numbered List (ordered)
   Styled ordered list for sections like "Diese sieben Abschnitte
   hat das GmbH-Gesetz" or step-by-step requirements.
   ================================================================ */

.ffo-edu-ordered-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: edu-list;
}

.ffo-edu-ordered-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ffo-dark);
  line-height: 1.6;
  counter-increment: edu-list;
}

.ffo-edu-ordered-list li::before {
  content: counter(edu-list) ".";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  font-weight: 700;
  color: var(--ffo-primary);
  flex-shrink: 0;
}


/* ================================================================
   16. Internal Link Cards
   Navigation cards linking to related GmbH educational pages
   (e.g., linking to /gmbh/gesellschafter, /gmbh/haftung, etc.)
   ================================================================ */

.ffo-edu-link-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.ffo-edu-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--ffo-white);
  border: 1.5px solid var(--ffo-neutral-200);
  border-radius: var(--ffo-radius-sm);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ffo-edu-link-card:hover {
  border-color: var(--ffo-primary);
  box-shadow: var(--ffo-shadow-card);
}

.ffo-edu-link-card__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--ffo-primary-light-12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ffo-edu-link-card__icon img {
  width: 20px;
  height: 20px;
}

.ffo-edu-link-card__text {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--ffo-dark);
}

.ffo-edu-link-card__arrow {
  color: var(--ffo-primary);
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.ffo-edu-link-card:hover .ffo-edu-link-card__arrow {
  transform: translateX(4px);
}

@media (max-width: 767px) {
  .ffo-edu-link-cards {
    grid-template-columns: 1fr;
  }
}


/* === ffo-product-hero (imported from product-page.css) === */

.ffo-product-hero {
  padding-top: 200px;
  padding-bottom: 80px;
  position: relative;
  z-index: 0;
}

.ffo-product-hero .ffo-split {
  align-items: center;
}

.ffo-product-hero__subtitle {
  font-size: 18px;
  font-weight: 500;
  color: var(--ffo-neutral-400);
  line-height: 1.5;
  margin-top: 16px;
  max-width: 540px;
}

.ffo-product-hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.ffo-product-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

.ffo-product-hero__image img {
  width: 100%;
  height: auto;
  border-radius: var(--ffo-radius-lg, 12px);
}

@media (max-width: 991px) {
  .ffo-product-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Dark variant (steuerberater page) */
.ffo-product-hero--dark {
  background-color: var(--ffo-dark);
  color: var(--ffo-white);
}

.ffo-product-hero--dark h1 {
  color: var(--ffo-white);
}

.ffo-product-hero--dark .ffo-product-hero__subtitle {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 767px) {
  .ffo-product-hero {
    padding-top: 160px;
    padding-bottom: 56px;
  }
}


/* === Press logos row === */

.ffo-press-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.ffo-press-logos__item {
  display: block;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.ffo-press-logos__item:hover {
  opacity: 1;
}

.ffo-press-logos__item img {
  height: 28px;
  width: auto;
}


/* === Split layout modifiers and color utilities === */

/* Split layout modifiers */
.ffo-split--50-50 {
  grid-template-columns: 1fr 1fr;
}
.ffo-split__image {
  width: 100%;
  height: auto;
  border-radius: var(--ffo-radius-lg, 12px);
}
.ffo-split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Color utilities */
.ffo-text-primary {
  color: var(--ffo-primary);
}
.ffo-text-light {
  color: rgba(255, 255, 255, 0.85);
}
.ffo-fw-600 {
  font-weight: 600;
}
.ffo-text-sm {
  font-size: 0.875rem;
}
.ffo-img-responsive {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}
.ffo-edu-gantt-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.ffo-edu-gantt-table th {
  background: var(--ffo-primary);
  color: var(--ffo-white);
  padding: 12px 16px;
  text-align: left;
}
.ffo-edu-gantt-table td {
  padding: 12px 16px;
}
.ffo-edu-gantt-table td:first-child {
  font-weight: 600;
}
.ffo-edu-gantt-table tbody tr:nth-child(odd) {
  background: #f5f6f6;
}
.ffo-edu-gantt-table tbody tr:nth-child(even) {
  background: rgba(237, 245, 240, 0.6);
}
.ffo-edu-prose ol {
  padding-left: 1.5rem;
  line-height: 1.8;
}


/* ================================================================
   RESPONSIVE — Global breakpoints
   ================================================================ */

@media (max-width: 991px) {
  .ffo-edu-hero .ffo-split {
    text-align: center;
  }

  .ffo-edu-hero__subtitle {
    margin-inline: auto;
  }

  .ffo-edu-hero__cta {
    justify-content: center;
  }

  .ffo-edu-cta-banner {
    text-align: center;
  }

  .ffo-edu-cta-banner__text {
    margin-inline: auto;
  }

  .ffo-edu-process {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .ffo-edu-process {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }

  .ffo-edu-calc-box {
    padding: 24px 20px;
  }

  .ffo-edu-step {
    gap: 16px;
  }

  .ffo-edu-step__num {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 16px;
  }
}


/* ============================================================
   Flow Chart (holding-style diagram)
   ============================================================ */

.ffo-flow-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
}

.ffo-flow-chart__block {
  width: 100%;
  border-radius: var(--ffo-radius-md);
  padding: 28px 24px;
  text-align: center;
}

.ffo-flow-chart__block--dark {
  background: var(--ffo-dark);
}

.ffo-flow-chart__block--light {
  background: var(--ffo-white);
  border: 1.5px solid var(--ffo-primary-border-48);
}

.ffo-flow-chart__entity {
  display: inline-block;
  background: var(--ffo-primary);
  color: var(--ffo-white);
  font-family: var(--ffo-font-primary);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.ffo-flow-chart__block--light .ffo-flow-chart__entity {
  border: 2px solid var(--ffo-primary);
  background: var(--ffo-white);
  color: var(--ffo-primary);
}

.ffo-flow-chart__desc {
  font-family: var(--ffo-font-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.ffo-flow-chart__block--dark .ffo-flow-chart__desc {
  color: var(--ffo-neutral-200);
}

.ffo-flow-chart__block--light .ffo-flow-chart__desc {
  color: var(--ffo-neutral-400);
}

.ffo-flow-chart__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 8px 0;
}

.ffo-flow-chart__arrow--up {
  flex-direction: column-reverse;
}

.ffo-flow-chart__arrow-line {
  width: 2px;
  height: 20px;
  background: var(--ffo-neutral-200);
}

.ffo-flow-chart__arrow--up .ffo-flow-chart__arrow-line:last-child::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid var(--ffo-neutral-200);
  position: relative;
  left: -5px;
  top: -8px;
}

.ffo-flow-chart__arrow-label {
  font-family: var(--ffo-font-primary);
  font-size: 13px;
  font-weight: 600;
  color: var(--ffo-dark);
  text-align: center;
  line-height: 1.4;
  padding: 8px 0;
}


/* ============================================================
   Tax Breakdown Boxes (stacked info boxes)
   ============================================================ */

.ffo-tax-breakdown {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
}

.ffo-tax-breakdown__box {
  border-radius: var(--ffo-radius-md);
  padding: 28px 24px;
  text-align: center;
  font-family: var(--ffo-font-primary);
}

.ffo-tax-breakdown__box--muted {
  background: var(--ffo-neutral-100);
  border: 1.5px solid var(--ffo-neutral-200);
}

.ffo-tax-breakdown__box--accent {
  background: var(--ffo-primary-light-12);
  border: 1.5px solid var(--ffo-primary-border-48);
}

.ffo-tax-breakdown__box--highlight {
  background: var(--ffo-primary-light-20);
  border: 1.5px solid var(--ffo-primary);
}

.ffo-tax-breakdown__label {
  font-size: 15px;
  font-weight: 500;
  color: var(--ffo-neutral-400);
  line-height: 1.5;
}

.ffo-tax-breakdown__box--accent .ffo-tax-breakdown__label {
  color: var(--ffo-dark);
  font-weight: 600;
}

.ffo-tax-breakdown__box--highlight .ffo-tax-breakdown__label {
  color: var(--ffo-neutral-400);
}

.ffo-tax-breakdown__value {
  font-size: 18px;
  font-weight: 700;
  color: var(--ffo-dark);
  margin-top: 4px;
  line-height: 1.4;
}


/* ============================================================
   Mini Cards (compact icon + label cards for grid layouts)
   ============================================================ */

.ffo-mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ffo-white);
  border: 1.5px solid var(--ffo-neutral-200);
  border-radius: var(--ffo-radius-md);
  padding: 16px 20px;
  font-family: var(--ffo-font-primary);
  font-size: 15px;
  font-weight: 500;
  color: var(--ffo-dark);
  line-height: 1.4;
}

.ffo-mini-card img {
  flex-shrink: 0;
}

.ffo-mini-card--detailed {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
}

.ffo-mini-card--detailed img {
  width: 28px;
  height: 28px;
}

.ffo-mini-card--detailed .ffo-mini-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ffo-dark);
  line-height: 1.3;
}

.ffo-mini-card--detailed .ffo-mini-card__desc {
  font-size: 13px;
  font-weight: 500;
  color: var(--ffo-neutral-400);
  line-height: 1.5;
}


/* ============================================================
   Split Cards (icon+heading left, body text right, stacked)
   ============================================================ */

.ffo-edu-split-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin-inline: auto;
}

.ffo-edu-split-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
  background: var(--ffo-primary-light-12);
  border-radius: var(--ffo-radius-md);
  padding: 32px;
}

.ffo-edu-split-card__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ffo-edu-split-card__header h3 {
  font-family: var(--ffo-font-primary);
  font-size: 22px;
  font-weight: 700;
  color: var(--ffo-dark);
  margin: 0;
  line-height: 1.3;
}

.ffo-edu-split-card__header img {
  flex-shrink: 0;
  opacity: 0.7;
}

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


/* ============================================================
   Icon Box Grid (rows of square icon+label cards)
   ============================================================ */

.ffo-icon-box-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* --3 variant inherits justify-content: center from parent — no overrides needed */

.ffo-icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 180px;
  height: 180px;
  padding: 24px 16px;
  background: var(--ffo-white);
  border: 1.5px solid var(--ffo-neutral-200);
  border-radius: var(--ffo-radius-md);
  text-align: center;
  font-family: var(--ffo-font-primary);
  font-size: 14px;
  font-weight: 500;
  color: var(--ffo-dark);
  line-height: 1.4;
  flex-shrink: 0;
}

.ffo-icon-box img {
  opacity: 0.7;
}

@media (max-width: 900px) {
  .ffo-icon-box-grid {
    flex-wrap: wrap;
  }

  .ffo-icon-box {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 480px) {
  .ffo-icon-box-grid {
    gap: 12px;
  }

  .ffo-icon-box {
    width: calc(50% - 6px);
    height: auto;
    aspect-ratio: 1;
  }
}


/* ============================================================
   Example Boxes (side-by-side numerical examples)
   ============================================================ */

.ffo-example-row {
  display: flex;
  gap: 12px;
}

.ffo-example-box {
  flex: 1;
  background: var(--ffo-neutral-100);
  border: 1.5px solid var(--ffo-neutral-200);
  border-radius: var(--ffo-radius-md);
  padding: 16px 20px;
  text-align: center;
}

.ffo-example-box--a {
  background: var(--ffo-primary-light-12);
  border-color: var(--ffo-primary-border-48);
}

.ffo-example-box--b {
  background: var(--ffo-dark);
  border-color: var(--ffo-dark);
}

.ffo-example-box--b .ffo-example-box__label {
  color: var(--ffo-neutral-300);
}

.ffo-example-box--b .ffo-example-box__value {
  color: var(--ffo-white);
}

.ffo-example-box--b .ffo-example-box__value span {
  color: var(--ffo-neutral-300);
}

.ffo-example-box__label {
  font-family: var(--ffo-font-primary);
  font-size: 13px;
  font-weight: 500;
  color: var(--ffo-neutral-400);
  margin-bottom: 4px;
}

.ffo-example-box__value {
  font-family: var(--ffo-font-primary);
  font-size: 20px;
  font-weight: 700;
  color: var(--ffo-dark);
}

.ffo-example-box__value span {
  font-size: 14px;
  font-weight: 500;
  color: var(--ffo-neutral-400);
}

@media (max-width: 480px) {
  .ffo-example-row {
    flex-direction: column;
  }
}

/* ============================================================
   Tag Row — compact inline labels for short lists
   ============================================================ */

.ffo-tag-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.ffo-tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--ffo-white);
  border: 1.5px solid var(--ffo-primary-border-48);
  border-radius: var(--ffo-radius-md);
  font-family: var(--ffo-font-primary);
  font-size: 15px;
  font-weight: 600;
  color: var(--ffo-dark);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ffo-tag:hover {
  box-shadow: var(--ffo-shadow-hover);
  transform: translateY(-2px);
}

/* ============================================================
   Benefit Cards (ported from solution-page.css for Phase 8+)
   ============================================================ */

.ffo-benefit-card {
  text-align: center;
  padding: 28px 24px;
  background: var(--ffo-white);
  border: 1.5px solid var(--ffo-primary-border-48);
  border-radius: var(--ffo-radius-md);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.ffo-benefit-card:hover {
  box-shadow: var(--ffo-shadow-hover);
  transform: translateY(-4px);
}

.ffo-benefit-card__icon {
  width: 56px;
  height: 56px;
  background: var(--ffo-primary-light-12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  justify-self: center;
}

.ffo-benefit-card__icon img {
  width: 28px;
  height: 28px;
}

.ffo-benefit-card__title {
  font-size: 18px;
  font-weight: 700;
  align-self: center;
}

.ffo-benefit-card__desc {
  font-size: 15px;
  font-weight: 500;
  color: var(--ffo-neutral-400);
  line-height: 1.5;
  align-self: start;
}

.ffo-benefit-card__image {
  width: 100%;
  height: auto;
  border-radius: var(--ffo-radius-sm);
  margin-bottom: 16px;
}

/* ============================================================
   Tax / Fee Tables (ported from solution-page.css for Phase 8+)
   ============================================================ */

.ffo-tax-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  font-size: 15px;
}

.ffo-tax-table thead th {
  background: var(--ffo-dark);
  color: var(--ffo-white);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 20px;
  text-align: left;
}

.ffo-tax-table thead th:not(:first-child) {
  text-align: center;
  width: 160px;
}

.ffo-tax-table tbody td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--ffo-neutral-100);
  vertical-align: top;
  color: var(--ffo-dark);
}

.ffo-tax-table tbody td:not(:first-child) {
  text-align: center;
  font-weight: 600;
}

/* 2-column description tables: first col narrow, second col wide + left-aligned */
/* 3-column comparison tables: narrow label col, two equal wide description cols */
.ffo-tax-table--compare thead th:first-child {
  width: 140px;
}

.ffo-tax-table--compare thead th:not(:first-child) {
  width: auto;
  text-align: left;
}

.ffo-tax-table--compare tbody td:not(:first-child) {
  text-align: left;
  font-weight: 500;
}

.ffo-tax-table--desc thead th:first-child {
  width: 320px;
}

.ffo-tax-table--desc thead th:not(:first-child) {
  width: auto;
  text-align: left;
}

.ffo-tax-table--desc tbody td:not(:first-child) {
  text-align: left;
  font-weight: 500;
}

.ffo-tax-table tbody tr:last-child td {
  border-bottom: none;
}

.ffo-tax-table__highlight td:not(:first-child) {
  color: var(--ffo-primary);
}

@media (max-width: 991px) {
  .ffo-tax-table thead th:not(:first-child) {
    width: 120px;
  }
}

@media (max-width: 767px) {
  .ffo-tax-table {
    font-size: 13px;
  }

  .ffo-tax-table thead th,
  .ffo-tax-table tbody td {
    padding: 10px 12px;
  }

  .ffo-tax-table thead th:not(:first-child) {
    width: 90px;
  }
}

/* ================================================================
   Utility classes added during QA fixes
   ================================================================ */

.ffo-table-scroll {
  overflow-x: auto;
}

.ffo-text-muted-light {
  color: rgba(255, 255, 255, 0.7);
}

.ffo-flex-row {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
