/* =============================================
   Lebenslauf V1 Premium
   Inhalt entspricht quelltemp/cv-v1-premium.css („Pure CSS“),
   hier unter .cv-premium-doc gescoped (Vorschau + PDF).
   ============================================= */

.cv-premium-doc {
  --sidebar-color: #243447;
  --accent-color: #4a9aa6;
  --page-width: 210mm;
  --page-height: 297mm;
  --sidebar-width: 64mm;
  --main-width: calc(var(--page-width) - var(--sidebar-width));
  --text-color: #374151;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;
  --text-white: #ffffff;
  --text-white-muted: #d1d5db;
  --bg-light: #f5f6f8;
  --font-size-xs: 11px;
  --font-size-sm: 13px;
  --font-size-base: 14px;
  --font-size-name: 36px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --photo-overlap-into-main: 23mm;
  --photo-display-size: 31mm;
  --photo-frame-ratio: 9 / 10;
  --photo-object-pos-x: 50%;
  --photo-object-pos-y: 20%;
  --photo-top-offset: 22px;
  --photo-pan-left: 32px;
  --photo-pan-right-fill: 36px;
}

.cv-premium-doc *,
.cv-premium-doc *::before,
.cv-premium-doc *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.cv-premium-doc {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, DejaVu Sans, sans-serif;
  background: #e5e7eb;
  color: var(--text-color);
  font-size: var(--font-size-base);
  line-height: 1.5;
}

.cv-premium-doc .document-shell {
  width: fit-content;
  margin: 0 auto;
  padding: 32px 0 40px;
}

.cv-premium-doc .sidebar-section,
.cv-premium-doc .main-section {
  margin-bottom: var(--spacing-lg);
}

.cv-premium-doc .sidebar-section--last,
.cv-premium-doc .main-section--last {
  margin-bottom: 0;
}

.cv-premium-doc .contact-text {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.cv-premium-doc .avoid-break {
  break-inside: avoid;
  page-break-inside: avoid;
}

/* ---- Page ---- */
.cv-premium-doc .page {
  width: var(--page-width);
  min-height: var(--page-height);
  margin: 32px auto;
  display: flex;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  overflow: visible;
}

.cv-premium-doc .document-shell .page:last-child {
  margin-bottom: 0;
}

/* ---- Sidebar (Page 1) ---- */
.cv-premium-doc .sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--sidebar-color);
  color: var(--text-white);
  /* Oben 0: Foto bündig mit Seitenoberkante */
  padding: 0 var(--spacing-lg) var(--spacing-lg) var(--spacing-lg);
  display: flex;
  flex-direction: column;
  overflow: visible;
  position: relative;
  z-index: 2;
}

/* Seite 2: gleiche Sidebar-Farbe/Typo wie Seite 1; volles Padding (kein Foto oben) */
.cv-premium-doc .sidebar-light {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--sidebar-color);
  color: var(--text-white);
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  overflow: visible;
  position: relative;
  z-index: 2;
}

/* Foto wieder rechteckig; ragt rechts etwas in die Hauptspalte hinein. */
.cv-premium-doc .photo-wrapper {
  width: calc(var(--photo-display-size) + var(--photo-overlap-into-main));
  max-width: none;
  margin-right: calc(-1 * var(--photo-overlap-into-main));
  margin-left: 0;
  margin-top: var(--photo-top-offset);
  margin-bottom: var(--spacing-lg);
  position: relative;
  z-index: 2;
  aspect-ratio: var(--photo-frame-ratio);
  background-color: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border-radius: 0;
}

/* Template 1: Bild vollstaendig anzeigen (kein Kopf-/Haar-Crop). */
.cv-premium-doc .photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: contain;
  object-position: var(--photo-object-pos-x) var(--photo-object-pos-y);
  display: block;
  mix-blend-mode: normal;
}

/* Section Title */
.cv-premium-doc .section-title {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding-bottom: 4px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.cv-premium-doc .section-title--light {
  color: var(--text-white);
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

/* ---- Contact (SVG-Icons wie Template V2, Stroke = --accent-color) ---- */
.cv-premium-doc .contact-list {
  list-style: none;
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-xs);
  color: var(--text-white-muted);
  display: grid;
  gap: var(--spacing-sm);
}

.cv-premium-doc .contact-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-width: 0;
}

.cv-premium-doc .contact-icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  border: none;
  border-radius: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

.cv-premium-doc .contact-icon--phone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a9aa6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.cv-premium-doc .contact-icon--email {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a9aa6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
}

.cv-premium-doc .contact-icon--address {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a9aa6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.cv-premium-doc .contact-icon--linkedin {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a9aa6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-4 0v7h-4v-12h4v1.6'/%3E%3Crect x='2' y='9' width='4' height='12'/%3E%3Ccircle cx='4' cy='4' r='2'/%3E%3C/svg%3E");
}

/* ---- Education ---- */
.cv-premium-doc .education-list {
  list-style: none;
  margin-bottom: var(--spacing-lg);
  font-size: 10.5px;
  color: var(--text-white-muted);
  line-height: 1.35;
}

.cv-premium-doc .education-list li {
  margin-bottom: var(--spacing-md);
}

.cv-premium-doc .education-list .degree {
  color: var(--text-white);
  font-size: var(--font-size-sm);
  line-height: 1.35;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.cv-premium-doc .education-list .school {
  font-style: italic;
  line-height: 1.35;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.cv-premium-doc .education-list .date {
  color: var(--text-lighter);
}

/* ---- Skills ---- */
.cv-premium-doc .skill-list {
  list-style: none;
  margin-bottom: var(--spacing-lg);
}

.cv-premium-doc .skill-item {
  margin-bottom: var(--spacing-sm);
}

.cv-premium-doc .skill-item .skill-name {
  font-size: 10.5px;
  color: var(--text-white);
  margin-bottom: 4px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.cv-premium-doc .skill-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.cv-premium-doc .skill-bar-fill {
  height: 4px;
  border-radius: 2px;
  background: var(--accent-color);
}

/* ---- Languages ---- */
.cv-premium-doc .language-list {
  list-style: none;
  font-size: 10.5px;
  color: var(--text-white-muted);
  line-height: 1.35;
}

.cv-premium-doc .language-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 4px;
}

.cv-premium-doc .language-name {
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.cv-premium-doc .language-list .level {
  color: var(--text-lighter);
}

/* Sidebar: Fachkenntnisse / Listen (nur in Spalte, nicht Hauptfeld) */
.cv-premium-doc .sidebar .expertise-list,
.cv-premium-doc .sidebar-light .expertise-list {
  color: var(--text-white-muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.cv-premium-doc .sidebar .simple-list,
.cv-premium-doc .sidebar-light .simple-list {
  color: var(--text-white-muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.cv-premium-doc .sidebar .award-list,
.cv-premium-doc .sidebar-light .award-list {
  color: var(--text-white-muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.cv-premium-doc .sidebar .award-list .award-name,
.cv-premium-doc .sidebar-light .award-list .award-name {
  color: var(--text-white);
}

.cv-premium-doc .sidebar .award-list .award-org,
.cv-premium-doc .sidebar-light .award-list .award-org {
  color: var(--text-white-muted);
}

.cv-premium-doc .sidebar .award-list .award-date,
.cv-premium-doc .sidebar-light .award-list .award-date {
  color: var(--text-lighter);
}

/* ---- Main Content ---- */
.cv-premium-doc .main {
  flex: 1;
  padding: var(--spacing-xl);
  position: relative;
  z-index: 1;
  background: #fff;
}

.cv-premium-doc .name-block {
  margin-bottom: var(--spacing-lg);
}

.cv-premium-doc .name-block h1 {
  font-size: var(--font-size-name);
  line-height: 1.1;
  color: var(--sidebar-color);
  margin: 0;
}

.cv-premium-doc .name-block .job-title {
  margin-top: var(--spacing-sm);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-light);
}

.cv-premium-doc .summary {
  font-size: var(--font-size-xs);
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
}

/* ---- Experience ---- */
.cv-premium-doc .experience-list {
  list-style: none;
  font-size: var(--font-size-xs);
  color: var(--text-color);
  line-height: 1.7;
}

.cv-premium-doc .experience-list > li {
  margin-bottom: 20px;
}

.cv-premium-doc .exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.cv-premium-doc .exp-title {
  font-size: var(--font-size-sm);
  color: var(--sidebar-color);
}

.cv-premium-doc .exp-company {
  font-style: italic;
  color: var(--text-light);
}

.cv-premium-doc .exp-date {
  font-size: var(--font-size-xs);
  color: var(--text-lighter);
  flex-shrink: 0;
  margin-left: 8px;
}

.cv-premium-doc .exp-desc {
  margin-bottom: var(--spacing-sm);
}

.cv-premium-doc .exp-bullets {
  margin-left: 16px;
  padding: 0;
  list-style: disc;
}

.cv-premium-doc .exp-bullets li {
  margin-bottom: 4px;
}

/* ---- Page 2: Left Column ---- */
.cv-premium-doc .expertise-list {
  list-style: none;
  font-size: var(--font-size-xs);
  color: var(--text-color);
  margin-bottom: var(--spacing-lg);
}

.cv-premium-doc .expertise-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--spacing-sm);
}

.cv-premium-doc .expertise-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-color);
  flex-shrink: 0;
}

.cv-premium-doc .simple-list {
  list-style: none;
  font-size: var(--font-size-xs);
  color: var(--text-color);
  margin-bottom: var(--spacing-lg);
}

.cv-premium-doc .simple-list li {
  margin-bottom: 4px;
}

.cv-premium-doc .award-list {
  list-style: none;
  font-size: var(--font-size-xs);
  color: var(--text-color);
  margin-bottom: var(--spacing-lg);
}

.cv-premium-doc .award-list li {
  margin-bottom: 12px;
}

.cv-premium-doc .award-list .award-name {
  font-size: var(--font-size-sm);
  color: var(--sidebar-color);
}

.cv-premium-doc .award-list .award-org {
  color: var(--text-light);
}

.cv-premium-doc .award-list .award-date {
  color: var(--text-lighter);
}

/* ---- Training ---- */
.cv-premium-doc .training-list {
  list-style: none;
  font-size: var(--font-size-xs);
  color: var(--text-color);
}

.cv-premium-doc .training-list li,
.cv-premium-doc .training-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.cv-premium-doc .training-name {
  font-size: var(--font-size-sm);
  color: var(--sidebar-color);
}

.cv-premium-doc .training-org {
  color: var(--text-light);
}

.cv-premium-doc .training-date {
  font-size: var(--font-size-xs);
  color: var(--text-lighter);
  flex-shrink: 0;
  margin-left: 8px;
}

@page {
  size: A4;
  margin: 0;
}

@media print {
  .cv-premium-doc {
    background: #fff !important;
  }

  .cv-premium-doc .document-shell {
    margin: 0;
    padding: 0;
    width: auto;
  }

  .cv-premium-doc .page {
    margin: 0;
    box-shadow: none;
    page-break-after: always;
    break-after: page;
    min-height: var(--page-height);
  }

  .cv-premium-doc .page:last-child {
    page-break-after: auto;
    break-after: auto;
  }

  .cv-premium-doc .sidebar,
  .cv-premium-doc .sidebar-light {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
