/*!
 * MS Bewerbungsportal – Bewerbungsdesigns (A4)
 * Copyright © 2026 · Entworfen und entwickelt by Marc-André Straßen
 */

/* ================= Basis A4-Seite ================= */
.stage { --sw: 66mm; }
.page {
  --accent: #1f4e79;
  --tint: color-mix(in srgb, var(--accent) 10%, #fff);
  --tint2: color-mix(in srgb, var(--accent) 22%, #fff);
  --dark: color-mix(in srgb, var(--accent) 70%, #000);
  --ink: #23272f; --muted: #6b7280; --line: #d9dde3;
  --sw: 64mm; --px: 18mm; --pt: 15mm;
  width: 210mm; height: 297mm; background: #fff; color: var(--ink);
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  font-family: var(--font); font-size: 9.8pt; line-height: 1.45; box-sizing: border-box;
  padding: var(--pt) var(--px) 0; margin: 0 auto 10mm; box-shadow: 0 6px 30px rgba(15, 23, 42, .18);
  -webkit-print-color-adjust: exact; print-color-adjust: exact; hyphens: auto; -webkit-hyphens: auto;
}
.page *, .page *::before, .page *::after { box-sizing: border-box; }
.page :where(p) { margin: 0; }
.pg-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.pg-head, .pg-body, .pg-foot, .cover { position: relative; z-index: 1; }
.pg-body { flex: 1 1 auto; min-height: 0; display: flex; gap: 9mm; }
.col { height: 100%; overflow: hidden; min-width: 0; display: flow-root; }
.pg-main { flex: 1 1 auto; }
.pg-side { width: var(--sw); flex: 0 0 var(--sw); }
.pg-foot { flex: 0 0 11mm; display: flex; justify-content: space-between; align-items: center; font-size: 7.2pt; color: #9aa0a8; letter-spacing: .02em; }

/* Seitenleisten-Layouts: Leiste läuft von oben bis unten */
.lay-side-left, .lay-side-right { padding: 0; }
.lay-side-left .pg-head.head-full { padding: var(--pt) 14mm 0 calc(var(--sw) + 9mm); min-height: 58mm; }
.lay-side-right .pg-head.head-full { padding: var(--pt) calc(var(--sw) + 9mm) 0 16mm; min-height: 46mm; }
.lay-side-left .pg-head.head-mini { margin: var(--pt) 14mm 6mm calc(var(--sw) + 9mm); }
.lay-side-right .pg-head.head-mini { margin: var(--pt) calc(var(--sw) + 9mm) 6mm 16mm; }
.lay-side-left .pg-side { padding: 0 7mm; }
.lay-side-left .pg-main { padding-right: 14mm; }
.lay-side-right .pg-side { padding: 0 7mm; }
.lay-side-right .pg-main { padding-left: 16mm; }
.lay-side-left .pg-foot { padding: 0 14mm 0 calc(var(--sw) + 9mm); }
.lay-side-right .pg-foot { padding: 0 calc(var(--sw) + 9mm) 0 16mm; }
.lay-side-left .pg-body, .lay-side-right .pg-body { gap: 0; }
.lay-side-left .pg-main { padding-left: 9mm; }
.lay-side-right .pg-main { padding-right: 9mm; }
/* Foto in Seitenleisten-Layouts oben in der Leiste */
.lay-side-left .head-full .h-photo { position: absolute; left: calc((var(--sw) - 40mm) / 2); top: var(--pt); }
.lay-side-right .head-full .h-photo { position: absolute; right: calc((var(--sw) - 40mm) / 2); top: var(--pt); }
.lay-side-left .head-full:has(.h-photo), .lay-side-right .head-full:has(.h-photo) { min-height: calc(var(--pt) + 54mm); }
.lay-side-left .h-contact, .lay-side-right .h-contact { display: none; }

/* ================= Kopfbereich ================= */
.pg-head.head-full { display: flex; align-items: center; gap: 7mm; margin-bottom: 6mm; }
.h-text { flex: 1; min-width: 0; }
.h-name { font-size: 25pt; line-height: 1.1; letter-spacing: -.01em; }
.h-name .ln { font-weight: 700; }
.h-job { color: var(--accent); font-size: 11.5pt; margin-top: 1.5mm; font-weight: 500; }
.h-contact { display: flex; flex-wrap: wrap; gap: 1mm 5mm; margin-top: 3mm; font-size: 8.4pt; color: var(--muted); }
.h-photo { width: 40mm; height: 50mm; flex: none; overflow: hidden; border-radius: 1.5mm; background: var(--tint); }
.h-photo img, .cv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-doc { display: none; }
.pg-head.head-mini { display: flex; justify-content: space-between; align-items: baseline; border-bottom: .3mm solid var(--line); padding-bottom: 2mm; margin-bottom: 6mm; font-size: 8.5pt; color: var(--muted); }
.hm-name { font-weight: 700; color: var(--ink); font-size: 10pt; }
.kind-cover .pg-head { display: none; }

/* ================= Abschnitte & Einträge ================= */
.sec-h { display: flex; align-items: center; gap: 2mm; font-size: 10.5pt; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  color: var(--accent); margin: 5.5mm 0 3mm; padding-bottom: 1.4mm; border-bottom: .35mm solid var(--tint2); }
.col > .sec-h:first-child { margin-top: 0; }
.entry { display: grid; grid-template-columns: 27mm 1fr; gap: 4mm; margin-bottom: 3.4mm; break-inside: avoid; }
.e-date { font-size: 8.6pt; color: var(--muted); padding-top: .4mm; font-variant-numeric: tabular-nums; }
.e-title { font-weight: 700; }
.e-org { color: var(--accent); font-size: 9.2pt; }
.e-grade { font-size: 8.8pt; color: var(--muted); }
.items { margin-top: 1mm; }
.items .tx { margin-bottom: 1mm; }
.li, .para.li { position: relative; padding-left: 3.6mm; margin-bottom: .6mm; }
.li::before { content: ''; position: absolute; left: .6mm; top: .62em; width: 1.2mm; height: 1.2mm; border-radius: 50%; background: var(--accent); }
.entry.cont .e-head { display: none; }
.entry.cont .e-date { visibility: hidden; }
.entry.cont .items { margin-top: 0; }
.para { margin-bottom: 2mm; }
.profile { text-align: justify; }

.kv-row { display: grid; grid-template-columns: 30mm 1fr; gap: 3mm; margin-bottom: .8mm; }
.kv-k { color: var(--muted); }
.kv-stack .kv-row { display: block; margin-bottom: 2.2mm; }
.kv-stack .kv-k { display: block; font-size: 7.4pt; text-transform: uppercase; letter-spacing: .08em; }
.kv-stack .kv-v { display: block; word-break: break-word; }
.kv-grid { display: block; }

.skills { display: grid; gap: 1.6mm 8mm; }
.skills-main { grid-template-columns: 1fr 1fr; }
.skill { display: flex; align-items: center; justify-content: space-between; gap: 3mm; }
.skills-side .skill { display: block; }
.s-name { flex: 1; min-width: 0; }
.s-bar { display: block; height: 1.5mm; background: var(--tint2); border-radius: 1mm; overflow: hidden; margin-top: .8mm; min-width: 22mm; }
.skills-main .s-bar { width: 26mm; flex: none; margin-top: 0; }
.s-fill { display: block; height: 100%; width: calc(var(--lvl) * 20%); background: var(--accent); }
.s-dots { display: none; gap: 1mm; }
.s-dots i { width: 2mm; height: 2mm; border-radius: 50%; background: var(--tint2); display: inline-block; }
.s-dots i.on { background: var(--accent); }
.langs .lang { display: flex; justify-content: space-between; gap: 3mm; margin-bottom: 1mm; }
.skills-main + * {}
.pg-main .langs { display: grid; grid-template-columns: 1fr 1fr; gap: 1mm 8mm; }
.l-level { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 1.4mm; }
.tag { padding: .6mm 2.4mm; border-radius: 3mm; background: var(--tint); color: var(--dark); font-size: 8.4pt; }

.cv-sign { margin-top: 10mm; break-inside: avoid; }
.sg-line { width: 62mm; border-bottom: .3mm solid #9aa0a8; height: 12mm; }
.sg-name { font-size: 8.6pt; color: var(--muted); margin-top: 1mm; }
.sg-place { font-size: 9pt; }

/* ================= Anschreiben ================= */
.kind-letter .pg-head.head-full { margin-bottom: 4mm; padding-bottom: 4mm; border-bottom: .35mm solid var(--tint2); }
.kind-letter .h-name { font-size: 20pt; }
.l-top { min-height: 42mm; }
.l-sender { display: inline-block; font-size: 7pt; color: var(--muted); border-bottom: .25mm solid var(--line); padding-bottom: .6mm; margin: 3mm 0 3mm; }
.l-recipient { line-height: 1.45; }
.l-date { text-align: right; margin: 4mm 0 8mm; }
.l-subject { font-weight: 700; font-size: 10.6pt; margin-bottom: 7mm; }
.l-salut { margin-bottom: 3.5mm; }
.l-par { margin: 0 0 3.5mm; text-align: justify; white-space: pre-line; }
.l-par.cont { }
.l-close { margin-top: 6mm; break-inside: avoid; }
.l-sign { margin-top: 14mm; font-weight: 600; }
.l-attach { margin-top: 9mm; font-size: 8.8pt; }
.l-attach-h { font-weight: 700; margin-bottom: 1mm; }
.l-attach-i::before { content: '– '; color: var(--muted); }

/* ================= Deckblatt ================= */
.kind-cover { padding: 0; }
.cover { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 25mm; }
.cv-kicker { font-size: 13pt; text-transform: uppercase; letter-spacing: .4em; color: var(--accent); font-weight: 600; }
.cv-as { margin-top: 6mm; color: var(--muted); }
.cv-pos { font-size: 24pt; font-weight: 700; line-height: 1.15; margin-top: 2mm; max-width: 150mm; }
.cv-company { margin-top: 3mm; font-size: 12pt; color: var(--muted); }
.cv-photo { width: 58mm; height: 72mm; margin: 14mm auto 8mm; overflow: hidden; border-radius: 2mm; box-shadow: 0 2mm 6mm rgba(0,0,0,.12); }
.cv-name { font-size: 20pt; font-weight: 600; margin-top: 8mm; }
.cv-photo + .cv-name { margin-top: 0; }
.cv-contact { margin-top: 3mm; color: var(--muted); font-size: 9.5pt; line-height: 1.6; }
.cv-toc { margin-top: 16mm; border-top: .4mm solid var(--accent); padding-top: 5mm; min-width: 60mm; }
.cv-toc-h { font-size: 8pt; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); margin-bottom: 2mm; }
.cv-toc-i { font-size: 10.5pt; line-height: 1.7; }
.cv-note { margin-top: 8mm; font-size: 9pt; color: var(--muted); max-width: 120mm; }

/* =====================================================================
   DESIGNS
   ===================================================================== */

/* 1 · Klassik – Serif, zentriert, feine Linien */
.tpl-klassik .head-full { flex-direction: row-reverse; text-align: left; border-bottom: .5mm double var(--accent); padding-bottom: 5mm; }
.tpl-klassik .h-name { font-size: 26pt; }
.tpl-klassik .h-name .ln { font-weight: 600; }
.tpl-klassik .sec-h { text-transform: none; letter-spacing: .02em; font-size: 12.5pt; font-weight: 600; border-bottom: .3mm solid var(--accent); }
.tpl-klassik .h-job { font-style: italic; }
.tpl-klassik.kind-cover .cover { border: .6mm double var(--accent); margin: 14mm; }

/* 2 · Modern – dunkle Leiste links */
.tpl-modern.kind-cv .pg-deco { background: linear-gradient(90deg, var(--dark) 0 var(--sw), transparent var(--sw)); }
.tpl-modern .pg-side { color: #e9edf3; }
.tpl-modern .pg-side .sec-h { color: #fff; border-bottom-color: rgba(255,255,255,.25); font-size: 9.5pt; }
.tpl-modern .pg-side .kv-k, .tpl-modern .pg-side .l-level { color: rgba(255,255,255,.62); }
.tpl-modern .pg-side .s-bar { background: rgba(255,255,255,.2); }
.tpl-modern .pg-side .s-fill { background: #fff; }
.tpl-modern .pg-side .tag { background: rgba(255,255,255,.14); color: #fff; }
.tpl-modern .head-full .h-photo { border-radius: 50%; width: 42mm; height: 42mm; border: 1.2mm solid rgba(255,255,255,.85); }
.tpl-modern .lay-side-left .head-full, .tpl-modern.lay-side-left .head-full { padding-top: calc(var(--pt) + 6mm); }
.tpl-modern .h-name { font-size: 27pt; }
.tpl-modern .h-name .fn { font-weight: 300; }
.tpl-modern.kind-letter .pg-deco { background: linear-gradient(90deg, var(--dark) 0 7mm, transparent 7mm); }
.tpl-modern.kind-cover .pg-deco { background: linear-gradient(180deg, var(--dark) 0 38%, transparent 38%); }
.tpl-modern.kind-cover .cv-kicker, .tpl-modern.kind-cover .cv-pos { color: #fff; }
.tpl-modern.kind-cover .cv-as, .tpl-modern.kind-cover .cv-company { color: rgba(255,255,255,.75); }
.tpl-modern.kind-cover .cover { justify-content: flex-start; padding-top: 30mm; }

/* 3 · Elegant – Playfair, feine Akzentlinie */
.tpl-elegant .h-name, .tpl-elegant .sec-h, .tpl-elegant .cv-pos, .tpl-elegant .cv-name { font-family: 'Playfair Display', Georgia, serif; }
.tpl-elegant .head-full { flex-direction: column; text-align: center; gap: 3mm; padding-bottom: 5mm; border-bottom: .3mm solid var(--accent); }
.tpl-elegant .head-full .h-photo { width: 34mm; height: 34mm; border-radius: 50%; order: -1; }
.tpl-elegant .h-contact { justify-content: center; }
.tpl-elegant .h-name { font-size: 28pt; }
.tpl-elegant .h-name .ln { font-weight: 700; }
.tpl-elegant .h-job { letter-spacing: .25em; text-transform: uppercase; font-size: 9pt; }
.tpl-elegant .sec-h { text-transform: none; letter-spacing: 0; font-size: 13.5pt; font-weight: 400; font-style: italic; color: var(--ink); border-bottom: none; justify-content: center; gap: 4mm; }
.tpl-elegant .sec-h::before, .tpl-elegant .sec-h::after { content: ''; height: .3mm; flex: 1; background: var(--accent); opacity: .5; }
.tpl-elegant.kind-letter .head-full .h-photo { display: none; }
.tpl-elegant .pg-deco { border-top: 3mm solid var(--accent); }

/* 4 · Minimal – viel Weißraum */
.tpl-minimal { --px: 22mm; --pt: 20mm; }
.tpl-minimal .h-name { font-size: 30pt; font-weight: 300; }
.tpl-minimal .h-name .ln { font-weight: 600; }
.tpl-minimal .h-job { color: var(--muted); font-weight: 400; }
.tpl-minimal .head-full .h-photo { width: 30mm; height: 30mm; border-radius: 50%; filter: grayscale(.15); }
.tpl-minimal .sec-h { font-size: 8.4pt; color: var(--muted); border-bottom: none; letter-spacing: .22em; margin-top: 8mm; font-weight: 600; }
.tpl-minimal .sec-h::after { content: ''; flex: 1; height: .2mm; background: var(--line); margin-left: 3mm; }
.tpl-minimal .e-org { color: var(--muted); }
.tpl-minimal .li::before { background: var(--ink); width: 1mm; height: .25mm; border-radius: 0; top: .72em; }
.tpl-minimal.kind-letter .head-full { border-bottom: none; }

/* 5 · Kreativ – farbiges Kopfband */
.tpl-kreativ.kind-cv.first .pg-deco, .tpl-kreativ.kind-letter.first .pg-deco { background: linear-gradient(180deg, var(--accent) 0 60mm, transparent 60mm); }
.tpl-kreativ .head-full { color: #fff; min-height: 45mm; margin-bottom: 8mm; border: none !important; }
.tpl-kreativ.kind-letter .head-full { min-height: 30mm; }
.tpl-kreativ.kind-letter.first .pg-deco { background: linear-gradient(180deg, var(--accent) 0 46mm, transparent 46mm); }
.tpl-kreativ .head-full .h-job { color: rgba(255,255,255,.9); }
.tpl-kreativ .head-full .h-contact { color: rgba(255,255,255,.85); }
.tpl-kreativ .head-full .h-photo { width: 40mm; height: 40mm; border-radius: 50%; border: 1.5mm solid #fff; margin-top: 12mm; box-shadow: 0 1mm 4mm rgba(0,0,0,.18); }
.tpl-kreativ .head-full { flex-direction: row-reverse; }
.tpl-kreativ .h-name { font-size: 27pt; }
.tpl-kreativ .sec-h { background: var(--tint); border: none; padding: 1.4mm 3mm; border-radius: 1.5mm; color: var(--dark); }
.tpl-kreativ .e-date { color: var(--accent); font-weight: 600; }
.tpl-kreativ.cont .pg-deco { border-top: 4mm solid var(--accent); }
.tpl-kreativ.kind-cover .pg-deco { background: radial-gradient(circle at 100% 0, var(--tint2) 0 70mm, transparent 70.5mm), radial-gradient(circle at 0 100%, var(--tint) 0 90mm, transparent 90.5mm); }
.tpl-kreativ.kind-cover .cv-photo { border-radius: 50%; width: 64mm; height: 64mm; border: 2mm solid var(--accent); }

/* 6 · Zeitstrahl – vertikale Zeitleiste, helle Leiste */
.tpl-timeline { --sw: 62mm; }
.tpl-timeline.kind-cv .pg-deco { background: linear-gradient(90deg, var(--tint) 0 var(--sw), transparent var(--sw)); }
.tpl-timeline .pg-main .entry { grid-template-columns: 1fr; gap: .5mm; padding-left: 7mm; margin-bottom: 0; padding-bottom: 3.4mm; position: relative; border-left: .4mm solid var(--tint2); margin-left: 2mm; }
.tpl-timeline .pg-main .entry::before { content: ''; position: absolute; left: -1.9mm; top: .8mm; width: 3.4mm; height: 3.4mm; border-radius: 50%; background: #fff; border: .9mm solid var(--accent); }
.tpl-timeline .pg-main .entry.cont::before { display: none; }
.tpl-timeline .pg-main .e-date { order: -1; color: var(--accent); font-weight: 600; }
.tpl-timeline .pg-main .entry.cont .e-date { display: none; }
.tpl-timeline .head-full .h-photo { border-radius: 50%; width: 42mm; height: 42mm; border: 1mm solid var(--accent); }
.tpl-timeline .h-name .ln { color: var(--accent); }
.tpl-timeline .pg-side .sec-h { font-size: 9pt; }

/* 7 · Executive – großer dunkler Kopfblock, Leiste rechts */
.tpl-executive { --sw: 60mm; }
.tpl-executive.kind-cv.first .pg-deco { background: linear-gradient(180deg, #1c2333 0 50mm, transparent 50mm), linear-gradient(90deg, transparent calc(100% - var(--sw)), #f3f4f6 calc(100% - var(--sw))); }
.tpl-executive.kind-cv.cont .pg-deco { background: linear-gradient(90deg, transparent calc(100% - var(--sw)), #f3f4f6 calc(100% - var(--sw))); }
.tpl-executive.kind-cv .head-full { color: #fff; min-height: 50mm; padding-right: 16mm !important; margin-bottom: 8mm; }
.tpl-executive.kind-cv .head-full .h-photo { position: static; width: 34mm; height: 42mm; border: .8mm solid rgba(255,255,255,.8); }
.tpl-executive.kind-cv .head-full { flex-direction: row-reverse; }
.tpl-executive.kind-cv .head-full .h-job { color: color-mix(in srgb, var(--accent) 45%, #fff); }
.tpl-executive.kind-cv .head-full .h-contact { display: flex; color: rgba(255,255,255,.75); }
.tpl-executive .h-name { text-transform: uppercase; letter-spacing: .06em; font-size: 23pt; }
.tpl-executive .sec-h { color: #1c2333; border-bottom: .6mm solid var(--accent); }
.tpl-executive .pg-side .sec-h { border-bottom-width: .35mm; }
.tpl-executive.kind-letter .head-full { background: #1c2333; color: #fff; margin: calc(-1 * var(--pt)) calc(-1 * var(--px)) 6mm; padding: var(--pt) var(--px) 6mm; border: none; }
.tpl-executive.kind-letter .h-contact { color: rgba(255,255,255,.75); }
.tpl-executive.kind-letter .h-job { color: color-mix(in srgb, var(--accent) 45%, #fff); }
.tpl-executive.kind-cover .pg-deco { background: #1c2333; }
.tpl-executive.kind-cover .cover { color: #fff; }
.tpl-executive.kind-cover .cv-contact, .tpl-executive.kind-cover .cv-as, .tpl-executive.kind-cover .cv-company, .tpl-executive.kind-cover .cv-toc-h, .tpl-executive.kind-cover .cv-note { color: rgba(255,255,255,.7); }

/* 8 · Nordisch – helle Leiste rechts */
.tpl-nordisch { --sw: 62mm; }
.tpl-nordisch.kind-cv .pg-deco { background: linear-gradient(90deg, transparent calc(100% - var(--sw)), var(--tint) calc(100% - var(--sw))); }
.tpl-nordisch .h-name { font-weight: 300; font-size: 28pt; }
.tpl-nordisch .h-name .ln { font-weight: 600; }
.tpl-nordisch .head-full .h-photo { border-radius: 3mm; }
.tpl-nordisch .sec-h { text-transform: none; letter-spacing: .01em; font-size: 12pt; font-weight: 600; color: var(--dark); border-bottom: none; padding-bottom: 0; }
.tpl-nordisch .sec-h::before { content: ''; width: 5mm; height: .8mm; background: var(--accent); border-radius: 1mm; }
.tpl-nordisch .li::before { border-radius: 0; transform: rotate(45deg); }

/* 9 · Tech – dunkelgraue Leiste, Monospace-Akzente */
.tpl-tech.kind-cv .pg-deco { background: linear-gradient(90deg, #1e2230 0 var(--sw), transparent var(--sw)); }
.tpl-tech .pg-side { color: #d9dde8; }
.tpl-tech .sec-h, .tpl-tech .e-date, .tpl-tech .h-job, .tpl-tech .kv-k, .tpl-tech .hm-doc { font-family: 'JetBrains Mono', Consolas, monospace; }
.tpl-tech .sec-h { text-transform: lowercase; letter-spacing: 0; font-size: 10pt; border-bottom: none; padding-bottom: 0; }
.tpl-tech .sec-h::before { content: '// '; opacity: .6; }
.tpl-tech .pg-side .sec-h { color: color-mix(in srgb, var(--accent) 55%, #fff); }
.tpl-tech .pg-side .kv-k { color: rgba(255,255,255,.5); }
.tpl-tech .pg-side .l-level { color: rgba(255,255,255,.55); }
.tpl-tech .pg-side .s-bar { display: none; }
.tpl-tech .pg-side .skills { display: flex; flex-wrap: wrap; gap: 1.4mm; }
.tpl-tech .pg-side .skill { display: inline-block; padding: .6mm 2.2mm; border: .25mm solid color-mix(in srgb, var(--accent) 60%, #fff); border-radius: 1mm; font-size: 8.4pt; }
.tpl-tech .pg-side .tag { background: rgba(255,255,255,.1); color: #fff; border-radius: 1mm; }
.tpl-tech .head-full .h-photo { border-radius: 2mm; border: .6mm solid var(--accent); }
.tpl-tech .h-job::before { content: '> '; }
.tpl-tech .li::before { content: '▹'; background: none; color: var(--accent); width: auto; height: auto; top: 0; left: 0; }
.tpl-tech.kind-letter .pg-deco { background: linear-gradient(180deg, #1e2230 0 3mm, transparent 3mm); }

/* 10 · Kompakt – platzsparend */
.tpl-kompakt { --px: 15mm; --pt: 12mm; font-size: 9pt; line-height: 1.38; }
.tpl-kompakt .h-name { font-size: 21pt; }
.tpl-kompakt .head-full { padding-bottom: 3mm; border-bottom: .8mm solid var(--accent); margin-bottom: 4mm; }
.tpl-kompakt .head-full .h-photo { width: 30mm; height: 38mm; }
.tpl-kompakt .sec-h { font-size: 9.2pt; margin: 4mm 0 2mm; background: var(--tint); padding: 1mm 2mm; border: none; }
.tpl-kompakt .entry { grid-template-columns: 23mm 1fr; margin-bottom: 2.4mm; gap: 3mm; }
.tpl-kompakt .skills-main { grid-template-columns: 1fr 1fr 1fr; gap: 1.2mm 6mm; }
.tpl-kompakt .skills-main .s-bar { display: none; }
.tpl-kompakt .skills-main .s-dots { display: inline-flex; }

/* 11 · Akzent – farbiger Randstreifen */
.tpl-akzent { --px: 20mm; }
.tpl-akzent .pg-deco { background: linear-gradient(90deg, var(--accent) 0 8mm, var(--tint2) 8mm 9.5mm, transparent 9.5mm); }
.tpl-akzent .h-name { font-size: 28pt; }
.tpl-akzent .h-name .fn { color: var(--accent); }
.tpl-akzent .head-full .h-photo { width: 36mm; height: 46mm; border-radius: 0 6mm 0 6mm; }
.tpl-akzent .sec-h { border: none; padding: 0; color: var(--ink); }
.tpl-akzent .sec-h::before { content: ''; width: 2.4mm; height: 2.4mm; background: var(--accent); }
.tpl-akzent .sec-h::after { content: ''; flex: 1; height: .3mm; background: var(--tint2); }
.tpl-akzent .skills-main .s-bar { display: none; }
.tpl-akzent .skills-main .s-dots { display: inline-flex; }

/* 12 · Business – graue Leiste links, eckiges Foto */
.tpl-business { --sw: 64mm; }
.tpl-business.kind-cv .pg-deco { background: linear-gradient(90deg, #eef0f3 0 var(--sw), var(--accent) var(--sw) calc(var(--sw) + .8mm), transparent calc(var(--sw) + .8mm)); }
.tpl-business .head-full .h-photo { border-radius: 0; box-shadow: 0 1mm 3mm rgba(0,0,0,.12); }
.tpl-business .h-name { font-size: 25pt; }
.tpl-business .h-name .ln { color: var(--accent); }
.tpl-business .sec-h { color: #374151; border-bottom: .5mm solid var(--accent); }
.tpl-business .pg-side .sec-h { border-bottom: .3mm solid #c9ced6; }
.tpl-business .head-full .h-doc { display: block; position: absolute; right: 14mm; top: var(--pt); font-size: 8pt; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

/* Anschreiben in Seitenleisten-Designs: dezenter Kopf */
.tpl-nordisch.kind-letter .pg-deco { background: linear-gradient(90deg, transparent calc(100% - 6mm), var(--tint) calc(100% - 6mm)); }
.tpl-business.kind-letter .pg-deco { background: linear-gradient(90deg, #eef0f3 0 6mm, var(--accent) 6mm 6.8mm, transparent 6.8mm); }
.tpl-timeline.kind-letter .h-name .ln { color: var(--accent); }

/* Schrift-Überschreibung durch Nutzer */
.font-override .h-name, .font-override .sec-h { font-family: var(--font) !important; }

/* ================= Druck / PDF ================= */
@page { size: A4; margin: 0; }
@media print {
  .page { margin: 0 !important; box-shadow: none !important; break-after: page; page-break-after: always; }
  .page:last-child { break-after: auto; page-break-after: auto; }
}
.tpl-executive.kind-cv .head-full:has(.h-photo) { min-height: 50mm; }
.tpl-executive.kind-cv .head-full .h-photo { width: 29mm; height: 36mm; align-self: flex-start; }

/* Symbole & Ornamente (als Masken → übernehmen die Akzentfarbe) */
.stage, .page {
  --ic-wrench: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z'/%3E%3C/svg%3E");
  --ic-car: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8l-2.08-5.99zM6.5 16c-.83 0-1.5-.67-1.5-1.5S5.67 13 6.5 13s1.5.67 1.5 1.5S7.33 16 6.5 16zm11 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zM5 11l1.5-4.5h11L19 11H5z'/%3E%3C/svg%3E");
  --ic-brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 4V3c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6h1v4H9v11c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-9h8V4h-3z'/%3E%3C/svg%3E");
  --ic-bolt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 21h-1l1-7H7.5c-.58 0-.57-.32-.38-.66.19-.34.05-.08.07-.12C8.48 10.94 10.42 7.54 13 3h1l-1 7h3.5c.49 0 .56.33.47.51l-.07.15C12.96 17.55 11 21 11 21z'/%3E%3C/svg%3E");
  --ic-hat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1 18h22v2.5H1zM3 17a9 9 0 0 1 18 0zM10.5 5h3v6h-3z'/%3E%3C/svg%3E");
  --ic-hammer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.5 19.1l10-10 2.4 2.4-10 10c-.4.4-1 .4-1.4 0l-1-1c-.4-.4-.4-1 0-1.4zM11.6 4.4L14.4 2l7.6 6.1-2.3 2.6-1.9-1.4-2.1 2.1-4.6-4.6 1.4-1.4z'/%3E%3C/svg%3E");
  --ic-gear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.488.488 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z'/%3E%3C/svg%3E");
  --ic-truck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm13.5-9l1.96 2.5H17V9.5h2.5zm-1.5 9c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z'/%3E%3C/svg%3E");
  --ic-leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.05 8.05a7.007 7.007 0 0 0-.02 9.88c1.47-3.4 4.09-6.24 7.36-7.93A15.952 15.952 0 0 0 8 19.32c2.6 1.23 5.8.78 7.95-1.37C19.43 14.47 20 4 20 4S9.53 4.57 6.05 8.05z'/%3E%3C/svg%3E");
  --ic-flower: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22c4.97 0 9-4.03 9-9-4.97 0-9 4.03-9 9zM5.6 10.25c0 1.38 1.12 2.5 2.5 2.5.53 0 1.01-.16 1.42-.44l-.02.19c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5l-.02-.19c.4.28.89.44 1.42.44 1.38 0 2.5-1.12 2.5-2.5 0-1-.59-1.85-1.43-2.25.84-.4 1.43-1.25 1.43-2.25 0-1.38-1.12-2.5-2.5-2.5-.53 0-1.01.16-1.42.44l.02-.19C14.5 2.12 13.38 1 12 1S9.5 2.12 9.5 3.5l.02.19c-.4-.28-.89-.44-1.42-.44-1.38 0-2.5 1.12-2.5 2.5 0 1 .59 1.85 1.43 2.25-.84.4-1.43 1.25-1.43 2.25zM12 5.5c1.38 0 2.5 1.12 2.5 2.5s-1.12 2.5-2.5 2.5S9.5 9.38 9.5 8s1.12-2.5 2.5-2.5zM3 13c0 4.97 4.03 9 9 9 0-4.97-4.03-9-9-9z'/%3E%3C/svg%3E");
  --ic-wheat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='11.2' y='6' width='1.6' height='17' rx='.8'/%3E%3Cellipse cx='12' cy='3.4' rx='1.9' ry='3.4' transform='rotate%280 12 3.4%29'/%3E%3Cellipse cx='9.6' cy='7.5' rx='1.9' ry='3.4' transform='rotate%28-35 9.6 7.5%29'/%3E%3Cellipse cx='14.4' cy='7.5' rx='1.9' ry='3.4' transform='rotate%2835 14.4 7.5%29'/%3E%3Cellipse cx='9.6' cy='11.5' rx='1.9' ry='3.4' transform='rotate%28-35 9.6 11.5%29'/%3E%3Cellipse cx='14.4' cy='11.5' rx='1.9' ry='3.4' transform='rotate%2835 14.4 11.5%29'/%3E%3Cellipse cx='9.6' cy='15.5' rx='1.9' ry='3.4' transform='rotate%28-35 9.6 15.5%29'/%3E%3Cellipse cx='14.4' cy='15.5' rx='1.9' ry='3.4' transform='rotate%2835 14.4 15.5%29'/%3E%3C/svg%3E");
  --ic-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
  --ic-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2h6v7h7v6h-7v7H9v-7H2V9h7z'/%3E%3C/svg%3E");
  --ic-people: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E");
  --ic-fork: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 9H9V2H7v7H5V2H3v7c0 2.12 1.66 3.84 3.75 3.97V22h2.5v-9.03C11.34 12.84 13 11.12 13 9V2h-2v7zm5-3v8h2.5v8H21V2c-2.76 0-5 2.24-5 4z'/%3E%3C/svg%3E");
  --ic-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
  --ic-scissors: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1L9.64 7.64zM6 8c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm0 12c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zM19 3l-6 6 2 2 7-7V3z'/%3E%3C/svg%3E");
  --ic-cart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49A1.003 1.003 0 0 0 20 4H5.21l-.94-2H1z'/%3E%3C/svg%3E");
  --ic-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4z'/%3E%3C/svg%3E");
  --ic-bank: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 10v7h3v-7H4zm6 0v7h3v-7h-3zM2 22h19v-3H2v3zm14-12v7h3v-7h-3zm-4.5-9L2 6v2h19V6l-9.5-5z'/%3E%3C/svg%3E");
  --ic-briefcase: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z'/%3E%3C/svg%3E");
  --ic-code: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z'/%3E%3C/svg%3E");
  --ic-book: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5 1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5V6c-.6-.45-1.25-.75-2-1zm0 13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5 1.2 0 2.4.15 3.5.5v11.5z'/%3E%3C/svg%3E");
  --ic-cap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z'/%3E%3C/svg%3E");
  --dc-splash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 130'%3E%3Cpath d='M64 20c9 1 12 12 21 13s19-6 23 3-8 15-5 23 15 12 9 21-17 0-24 6-4 19-15 19-10-14-18-16-20 9-27 1 5-17-1-24-19-4-18-15 15-9 19-16-1-17 8-20 12 4 19 0 10-5 9-5z'/%3E%3Ccircle cx='108' cy='18' r='7'/%3E%3Ccircle cx='120' cy='42' r='3.5'/%3E%3Ccircle cx='18' cy='26' r='5'/%3E%3Ccircle cx='30' cy='112' r='6'/%3E%3Ccircle cx='112' cy='104' r='4.5'/%3E%3Ccircle cx='8' cy='70' r='3'/%3E%3Cpath d='M84 96c3 0 4 3 4 8v14c0 3-1.6 5-4 5s-4-2-4-5v-14c0-5 1-8 4-8z'/%3E%3C/svg%3E");
  --dc-branch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M120 0C86 22 52 58 26 120' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3Cpath transform='translate%28104 8%29 rotate%28155%29' d='M0 0c8-10 22-10 30 0-8 10-22 10-30 0z'/%3E%3Cpath transform='translate%2888 22%29 rotate%28205%29' d='M0 0c8-10 22-10 30 0-8 10-22 10-30 0z'/%3E%3Cpath transform='translate%2882 30%29 rotate%28140%29' d='M0 0c8-10 22-10 30 0-8 10-22 10-30 0z'/%3E%3Cpath transform='translate%2866 44%29 rotate%28215%29' d='M0 0c8-10 22-10 30 0-8 10-22 10-30 0z'/%3E%3Cpath transform='translate%2862 54%29 rotate%28125%29' d='M0 0c8-10 22-10 30 0-8 10-22 10-30 0z'/%3E%3Cpath transform='translate%2848 66%29 rotate%28225%29' d='M0 0c8-10 22-10 30 0-8 10-22 10-30 0z'/%3E%3Cpath transform='translate%2846 78%29 rotate%28115%29' d='M0 0c8-10 22-10 30 0-8 10-22 10-30 0z'/%3E%3Cpath transform='translate%2836 92%29 rotate%28235%29' d='M0 0c8-10 22-10 30 0-8 10-22 10-30 0z'/%3E%3C/svg%3E");
  --dc-ekg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20H150l6-8 5 8h8l6-18 8 34 6-22 5 6h10l5-6 5 6H400' fill='none' stroke='%23000' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E");
  --dc-circuit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.3'%3E%3Cpath d='M0 10h14l6 6h10M22 0v6l6 6v28M40 30H28l-4-4H10l-4 4v10M6 0v4'/%3E%3C/g%3E%3Cg%3E%3Ccircle cx='30' cy='16' r='2'/%3E%3Ccircle cx='6' cy='4' r='1.8'/%3E%3Ccircle cx='10' cy='26' r='1.8'/%3E%3C/g%3E%3C/svg%3E");
  --dc-hills: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100' preserveAspectRatio='none'%3E%3Cpath d='M0 60C30 30 60 30 90 50s50 10 70-10 40-20 40-20v80H0z'/%3E%3C/svg%3E");
  --dc-hills2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100' preserveAspectRatio='none'%3E%3Cpath d='M0 80C40 55 70 50 110 68s60 0 90-18v50H0z'/%3E%3C/svg%3E");
}

/* =====================================================================
   BRANCHEN-DESIGNS (v1.1)
   ===================================================================== */
.pg-deco::before, .pg-deco::after { content: ''; position: absolute; display: none; pointer-events: none; }
.has-ic .sec-h::before { content: ''; flex: none; width: 4.4mm; height: 4.4mm; background: var(--accent);
  -webkit-mask: var(--sec-ic) center / contain no-repeat; mask: var(--sec-ic) center / contain no-repeat; }
.mask { -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }

/* Kopfband-Designs: Kopf wird zur vollflächigen Farbfläche (wächst mit dem Inhalt) */
:is(.tpl-kfz, .tpl-bau, .tpl-gastro, .tpl-verkauf, .tpl-startup, .tpl-azubi, .tpl-medizin) .head-full {
  margin: calc(-1 * var(--pt)) calc(-1 * var(--px)) 9mm !important; padding: var(--pt) var(--px) 7mm !important;
  border: none !important; position: relative; }
:is(.tpl-kfz, .tpl-bau, .tpl-gastro, .tpl-verkauf, .tpl-startup, .tpl-azubi) .head-full { color: #fff; }
:is(.tpl-kfz, .tpl-bau, .tpl-gastro, .tpl-verkauf, .tpl-startup, .tpl-azubi) .head-full .h-contact { color: rgba(255,255,255,.8); }
:is(.tpl-kfz, .tpl-bau, .tpl-gastro, .tpl-verkauf, .tpl-startup, .tpl-azubi) .head-full .h-job { color: rgba(255,255,255,.92); }
/* dunkle Seitenleisten: helle Schrift */
:is(.tpl-motorsport, .tpl-elektro, .tpl-ingenieur, .tpl-landwirt, .tpl-sicherheit) .pg-side { color: #eef1f6; }
:is(.tpl-motorsport, .tpl-elektro, .tpl-ingenieur, .tpl-landwirt, .tpl-sicherheit) .pg-side .sec-h { color: #fff; border-bottom-color: rgba(255,255,255,.25); font-size: 9.5pt; }
:is(.tpl-motorsport, .tpl-elektro, .tpl-ingenieur, .tpl-landwirt, .tpl-sicherheit) .pg-side .sec-h::before { background: #fff; }
:is(.tpl-motorsport, .tpl-elektro, .tpl-ingenieur, .tpl-landwirt, .tpl-sicherheit) .pg-side :is(.kv-k, .l-level) { color: rgba(255,255,255,.62); }
:is(.tpl-motorsport, .tpl-elektro, .tpl-ingenieur, .tpl-landwirt, .tpl-sicherheit) .pg-side .s-bar { background: rgba(255,255,255,.2); }
:is(.tpl-motorsport, .tpl-ingenieur, .tpl-landwirt, .tpl-sicherheit) .pg-side .s-fill { background: #fff; }
:is(.tpl-motorsport, .tpl-elektro, .tpl-ingenieur, .tpl-landwirt, .tpl-sicherheit) .pg-side .tag { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- KFZ-Werkstatt ---------- */
.tpl-kfz { --chk: repeating-conic-gradient(#1f2329 0 25%, #fff 0 50%) 0 0 / 5mm 5mm; }
.tpl-kfz .head-full { background: #1f2329; border-bottom: 1.4mm solid var(--accent) !important; margin-bottom: 13mm !important; }
.tpl-kfz .head-full::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6.4mm; height: 5mm; background: var(--chk); }
.tpl-kfz .h-name { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .04em; font-size: 29pt; font-weight: 400; }
.tpl-kfz .h-name .ln { font-weight: 600; }
.tpl-kfz .h-job { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .14em; }
.tpl-kfz .head-full .h-photo { border: 1mm solid #fff; border-radius: 1mm; }
.tpl-kfz .sec-h, .tpl-kfz .e-date, .tpl-kfz .hm-name { font-family: 'Oswald', sans-serif; }
.tpl-kfz .sec-h { color: #1f2329; font-weight: 600; letter-spacing: .08em; border-bottom: .7mm solid var(--accent); font-size: 11.5pt; }
.tpl-kfz .e-date { color: var(--accent); font-weight: 500; font-size: 9pt; }
.tpl-kfz .e-org { color: #4b5563; }
.tpl-kfz .li::before { border-radius: 0; }
.tpl-kfz.cont .pg-deco::before { display: block; left: 0; right: 0; top: 0; height: 5mm; background: var(--chk); }
.tpl-kfz.kind-cover .pg-deco { background: linear-gradient(180deg, #1f2329 0 34%, transparent 34%); }
.tpl-kfz.kind-cover .pg-deco::before { display: block; left: 0; right: 0; top: 34%; height: 6mm; background: var(--chk); }
.tpl-kfz.kind-cover .cover { justify-content: flex-start; padding-top: 28mm; }
.tpl-kfz.kind-cover :is(.cv-kicker, .cv-pos) { color: #fff; }
.tpl-kfz.kind-cover :is(.cv-as, .cv-company) { color: rgba(255,255,255,.75); }
.tpl-kfz .cv-pos, .tpl-kfz .cv-name { font-family: 'Oswald', sans-serif; text-transform: uppercase; }

/* ---------- Motorsport ---------- */
.tpl-motorsport { --sw: 64mm; }
.tpl-motorsport.kind-cv .pg-deco { background: linear-gradient(90deg, #15171c 0 var(--sw), transparent var(--sw)); }
.tpl-motorsport.kind-cv .pg-deco::before { display: block; left: 0; bottom: 0; width: var(--sw); height: 90mm;
  background: linear-gradient(118deg, transparent 0 46%, var(--accent) 46% 55%, transparent 55% 58%, var(--accent) 58% 61%, transparent 61%); opacity: .95; }
.tpl-motorsport .h-name, .tpl-motorsport .sec-h, .tpl-motorsport .h-job { font-family: 'Oswald', sans-serif; font-style: italic; text-transform: uppercase; }
.tpl-motorsport .h-name { font-size: 30pt; letter-spacing: .02em; font-weight: 400; }
.tpl-motorsport .h-name .ln { font-weight: 600; color: var(--accent); }
.tpl-motorsport .h-job { color: #374151; letter-spacing: .12em; }
.tpl-motorsport .head-full .h-photo { clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); border-radius: 0; width: 46mm; left: calc((var(--sw) - 46mm) / 2) !important; }
.tpl-motorsport .pg-main .sec-h { color: #15171c; border-bottom: .8mm solid var(--accent); letter-spacing: .06em; }
.tpl-motorsport .e-date { font-weight: 600; color: var(--accent); }
.tpl-motorsport.kind-letter .pg-deco { background: linear-gradient(90deg, #15171c 0 6mm, var(--accent) 6mm 8mm, transparent 8mm); }
.tpl-motorsport.kind-cover .pg-deco { background: linear-gradient(118deg, #15171c 0 38%, var(--accent) 38% 42%, transparent 42% 44%, var(--accent) 44% 45%, transparent 45%); }

/* ---------- Lackierer ---------- */
.tpl-lackierer .pg-deco::before { display: block; right: -14mm; top: -16mm; width: 96mm; height: 96mm; background: var(--accent); opacity: .9;
  -webkit-mask: var(--dc-splash) center / contain no-repeat; mask: var(--dc-splash) center / contain no-repeat; }
.tpl-lackierer .pg-deco::after { display: block; left: 0; right: 0; bottom: 0; height: 3mm;
  background: linear-gradient(90deg, #00a3e0 0 20%, #e6007e 20% 40%, #ffd500 40% 60%, var(--accent) 60% 80%, #1d1d1b 80%); }
.tpl-lackierer.cont .pg-deco::before { width: 52mm; height: 52mm; right: -10mm; top: -12mm; }
.tpl-lackierer .h-name { font-size: 29pt; font-weight: 400; }
.tpl-lackierer .h-name .ln { font-weight: 800; }
.tpl-lackierer .head-full .h-photo { border-radius: 50%; width: 44mm; height: 44mm; border: 1.6mm solid #fff; box-shadow: 0 1mm 4mm rgba(0,0,0,.2); }
.tpl-lackierer .sec-h { text-transform: none; letter-spacing: .01em; font-size: 13pt; font-weight: 800; color: var(--ink); border: none;
  background: linear-gradient(transparent 58%, var(--tint2) 58% 92%, transparent 92%); width: fit-content; padding-right: 2mm; }
.tpl-lackierer .kind-letter .head-full, .tpl-lackierer.kind-letter .head-full { border-bottom: none; }

/* ---------- Farbfächer ---------- */
.tpl-farbfaecher { --sw: 66mm; }
.tpl-farbfaecher.kind-cv .pg-deco { background: linear-gradient(90deg, transparent 0 8mm, var(--tint) 8mm var(--sw), transparent var(--sw)); }
.tpl-farbfaecher .pg-deco::before { display: block; left: 0; top: 0; bottom: 0; width: 8mm; background: linear-gradient(180deg,
  color-mix(in srgb, var(--accent) 50%, #000) 0 12.5%, color-mix(in srgb, var(--accent) 70%, #000) 12.5% 25%, color-mix(in srgb, var(--accent) 86%, #000) 25% 37.5%,
  var(--accent) 37.5% 50%, color-mix(in srgb, var(--accent) 78%, #fff) 50% 62.5%, color-mix(in srgb, var(--accent) 58%, #fff) 62.5% 75%,
  color-mix(in srgb, var(--accent) 38%, #fff) 75% 87.5%, color-mix(in srgb, var(--accent) 20%, #fff) 87.5%); }
.tpl-farbfaecher .pg-side { padding-left: 13mm !important; }
.tpl-farbfaecher .h-name { font-weight: 300; font-size: 29pt; }
.tpl-farbfaecher .h-name .ln { font-weight: 700; }
.tpl-farbfaecher .head-full .h-photo { left: calc(8mm + (var(--sw) - 8mm - 40mm) / 2) !important; border-radius: 2mm; box-shadow: 0 1mm 3mm rgba(0,0,0,.15); }
.tpl-farbfaecher .sec-h { text-transform: none; letter-spacing: .02em; font-size: 12pt; color: var(--dark); border-bottom: none; padding-bottom: 0; }
.tpl-farbfaecher .pg-side .sec-h { font-size: 10.5pt; }
.tpl-farbfaecher.kind-letter .pg-main { padding-left: 4mm; }

/* ---------- Elektro ---------- */
.tpl-elektro { --sw: 64mm; --navy: #0f1b2d; }
.tpl-elektro.kind-cv .pg-deco { background: linear-gradient(90deg, var(--navy) 0 var(--sw), transparent var(--sw)); }
.tpl-elektro.kind-cv .pg-deco::before { display: block; left: 0; top: 0; bottom: 0; width: var(--sw); background: var(--accent); opacity: .22;
  -webkit-mask: var(--dc-circuit) 0 0 / 22mm 22mm repeat; mask: var(--dc-circuit) 0 0 / 22mm 22mm repeat; }
.tpl-elektro.kind-cv .pg-deco::after { display: block; left: var(--sw); top: 0; bottom: 0; width: 1.2mm; background: var(--accent); }
.tpl-elektro .h-name .ln { color: var(--navy); }
.tpl-elektro .h-job { color: var(--navy); font-weight: 600; background: linear-gradient(transparent 62%, var(--tint2) 62%); width: fit-content; }
.tpl-elektro .pg-main .sec-h { color: var(--navy); border-bottom: .5mm solid var(--accent); }
.tpl-elektro .e-org, .tpl-elektro .pg-main .e-date { color: color-mix(in srgb, var(--accent) 55%, #000); }
.tpl-elektro .head-full .h-photo { border: 1mm solid var(--accent); border-radius: 2mm; }
.tpl-elektro.kind-letter .pg-deco { background: linear-gradient(90deg, var(--navy) 0 6mm, var(--accent) 6mm 7.2mm, transparent 7.2mm); }
.tpl-elektro.kind-letter .h-name .ln { color: var(--navy); }

/* ---------- Bau ---------- */
.tpl-bau { --haz: repeating-linear-gradient(-45deg, var(--accent) 0 3.5mm, #1b1b1b 3.5mm 7mm); }
.tpl-bau .head-full { background: #1b1b1b; margin-bottom: 14mm !important; }
.tpl-bau .head-full::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5mm; height: 5mm; background: var(--haz); }
.tpl-bau .pg-deco::after { display: block; left: 0; right: 0; bottom: 0; height: 2.5mm; background: var(--haz); }
.tpl-bau.cont .pg-deco::before { display: block; left: 0; right: 0; top: 0; height: 4mm; background: var(--haz); }
.tpl-bau .h-name, .tpl-bau .sec-h, .tpl-bau .h-job, .tpl-bau .hm-name { font-family: 'Oswald', sans-serif; text-transform: uppercase; }
.tpl-bau .h-name { font-size: 30pt; font-weight: 400; letter-spacing: .03em; }
.tpl-bau .h-name .ln { font-weight: 600; color: var(--accent); }
.tpl-bau .h-job { letter-spacing: .14em; }
.tpl-bau .head-full .h-photo { border: 1mm solid var(--accent); border-radius: 0; }
.tpl-bau .sec-h { color: #1b1b1b; border: none; background: linear-gradient(90deg, var(--accent) 0 1.6mm, #f3f3f1 1.6mm); padding: 1.4mm 3mm 1.2mm 4.5mm; letter-spacing: .08em; }
.tpl-bau .e-org { color: color-mix(in srgb, var(--accent) 55%, #000); }
.tpl-bau .e-date { font-weight: 600; color: #1b1b1b; }
.tpl-bau.kind-cover .pg-deco { background: #1b1b1b; }
.tpl-bau.kind-cover .pg-deco::before { display: block; left: 0; right: 0; top: 0; height: 12mm; background: var(--haz); }
.tpl-bau.kind-cover .pg-deco::after { height: 12mm; }
.tpl-bau.kind-cover .cover { color: #fff; }
.tpl-bau.kind-cover :is(.cv-contact, .cv-as, .cv-company, .cv-toc-h, .cv-note) { color: rgba(255,255,255,.7); }

/* ---------- Handwerk (Meister) ---------- */
.tpl-handwerk { background: #fbf8f2; }
.tpl-handwerk .h-name, .tpl-handwerk .sec-h, .tpl-handwerk .cv-pos { font-family: 'Roboto Slab', serif; }
.tpl-handwerk .head-full { border-bottom: 1.2mm double var(--accent); padding-bottom: 5mm; flex-direction: row-reverse; }
.tpl-handwerk .h-name { font-size: 26pt; font-weight: 400; }
.tpl-handwerk .h-name .ln { font-weight: 700; color: var(--accent); }
.tpl-handwerk .head-full .h-photo { border: .8mm solid var(--accent); padding: 1.2mm; background: #fff; border-radius: 0; }
.tpl-handwerk .sec-h { text-transform: none; letter-spacing: .01em; font-size: 12.5pt; font-weight: 600; color: var(--dark); border-bottom: .4mm dashed var(--accent); }
.tpl-handwerk .li::before { border-radius: 0; transform: rotate(45deg); }
.tpl-handwerk .tag { background: #fff; border: .3mm solid var(--tint2); }
.tpl-handwerk.kind-cover .cover { border: .6mm dashed var(--accent); margin: 14mm; }

/* ---------- Ingenieur ---------- */
.tpl-ingenieur { --sw: 62mm; }
.tpl-ingenieur.kind-cv .pg-deco::before { display: block; right: 0; top: 0; bottom: 0; width: var(--sw); background-color: var(--dark);
  background-image: linear-gradient(rgba(255,255,255,.09) .2mm, transparent .2mm), linear-gradient(90deg, rgba(255,255,255,.09) .2mm, transparent .2mm),
  linear-gradient(rgba(255,255,255,.05) .15mm, transparent .15mm), linear-gradient(90deg, rgba(255,255,255,.05) .15mm, transparent .15mm);
  background-size: 15mm 15mm, 15mm 15mm, 3mm 3mm, 3mm 3mm; }
.tpl-ingenieur .e-date, .tpl-ingenieur .h-job, .tpl-ingenieur .hm-doc { font-family: 'JetBrains Mono', monospace; }
.tpl-ingenieur .h-job { font-size: 9.5pt; }
.tpl-ingenieur .h-name .ln { color: var(--accent); }
.tpl-ingenieur .head-full .h-photo { border: .6mm solid #fff; outline: .3mm solid var(--accent); border-radius: 0; }
.tpl-ingenieur .pg-main .sec-h { color: var(--dark); border-bottom: .3mm solid var(--accent); }
.tpl-ingenieur .pg-main .sec-h::after { content: ''; width: 2mm; height: 2mm; border: .3mm solid var(--accent); margin-left: auto; }
.tpl-ingenieur.kind-letter .pg-deco::before { display: block; right: 0; top: 0; bottom: 0; width: 6mm; background: var(--dark); }

/* ---------- Logistik ---------- */
.tpl-logistik { --sw: 62mm; }
.tpl-logistik.kind-cv .pg-deco { background: linear-gradient(90deg, transparent calc(100% - var(--sw)), #eef3f1 calc(100% - var(--sw))); }
.tpl-logistik .pg-deco::before { display: block; left: 0; right: 0; top: 0; height: 4mm; background: var(--accent); }
.tpl-logistik .h-name, .tpl-logistik .sec-h, .tpl-logistik .hm-name { font-family: 'Oswald', sans-serif; }
.tpl-logistik .h-name { font-size: 28pt; font-weight: 400; text-transform: uppercase; }
.tpl-logistik .h-name .ln { font-weight: 600; }
.tpl-logistik .sec-h { color: var(--dark); letter-spacing: .1em; font-weight: 500; border-bottom: none; }
.tpl-logistik .pg-main .entry { border-left: .5mm dashed var(--accent); padding-left: 5mm; margin-left: 1.2mm; position: relative; padding-bottom: 3.4mm; margin-bottom: 0; }
.tpl-logistik .pg-main .entry::before { content: ''; position: absolute; left: -2.1mm; top: .6mm; width: 3.6mm; height: 3.6mm; background: var(--accent); border-radius: .6mm; }
.tpl-logistik .pg-main .entry.cont::before { display: none; }
.tpl-logistik .head-full .h-photo { border-radius: 2mm; }

/* ---------- Garten- & Landschaftsbau ---------- */
.tpl-garten .pg-deco::before { display: block; right: -6mm; top: -6mm; width: 78mm; height: 78mm; background: var(--accent); opacity: .85;
  -webkit-mask: var(--dc-branch) center / contain no-repeat; mask: var(--dc-branch) center / contain no-repeat; }
.tpl-garten .pg-deco::after { display: block; left: -8mm; bottom: -8mm; width: 60mm; height: 60mm; background: var(--tint2); transform: rotate(180deg);
  -webkit-mask: var(--dc-branch) center / contain no-repeat; mask: var(--dc-branch) center / contain no-repeat; }
.tpl-garten.cont .pg-deco::before { width: 46mm; height: 46mm; }
.tpl-garten .head-full { padding-right: 34mm; }
.tpl-garten .h-name { font-size: 28pt; font-weight: 400; }
.tpl-garten .h-name .ln { font-weight: 800; color: var(--dark); }
.tpl-garten .head-full .h-photo { border-radius: 0 50% 0 50%; width: 44mm; height: 44mm; border: 1mm solid var(--tint2); }
.tpl-garten .sec-h { text-transform: none; letter-spacing: 0; font-size: 13pt; font-weight: 800; color: var(--dark); border-bottom: .5mm solid var(--tint2); }
.tpl-garten .li::before { border-radius: 0 50% 0 50%; width: 1.6mm; height: 1.6mm; }
.tpl-garten .tag { border-radius: 0 2.5mm 0 2.5mm; }
.tpl-garten.kind-letter .head-full { border-bottom: none; }

/* ---------- Natur & Forst ---------- */
.tpl-natur { --sw: 64mm; }
.tpl-natur.kind-cv .pg-deco { background: linear-gradient(90deg, var(--tint) 0 var(--sw), transparent var(--sw)); }
.tpl-natur.kind-cv .pg-deco::before { display: block; left: 0; bottom: 0; width: var(--sw); height: 60mm; background: var(--tint2);
  -webkit-mask: var(--dc-hills) 0 100% / 100% 100% no-repeat; mask: var(--dc-hills) 0 100% / 100% 100% no-repeat; }
.tpl-natur.kind-cv .pg-deco::after { display: block; left: 0; bottom: 0; width: var(--sw); height: 42mm; background: var(--accent); opacity: .85;
  -webkit-mask: var(--dc-hills2) 0 100% / 100% 100% no-repeat; mask: var(--dc-hills2) 0 100% / 100% 100% no-repeat; }
.tpl-natur .h-name { font-weight: 300; font-size: 29pt; }
.tpl-natur .h-name .ln { font-weight: 700; color: var(--dark); }
.tpl-natur .head-full .h-photo { border-radius: 50%; width: 42mm; height: 42mm; border: 1.2mm solid #fff; }
.tpl-natur .sec-h { text-transform: none; letter-spacing: .02em; font-size: 12pt; color: var(--dark); }
.tpl-natur.kind-letter .pg-deco::after { display: block; left: 0; right: 0; bottom: 0; height: 22mm; background: var(--tint2);
  -webkit-mask: var(--dc-hills2) 0 100% / 100% 100% no-repeat; mask: var(--dc-hills2) 0 100% / 100% 100% no-repeat; }

/* ---------- Floristik ---------- */
.tpl-florist .pg-deco::before { display: block; left: -12mm; top: -12mm; width: 58mm; height: 58mm; background: var(--tint2); transform: rotate(-20deg);
  -webkit-mask: var(--ic-flower) center / contain no-repeat; mask: var(--ic-flower) center / contain no-repeat; }
.tpl-florist .pg-deco::after { display: block; right: -14mm; bottom: -14mm; width: 70mm; height: 70mm; background: var(--tint); transform: rotate(25deg);
  -webkit-mask: var(--ic-flower) center / contain no-repeat; mask: var(--ic-flower) center / contain no-repeat; }
.tpl-florist .h-name, .tpl-florist .sec-h, .tpl-florist .cv-pos, .tpl-florist .cv-name { font-family: 'Playfair Display', Georgia, serif; }
.tpl-florist .head-full { flex-direction: column; text-align: center; gap: 2.5mm; border-bottom: .3mm solid var(--tint2); padding-bottom: 5mm; }
.tpl-florist .head-full .h-photo { order: -1; border-radius: 50%; width: 36mm; height: 36mm; border: 1mm solid var(--tint2); }
.tpl-florist .h-contact { justify-content: center; }
.tpl-florist .h-name { font-size: 28pt; font-style: italic; }
.tpl-florist .h-name .ln { font-style: normal; color: var(--accent); }
.tpl-florist .h-job { letter-spacing: .2em; text-transform: uppercase; font-size: 8.6pt; color: var(--muted); }
.tpl-florist .sec-h { justify-content: center; text-transform: none; letter-spacing: 0; font-size: 14pt; font-weight: 400; font-style: italic; color: var(--dark); border: none; }
.tpl-florist.kind-letter .head-full .h-photo { display: none; }

/* ---------- Landwirtschaft ---------- */
.tpl-landwirt { --sw: 64mm; }
.tpl-landwirt.kind-cv .pg-deco { background: linear-gradient(90deg, var(--dark) 0 var(--sw), transparent var(--sw)); }
.tpl-landwirt.kind-cv .pg-deco::before { display: block; left: 6mm; bottom: 8mm; width: 52mm; height: 90mm; background: #fff; opacity: .1;
  -webkit-mask: var(--ic-wheat) center / contain no-repeat; mask: var(--ic-wheat) center / contain no-repeat; }
.tpl-landwirt .h-name, .tpl-landwirt .sec-h { font-family: 'Roboto Slab', serif; }
.tpl-landwirt .h-name .ln { color: var(--accent); }
.tpl-landwirt .pg-main .sec-h { text-transform: none; letter-spacing: .01em; font-size: 12.5pt; color: var(--dark); border-bottom: .4mm solid var(--tint2); }
.tpl-landwirt .head-full .h-photo { border-radius: 2mm; border: 1mm solid color-mix(in srgb, var(--accent) 40%, #fff); }
.tpl-landwirt .pg-main { background: transparent; }
.tpl-landwirt.kind-letter .pg-deco { background: linear-gradient(90deg, var(--dark) 0 6mm, transparent 6mm); }
.tpl-landwirt.kind-letter { background: #fdfbf6; }

/* ---------- Gesundheit ---------- */
.tpl-gesundheit .head-full { padding-bottom: 9mm; margin-bottom: 7mm; position: relative; }
.tpl-gesundheit .head-full::after { content: ''; position: absolute; left: calc(-1 * var(--px)); right: calc(-1 * var(--px)); bottom: 0; height: 9mm; background: var(--accent);
  -webkit-mask: var(--dc-ekg) 0 0 / 100% 100% no-repeat; mask: var(--dc-ekg) 0 0 / 100% 100% no-repeat; }
.tpl-gesundheit .pg-deco { background: radial-gradient(circle at 100% 0, var(--tint) 0 46mm, transparent 46.4mm); }
.tpl-gesundheit .h-name { font-size: 28pt; font-weight: 400; }
.tpl-gesundheit .h-name .ln { font-weight: 800; color: var(--dark); }
.tpl-gesundheit .head-full .h-photo { border-radius: 50%; width: 42mm; height: 42mm; border: 1.4mm solid #fff; box-shadow: 0 0 0 .5mm var(--tint2); }
.tpl-gesundheit .sec-h { color: var(--dark); font-size: 10pt; letter-spacing: .12em; border-bottom: .4mm solid var(--tint2); }
.tpl-gesundheit .tag { border-radius: 4mm; }
.tpl-gesundheit.kind-letter .head-full { border-bottom: none; }

/* ---------- Pflege ---------- */
.tpl-pflege { --sw: 62mm; }
.tpl-pflege.kind-cv .pg-deco { background: linear-gradient(90deg, transparent calc(100% - var(--sw)), var(--tint) calc(100% - var(--sw))); }
.tpl-pflege .pg-deco::before { display: block; left: -30mm; top: -40mm; width: 110mm; height: 90mm; border-radius: 50%; background: var(--tint); opacity: .7; }
.tpl-pflege .h-name { font-size: 28pt; font-weight: 400; }
.tpl-pflege .h-name .ln { font-weight: 800; color: var(--dark); }
.tpl-pflege .head-full .h-photo { border-radius: 50%; width: 42mm; height: 42mm; border: 1.4mm solid #fff; }
.tpl-pflege .sec-h { text-transform: none; letter-spacing: .01em; font-size: 11pt; font-weight: 800; color: var(--dark); border: none;
  background: var(--tint); border-radius: 5mm; padding: 1.4mm 4mm; width: fit-content; }
.tpl-pflege .pg-side .sec-h { background: #fff; }
.tpl-pflege .tag { background: #fff; border-radius: 4mm; }
.tpl-pflege .li::before { background: var(--tint2); box-shadow: inset 0 0 0 .35mm var(--accent); width: 1.6mm; height: 1.6mm; }
.tpl-pflege.kind-letter .head-full { border-bottom: none; }

/* ---------- Medizin & Praxis ---------- */
.tpl-medizin .head-full { background: var(--tint); }
.tpl-medizin .head-full::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 70mm; background: var(--accent); opacity: .08;
  -webkit-mask: var(--ic-plus) 0 0 / 7mm 7mm repeat; mask: var(--ic-plus) 0 0 / 7mm 7mm repeat; }
.tpl-medizin .h-name .ln { color: var(--dark); }
.tpl-medizin .head-full .h-photo { border: 1mm solid #fff; border-radius: 2mm; position: relative; z-index: 1; }
.tpl-medizin .sec-h { color: var(--dark); border-bottom: .3mm solid var(--tint2); }
.tpl-medizin .pg-deco { border-bottom: 2mm solid var(--accent); }
.tpl-medizin.cont .pg-deco { border-top: 2mm solid var(--accent); }

/* ---------- Erziehung & Soziales ---------- */
.tpl-sozial .pg-deco { background:
  radial-gradient(circle at 92% 4%, #f59e0b 0 5mm, transparent 5.3mm), radial-gradient(circle at 80% 11%, #10b981 0 2.6mm, transparent 2.9mm),
  radial-gradient(circle at 98% 16%, #3b82f6 0 3.5mm, transparent 3.8mm), radial-gradient(circle at 86% 2%, #ef4444 0 2mm, transparent 2.3mm),
  radial-gradient(circle at 72% 3%, var(--accent) 0 3mm, transparent 3.3mm), radial-gradient(circle at 4% 97%, #a855f7 0 4mm, transparent 4.3mm),
  radial-gradient(circle at 12% 99%, #f59e0b 0 2.4mm, transparent 2.7mm), radial-gradient(circle at 2% 90%, #10b981 0 2mm, transparent 2.3mm); }
.tpl-sozial.cont .pg-deco { background: radial-gradient(circle at 96% 3%, #f59e0b 0 3mm, transparent 3.3mm), radial-gradient(circle at 90% 6%, #3b82f6 0 2mm, transparent 2.3mm); }
.tpl-sozial .head-full { padding-right: 30mm; }
.tpl-sozial .h-name { font-size: 28pt; font-weight: 400; }
.tpl-sozial .h-name .fn { color: var(--accent); font-weight: 800; }
.tpl-sozial .h-name .ln { font-weight: 800; }
.tpl-sozial .head-full .h-photo { border-radius: 50%; width: 42mm; height: 42mm; border: .8mm dashed var(--accent); padding: 1.2mm; background: #fff; }
.tpl-sozial .head-full .h-photo img { border-radius: 50%; }
.tpl-sozial .sec-h { text-transform: none; letter-spacing: 0; font-size: 13pt; font-weight: 800; color: var(--ink); border-bottom: .8mm dotted var(--tint2); }
.tpl-sozial .tag:nth-child(4n+1) { background: #fef3c7; color: #92400e; } .tpl-sozial .tag:nth-child(4n+2) { background: #d1fae5; color: #065f46; }
.tpl-sozial .tag:nth-child(4n+3) { background: #dbeafe; color: #1e40af; } .tpl-sozial .tag { border-radius: 4mm; }

/* ---------- Gastronomie & Küche ---------- */
.tpl-gastro .head-full { background: #262626 radial-gradient(circle at 20% 30%, rgba(255,255,255,.05), transparent 60%); }
.tpl-gastro .head-full::after { content: ''; position: absolute; left: var(--px); right: var(--px); bottom: 3mm; height: 1.4mm; border-top: .3mm solid var(--accent); border-bottom: .3mm solid var(--accent); }
.tpl-gastro .h-name, .tpl-gastro .sec-h, .tpl-gastro .hm-name, .tpl-gastro .cv-pos, .tpl-gastro .cv-name { font-family: 'Playfair Display', Georgia, serif; }
.tpl-gastro .h-name { font-size: 29pt; font-style: italic; }
.tpl-gastro .h-name .ln { font-style: normal; color: color-mix(in srgb, var(--accent) 70%, #fff); }
.tpl-gastro .head-full .h-photo { border: .8mm solid var(--accent); border-radius: 50%; width: 40mm; height: 40mm; }
.tpl-gastro .sec-h { text-transform: none; letter-spacing: .02em; font-size: 14pt; font-weight: 700; color: #262626; border-bottom: .5mm dotted var(--accent); }
.tpl-gastro .e-date, .tpl-gastro .e-org { color: color-mix(in srgb, var(--accent) 65%, #000); }
.tpl-gastro.cont .pg-deco { border-top: 4mm solid #262626; }
.tpl-gastro.kind-cover .pg-deco { background: #262626; }
.tpl-gastro.kind-cover .cover { color: #fff; }
.tpl-gastro.kind-cover :is(.cv-contact, .cv-as, .cv-company, .cv-toc-h, .cv-note) { color: rgba(255,255,255,.7); }

/* ---------- Hotel & Tourismus ---------- */
.tpl-hotel { --px: 22mm; --pt: 19mm; }
.tpl-hotel .pg-deco::before { display: block; inset: 8mm; border: .45mm solid var(--accent); }
.tpl-hotel .pg-deco::after { display: block; inset: 9.6mm; border: .2mm solid var(--tint2); }
.tpl-hotel .pg-foot { padding-bottom: 6mm; }
.tpl-hotel .h-name, .tpl-hotel .cv-pos, .tpl-hotel .cv-name { font-family: 'Playfair Display', Georgia, serif; }
.tpl-hotel .head-full { flex-direction: column; text-align: center; gap: 2mm; }
.tpl-hotel .head-full .h-photo { order: -1; border-radius: 50%; width: 32mm; height: 32mm; border: .5mm solid var(--accent); padding: 1mm; background: #fff; }
.tpl-hotel .head-full .h-photo img { border-radius: 50%; }
.tpl-hotel .h-contact { justify-content: center; }
.tpl-hotel .h-name { font-size: 28pt; }
.tpl-hotel .h-job { letter-spacing: .3em; text-transform: uppercase; font-size: 8.4pt; }
.tpl-hotel .sec-h { justify-content: center; letter-spacing: .3em; font-size: 9pt; font-weight: 600; color: var(--dark); border: none; gap: 3mm; }
.tpl-hotel .sec-h::after { content: ''; position: absolute; }
.tpl-hotel .sec-h { position: relative; }
.tpl-hotel .sec-t { background: #fff; padding: 0 3mm; position: relative; z-index: 1; }
.tpl-hotel .sec-h { background: linear-gradient(transparent calc(50% - .15mm), var(--tint2) calc(50% - .15mm) calc(50% + .15mm), transparent calc(50% + .15mm)); }
.tpl-hotel.has-ic .sec-h::before { position: relative; z-index: 1; box-shadow: 0 0 0 2.5mm #fff; background: var(--accent); }

/* ---------- Friseur & Beauty ---------- */
.tpl-beauty { --sw: 62mm; }
.tpl-beauty.kind-cv .pg-deco { background: radial-gradient(circle at 0 100%, var(--tint2) 0 40mm, transparent 40.4mm), linear-gradient(90deg, var(--tint) 0 var(--sw), transparent var(--sw)); }
.tpl-beauty .pg-deco::before { display: block; right: -25mm; top: -25mm; width: 70mm; height: 70mm; border-radius: 50%; background: var(--tint); }
.tpl-beauty .h-name { font-weight: 300; text-transform: uppercase; letter-spacing: .16em; font-size: 22pt; }
.tpl-beauty .h-name .ln { font-weight: 600; }
.tpl-beauty .h-job { letter-spacing: .25em; text-transform: uppercase; font-size: 8.4pt; }
.tpl-beauty .head-full .h-photo { border-radius: 50%; width: 42mm; height: 42mm; border: 1.4mm solid #fff; }
.tpl-beauty .sec-h { letter-spacing: .22em; font-weight: 600; font-size: 9pt; color: var(--dark); border-bottom: .25mm solid var(--tint2); }
.tpl-beauty .tag { background: #fff; border: .25mm solid var(--tint2); }

/* ---------- Handel & Verkauf ---------- */
.tpl-verkauf .head-full { background: var(--accent); }
.tpl-verkauf .h-name { font-size: 29pt; font-weight: 400; }
.tpl-verkauf .h-name .ln { font-weight: 800; }
.tpl-verkauf .head-full .h-photo { border: 1.2mm solid #fff; border-radius: 3mm; transform: rotate(2deg); box-shadow: 0 1.5mm 4mm rgba(0,0,0,.2); }
.tpl-verkauf .sec-h { color: #fff; background: var(--accent); border: none; padding: 1.4mm 5mm 1.4mm 3mm; border-radius: 0 4mm 4mm 0; width: fit-content; }
.tpl-verkauf.has-ic .sec-h::before { background: #fff; }
.tpl-verkauf .e-date { font-weight: 700; color: var(--accent); }
.tpl-verkauf.cont .pg-deco { border-top: 4mm solid var(--accent); }

/* ---------- Sicherheit ---------- */
.tpl-sicherheit { --sw: 64mm; }
.tpl-sicherheit.kind-cv .pg-deco { background: linear-gradient(180deg, var(--accent), var(--dark)) 0 0 / var(--sw) 100% no-repeat; }
.tpl-sicherheit.kind-cv .pg-deco::before { display: block; left: 12mm; bottom: 12mm; width: 40mm; height: 46mm; background: #fff; opacity: .07;
  -webkit-mask: var(--ic-shield) center / contain no-repeat; mask: var(--ic-shield) center / contain no-repeat; }
.tpl-sicherheit .h-name { text-transform: uppercase; letter-spacing: .05em; font-size: 24pt; }
.tpl-sicherheit .h-name .ln { color: var(--accent); }
.tpl-sicherheit .pg-main .sec-h { color: var(--accent); border-bottom: .6mm solid var(--accent); }
.tpl-sicherheit .head-full .h-photo { border: 1mm solid #fff; border-radius: 1mm; }
.tpl-sicherheit.kind-letter .pg-deco { background: linear-gradient(180deg, var(--accent), var(--dark)) 0 0 / 7mm 100% no-repeat; }

/* ---------- Bank & Finanzen ---------- */
.tpl-finanzen { --gold: #b8962e; }
.tpl-finanzen .pg-deco { background: linear-gradient(180deg, var(--accent) 0 3mm, var(--gold) 3mm 3.7mm, transparent 3.7mm); }
.tpl-finanzen .h-name, .tpl-finanzen .sec-h, .tpl-finanzen .cv-pos, .tpl-finanzen .cv-name { font-family: 'Merriweather', Georgia, serif; }
.tpl-finanzen .h-name { font-size: 24pt; font-weight: 400; }
.tpl-finanzen .h-name .ln { font-weight: 700; color: var(--accent); }
.tpl-finanzen .h-job { color: var(--gold); font-style: italic; font-family: 'Merriweather', Georgia, serif; font-size: 10pt; }
.tpl-finanzen .head-full { border-bottom: .3mm solid var(--gold); padding-bottom: 5mm; }
.tpl-finanzen .head-full .h-photo { border-radius: 0; }
.tpl-finanzen .sec-h { font-variant: small-caps; text-transform: none; letter-spacing: .08em; font-size: 12pt; font-weight: 700; color: var(--accent); border-bottom: .3mm solid var(--gold); }
.tpl-finanzen.has-ic .sec-h::before { background: var(--gold); }
.tpl-finanzen .li::before { background: var(--gold); border-radius: 0; }

/* ---------- Büro & Verwaltung ---------- */
.tpl-verwaltung .head-full { border-left: 2.2mm solid var(--accent); padding-left: 6mm; }
.tpl-verwaltung .h-name { font-size: 27pt; font-weight: 300; }
.tpl-verwaltung .h-name .ln { font-weight: 700; }
.tpl-verwaltung .h-job { color: var(--muted); }
.tpl-verwaltung .sec-h { font-size: 8.8pt; letter-spacing: .18em; color: var(--ink); border-bottom: .25mm solid var(--line); }
.tpl-verwaltung .entry { grid-template-columns: 30mm 1fr; }
.tpl-verwaltung .e-org { color: var(--muted); }
.tpl-verwaltung .kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8mm; }
.tpl-verwaltung .pg-deco { background: linear-gradient(90deg, transparent calc(100% - 4mm), var(--tint2) calc(100% - 4mm)); }

/* ---------- Start-up & IT ---------- */
.tpl-startup .head-full { background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #ec4899)); border-radius: 0 0 16mm 0; }
.tpl-startup .h-name { font-size: 29pt; font-weight: 300; }
.tpl-startup .h-name .ln { font-weight: 700; }
.tpl-startup .head-full .h-photo { border-radius: 50%; width: 40mm; height: 40mm; border: 1.4mm solid rgba(255,255,255,.85); }
.tpl-startup .sec-h { text-transform: none; letter-spacing: 0; font-size: 13pt; font-weight: 700; color: var(--accent); border: none; }
.tpl-startup .e-date { background: var(--tint); color: var(--dark); border-radius: 3mm; padding: .3mm 2mm; height: fit-content; width: fit-content; font-size: 8pt; }
.tpl-startup .tag { border-radius: 4mm; background: linear-gradient(120deg, var(--tint), color-mix(in srgb, #ec4899 12%, #fff)); }
.tpl-startup.cont .pg-deco { background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #ec4899)) 0 0 / 100% 3mm no-repeat; }

/* ---------- Portfolio ---------- */
.tpl-portfolio { --px: 20mm; }
.tpl-portfolio .h-name { font-size: 40pt; line-height: .98; letter-spacing: -.03em; font-weight: 300; }
.tpl-portfolio .h-name .fn, .tpl-portfolio .h-name .ln { display: block; }
.tpl-portfolio .h-name .ln { font-weight: 700; }
.tpl-portfolio .h-job { color: var(--ink); margin-top: 4mm; padding-top: 2mm; border-top: 1mm solid var(--accent); width: fit-content; }
.tpl-portfolio .head-full .h-photo { filter: grayscale(1); border-radius: 0; width: 42mm; height: 52mm; }
.tpl-portfolio .head-full .h-doc { display: block; position: absolute; left: -13mm; top: 34mm; transform: rotate(-90deg); transform-origin: left top; font-size: 7.5pt; letter-spacing: .5em; text-transform: uppercase; color: var(--muted); }
.tpl-portfolio .head-full { position: relative; margin-bottom: 9mm; }
.tpl-portfolio .sec-h { color: var(--ink); font-size: 9pt; letter-spacing: .25em; border-bottom: .25mm solid var(--ink); }
.tpl-portfolio .li::before { background: var(--ink); border-radius: 0; width: 1.4mm; height: .35mm; top: .75em; }
.tpl-portfolio .s-fill { background: var(--ink); }
.tpl-portfolio .tag { background: none; border: .25mm solid var(--ink); color: var(--ink); border-radius: 0; }

/* ---------- Lehramt & Bildung ---------- */
.tpl-bildung { --sw: 64mm; }
.tpl-bildung.kind-cv .pg-deco { background:
  linear-gradient(90deg, transparent 0 9mm, #e8a0a0 9mm 9.35mm, transparent 9.35mm) 0 0 / var(--sw) 100% no-repeat,
  repeating-linear-gradient(180deg, #fdfcf6 0 6.6mm, color-mix(in srgb, var(--accent) 22%, #fff) 6.6mm 6.85mm) 0 0 / var(--sw) 100% no-repeat; }
.tpl-bildung .pg-side { padding-left: 12mm !important; }
.tpl-bildung .h-name, .tpl-bildung .sec-h { font-family: 'Lora', Georgia, serif; }
.tpl-bildung .h-name .ln { color: var(--accent); }
.tpl-bildung .head-full .h-photo { border: 1.2mm solid #fff; box-shadow: 0 .8mm 3mm rgba(0,0,0,.18); transform: rotate(-2deg); border-radius: 0; left: calc(9mm + (var(--sw) - 9mm - 40mm) / 2) !important; }
.tpl-bildung .sec-h { text-transform: none; letter-spacing: .01em; font-size: 12.5pt; font-weight: 600; color: var(--dark); }
.tpl-bildung.kind-letter .pg-deco { background: linear-gradient(90deg, transparent 0 12mm, #e8a0a0 12mm 12.35mm, transparent 12.35mm); }

/* ---------- Ausbildung & Schüler ---------- */
.tpl-azubi .head-full { background: var(--accent); border-radius: 0 0 9mm 9mm; overflow: hidden; }
.tpl-azubi .head-full::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 88% -10%, rgba(255,255,255,.16) 0 30mm, transparent 30.3mm), radial-gradient(circle at 62% 130%, rgba(255,255,255,.12) 0 22mm, transparent 22.3mm); }
.tpl-azubi .head-full > * { position: relative; z-index: 1; }
.tpl-azubi .h-name { font-size: 29pt; font-weight: 400; }
.tpl-azubi .h-name .ln { font-weight: 800; }
.tpl-azubi .head-full .h-photo { border-radius: 6mm; border: 1.2mm solid #fff; width: 40mm; height: 46mm; }
.tpl-azubi .sec-h { text-transform: none; letter-spacing: 0; font-size: 12.5pt; font-weight: 800; color: var(--dark); border: none; background: var(--tint); border-radius: 3mm; padding: 1.4mm 3mm; }
.tpl-azubi .e-date { font-weight: 700; color: var(--accent); }
.tpl-azubi .tag { border-radius: 4mm; }
.tpl-azubi.cont .pg-deco { border-top: 4mm solid var(--accent); }

/* Feinkorrekturen Branchen-Designs */
.tpl-lackierer .head-full { flex-direction: row-reverse; }
.tpl-lackierer .pg-deco::before { width: 84mm; height: 84mm; right: -12mm; top: -14mm; }
.tpl-lackierer.cont .pg-deco::before { width: 48mm; height: 48mm; }
.tpl-motorsport.kind-cv .pg-deco::before { height: 46mm; }
.tpl-garten .pg-deco::after { left: -16mm; bottom: -16mm; width: 48mm; height: 48mm; opacity: .7; }
.tpl-hotel .pg-foot { flex-basis: 20mm; padding-bottom: 11mm; }
.tpl-sozial.first .pg-deco, .tpl-sozial.kind-cover .pg-deco { background:
  radial-gradient(circle at 92% 4%, #f59e0b 0 5mm, transparent 5.3mm), radial-gradient(circle at 80% 11%, #10b981 0 2.6mm, transparent 2.9mm),
  radial-gradient(circle at 98% 16%, #3b82f6 0 3.5mm, transparent 3.8mm), radial-gradient(circle at 86% 2%, #ef4444 0 2mm, transparent 2.3mm),
  radial-gradient(circle at 72% 3%, var(--accent) 0 3mm, transparent 3.3mm), radial-gradient(circle at 3% 88%, #a855f7 0 3.4mm, transparent 3.7mm),
  radial-gradient(circle at 5% 93%, #f59e0b 0 2mm, transparent 2.3mm), radial-gradient(circle at 2% 82%, #10b981 0 1.6mm, transparent 1.9mm); }
