/*
 * Drucklayout für Beiträge (ersetzt Print-O-Matic, CMS ADMINS 20.11.2026).
 * Wird nur mit media="print" geladen. Keine externen Ressourcen.
 */

@page {
	margin: 15mm 15mm 18mm;
}

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

/* Alles außer dem Beitrag ausblenden */
.elementor-location-header,
.elementor-location-footer,
.elementor-location-popup,
.dialog-widget,
.skip-link,
#cmplz-cookiebanner-container,
.cmplz-cookiebanner,
#cmplz-manage-consent,
#pwa-install-popup,
.offline-indicator,
.snackbar,
.elementor-widget-share-buttons,
#blogpost .elementor-inner-column:has(> .elementor-widget-wrap > .elementor-widget-share-buttons),
div.elementor-social-icons-wrapper,
.inn-print-button,
.elementor-widget-html:has(.inn-print-button),
#kommentar-titel,
#comments,
#respond,
.comment-respond,
.comments-area,
.akismet_comment_form_privacy_notice,
.elementor-88422 .elementor-element-40fc1ab, /* Kommentar-Hinweis in "Single Kurzmeldungen" */
#akismet-text,
.kommentar-feld,
.weiterfuehrendelinksgutenberg,
.spenden-cta,
.abdrucke-cta,
.sm-banner,
.wp-block-embed-youtube,
iframe,
video,
audio {
	display: none !important;
}

/* Logo oben rechts, wie bisher im Ausdruck */
.inn-print-logo {
	display: block !important;
	margin: 0 0 6mm;
	text-align: right;
}

.inn-print-logo img {
	display: inline-block;
	width: 200px;
	height: auto;
}

/* Volle Breite statt Bildschirm-Raster */
#blogpost .elementor-column {
	width: 100% !important;
}

.elementor-section .elementor-container,
.e-con,
.e-con-inner {
	max-width: 100% !important;
}

.elementor-widget-theme-post-content {
	width: 100% !important;
}

/* Typografie (Werte aus den bisherigen Druckeinstellungen) */
p,
.elementor-widget-wrap {
	font-family: "Merriweather", serif;
	font-weight: 400;
	line-height: 1.6em;
	font-size: 14px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Nunito Sans", sans-serif;
	line-height: 1.3em;
	color: #000 !important;
	break-after: avoid;
	page-break-after: avoid;
	break-inside: avoid;
}

h1 { font-weight: 900; }
h2 { font-size: 24px; font-weight: 800; }
h3 { font-size: 22px; font-weight: 800; }
h4 { font-size: 20px; font-weight: 800; }

#excerpt,
#author-name,
#beitragslink {
	font-family: "Merriweather Sans", sans-serif;
	line-height: 1.5em;
}

.elementor-widget-post-info .elementor-icon-list-item {
	white-space: nowrap;
}

#dachzeile ul,
.elementor-widget-post-info > div > ul {
	font-family: "Merriweather Sans", sans-serif;
	font-weight: 700;
	list-style-type: none;
	padding-inline-start: 0;
}

/* Graue Bildschirmtexte im Druck dunkel */
#author-name,
#author-name *,
#dachzeile,
#dachzeile *,
.elementor-widget-post-info,
.elementor-widget-post-info * {
	color: #333 !important;
}

/* Bilder: nicht zerteilen, kompakt */
img,
figure,
.wp-block-image,
.isc-source {
	break-inside: avoid;
	page-break-inside: avoid;
}

.elementor img {
	max-height: 300px;
	width: auto;
	max-width: 100%;
}

.elementor-widget-theme-post-featured-image {
	max-width: 75%;
	text-align: left !important;
}

.featured-image-caption .elementor-widget-container {
	text-align: left;
	margin-top: -0.5rem !important;
}

.featured-image-source .elementor-widget-container {
	text-align: left;
	margin: 0 !important;
}

#beschriftung-beitragsbild {
	font-size: 12px;
}

.isc-source > .isc-source-text {
	padding: 0;
}

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

/* Links mit Adresse ausgeben */
a {
	color: #000 !important;
	text-decoration: underline;
}

.elementor-widget-theme-post-content a[href^="http"]:not(:has(img))::after {
	content: " (" attr(href) ")";
	font-size: 0.85em;
	word-break: break-all;
}

/* Keine Animationen, Schatten oder Sticky-Elemente im Druck */
* {
	animation: none !important;
	transition: none !important;
	box-shadow: none !important;
}

.elementor-invisible {
	visibility: visible !important;
	opacity: 1 !important;
}

.elementor-sticky,
.elementor-sticky--active {
	position: static !important;
}
