/**
 * Wochenplan – A4-Druckansicht ([wochenplan_print]).
 *
 * Layout nach dem Vorbild des bisherigen Wochenplan-PDFs: A4, eine Seite,
 * Helvetica/Arial, dunkle Schrift, Rahmen nur am Bildschirm.
 */

/* -------------------------------------------------------------------------
 * Papier
 * ---------------------------------------------------------------------- */

.fm-print {
	width: 210mm;
	min-height: 297mm;
	padding: 10mm 12mm 8mm;
	margin: 10mm auto;
	border: 1px solid #d3d3d3;
	border-radius: 5px;
	background: #fff;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
	color: #111;
	font-family: Helvetica, Arial, "Helvetica Neue", sans-serif;
	font-size: 10.5pt;
	font-weight: 400;
	line-height: 1.35;
	box-sizing: border-box;
}

.fm-print *,
.fm-print *::before,
.fm-print *::after {
	box-sizing: border-box;
	/* Theme-Schriften (Serif/Cursive) im Druck ausschließen */
	font-family: inherit;
	font-style: normal;
}

/* -------------------------------------------------------------------------
 * Kopf
 * ---------------------------------------------------------------------- */

.fm-print-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10mm;
	padding-bottom: 3mm;
	margin-bottom: 4mm;
	border-bottom: 0.6pt solid #bbb;
}

.fm-print-logo img {
	display: block;
	width: 62mm;
	height: auto;
}

.fm-print-logo--text {
	font-size: 17pt;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.fm-print-tel {
	text-align: right;
	font-size: 8.5pt;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.3;
}

.fm-print-tel span {
	display: block;
	margin-top: 0.5mm;
	font-size: 16pt;
	font-weight: 700;
	letter-spacing: 0;
	white-space: nowrap;
}

/* -------------------------------------------------------------------------
 * Titel
 * ---------------------------------------------------------------------- */

.fm-print-title {
	padding-bottom: 3mm;
	margin-bottom: 3mm;
	border-bottom: 0.6pt solid #bbb;
	text-align: center;
}

.fm-print-title h1 {
	margin: 0 0 1mm;
	font-size: 21pt;
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
	color: #111;
}

.fm-print-title p {
	margin: 0;
	font-size: 12.5pt;
	font-weight: 400;
	line-height: 1.3;
}

.fm-print-title strong {
	font-weight: 700;
}

/* -------------------------------------------------------------------------
 * Tage
 * ---------------------------------------------------------------------- */

.fm-print-plan {
	display: block;
}

.fm-print-day {
	padding: 0 1mm 3mm;
	margin-bottom: 3mm;
	border-bottom: 0.6pt solid #ccc;
}

.fm-print-day h2 {
	margin: 0 0 1.5mm;
	font-size: 11.5pt;
	font-weight: 700;
	line-height: 1.25;
	color: #111;
	text-transform: none;
	letter-spacing: 0;
}

.fm-print-day h2 strong {
	font-weight: 700;
}

.fm-print-dish {
	display: flex;
	align-items: baseline;
	gap: 5mm;
	margin-top: 1mm;
	font-size: 10.5pt;
	line-height: 1.3;
}

.fm-print-dish h3 {
	flex: 1 1 auto;
	margin: 0;
	font-size: inherit;
	font-weight: 400;
	line-height: inherit;
	color: #111;
	text-transform: none;
	letter-spacing: 0;
}

.fm-print-price {
	flex: 0 0 auto;
	order: 2;
	font-weight: 700;
	white-space: nowrap;
}

/* Tag ohne Gerichte (z. B. Feiertag) */
.fm-print-day p.fm-print-day-hint {
	margin: 0.8mm 0 0;
	font-size: 9.5pt;
	font-style: italic;
}

/* -------------------------------------------------------------------------
 * Kleingedrucktes
 * ---------------------------------------------------------------------- */

.fm-print-info {
	padding: 0 12mm 3mm;
	text-align: center;
}

.fm-print-info p {
	margin: 0;
	font-size: 7.5pt;
	line-height: 1.35;
	text-align: center;
	color: #222;
}

/* -------------------------------------------------------------------------
 * Angebote der Woche
 * ---------------------------------------------------------------------- */

.fm-print-offers {
	padding: 3mm 4mm 4mm;
	margin-bottom: 4mm;
	border: 0.6pt solid #bbb;
	border-radius: 1mm;
}

.fm-print-offers h2 {
	margin: 0 0 2.5mm;
	font-size: 10.5pt;
	font-weight: 700;
	color: #111;
	text-transform: none;
	letter-spacing: 0;
}

.fm-print-offers-layout {
	display: flex;
	align-items: flex-start;
	gap: 6mm;
}

.fm-print-offer {
	flex: 1 1 33.333%;
	width: 33.333%;
	font-size: 8.5pt;
	line-height: 1.3;
}

.fm-print-offer h3 {
	margin: 0;
	font-size: 9.5pt;
	font-weight: 700;
	line-height: 1.3;
	color: #111;
	text-transform: none;
	letter-spacing: 0;
}

.fm-print-offer p {
	margin: 1mm 0 0;
	font-size: 8.5pt;
	line-height: 1.3;
}

.fm-print-offer p.fm-print-offer-price {
	margin-top: 1.5mm;
	font-size: 9pt;
	font-weight: 700;
}

.fm-print-offer-price small {
	font-size: 8pt;
	font-weight: 400;
}

/* -------------------------------------------------------------------------
 * Fuß
 * ---------------------------------------------------------------------- */

.fm-print-footer {
	padding-top: 2mm;
	border-top: 0.6pt solid #bbb;
	text-align: center;
}

.fm-print-footer p {
	margin: 0;
	font-size: 8pt;
	line-height: 1.35;
	text-align: center;
}

.fm-print-footer strong {
	font-weight: 700;
}

/* -------------------------------------------------------------------------
 * Druck
 * ---------------------------------------------------------------------- */

@page {
	size: A4;
	margin: 0;
}

@media print {
	html,
	body {
		width: 210mm;
		height: 297mm;
		margin: 0;
		padding: 0;
		background: #fff;
	}

	/* Theme-Kopf/-Fuß und alles außer dem Druckblatt ausblenden */
	body > .wp-site-blocks > header,
	body > .wp-site-blocks > footer,
	.wp-block-template-part,
	.wp-block-navigation,
	.wp-block-post-title,
	.wp-block-post-content > *:not(.fm-print),
	.fm-print-druckbutton-wrap,
	.fm-redaktion {
		display: none !important;
	}

	/* Der Theme-Rahmen über dem Inhalt (Titelbereich) belegt sonst ~26 mm */
	main > *:not(.entry-content):not(.wp-block-post-content) {
		display: none !important;
	}

	.wp-block-post-content,
	.entry-content,
	.wp-site-blocks,
	main,
	.wp-block-group {
		margin: 0 !important;
		padding: 0 !important;
		max-width: none !important;
		min-height: 0 !important;
	}

	.fm-print {
		margin: 0;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		width: 210mm;
		/* 297 mm exakt würde durch Rundung eine zweite Seite erzeugen */
		min-height: 296mm;
		max-height: 296mm;
		overflow: hidden;
		padding: 10mm 12mm 8mm;
		background: #fff;
	}

	.fm-print-day,
	.fm-print-offers,
	.fm-print-footer {
		break-inside: avoid;
		page-break-inside: avoid;
	}
}

/* -------------------------------------------------------------------------
 * Drucken-Button (nur am Bildschirm)
 * ---------------------------------------------------------------------- */

.fm-print-druckbutton-wrap {
	text-align: center;
	margin: 6mm 0;
}

.fm-print-druckbutton {
	padding: 0.7rem 1.4rem;
	background: #912B21;
	color: #fff;
	border: 0;
	border-radius: 4px;
	font-size: 1rem;
	cursor: pointer;
}

.fm-print-druckbutton:hover {
	background: #DE925A;
	color: #111;
}
