/* Print Styles - Optimized for A4 paper */
@page {
	margin: 1.5cm;
}

* {
	box-sizing: border-box;
}

a, a:hover {
	text-decoration: none;
	color: black;
}

body {
	font-family: 'Courier New', serif;
	font-size: 11pt;
	line-height: 1.4;
	color: black;
	background: white;
}

/* Hide navigation and interactive elements */
#topheader,
#footer,
#ontop,
.mlistebuttons,
.noprint,
.popup,
#cookie-consent-banner,
#cookie-settings-modal,
.cookie-consent-content,
.cookie-consent-text,
.cookie-consent-buttons,
.cookie-settings-content,
.cookie-category,
.cookie-toggle,
.cookie-settings-buttons,
.cookie-required-badge,
.cookie-settings-link,
.mobile-menu-toggle,
.mobile-nav-container,
.mobile-menu-overlay,
#breadcrumb-bar
{
	display: none !important;
}

/* Content area */
#content-right {
	position: static !important;
	top: auto !important;
	left: auto !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
}

#content-right:before {
	content: 'Merkliste';
	font-weight: bold;
	font-size: 14pt;
	display: block;
	margin-bottom: 15px;
}

/* Images - limit width for print */
img {
	max-width: 100% !important;
	height: auto !important;
	page-break-inside: avoid;
}

/* Merkliste items */
.merkepic {
	width: 150px !important;
	max-width: 150px !important;
	float: left;
	margin-right: 15px;
	margin-bottom: 10px;
}

.merkepic img {
	width: 150px !important;
	max-width: 150px !important;
	height: auto !important;
	object-fit: contain;
}

.merkedet {
	width: auto !important;
	max-width: calc(100% - 170px) !important;
	float: left;
	font-size: 10pt;
	line-height: 1.5;
}

.merkedet strong {
	display: inline-block;
	min-width: 90px;
	font-weight: bold;
}

/* Fieldset styling */
fieldset {
	border: 1px solid #666 !important;
	margin: 10px 0 !important;
	padding: 10px !important;
	page-break-inside: avoid;
}

fieldset.merke {
	width: 100% !important;
	max-width: 100% !important;
	margin: 10px 0 !important;
	padding: 10px !important;
	page-break-inside: avoid;
}

/* Clear floats */
.clear {
	clear: both;
}

/* Page breaks */
h1, h2, h3, h4, h5, h6 {
	page-break-after: avoid;
}

/* Prevent widows and orphans */
p, li {
	orphans: 3;
	widows: 3;
}

/* Links */
a[href]:after {
	content: " (" attr(href) ")";
	font-size: 9pt;
	color: #666;
}
