/* ═══════════════════════════════════════════════
   SOLO-MILLIONÄR BUCH — Print Stylesheet
   ═══════════════════════════════════════════════ */

@media print {
  * {
    box-shadow: none !important;
  }

  html, body {
    background: #fff !important;
    font-size: 11pt;
    line-height: 1.6;
    color: #000;
    font-family: var(--font-body);
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .chapter-content,
  .chapter-content p,
  .chapter-content li,
  .chapter-content blockquote,
  .chapter-content a,
  .book-cover-subtitle,
  .book-cover-author,
  .book-cover-lead,
  .selftest-hero-subtitle,
  .selftest-intro,
  .scorecard-option-text,
  .cta-end-text {
    font-family: var(--font-body);
  }

  .book-cover-title,
  .chapter-content h1,
  .chapter-content h2,
  .chapter-content h3,
  .selftest-hero h1,
  .scorecard-category-header h3,
  .scorecard-summary h2,
  .cta-end-title {
    font-family: var(--font-display);
    font-weight: 400;
  }

  .header,
  .sidebar,
  .reading-progress,
  .mobile-menu-toggle,
  .mobile-sidebar-overlay,
  .chapter-pagination,
  .header-cta,
  .cta-inline,
  .sticky-cta,
  .book-cover-actions,
  .print-button,
  .pdf-download {
    display: none !important;
  }

  .book-layout {
    display: block;
    padding: 0;
    min-height: auto;
  }

  .content {
    margin: 0;
    padding: 0;
    display: block;
  }

  .content::before {
    display: none;
  }

  .chapter {
    max-width: none;
    animation: none;
    padding-bottom: 0.8cm;
  }

  .book-cover {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 23.4cm;
    max-width: none;
    padding: 1.8cm 1.5cm 2.1cm;
    margin: 0 0 1cm;
    background: #f8f8f8 !important;
    border: none;
    border-radius: 20px;
    text-align: center;
    break-after: page;
    page-break-after: always;
    page-break-inside: avoid;
  }

  .book-cover-badge {
    display: inline-block !important;
    font-size: 9pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ff0055;
    background: rgba(255, 0, 85, 0.08) !important;
    padding: 0.18cm 0.42cm;
    border-radius: 999px;
    margin-bottom: 0.45cm;
  }

  .book-cover-title {
    font-size: 31pt;
    line-height: 1.08;
    margin-bottom: 0.35cm;
  }

  .book-cover-subtitle {
    font-size: 15pt;
    max-width: 12.4cm;
    margin-bottom: 0.4cm;
  }

  .book-cover-author {
    font-size: 12pt;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 0.3cm;
  }

  .book-cover-print-cta {
    margin-bottom: 0.7cm;
  }

  .book-cover-print-cta .cta-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.08cm;
    padding: 0.3cm 0.72cm;
    background: #fff !important;
    border: 1.5pt solid #ff0055;
    border-radius: 999px;
    color: #ff0055 !important;
    text-decoration: none !important;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
  }

  .book-cover-print-cta-label,
  .book-cover-print-cta-url {
    display: block;
  }

  .book-cover-print-cta-url {
    font-size: 10pt;
  }

  .book-cover-lead {
    max-width: 12.6cm;
    margin-bottom: 0;
  }

  .book-cover-lead p,
  .book-cover-lead blockquote {
    text-align: center;
  }

  .book-cover-lead blockquote {
    border-left: none;
    border-top: 2pt solid #ff0055;
    border-bottom: 2pt solid #ff0055;
    background: transparent !important;
    padding: 0.45cm 0;
    margin: 0.6cm 0 0;
  }

  .book-section {
    margin-top: 0.9cm;
    page-break-inside: auto;
    break-inside: auto;
  }

  .chapter-header {
    margin-bottom: 0.55cm;
    padding-bottom: 0;
    border-bottom: none;
  }

  .chapter-number {
    font-size: 9pt;
    color: #666;
    background: none;
    padding: 0;
  }

  .chapter-header-emoji {
    font-size: 14pt;
  }

  .chapter-content h1 {
    font-size: 24pt;
    margin-bottom: 0.5cm;
    page-break-after: avoid;
  }

  .chapter-content h2 {
    font-size: 16pt;
    margin-top: 1cm;
    margin-bottom: 0.4cm;
    page-break-after: avoid;
  }

  .chapter-content h3 {
    font-size: 12pt;
    margin-top: 0.7cm;
    margin-bottom: 0.3cm;
    page-break-after: avoid;
  }

  .chapter-content p {
    margin-bottom: 0.4cm;
    orphans: 3;
    widows: 3;
  }

  .chapter-content ul,
  .chapter-content ol {
    margin-bottom: 0.4cm;
    padding-left: 1cm;
  }

  .chapter-content li {
    margin-bottom: 0.2cm;
  }

  .chapter-content a {
    color: #ff0055;
    text-decoration: underline;
  }

  .chapter-content a[href^="#"]::after {
    content: "";
  }

  .chapter-content a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #666;
  }

  body[data-pdf-export="true"] .chapter-content a[href^="http"]::after {
    content: "";
  }

  .chapter-content pre {
    background: #f5f5f5 !important;
    border: 1pt solid #ddd;
    padding: 0.4cm;
    font-size: 9pt;
    overflow: visible;
    white-space: pre-wrap;
    word-wrap: break-word;
  }

  .chapter-content code {
    background: #f5f5f5;
    font-size: 9pt;
  }

  .chapter-content blockquote {
    border-left: 3pt solid #ff0055;
    background: #f3f3f3;
    padding: 0.3cm 0.5cm;
    margin: 0.4cm 0;
  }

  .chapter-content blockquote::before {
    display: none;
  }

  .chapter-content hr {
    display: none;
  }

  .chapter-content img {
    max-width: 100%;
    page-break-inside: avoid;
  }

  .chapter-visual {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 0 0.55cm;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .chapter-visual img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border: none !important;
    border-radius: 18px;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .chapter-visual-cover {
    margin: 0 0 0.8cm;
  }

  .chapter-content table {
    display: table;
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0.5cm;
  }

  .chapter-content th,
  .chapter-content td {
    border: 1pt solid #ddd;
    padding: 0.2cm 0.24cm;
    font-size: 9pt;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }

  p, li, blockquote {
    page-break-inside: avoid;
  }

  .selftest-section {
    break-before: page;
    page-break-before: always;
  }

  .selftest-hero {
    position: static !important;
    left: auto !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    min-height: auto !important;
    margin: 0 0 0.8cm;
    padding: 1.4cm 1.2cm 1.45cm;
    background: #f8f8f8 !important;
    border: none !important;
    border-radius: 20px;
    display: block !important;
    text-align: center;
    page-break-inside: avoid;
  }

  .selftest-hero .chapter-visual-selftest {
    max-width: 13.2cm;
    margin: 0 auto 0.55cm;
  }

  .selftest-hero-kicker {
    display: inline-block !important;
    font-size: 9pt;
    padding: 0.18cm 0.42cm;
    border-radius: 999px;
    margin-bottom: 0.4cm;
  }

  .selftest-hero h1 {
    font-size: 24pt;
    margin-bottom: 0.3cm;
  }

  .selftest-hero-subtitle {
    max-width: none !important;
    font-size: 12.5pt;
    line-height: 1.5;
  }

  .selftest-intro {
    margin-bottom: 0.8cm;
    max-width: none;
  }

  .selftest-intro blockquote {
    background: #f3f3f3 !important;
    border-left: 3pt solid #ff0055;
  }

  .scorecard {
    display: block;
  }

  .scorecard-category {
    margin: 0 0 0.45cm;
    padding: 0.7cm;
    border: 1pt solid #d8d8d8;
    border-radius: 16px;
    page-break-inside: avoid;
    break-inside: avoid;
    page-break-before: auto;
    break-before: auto;
  }

  .scorecard-category-header {
    margin-bottom: 0.55cm;
    padding-bottom: 0.35cm;
    border-bottom: 1pt solid #ddd;
  }

  .scorecard-category-header h3 {
    font-size: 18pt;
  }

  .scorecard-category-score {
    font-size: 22pt;
  }

  .scorecard-options {
    gap: 0.45cm;
  }

  .scorecard-option {
    gap: 0.55cm;
    padding: 0.45cm;
    border-radius: 12px;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .scorecard-option-text {
    font-size: 10.5pt;
    line-height: 1.55;
  }

  .scorecard-option-points {
    min-width: 2.6cm;
  }

  .scorecard-point {
    appearance: none;
    -webkit-appearance: none;
    border: 1pt solid #999;
    background: #fff !important;
    min-width: 1.6cm;
    padding: 0.18cm 0.28cm;
    color: #000 !important;
  }

  .scorecard-summary {
    margin-top: 0;
    margin-bottom: 0.45cm;
    padding: 0.8cm;
    border: 1pt solid #d8d8d8;
    border-radius: 18px;
    background: #f3f3f3 !important;
    page-break-before: auto;
    break-before: auto;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .scorecard-summary-header {
    margin-bottom: 0.6cm;
  }

  .scorecard-summary h2 {
    font-size: 18pt;
  }

  .scorecard-summary-total {
    font-size: 26pt;
  }

  .scorecard-summary-row {
    border: 1pt solid #e0e0e0;
  }

  .scorecard-ranges {
    grid-template-columns: 1fr;
    gap: 0.35cm;
  }

  .scorecard-range {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .cta-end {
    display: block !important;
    margin: 0.45cm 0 0;
    padding: 0.95cm 0.95cm 1.05cm;
    background: #fff !important;
    border: 1.5pt solid #ff0055;
    border-radius: 20px;
    text-align: center;
    page-break-inside: avoid;
  }

  .cta-end::before,
  .cta-end::after {
    display: none !important;
  }

  .cta-end .chapter-visual-next-step {
    width: calc(100% + 1.9cm);
    max-width: none;
    margin: -0.95cm -0.95cm 0.55cm;
  }

  .cta-end .chapter-visual-next-step img {
    border-radius: 18px 18px 0 0;
  }

  .cta-end-title {
    font-size: 22pt;
    font-weight: 400;
    margin-bottom: 0.35cm;
  }

  .cta-end-text {
    max-width: 12.8cm;
    margin: 0 auto 0.55cm;
    font-size: 12pt;
    line-height: 1.55;
  }

  .cta-end-buttons {
    display: flex;
    justify-content: center;
  }

  .cta-end .cta-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.3cm 0.62cm;
    background: #fff !important;
    border: 1.5pt solid #ff0055;
    border-radius: 999px;
    color: #ff0055 !important;
    text-decoration: none !important;
    font-weight: 700;
  }

  .print-footer {
    display: none !important;
  }

  @page {
    size: A4;
    margin: 1.4cm 1.6cm 2.1cm;
  }

  @page :first {
    margin: 1.2cm 1.4cm 2.1cm;
  }
}

@media print {
  .book-video {
    display: none !important;
  }

  .book-image-grid {
    display: block;
    max-width: none;
    margin: 0.45cm 0;
  }

  .book-image-grid .book-illustration {
    margin: 0 0 0.4cm;
  }

  .book-image-grid .book-illustration:last-child {
    margin-bottom: 0;
  }

  .book-illustration {
    margin: 0.45cm 0;
    max-width: none;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .book-illustration img {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border: none !important;
    border-radius: 14px;
    box-shadow: none !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .book-illustration__caption {
    margin: 0.14cm 0 0;
    font-size: 8.4pt;
    line-height: 1.35;
    color: #555555 !important;
    text-align: left;
  }

  .author-profile {
    width: 3.2cm;
    margin: 0 0 0.45cm;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .author-profile img {
    display: block;
    width: 3.2cm;
    height: 3.2cm;
    object-fit: cover;
    border-radius: 50%;
    border: none !important;
    box-shadow: none !important;
  }

  .book-cta {
    page-break-inside: avoid;
    background: #f5f5f5 !important;
    border: 1px solid #d4d4d4 !important;
    padding: 1rem 1.25rem;
  }

  .book-cta__button {
    background: transparent !important;
    color: #ff0055 !important;
    padding: 0 !important;
    font-weight: 600;
    text-decoration: underline;
  }
}
