/* Flyer: Web-App-Pentest. Page-specific styles on top of flyer-common.css.

   Core visual is the path of a single request: Browser, API, Backend und DB as
   three boxes on one line, connected by arrows, with four numbered hotspots
   pinned where they belong - two on the connections (Auth, Injection), two on
   the components (BOLA, Business-Logik). The cards underneath repeat the same
   numbers so diagram and text stay one object.

   Second accent: violet. It marks everything that is logic rather than
   technique - hotspot 4, the logic column, the instant-alert box.
   Class prefix wf- = webapp flyer.

   Type scale (deliberate floor, the sheet is printed and read at arm's
   length): body copy 0.72rem at line-height 1.45, labels never below
   0.66rem. If something does not fit, a block comes off the sheet. */

.flyer-page {
  --wf-a2: #9d7bf5;
  --wf-a2-soft: rgba(157, 123, 245, 0.14);
  --wf-a2-border: rgba(157, 123, 245, 0.45);
}

@media print {
  .flyer-page {
    --wf-a2: #6537c9;
    --wf-a2-soft: #f0eafd;
    --wf-a2-border: #cdbcf3;
  }
}

.flyer-logo { margin-bottom: 14px; }
.flyer-h1 { font-size: clamp(1.55rem, 2.9vw, 2rem); margin-bottom: .4rem; }
.flyer-subline { font-size: .88rem; line-height: 1.5; margin-bottom: .7rem; max-width: 46em; }

.flyer-trust-markers {
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  margin: 0; padding: 0; list-style: none;
}
.flyer-trust-markers li { display: flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; color: var(--fp-muted); }
.flyer-trust-markers svg { flex-shrink: 0; width: 14px; height: 14px; color: var(--fp-accent); }

.flyer-section { margin-bottom: .95rem; }
.flyer-section .flyer-h2 { margin-bottom: .55rem; }

/* ---- Core visual: request path ---- */
.wf-path-section { padding-top: .85rem; margin-top: .3rem; border-top: 1px solid var(--fp-border); }
.wf-path-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wf-path-hint { font-size: .7rem; color: var(--fp-muted-2); margin-bottom: .55rem; }

.wf-track {
  display: grid;
  grid-template-columns: 1fr 80px 1fr 80px 1fr;
  align-items: center;
  margin-bottom: 12px;
}

.wf-node {
  position: relative;
  border: 1px solid var(--fp-accent-border);
  border-radius: 8px;
  padding: .7rem .8rem;
  background: var(--fp-accent-soft);
  text-align: center;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.wf-node-name { display: block; font-size: .86rem; font-weight: 800; color: var(--fp-text); line-height: 1.25; }
.wf-node-sub { display: block; font-size: .7rem; color: var(--fp-muted); line-height: 1.4; margin-top: 2px; }

.wf-link { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--fp-accent); }
.wf-arrow { width: 100%; height: 8px; display: block; }

.wf-pin {
  display: flex; align-items: center; justify-content: center;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--fp-accent); color: var(--fp-on-accent);
  font-size: .68rem; font-weight: 800; line-height: 1;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
/* Sits on the top edge of its box, but kept inside its horizontal extent -
   the right-hand node otherwise pushes the pin past the sheet margin. */
.wf-pin--onnode { position: absolute; top: -9px; right: 10px; border: 2px solid var(--fp-bg); }

/* Hotspot 4 sits on the backend and is the logic one, hence the second accent. */
.wf-node--pinned:last-child .wf-pin--onnode { background: var(--wf-a2); }

.wf-hotspots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.wf-hotspot {
  position: relative;
  border: 1px solid var(--fp-border); border-top: 2px solid var(--fp-accent);
  border-radius: 0 0 8px 8px;
  padding: .7rem .75rem;
  background: var(--fp-surface);
  break-inside: avoid;
}
.wf-hotspot-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--fp-accent); color: var(--fp-on-accent);
  font-size: .66rem; font-weight: 800; line-height: 1;
  margin-bottom: 4px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.wf-hotspot h3 { font-size: .82rem; font-weight: 700; color: var(--fp-text); margin: 0 0 3px; line-height: 1.25; }
.wf-hotspot p { font-size: .72rem; color: var(--fp-muted); line-height: 1.45; margin: 0; hyphens: auto; }

.wf-hotspot--logic { border-top-color: var(--wf-a2); background: var(--wf-a2-soft); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.wf-hotspot--logic .wf-hotspot-num { background: var(--wf-a2); }

/* ---- Technique against logic ---- */
.wf-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wf-split-col { border: 1px solid var(--fp-border); border-radius: 8px; padding: .7rem .9rem; break-inside: avoid; }
.wf-split-label {
  display: block; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fp-accent); margin-bottom: 5px;
}
.wf-split-col ul { margin: 0; padding: 0 0 0 1.05em; display: flex; flex-direction: column; gap: 5px; }
.wf-split-col li { font-size: .72rem; color: var(--fp-text); line-height: 1.45; }
.wf-split-col li::marker { color: var(--fp-accent); }

.wf-split-col--logic { border-color: var(--wf-a2-border); background: var(--wf-a2-soft); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.wf-split-col--logic .wf-split-label { color: var(--wf-a2); }
.wf-split-col--logic li::marker { color: var(--wf-a2); }

/* ---- Deliverables + environment note ---- */
.wf-two-col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.5rem; align-items: start; }
.wf-two-col .flyer-section { margin-bottom: 0; }

.wf-deliver { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; list-style: none; }
.wf-deliver li { display: flex; gap: 9px; align-items: flex-start; }
.wf-deliver svg { flex-shrink: 0; width: 15px; height: 15px; margin-top: 2px; color: var(--fp-accent); }
.wf-deliver p { font-size: .74rem; color: var(--fp-text); line-height: 1.45; margin: 0; }
.wf-scope-note { font-size: .72rem; color: var(--fp-muted-2); line-height: 1.45; margin: 9px 0 0; }

.wf-env { background: var(--fp-surface); border-left: 3px solid var(--fp-accent); border-radius: 0 8px 8px 0; padding: .7rem .9rem; }
.wf-env .flyer-h2 { margin-bottom: .4rem; }
.wf-env p { font-size: .72rem; color: var(--fp-muted); line-height: 1.5; margin: 0; }

/* ---- Extended-only blocks ---- */
.wf-process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.wf-process li { border-top: 2px solid var(--fp-accent-border); padding-top: 7px; break-inside: avoid; }
.wf-process-num { display: block; font-size: .68rem; font-weight: 800; color: var(--fp-accent); margin-bottom: 2px; }
.wf-process h3 { font-size: .8rem; font-weight: 700; color: var(--fp-text); margin: 0 0 3px; line-height: 1.25; }
.wf-process p { font-size: .72rem; color: var(--fp-muted); line-height: 1.45; margin: 0; hyphens: auto; }

.wf-extra-grid { grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; margin-bottom: .95rem; align-items: start; }
.flyer-page[data-version="extended"] .wf-extra-grid { display: grid; }
.wf-extra-grid .flyer-section { margin-bottom: 0; }

.wf-boxed { background: var(--fp-surface); border: 1px solid var(--fp-border); border-radius: 8px; padding: .8rem .9rem; }
.wf-boxed--alert { background: var(--wf-a2-soft); border-color: var(--wf-a2-border); }
.wf-boxed--alert .flyer-h2 { color: var(--wf-a2); }
.wf-prose { font-size: .76rem; color: var(--fp-muted); line-height: 1.55; margin: 0; }

.wf-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 20px; }
.wf-why-item { break-inside: avoid; border-top: 2px solid var(--fp-accent-border); padding-top: 7px; }
.wf-why-item h3 { font-size: .82rem; font-weight: 700; color: var(--fp-text); margin: 0 0 3px; line-height: 1.25; }
.wf-why-item p { font-size: .74rem; color: var(--fp-muted); line-height: 1.45; margin: 0; }

.wf-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.wf-faq-item { break-inside: avoid; }
.wf-faq-item h3 { font-size: .82rem; font-weight: 700; color: var(--fp-text); margin: 0 0 4px; line-height: 1.3; }
.wf-faq-item p { font-size: .76rem; color: var(--fp-muted); line-height: 1.5; margin: 0; }

/* ---- CTA ---- */
.wf-cta { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.3rem; align-items: center; padding: .8rem 1.1rem; margin-top: .3rem; }
.wf-cta h2 { font-size: .95rem; margin-bottom: .3rem; }
.wf-cta p { font-size: .76rem; line-height: 1.45; margin-bottom: .6rem; }
.wf-cta-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.wf-cta .flyer-cta-link { margin-bottom: 0; }
.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 18px; font-size: .82rem; font-weight: 700;
  text-decoration: none !important;
}
.wf-cta .flyer-cta-contact { border-top: none; border-left: 1px solid var(--fp-accent-border); padding: 2px 0 2px 1.2rem; gap: 6px; font-size: .74rem; }
.wf-url-label { color: var(--fp-muted); }

.flyer-footer-legal { margin-top: .8rem; padding-top: .5rem; }

@media screen and (max-width: 860px) {
  .wf-hotspots { grid-template-columns: 1fr 1fr; }
  .wf-process { grid-template-columns: 1fr 1fr 1fr; }
  .flyer-page[data-version="extended"] .wf-extra-grid { grid-template-columns: 1fr; }
}

@media screen and (max-width: 700px) {
  .wf-track { grid-template-columns: 1fr; gap: 8px; }
  .wf-link { transform: rotate(90deg); height: 24px; }
  .wf-split, .wf-two-col, .wf-faq, .wf-cta, .wf-why { grid-template-columns: 1fr; }
  .wf-process { grid-template-columns: 1fr 1fr; }
  .wf-cta .flyer-cta-contact { border-left: none; border-top: 1px solid var(--fp-accent-border); padding: .7rem 0 0; }
}

@media screen and (max-width: 480px) {
  .wf-hotspots, .wf-process { grid-template-columns: 1fr; }
}
