/* =============================================================================
   CV Dominic Meiser — Print Styles (A4, Schwarz auf Weiß)
   Wird beim Klick auf "Drucken/Als PDF speichern" im Browser aktiv.
   ============================================================================= */

@page {
  size: A4;
  margin: 18mm 16mm 18mm 16mm;
}

@media print {

  html, body {
    background: #fff !important;
    color: #000 !important;
    font-size: 10pt;
    line-height: 1.4;
  }

  /* Topbar und Modus-Switch ausblenden */
  [data-print="hide"] { display: none !important; }
  [data-print="show-only"] { display: block !important; }

  .page {
    max-width: none;
    padding: 0;
    margin: 0;
  }

  a {
    color: #000 !important;
    border-bottom: none !important;
    text-decoration: none !important;
  }

  /* Hero kompakter im Druck */
  .hero { margin-bottom: 1rem; }
  .hero-head {
    display: grid;
    grid-template-columns: 95px 1fr;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
  }
  .hero-foto {
    width: 90px !important;
    height: auto;
    border: 1px solid #999 !important;
    border-radius: 2px;
    filter: none !important;
  }
  .name {
    font-size: 22pt;
    margin-bottom: 0.2rem;
  }
  .rolle { font-size: 11pt; }
  .subline { font-size: 9.5pt; }
  .kontakt { font-size: 8.5pt; }

  /* Kennzahlen schmaler */
  .kennzahlen {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
  }
  .kennzahlen li {
    border: 1px solid #999 !important;
    border-left: 2px solid #555 !important;
    padding: 0.4rem 0.5rem;
    background: transparent !important;
  }
  .kennzahlen strong { font-size: 12pt; color: #000 !important; }
  .kz-label { font-size: 7.5pt; color: #555 !important; }

  /* Abschnitte */
  .abschnitt { margin: 1rem 0; }
  .abschnitt-titel {
    font-size: 8.5pt;
    color: #000 !important;
    border-bottom: 1px solid #555 !important;
    margin-bottom: 0.55rem;
    padding-bottom: 0.25rem;
  }
  .profil-text { font-size: 10pt; line-height: 1.5; max-width: none; }
  .tagline { font-size: 10pt; color: #333 !important; }

  /* Timeline */
  .tl-item {
    grid-template-columns: 110px 1fr;
    gap: 0.7rem;
    padding: 0.55rem 0;
    border-top: 1px solid #ddd !important;
    page-break-inside: avoid;
  }
  .tl-item:first-child { border-top: none; padding-top: 0; }
  .tl-zeit { font-size: 8pt; color: #444 !important; }
  .tl-rolle { font-size: 10.5pt; }
  .tl-org { font-size: 9pt; color: #333 !important; }
  .tl-bullets, .tl-mod, .tl-thesis, .tl-note { font-size: 9pt; }

  /* Stack — kompakter, 3 Spalten */
  .stack-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }
  .stack-card {
    border: 1px solid #ccc !important;
    background: transparent !important;
    padding: 0.55rem 0.7rem;
    page-break-inside: avoid;
  }
  .stack-card h3 { font-size: 7.5pt; color: #000 !important; }
  .stack-card li { font-size: 8.5pt; }

  /* Zertifikate */
  .zertifikate-liste li { font-size: 9pt; padding: 0.3rem 0; }
  .z-datum { font-size: 8pt; }

  /* Sprachen */
  .sprachen-liste { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .sprachen-liste li { font-size: 8.5pt; padding: 0.3rem 0; }
  .dot.on { background: #000 !important; }
  .dot { background: #ccc !important; }

  /* AI-Anhang als eigene Seite */
  #anhang-ai {
    page-break-before: always;
    background: transparent !important;
    padding: 0;
  }
  .anhang-intro { font-size: 9.5pt; max-width: none; }
  .projekt-item {
    border: 1px solid #ccc !important;
    background: transparent !important;
    padding: 0.55rem 0.8rem;
    page-break-inside: avoid;
  }
  .projekt-item h3 { font-size: 10pt; }
  .proj-kurz { font-size: 8.5pt; }
  .proj-det { font-size: 8.5pt; }

  /* Footer mit URL für PDF-Empfänger */
  .seiten-footer {
    margin-top: 1.5rem;
    padding-top: 0.4rem;
    border-top: 1px solid #999 !important;
    font-size: 7.5pt;
    color: #555 !important;
  }
  .footer-print a { color: #555 !important; }
}
