/*
 * Blog print stylesheet
 *
 * Load separately:
 * <link rel="stylesheet" href="/path/to/print.css" media="print">
 */

@page {
  margin: 1.5cm;
}

html,
body {
  background: #fff !important;
  color: #000 !important;
}

body {
  font-size: 12pt;
  line-height: 1.5;
}

/* Screen-only UI */
nav,
[role="navigation"],
button,
input,
select,
textarea,
.search-modal,
.hero__slider-navigation,
.comments,
.blog-footer-actions,
.print-hidden {
  display: none !important;
}

/* Remove screen decoration */
*,
*::before,
*::after {
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Keep article content within printable area */
main,
article,
.blog-post,
.blog-head,
.blog-head-content,
.blog-text,
.blog-footer {
  max-width: 100% !important;
  min-width: 0 !important;
}

/* Images */
img,
svg,
picture,
figure {
  max-width: 100% !important;
  height: auto;
}

/* Page breaks */
h1,
h2,
h3,
h4 {
  break-after: avoid;
  page-break-after: avoid;
}

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

p,
li {
  widows: 3;
  orphans: 3;
}

/* Printed external URLs */
a[href^="http"]::after {
  content: " (" attr(href) ")";
}

/* Don't print URLs for internal links */
a[href*="jungbleiben.com"]::after,
a[href^="#"]::after,
a[href^="/"]::after,
a[href^="mailto:"]::after,
a[href^="tel:"]::after {
  content: none;
}

/* Ensure article text remains printable */
.blog-text,
.blog-text p,
.blog-text li,
.blog-head-content-excerpt,
.blog-footer-tags-links {
  background: transparent !important;
  color: #000 !important;
}

/* Prevent screen positioning from affecting print */
.blog-post,
.blog-head,
.blog-text,
.blog-footer {
  width: auto !important;
  min-height: 0 !important;
}