/* Print styles — geladen via media="print", kein @media-Wrapper nötig */

* {
	background: transparent !important;
	color: #000 !important;
	box-shadow: none !important;
}

/* Sticky-Header lösen */
header.wp-block-template-part {
	position: static !important;
}

/* Generell alle Sticky-Inline-Styles aufheben */
[style*="position:sticky"],
[style*="position: sticky"] {
	position: static !important;
}

/* TOC-Spalte ausblenden (zweite Spalte nimmt volle Breite) */
.wp-block-columns.is-style-toc-layout > .wp-block-column:first-child {
	display: none !important;
}

/* Footer: Social-Icons ausblenden */
.dp-socials {
	display: none !important;
}

/* Footer-Bottom-Bar (Copyright + Impressum/Datenschutz) ausblenden */
.site-footer > .wp-block-group:last-child {
	display: none !important;
}

/* Links: URL hinter Linktext — kein !important, damit seitenspezifische Overrides möglich */
a[href]:not([href^="#"]):after {
	content: " (" attr(href) ")";
	font-size: 0.85em;
	color: #555;
}

/* Page-Breaks in Headings vermeiden */
h1,
h2,
h3 {
	page-break-after: avoid;
}

/* Page-Breaks innerhalb von Medien und Tabellen vermeiden */
img,
svg,
table {
	page-break-inside: avoid;
}

/* ============================================================
   Seitenspezifische Regeln — /agentnice-datenschutz/
   WP setzt automatisch .page-template-page-agentnice-datenschutz
   auf dem <body>.
   ============================================================ */

/* Reading-Block: klares Weiß statt off-white, das auf Papier matt wirkt */
.page-template-page-agentnice-datenschutz .is-style-reading-block-light {
	background: #ffffff !important;
	color: #000000 !important;
}

.page-template-page-agentnice-datenschutz .is-style-reading-block-light h2,
.page-template-page-agentnice-datenschutz .is-style-reading-block-light h3,
.page-template-page-agentnice-datenschutz .is-style-reading-block-light p,
.page-template-page-agentnice-datenschutz .is-style-reading-block-light li,
.page-template-page-agentnice-datenschutz .is-style-reading-block-light td,
.page-template-page-agentnice-datenschutz .is-style-reading-block-light th {
	color: #000000 !important;
}

/* SVG-Diagramme: kein Seitenumbruch innerhalb */
.page-template-page-agentnice-datenschutz .an-svg-figure {
	page-break-inside: avoid;
}

/* Section-Headings (h2): kein Orphan nach dem Heading */
.page-template-page-agentnice-datenschutz .is-style-reading-block-light h2 {
	page-break-after: avoid;
	orphans: 3;
	widows: 3;
}

/* Sub-Section-Headings (h3) */
.page-template-page-agentnice-datenschutz .is-style-reading-block-light h3 {
	page-break-after: avoid;
}

/* Tabelle: Zeilen nicht zerreißen, aber Seitenumbruch zwischen Zeilen erlaubt */
.page-template-page-agentnice-datenschutz .wp-block-table {
	page-break-inside: auto;
}

.page-template-page-agentnice-datenschutz .wp-block-table tr {
	page-break-inside: avoid;
}

/* ============================================================
   Seitenspezifische Regeln — /agentnice-avv/
   WP setzt automatisch .page-template-page-agentnice-avv
   auf dem <body>.
   ============================================================ */

/* PDF-Download-Button ausblenden — wer aus dem Browser druckt, will HTML */
.page-template-page-agentnice-avv .wp-block-buttons {
	display: none !important;
}

/* Reading-Block: klares Weiß statt off-white */
.page-template-page-agentnice-avv .is-style-reading-block-light {
	background: #ffffff !important;
	color: #000000 !important;
}

.page-template-page-agentnice-avv .is-style-reading-block-light h2,
.page-template-page-agentnice-avv .is-style-reading-block-light h3,
.page-template-page-agentnice-avv .is-style-reading-block-light p,
.page-template-page-agentnice-avv .is-style-reading-block-light li,
.page-template-page-agentnice-avv .is-style-reading-block-light td,
.page-template-page-agentnice-avv .is-style-reading-block-light th {
	color: #000000 !important;
}

/* AVV-Abschnitte: Seitenumbruch vor Headings vermeiden */
.page-template-page-agentnice-avv .is-style-reading-block-light h2 {
	page-break-after: avoid;
	orphans: 3;
	widows: 3;
}

.page-template-page-agentnice-avv .is-style-reading-block-light h3 {
	page-break-after: avoid;
}

/* Anlage-3-Tabellen: Zeilen nicht zerreißen, Seitenumbruch zwischen Zeilen erlaubt */
.page-template-page-agentnice-avv .wp-block-table {
	page-break-inside: auto;
}

.page-template-page-agentnice-avv .wp-block-table tr {
	page-break-inside: avoid;
}

/* ============================================================
   Seitenspezifische Regeln — /agentnice-datenschutz-bausteine/
   WP setzt automatisch .page-template-page-agentnice-datenschutz-bausteine
   auf dem <body>.
   ============================================================ */

.page-template-page-agentnice-datenschutz-bausteine .baustein-copy {
	display: none !important;
}

.page-template-page-agentnice-datenschutz-bausteine .baustein-text {
	background-color: #f5f5f5 !important;
	padding: 1rem !important;
	border-left: 2px solid #000 !important;
	page-break-inside: avoid;
}

.page-template-page-agentnice-datenschutz-bausteine .baustein {
	page-break-inside: avoid;
}
