/* ============================================================
   CV FACSIMILE — the single source of the "paper document" look
   ============================================================
   This is the ONE HTML facsimile of the documents that cv-pdf.js
   actually generates (Lebenslauf / Anschreiben / Bewerbungsmappe).
   It is loaded by BOTH the homepage (index.html) and the sample
   explorer (/sample/) so the two can never drift apart, and so
   that whatever a visitor sees on the marketing site is exactly
   the design the builder produces.

   The palette + geometry mirror the Classic template in
   assets/js/cv-pdf.js:
     paper  #fbf8f1   ink  #0f1e3a (navy)   soft #25324f
     mute   #686e7b   faint #8d92a0         amber/accent #b8893a
   When the PDF template changes, update this file to match — it is
   the canonical reference for the marketing facsimiles. (§sample-fidelity)

   SCALING: every internal metric is in `em`, relative to the sheet's
   own `font-size` (base 13px). A consumer scales the WHOLE document
   faithfully by setting a single `font-size` on the `.sdoc` (the
   homepage renders small hero / doc-card / thumbnail copies this way;
   /sample renders it at the 13px base). Padding is deliberately left
   to the consumer (the explorer wants viewport-responsive padding;
   the homepage wants font-proportional padding).
   ============================================================ */

:root {
  --pdf-paper:  #fbf8f1;
  --pdf-ink:    #0f1e3a;
  --pdf-soft:   #25324f;
  --pdf-mute:   #686e7b;
  --pdf-faint:  #8d92a0;
  --pdf-amber:  #b8893a;
  --pdf-rule:   #ddd6c7;
}

/* ---- paper sheet ---- */
.sdoc {
  background: var(--pdf-paper);
  color: var(--pdf-ink);
  border-radius: 6px;
  font-size: 13px;               /* the scale knob — override to resize */
  line-height: 1.55;
  padding: 2em 2.3em;            /* neutral default; consumers override */
}
.sdoc * { overflow-wrap: break-word; }

/* keyword marks: transparent at rest; lit by a consumer context
   (the /sample ATS lens, or the homepage's always-on paper). */
.kwx { font-style: normal; border-radius: 2px; padding: 0 1px;
  transition: background .3s, box-shadow .3s; }

/* ============================================================
   LEBENSLAUF (CV)
   ============================================================ */
.cv-header { display: grid; grid-template-columns: 1fr 6em; gap: 1.7em; align-items: flex-start; margin-bottom: 2em; }
.cv-name { font-size: 1.92em; font-weight: 600; letter-spacing: -.025em; line-height: 1.1; margin-bottom: .23em; }
.cv-role { font-size: .92em; font-weight: 500; color: var(--pdf-amber); margin-bottom: .92em; }
.cv-contact { font-size: .88em; color: var(--pdf-soft); display: grid; grid-template-columns: 1fr 1fr; gap: .15em 1.7em; line-height: 1.6; }
.cv-contact .lbl { font-size: .78em; letter-spacing: .16em; text-transform: uppercase; color: var(--pdf-faint); display: block; margin-bottom: .08em; }
.cv-contact .field { margin-bottom: .46em; }
.cv-photo { width: 6em; height: 7.7em; border-radius: 2px; position: relative; overflow: hidden; flex: none;
  background: linear-gradient(135deg, #d8c5a7 0%, #b59874 50%, #8e6f4c 100%); transition: box-shadow .35s ease; }
.cv-photo svg { position: absolute; inset: 0; margin: auto; width: 55%; height: auto; color: rgba(255,255,255,.28); }
.cv-section { margin-bottom: 1.6em; }
.cv-section-head { display: flex; align-items: baseline; gap: .6em; margin-bottom: .77em; padding-bottom: .54em; border-bottom: 1.5px solid var(--pdf-ink); }
.cv-section-head h2 { font-size: .69em; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--pdf-ink); margin: 0; flex: 1; }
.cv-section-num { font-size: .69em; color: var(--pdf-amber); letter-spacing: .08em; font-family: 'JetBrains Mono', monospace; }
.cv-profile { font-size: .96em; color: var(--pdf-soft); line-height: 1.65; }
.cv-entry { display: grid; grid-template-columns: 7.1em 1fr; gap: 1.15em; margin-bottom: 1.15em; }
.cv-entry-date { font-size: .85em; color: var(--pdf-mute); padding-top: .15em; line-height: 1.4;
  font-variant-numeric: tabular-nums; transition: background .3s, box-shadow .3s, color .3s; }
.cv-entry-title { font-size: 1em; font-weight: 600; color: var(--pdf-ink); }
.cv-entry-sub { font-size: .92em; color: var(--pdf-mute); margin-top: .08em; }
.cv-entry-sub .note { color: var(--pdf-amber); }
.cv-entry-desc { font-size: .92em; color: var(--pdf-mute); margin-top: .31em; line-height: 1.5; }
.cv-bullets { margin: .46em 0 0; padding-left: 1.25em; }
.cv-bullets li { font-size: .92em; color: var(--pdf-soft); line-height: 1.55; margin-bottom: .23em; }
.cv-skills { display: flex; flex-direction: column; gap: .6em; }
.cv-skill-row { display: grid; grid-template-columns: 9.1em 1fr; gap: .92em; font-size: .92em; align-items: baseline; }
.cv-skill-cat { font-weight: 600; color: var(--pdf-ink); }
.cv-skill-val { color: var(--pdf-soft); }
.cv-langs { display: flex; gap: 2em; flex-wrap: wrap; }
.cv-lang-item { font-size: .92em; }
.cv-lang-item .lang-name { color: var(--pdf-ink); font-weight: 600; }
.cv-lang-item .lang-level { color: var(--pdf-amber); margin-left: .46em; font-size: .85em; }
.cv-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.08em; margin-top: 2.3em; padding-top: 1.23em;
  border-top: 1px solid var(--pdf-rule); font-size: .85em; color: var(--pdf-mute); }
.cv-sig-label { font-size: .69em; text-transform: uppercase; letter-spacing: .1em; color: var(--pdf-faint); margin-bottom: .38em; }
.cv-sig { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-size: 1.46em; color: var(--pdf-ink); letter-spacing: -.01em; }
.cv-page-num { text-align: right; font-size: .77em; color: var(--pdf-faint); font-variant-numeric: tabular-nums; }

/* ============================================================
   ANSCHREIBEN (cover letter)
   ============================================================ */
.lt-sender { text-align: right; font-size: .85em; color: var(--pdf-mute); line-height: 1.6; }
.lt-addr { margin-top: 1.54em; font-size: .92em; color: var(--pdf-soft); line-height: 1.6; }
.lt-date { margin-top: 1.23em; text-align: right; font-size: .88em; color: var(--pdf-mute);
  transition: background .3s, box-shadow .3s, color .3s; }
.lt-subj { margin-top: 1.38em; font-weight: 700; font-size: 1.08em; color: var(--pdf-ink); border-radius: 3px; transition: box-shadow .35s ease; }
.lt-hi { margin-top: 1.23em; font-size: .96em; color: var(--pdf-ink); display: inline-block; border-radius: 2px; transition: background .3s, box-shadow .3s; }
.lt-p { margin: .92em 0 0; font-size: .96em; color: var(--pdf-soft); line-height: 1.7; }
.lt-signblock { margin-top: 1.38em; display: inline-block; border-radius: 4px; transition: box-shadow .35s ease; }
.lt-close { font-size: .96em; color: var(--pdf-ink); }
.lt-sig { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-size: 1.46em; color: var(--pdf-ink); margin-top: .62em; }
.lt-encl { margin-top: 1.54em; font-size: .85em; color: var(--pdf-faint); }

/* ============================================================
   BEWERBUNGSMAPPE (cover sheet)
   ============================================================ */
.mp-lbl { font-family: 'JetBrains Mono', monospace; font-size: .77em; letter-spacing: .22em; color: var(--pdf-faint); text-align: center; }
.mp-title { margin-top: 1.54em; font-weight: 700; font-size: 1.69em; letter-spacing: -.02em; color: var(--pdf-ink); text-align: center; line-height: 1.25; }
.mp-meta { margin-top: .77em; font-size: .92em; color: var(--pdf-mute); text-align: center; }
.mp-rule { width: 4.15em; height: 2px; background: var(--pdf-amber); margin: 1.85em auto; border-radius: 2px; }
.mp-list { max-width: 29.2em; margin: 0 auto; border: 1px solid var(--pdf-rule); border-radius: 6px; overflow: hidden; transition: box-shadow .35s ease; }
.mp-row { display: flex; justify-content: space-between; align-items: baseline; gap: .92em; padding: .85em 1.23em;
  font-size: .96em; color: var(--pdf-ink); transition: background .3s, box-shadow .3s; }
.mp-row + .mp-row { border-top: 1px solid var(--pdf-rule); }
.mp-row .pg { font-size: .81em; color: var(--pdf-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mp-foot { margin-top: 2em; text-align: center; font-family: 'JetBrains Mono', monospace; font-size: .81em;
  color: var(--pdf-mute); border-radius: 3px; display: block; transition: background .3s, box-shadow .3s; }
