/* ==========================================================================
   BewerbungsPro Studio – Document Templates & Formats Engine
   10 Distinct Designer Themes (4 Free / 6 PRO)
   Supported Paper Formats: DIN A4, DIN A5, US Letter, US Executive
   ========================================================================== */

/* --------------------------------------------------------------------------
   Root Paper Format Geometries & Bounds
   -------------------------------------------------------------------------- */
.paper-sheet {
  font-family: var(--doc-font, 'Inter'), -apple-system, BlinkMacSystemFont, sans-serif !important;
  line-height: 1.45;
  color: #1d1d1f;
  position: relative;
  box-sizing: border-box !important;
  margin: 0 auto;
  background: #ffffff;
  overflow: hidden !important;
  page-break-inside: avoid !important;
}

.paper-sheet *:not(.signature-preview-img):not(canvas) {
  font-family: var(--doc-font, 'Inter'), -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Paper Format Dimensions */
.paper-sheet.format-a4 {
  width: 210mm;
  height: 297mm;
  max-height: 297mm;
}

.paper-sheet.format-a5 {
  width: 148mm;
  height: 210mm;
  max-height: 210mm;
  font-size: 0.8rem;
}

.paper-sheet.format-letter {
  width: 215.9mm;
  height: 279.4mm;
  max-height: 279.4mm;
}

.paper-sheet.format-executive {
  width: 184.1mm;
  height: 266.7mm;
  max-height: 266.7mm;
}

.paper-sheet * {
  box-sizing: border-box;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

:root {
  --doc-accent: #0071e3;
  --doc-font: 'Inter', sans-serif;
}

/* Base Image Proportions & Complete Distortion Protection */
.paper-sheet img:not(.signature-preview-img),
img.deckblatt-photo,
img.cv-photo,
img.creative-avatar,
img.exec-photo-box {
  object-fit: cover !important;
  object-position: center center !important;
  max-width: 100%;
  display: block;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  image-rendering: -webkit-optimize-contrast;
}

.signature-preview-img {
  max-height: 48px;
  width: auto;
  margin-top: 0.4rem;
}

/* Watermark Banner */
.watermark-banner {
  position: absolute;
  bottom: 6mm;
  right: 12mm;
  font-size: 0.68rem;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  pointer-events: none;
  opacity: 0.75;
}


/* ==========================================================================
   THEME 1: MODERN GEOMETRIC (FREE)
   Style: Angular polygon geometric headers, right-aligned name, clean lines
   ========================================================================== */
.template-modern {
  padding: 20mm 22mm 18mm;
  position: relative;
}
.template-modern .geo-shape-1 {
  position: absolute;
  top: 0; left: 0;
  width: 90mm; height: 65mm;
  background: #f1f5f9;
  clip-path: polygon(0 0, 100% 0, 45% 100%, 0 100%);
  pointer-events: none;
}
.template-modern .geo-shape-2 {
  position: absolute;
  top: 0; left: 0;
  width: 65mm; height: 48mm;
  background: var(--doc-accent);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
}
.template-modern .geo-name {
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #0f172a;
  text-align: right;
  line-height: 1.2;
}
.template-modern .geo-title {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--doc-accent);
  text-align: right;
  font-weight: 700;
  text-transform: uppercase;
}
.template-modern .cv-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--doc-accent);
  margin-bottom: 0.55rem;
}
.template-modern .timeline-item {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}


/* ==========================================================================
   THEME 2: CORPORATE BANNER (FREE)
   Style: Solid corporate subject band, clean typography, formal structure
   ========================================================================== */
.template-classic {
  padding: 20mm 22mm;
}
.template-classic .banner-name {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
  text-transform: uppercase;
  line-height: 1.2;
}
.template-classic .subject-banner {
  background: var(--doc-accent);
  color: #ffffff;
  padding: 0.45rem 0.9rem;
  margin: 1rem 0;
  border-left: 5px solid #0f172a;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.template-classic .cv-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 2px solid var(--doc-accent);
  padding-bottom: 0.2rem;
  margin-bottom: 0.6rem;
  color: var(--doc-accent);
}
.template-classic .timeline-item {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}


/* ==========================================================================
   THEME 3: TWO-COLUMN BOX (FREE)
   Style: Executive left column info cards + right column experience
   ========================================================================== */
.template-executive {
  padding: 18mm 20mm;
}
.template-executive .exec-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid #e2e8f0;
}
.template-executive .exec-name-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  text-transform: uppercase;
}
.template-executive .exec-photo-box {
  width: 72px;
  height: 82px;
  border-right: 4px solid var(--doc-accent);
  border-radius: 4px;
}
.template-executive .exec-two-col {
  display: grid;
  grid-template-columns: 54mm 1fr;
  gap: 1.1rem;
}
.template-executive .contact-card-box {
  background: var(--doc-accent);
  color: #ffffff;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
}
.template-executive .summary-card-box {
  background: #f8fafc;
  border-left: 3px solid var(--doc-accent);
  padding: 0.75rem;
  font-size: 0.78rem;
  color: #334155;
  border-radius: 0 6px 6px 0;
}
.template-executive .cv-section-title {
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #0f172a;
  border-bottom: 1.5px solid #0f172a;
  padding-bottom: 0.15rem;
  margin-bottom: 0.55rem;
}
.template-executive .timeline-item {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}


/* ==========================================================================
   THEME 4: DARK HERO BANNER (FREE)
   Style: Deep slate hero block with frosted capsule badges, Nordic minimal
   ========================================================================== */
.template-nordic {
  padding: 0;
}
.template-nordic .hero-box {
  background: #1e293b;
  color: #ffffff;
  padding: 16mm 22mm 14mm;
  position: relative;
  border-bottom: 4px solid var(--doc-accent);
}
.template-nordic .hero-title-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 0.35rem 0.75rem;
  display: inline-block;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
}
.template-nordic .nordic-body {
  padding: 16mm 22mm;
}
.template-nordic .cv-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--doc-accent);
  margin-bottom: 0.5rem;
}
.template-nordic .timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}


/* ==========================================================================
   THEME 5: HIGHLIGHT PILLS (PRO)
   Style: Warm cream card, rounded pill badges, soft shadows, modern aesthetic
   ========================================================================== */
.template-creative {
  padding: 20mm 22mm;
  background: #fdfbf7;
}
.template-creative .pill-badge {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 0.32rem 0.7rem;
  border-radius: 16px;
  font-weight: 700;
  display: inline-block;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
  border: 1px solid #e2e8f0;
}
.template-creative .pill-badge-accent {
  background: var(--doc-accent);
  color: #ffffff;
  padding: 0.32rem 0.75rem;
  border-radius: 16px;
  font-weight: 700;
  display: inline-block;
  font-size: 0.82rem;
}
.template-creative .creative-name {
  font-size: 1.55rem;
  font-weight: 900;
  color: #0f172a;
  margin-top: 0.6rem;
  line-height: 1.2;
}
.template-creative .cv-section-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--doc-accent);
  margin-bottom: 0.5rem;
}
.template-creative .timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}


/* ==========================================================================
   THEME 6: BERLIN STUDIO (PRO)
   Style: Bold brutalist typography, solid black dividers, high-contrast blocks
   ========================================================================== */
.template-berlin {
  padding: 20mm 22mm;
  background: #ffffff;
}
.template-berlin .berlin-header {
  border-bottom: 4px solid #000000;
  padding-bottom: 0.8rem;
  margin-bottom: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.template-berlin .berlin-name {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #000000;
  line-height: 1.15;
}
.template-berlin .cv-section-title {
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
  background: #000000;
  color: #ffffff;
  padding: 0.22rem 0.6rem;
  display: inline-block;
  margin-bottom: 0.55rem;
}
.template-berlin .timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
  border-left: 2px solid #e2e8f0;
  padding-left: 0.5rem;
}


/* ==========================================================================
   THEME 7: SWISS GRID (PRO)
   Style: Asymmetric Swiss 2-column modernist grid, vertical rule, clean rhythm
   ========================================================================== */
.template-swiss {
  padding: 18mm 20mm;
}
.template-swiss .swiss-layout {
  display: grid;
  grid-template-columns: 56mm 1fr;
  gap: 1.2rem;
  height: 100%;
}
.template-swiss .swiss-sidebar {
  border-right: 2px solid #000000;
  padding-right: 1rem;
}
.template-swiss .swiss-name {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.template-swiss .cv-section-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #000000;
  border-bottom: 2px solid #000000;
  padding-bottom: 0.15rem;
  margin-bottom: 0.5rem;
}
.template-swiss .timeline-item {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}


/* ==========================================================================
   THEME 8: EMERALD CORPORATE (PRO)
   Style: Deep forest emerald header, gold luxury accents, double dividers
   ========================================================================== */
.template-emerald {
  padding: 0;
}
.template-emerald .emerald-banner {
  background: linear-gradient(135deg, #064e3b, #047857);
  color: #ffffff;
  padding: 16mm 22mm 14mm;
  border-bottom: 4px solid #d97706;
}
.template-emerald .emerald-name {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.template-emerald .emerald-body {
  padding: 16mm 22mm;
}
.template-emerald .cv-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #064e3b;
  border-bottom: 2px solid #064e3b;
  border-top: 1px solid #d1fae5;
  padding: 0.2rem 0;
  margin-bottom: 0.55rem;
}
.template-emerald .timeline-item {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}


/* ==========================================================================
   THEME 9: MONOCHROME MINIMAL (PRO)
   Style: Haute editorial luxury, centered headers, ultra-fine lines, air
   ========================================================================== */
.template-monochrome {
  padding: 20mm 22mm;
  background: #ffffff;
  color: #000000;
}
.template-monochrome .mono-header {
  border-bottom: 1px solid #000000;
  padding-bottom: 0.8rem;
  margin-bottom: 1.1rem;
  text-align: center;
}
.template-monochrome .mono-name {
  font-size: 1.55rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}
.template-monochrome .mono-sub {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #475569;
  margin-top: 0.25rem;
}
.template-monochrome .cv-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid #000000;
  padding-bottom: 0.15rem;
  margin-bottom: 0.55rem;
  text-align: center;
}
.template-monochrome .timeline-item {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}


/* ==========================================================================
   THEME 10: VIBRANT GRADIENT (PRO)
   Style: Dynamic tech leader gradient header, glowing tags, modern card nodes
   ========================================================================== */
.template-gradient {
  padding: 0;
}
.template-gradient .grad-banner {
  background: linear-gradient(135deg, #0f172a 0%, var(--doc-accent) 100%);
  color: #ffffff;
  padding: 16mm 22mm 14mm;
}
.template-gradient .grad-name {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.template-gradient .grad-tag {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.25rem 0.65rem;
  border-radius: 12px;
  font-size: 0.78rem;
  display: inline-block;
  margin-top: 0.4rem;
}
.template-gradient .grad-body {
  padding: 16mm 22mm;
}
.template-gradient .cv-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--doc-accent);
  border-left: 4px solid var(--doc-accent);
  padding-left: 0.45rem;
  margin-bottom: 0.55rem;
}
.template-gradient .timeline-item {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}
