/* Article printing only; screen layout and publication status stay unchanged. */
@page ratgeber { size: A4; margin: 16mm; }
@media print {
  body.editorial-site:has(.detail-layout) { page: ratgeber; background: white; color: black; font-size: 10.5pt; line-height: 1.5; }
  .editorial-site:has(.detail-layout) :is(.site-header,.site-footer,.breadcrumb,.topic-sidebar,.desktop-article-offers,.mobile-article-offers,.article-navigation,.skip-link) { display: none !important; }
  .editorial-site:has(.detail-layout) .shell { width: 100%; max-width: none; margin: 0; }
  .editorial-site .detail-layout { display: block; margin: 0; }
  .detail-layout .editorial-article { width: 100%; }
  .detail-layout .editorial-article-header { padding: 0; }
  .detail-layout .editorial-article-header h1 { font-size: 25pt; }
  .detail-layout :is(.editorial-standfirst,.editorial-summary p,.editorial-article-section>p,.editorial-article-section:has(.editorial-bullets)>p) { font-size: 10.5pt; line-height: 1.5; }
  .detail-layout :is(h1,h2,h3,caption) { break-after: avoid; }
  .detail-layout :is(h2,.editorial-summary h2,.editorial-article-section>h2) { font-size: 17pt; }
  .detail-layout :is(p,li) { orphans: 3; widows: 3; }
  .detail-layout :is(a,p,li,figcaption,.editorial-kicker,.editorial-byline) { color: black; }
  .detail-layout a { text-decoration: underline; }
  .detail-layout .editorial-summary { padding: 0; border: 0; background: none; margin: 6mm 0; }
  .detail-layout .editorial-article-section { margin: 7mm 0; }
  .detail-layout .editorial-article-image { break-inside: avoid; margin: 5mm 0; }
  .detail-layout .editorial-article-image>img { width: auto; max-width: 100%; height: auto; max-height: 65mm; aspect-ratio: auto; object-fit: contain; border-radius: 0; }
  .detail-layout .comparison-table-wrap { overflow: visible; border: 0; }
  .detail-layout .editorial-comparison table { width: 100%; min-width: 0; table-layout: fixed; }
  .detail-layout .editorial-comparison :is(th,td) { padding: 2mm; font-size: 8pt; line-height: 1.4; overflow-wrap: anywhere; }
  .detail-layout .editorial-comparison :is(caption,th,td) { color: black; background: white; border-color: #777; }
  .detail-layout thead { display: table-header-group; }
  .detail-layout tr { break-inside: avoid; }
  .detail-layout .editorial-sources li>a[href^="https://"]::after { content: " (" attr(href) ")"; font-size: 8pt; overflow-wrap: anywhere; }
  .editorial-site:has(.detail-layout) .preview-control { position: static; width: auto; max-width: none; margin-top: 8mm; padding: 2mm; color: black; background: white; box-shadow: none; border: 1px solid black; }
  .editorial-site:has(.detail-layout) .preview-control>:not(summary) { display: none; }
}
