/* Flyer: Physical Pentest (Zutrittstest) — page-specific styles.
   Single-column narrative layout (deliberately not the 2-column sidebar
   layout of flyer_uebersicht.html) — audience is facility/office managers,
   not IT security people. All colors via var(--fp-*) from flyer-common.css
   so the page stays dark on screen / forced-light on print automatically.
   Content volume for a single-column layout is high (4-step timeline + 5
   sector cards + 4-item checklist + reassurance + CTA), so spacing here is
   tuned tighter than flyer_uebersicht.html's defaults to keep the whole
   flyer on one printed page — see the print-budget measurements in the
   task report for the numbers this was tuned against. */

/* ---- header block for this content-heavy page ---- */
.flyer-logo {
  margin-bottom: 14px;
}
.flyer-h1 {
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
  margin-bottom: .4rem;
}
.flyer-subline {
  font-size: .92rem;
  margin-bottom: .6rem;
}

/* ---- trust markers (replaces the pill-badge row — wrong visual language
   for this non-compliance-driven flyer, see design brief) ---- */
.flyer-trust-markers {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin: 0 0 .75rem;
  padding: 0;
  list-style: none;
}
.flyer-trust-markers li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--fp-muted);
}
.flyer-trust-markers svg {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  color: var(--fp-accent);
}

/* ---- single highlighted stat line ---- */
.flyer-stat-single {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: .5rem 0 .65rem;
  border-top: 1px solid var(--fp-border);
  border-bottom: 1px solid var(--fp-border);
  margin: 0 0 .65rem;
}
.flyer-stat-single .flyer-stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--fp-accent);
  line-height: 1;
  flex-shrink: 0;
}
.flyer-stat-single .flyer-stat-label {
  font-size: .82rem;
  color: var(--fp-muted);
  line-height: 1.4;
  margin: 0;
  max-width: 34em;
}

/* ---- section rhythm (reuses .flyer-h2 from common css for titles) ---- */
.flyer-section {
  margin-bottom: .62rem;
}
.flyer-section .flyer-h2 {
  margin-bottom: .55rem;
}

/* Extended-only sections never appear on the compact (one-page) budget, so
   they get room to breathe instead of the tight compact rhythm above. */
.flyer-section.flyer-extra {
  margin-bottom: 1.05rem;
}
.flyer-section.flyer-extra .flyer-h2 {
  margin-bottom: .7rem;
}

/* In extended mode, the shared (compact-tuned) sections above the
   techniques grid always land entirely on page 1 — the "Angekündigt..."
   section onward moves to page 2 as an atomic block regardless (see
   break-inside/break-after rules), so there's no point keeping this part
   of the page compact-tight too. Loosened so page 1 actually fills out
   instead of leaving a gap before the page break. Scoped to extended only
   so the one-page compact budget is untouched. */
.flyer-page[data-version="extended"] .flyer-stat-single {
  padding: .7rem 0 .85rem;
  margin-bottom: .85rem;
}
.flyer-page[data-version="extended"] .flyer-section:not(.flyer-extra) {
  margin-bottom: .95rem;
}
.flyer-page[data-version="extended"] .flyer-section:not(.flyer-extra) .flyer-h2 {
  margin-bottom: .8rem;
}

/* ---- "So läuft das ab" — horizontal 4-step timeline ---- */
.flyer-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  break-inside: avoid;
}
.flyer-timeline::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--fp-border);
}
.flyer-timeline-step {
  text-align: center;
}
.flyer-timeline-icon {
  position: relative;
  width: 26px;
  height: 26px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: var(--fp-bg);
  border: 1px solid var(--fp-accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fp-accent);
}
.flyer-timeline-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--fp-accent-soft);
}
.flyer-timeline-icon svg {
  position: relative;
  width: 13px;
  height: 13px;
}
.flyer-timeline-step h3 {
  font-size: .8rem;
  font-weight: 700;
  color: var(--fp-text);
  margin: 0 0 3px;
  line-height: 1.25;
}
.flyer-timeline-step p {
  font-size: .72rem;
  color: var(--fp-muted);
  line-height: 1.42;
  margin: 0;
}

.flyer-page[data-version="extended"] .flyer-timeline-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
}
.flyer-page[data-version="extended"] .flyer-timeline-icon svg {
  width: 15px;
  height: 15px;
}
.flyer-page[data-version="extended"] .flyer-timeline::before {
  top: 15px;
}
.flyer-page[data-version="extended"] .flyer-timeline-step p {
  line-height: 1.5;
}

/* ---- "Wie das in eurer Branche aussieht" — 5 sector cards ----
   The dict copy is long (~150-210 characters per sector), so these cards
   still run a little tighter than the house default, but with enough room
   to breathe now that the true print-height budget is known — verified
   in-browser at the 704px print-budget width that no card text is clipped. */
.flyer-sector-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  break-inside: avoid;
}
.flyer-sector-card {
  background: var(--fp-surface);
  border: 1px solid var(--fp-border);
  border-radius: 8px;
  padding: 7px 6px;
  text-align: center;
  break-inside: avoid;
}
.flyer-sector-icon {
  display: block;
  width: 17px;
  height: 17px;
  margin: 0 auto 6px;
  color: var(--fp-accent);
}
.flyer-sector-icon svg {
  width: 100%;
  height: 100%;
}
.flyer-sector-card h3 {
  font-size: .7rem;
  font-weight: 700;
  color: var(--fp-text);
  margin: 0 0 3px;
  line-height: 1.2;
}
.flyer-sector-card p {
  font-size: .63rem;
  color: var(--fp-muted);
  line-height: 1.35;
  margin: 0;
  hyphens: auto;
  overflow-wrap: break-word;
}

.flyer-page[data-version="extended"] .flyer-sector-card {
  padding: 10px 8px;
}
.flyer-page[data-version="extended"] .flyer-sector-icon {
  width: 19px;
  height: 19px;
  margin-bottom: 7px;
}
.flyer-page[data-version="extended"] .flyer-sector-card h3 {
  font-size: .72rem;
}
.flyer-page[data-version="extended"] .flyer-sector-card p {
  font-size: .66rem;
  line-height: 1.38;
}

/* ---- "Gängige Öffnungstechniken, die wir prüfen" — extended-only, 6 cards ---- */
.flyer-technique-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  break-inside: avoid;
}
.flyer-technique-card {
  background: var(--fp-surface);
  border: 1px solid var(--fp-border);
  border-radius: 8px;
  padding: .55rem .65rem;
  break-inside: avoid;
}
.flyer-technique-icon {
  display: block;
  width: 18px;
  height: 18px;
  margin-bottom: 6px;
  color: var(--fp-accent);
}
.flyer-technique-icon svg {
  width: 100%;
  height: 100%;
}
.flyer-technique-card h3 {
  font-size: .76rem;
  font-weight: 700;
  color: var(--fp-text);
  margin: 0 0 3px;
  line-height: 1.25;
}
.flyer-technique-card p {
  font-size: .68rem;
  color: var(--fp-muted);
  line-height: 1.4;
  margin: 0;
}

.flyer-page[data-version="extended"] .flyer-technique-grid {
  gap: 11px;
}
.flyer-page[data-version="extended"] .flyer-technique-card {
  padding: .65rem .75rem;
}
.flyer-page[data-version="extended"] .flyer-technique-icon {
  width: 19px;
  height: 19px;
  margin-bottom: 6px;
}
.flyer-page[data-version="extended"] .flyer-technique-card p {
  line-height: 1.42;
}

/* ---- "Angekündigt oder unangekündigt?" — extended-only, 2 cards ---- */
.flyer-testart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  break-inside: avoid;
}
.flyer-testart-card {
  background: var(--fp-surface);
  border: 1px solid var(--fp-border);
  border-radius: 10px;
  padding: .85rem 1rem;
  break-inside: avoid;
}
.flyer-testart-card h3 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--fp-text);
  margin: 0 0 6px;
}
.flyer-testart-card p {
  font-size: .8rem;
  color: var(--fp-muted);
  line-height: 1.45;
  margin: 0;
}

/* ---- "Was wir nicht tun" — extended-only limits list ---- */
.flyer-limits-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  break-inside: avoid;
}
.flyer-limits-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.flyer-limits-icon {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 3px;
  color: var(--fp-muted-2);
}
.flyer-limits-icon svg {
  width: 100%;
  height: 100%;
}
.flyer-limits-item p {
  font-size: .82rem;
  color: var(--fp-text);
  line-height: 1.5;
  margin: 0;
}

/* ---- "Häufige Fragen" — extended-only FAQ ---- */
.flyer-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flyer-faq-item {
  break-inside: avoid;
}
.flyer-faq-item h3 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--fp-text);
  margin: 0 0 3px;
}
.flyer-faq-item p {
  font-size: .8rem;
  color: var(--fp-muted);
  line-height: 1.48;
  margin: 0;
}

/* ---- "Was ihr am Ende in der Hand habt" — checklist ---- */
.flyer-delivery-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.flyer-delivery-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.flyer-delivery-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--fp-accent);
}
.flyer-delivery-icon svg {
  width: 100%;
  height: 100%;
}
.flyer-delivery-item p {
  font-size: .82rem;
  color: var(--fp-text);
  line-height: 1.45;
  margin: 0;
}

/* ---- reassurance line (folded visually right above the CTA box) ---- */
.flyer-reassurance {
  font-style: italic;
  text-align: center;
  font-size: .78rem;
  color: var(--fp-muted);
  line-height: 1.45;
  max-width: 38em;
  margin: 0 auto .45rem;
}

/* ---- CTA box + button (solid, replaces the text-link CTA of
   flyer_uebersicht.html — wrong pattern here, no security-check link for
   this audience) ---- */
.flyer-cta-box {
  padding: .8rem 1.05rem;
}
.flyer-cta-box h2 {
  font-size: .95rem;
  margin-bottom: .3rem;
}
.flyer-cta-box p {
  font-size: .78rem;
  margin-bottom: .55rem;
}
.flyer-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fp-accent);
  color: var(--fp-on-accent) !important;
  border-radius: 6px;
  padding: 9px 20px;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none !important;
  margin-bottom: .6rem;
}
.flyer-cta-contact {
  padding-top: .55rem;
}

.flyer-footer-legal {
  margin-top: .6rem;
  padding-top: .4rem;
  font-size: .68rem;
}

@media (max-width: 700px) {
  .flyer-timeline {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 18px;
  }
  .flyer-timeline::before {
    display: none;
  }
  .flyer-sector-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .flyer-sector-card p {
    font-size: .68rem;
  }
  .flyer-sector-card h3 {
    font-size: .72rem;
  }
  .flyer-technique-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .flyer-testart-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .flyer-sector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .flyer-technique-grid {
    grid-template-columns: 1fr;
  }
}
