/**
 * print.css
 *
 * Clean print layout for long articles.
 */

@page {
  margin: 2cm 2cm 2.5cm;
}

/* Basic body styles in print */
body {
  background: #ffffff !important;
  color: #000000 !important;
  font-family: 'Inter', sans-serif;
  font-size: 11pt;
  line-height: 1.5;
}

/* Hide navigation, header background, footer, side regions */
.site-header,
.region-header,
.region-footer,
.primary-nav,
.sticky-header-toggle,
.sidebar,
.site-footer {
  display: none !important;
}

/* Remove card styling, make it full width on paper */
.node--type-article.node--view-mode-full {
  box-shadow: none !important;
  background: #ffffff !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Content width for print */
main,
.region-content,
.node__content {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Links: show URL after the text in print */
a[href]::after {
  content: ' (' attr(href) ')';
  font-size: 0.8em;
}

/* Links in Autor/Jahr-Feldern und Tags keine URL anhängen */
.field--name-field-author a[href]::after,
.field--name-field-year a[href]::after,
.field--name-field-tags a[href]::after {
  content: '';
}

/* Avoid page breaks inside important blocks */
h1, h2, h3, h4, h5, h6,
p,
blockquote,
.article-bibliography {
  page-break-inside: avoid;
}

/* Extra spacing before bibliography */
.article-bibliography {
  margin-top: 1.5rem;
  border-top: 1px solid #000;
}
