/*
 * Druckansicht (Theme 2.5) – ersetzt das Blueprint-Druck-Stylesheet.
 * Gilt nur beim Drucken / „Als PDF sichern“. Die Bildschirm-Stylesheets
 * (screen.css, style.css, mobile.css) sind beim Drucken nicht aktiv, deshalb
 * wird hier alles von Grund auf festgelegt.
 *
 * Ziel: ruhiges A4-Dossier in der Typografie der Website –
 * Name, Titel, Untertitel, Text, großes Bild, kompakte Galerie.
 * Ohne Navigation, Tags, Lightbox, Cookie-Hinweis.
 */

@page {
	size: A4;
	margin: 16mm 16mm 18mm;
}

html,
body {
	background: none !important;
}
body {
	max-width: none;
	margin: 0;
	position: static;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 9pt;
	line-height: 1.45;
	color: #000;
}
p {
	margin: 0 0 0.6em;
}

/* ---------- Nicht drucken ---------- */
#sidebar ul,
#sub-navi,
#gallery-wrapper,
#am-cookie-notice,
.tags,
.prepend-top:has(> .tags),
.prepend-top:has(> .item),
#tag-cloud,
.clear-left,
.clearLeft,
.clear-both,
iframe,
embed,
object,
.am-legal {
	display: none !important;
}

/* ---------- Layout zurücksetzen (Bildschirm-Positionen, Masonry, Spalten) ---------- */
#sidebar,
#sub-navi,
#main-container,
#media,
#floating-grid,
#floating-grid .block,
.block,
[class*="span-"] {
	position: static !important;
	left: auto !important;
	top: auto !important;
	float: none !important;
	width: auto !important;
	min-width: 0 !important;
	height: auto !important;
	margin-left: 0 !important;
	padding: 0 !important;
	opacity: 1 !important;
}
.block {
	display: block !important;
}
.media-container,
.thumbnail {
	width: auto !important;
}

/* ---------- Kopf: nur der Name ---------- */
#sidebar {
	margin-bottom: 9mm !important;
	font-size: 11pt;
	letter-spacing: 2px;
}
#sidebar a {
	color: #000;
	text-decoration: none;
	border: 0;
}

/* ---------- Typografie ---------- */
h1, h2, h3, h4 {
	color: #000;
	font-weight: normal;
	margin: 0;
	break-after: avoid;
	page-break-after: avoid;
}
h1 {
	font-size: 15pt;
	line-height: 1.3;
	letter-spacing: 2px;
	margin-bottom: 1mm;
}
h2 {
	font-size: 9pt;
	letter-spacing: 1.5px;
	margin: 4mm 0 1mm;
}
.subtitle,
h4,
.markup {
	font-family: "Courier New", Courier, monospace;
	color: #444;
}
.subtitle {
	margin-bottom: 5mm;
}
.teaser {
	font-size: 10pt;
	letter-spacing: 1px;
	margin-bottom: 4mm;
}
a {
	color: #000;
	text-decoration: none;
	border-bottom: 0.5pt solid #999;
}
/* Externe Links im Text: Adresse dahinter drucken (nicht bei Navigation, Tags, Bildern) */
#main-container .text a[href^="http"]:not([href*="andreasmuxel.com"]):not([href*="localhost"])::after {
	content: " (" attr(href) ")";
	font-size: 7.5pt;
	color: #555;
	word-break: break-all;
}

/* ---------- Bilder ---------- */
img {
	max-width: 100% !important;
	height: auto !important;
	background: none !important;
	break-inside: avoid;
	page-break-inside: avoid;
}
a:has(img) {
	border: 0;
}
.media-big {
	margin: 6mm 0 4mm;
	break-inside: avoid;
}
/* Hauptbild: volle Breite, aber höchstens ~12 cm hoch (Hochformate sonst ganze Seite) */
.media-big picture {
	display: block;
}
.media-big img {
	display: block;
	width: auto !important;
	max-width: 100% !important;
	max-height: 120mm !important;
}
/* Video: statt leerer Fläche ein Hinweis mit Link (Element kommt aus am_embed()) */
.am-print-video {
	display: block !important;
	font-family: "Courier New", Courier, monospace;
	font-size: 8.5pt;
	color: #444;
	margin: 2mm 0 4mm;
	padding: 3mm 0;
	border-top: 0.5pt solid #999;
	border-bottom: 0.5pt solid #999;
}

/* Galerie: kompaktes Raster, Bilder ungeschnitten */
.gallery-container {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	gap: 3mm;
	align-items: start;
	margin: 0 0 4mm;
}
.gallery-container .thumbnail {
	margin: 0 !important;
	break-inside: avoid;
	page-break-inside: avoid;
}
.gallery-container .thumbnail img {
	width: 100% !important;
}

/* ---------- Übersichtsseiten (Startseite, Work, Tags, Info): Kacheln im Raster ---------- */
#floating-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 8mm 6mm;
	align-items: start;
}
#floating-grid .block {
	break-inside: avoid;
	page-break-inside: avoid;
	margin: 0 !important;
}
#floating-grid .block h1 {
	font-size: 10.5pt;
	letter-spacing: 1.5px;
	margin-top: 2mm;
}
#news {
	margin-bottom: 8mm !important;
	columns: 2;
	column-gap: 8mm;
}
#news h2 {
	margin-top: 0;
}
/* News: keine Linkadressen (würde die Liste stark verlängern) */
#news a::after {
	content: none !important;
}

/* ---------- Fuß: © und Seitenadresse ---------- */
#footer {
	display: block !important;
	width: auto !important;
	margin-top: 10mm !important;
	padding: 3mm 0 0 !important;
	border-top: 0.5pt solid #999;
	font-family: "Courier New", Courier, monospace;
	font-size: 7.5pt;
	color: #444;
}
.am-print-url {
	display: inline !important;
	margin-left: 6mm;
}
