/* Flyer: Gesamt-Überblick (/de/flyer/uebersicht) — page-specific rules on top
   of flyer-common.css. Only extra rules this page needs beyond the shared
   defaults: the "Welches Modul passt zu euch?" decision list and the FAQ,
   both extended-only content shown when the compact/extended toggle is set
   to "extended" — these sections never appear on the compact one-page
   budget, so they get generous spacing rather than a tight compact rhythm. */

.flyer-section.flyer-extra {
  margin-bottom: 1.3rem;
}
.flyer-section.flyer-extra .flyer-h2 {
  margin-bottom: .85rem;
}

/* The shared .flyer-services-grid (flyer-common.css) is a flat 2-column
   grid — fine for the compact one-page view (no page break to worry about),
   but in extended/print mode a flat grid can fragment mid-row, stranding
   one module's card on the next page away from its row partner. Rebuilt
   here as 5 explicit row groups, each an atomic 2-column mini-grid with its
   own break-inside: avoid, so a row's two modules always move to the next
   page together, never split. Only overridden on this page — Finanzsektor
   also uses .flyer-services-grid but keeps the shared flat layout, since it
   never spans a page break. */
.flyer-services-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.flyer-service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  break-inside: avoid;
}

/* Trimmed just enough (heading margin, row gap, paragraph line-height) so
   the whole 5-row module grid fits ahead of the page-1/page-2 boundary as
   one piece — avoids the alternative of forcing the entire grid atomic,
   which would strand it whole on page 2 and waste most of page 1 instead. */
.flyer-services .flyer-h2 {
  margin-bottom: .5rem;
}
.flyer-services-grid .flyer-service p {
  line-height: 1.32;
}

.flyer-match-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flyer-match-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.5rem 0.75rem;
  background: var(--fp-surface);
  border: 1px solid var(--fp-border);
  border-radius: 8px;
  break-inside: avoid;
}

.flyer-match-trigger {
  flex: 1 1 auto;
  font-size: 0.8rem;
  color: var(--fp-muted);
  line-height: 1.4;
}

.flyer-match-arrow {
  flex-shrink: 0;
  color: var(--fp-accent);
  font-weight: 700;
}

.flyer-match-module {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fp-accent);
  background: var(--fp-accent-soft);
  border: 1px solid var(--fp-accent-border);
  border-radius: 20px;
  padding: 4px 12px;
  white-space: nowrap;
}

.flyer-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flyer-faq-item {
  break-inside: avoid;
}

.flyer-faq-item h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--fp-text);
  margin: 0 0 5px;
}

.flyer-faq-item p {
  font-size: 0.8rem;
  color: var(--fp-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 700px) {
  .flyer-match-row {
    flex-wrap: wrap;
  }
  .flyer-match-arrow {
    display: none;
  }
}
