/* Print Stylesheet for tobias-czap.de */
@media print {
  /* Reset colors for printing */
  :root {
    --bg-primary: #fff !important;
    --bg-secondary: #f5f5f5 !important;
    --text-primary: #000 !important;
    --text-secondary: #333 !important;
    --accent: #000 !important;
  }

  * {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    background: #fff !important;
  }

  /* Hide non-essential elements */
  header,
  footer,
  .nav-toggle,
  .theme-toggle,
  .terminal-window,
  .contact-form,
  .btn,
  .social-links,
  #kontakt,
  .flip-card {
    display: none !important;
  }

  /* Show profile image normally */
  .hero .profile-image-container {
    display: block !important;
  }

  .hero .profile-image-container picture,
  .hero .profile-image-container img {
    display: block !important;
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    margin: 0 auto 1rem !important;
  }

  /* Hero section adjustments */
  .hero {
    padding: 0 !important;
    min-height: auto !important;
    text-align: center;
  }

  .hero h1 {
    font-size: 24pt !important;
    margin-bottom: 0.5rem !important;
  }

  .hero .subtitle {
    font-size: 14pt !important;
  }

  /* Experience section */
  #erfahrung {
    page-break-before: avoid;
  }

  .experience-item {
    page-break-inside: avoid;
    border: none !important;
    padding: 0.5rem 0 !important;
    margin-bottom: 1rem !important;
  }

  .experience-item h3 {
    font-size: 14pt !important;
    margin-bottom: 0.25rem !important;
  }

  .experience-item .date,
  .experience-item .company {
    font-size: 10pt !important;
  }

  .experience-item ul {
    margin: 0.5rem 0 !important;
    padding-left: 1.5rem !important;
  }

  .experience-item li {
    font-size: 10pt !important;
    margin-bottom: 0.25rem !important;
  }

  /* Links */
  a {
    text-decoration: underline;
  }

  a[href^="http"]:after,
  a[href^="mailto"]:after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    font-weight: normal;
  }

  /* Page margins */
  @page {
    margin: 2cm;
  }

  /* Ensure content fits */
  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  section {
    padding: 1rem 0 !important;
  }
}
