body {
	margin: 0;
	padding: 0;
	background: #e5e7eb;
	font-family: system-ui, -apple-system, BlinkMacSystemFont,
	"Segoe UI", sans-serif;
}

.page {
	max-width: 560px; /* etwas breiter, weil 42ch */
	margin: 16px auto;
	padding: 16px;
}

.card {
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.10);
	padding: 16px;
}

h1 {
	font-size: 1.15rem;
	margin: 0 0 8px;
	text-align: center;
}

.meta {
	font-size: 0.8rem;
	color: #6b7280;
	text-align: center;
	margin-bottom: 12px;
}

/* ----------------------------------------------------
   Bon-Anzeige: exakt 42 Zeichen Breite
   42ch = 42 Zeichen in der aktuellen Monospace-Schrift
   ---------------------------------------------------- */
.bon {
	background: #f9fafb;
	border-radius: 10px;
	padding: 10px;
	border: 1px solid #e5e7eb;
	max-width: 42ch; /* <<< 42 Zeichen */
	margin: 0 auto;
	overflow-x: auto;
}

.bon.pre {
	margin: 0 auto;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Lucida Console", "Courier New", monospace;
	font-size: 14px;
	line-height: 1.4;
	white-space: pre; /* exakt wie Drucker: keine Umbrüche */
}

/* ----------------------------------------------------
   Token-Stile
   ---------------------------------------------------- */
.align-center {
	text-align: center;
}

.align-left {
	text-align: left;
}

.align-right {
	text-align: right;
}

.bold {
	font-weight: 700;
}

/* Invertierter Druck: über volle Zeilenbreite wirken lassen */
.invert {
	background: #000;
	color: #fff;
	display: inline-block;
	width: 100%;
	box-sizing: border-box;
	padding: 0 2px;
}

/* Größen: Annäherung an Thermodrucker */
.size-2x2 {
	font-size: 1.6em;
	font-weight: 700;
}

.size-2h {
	font-size: 1.4em;
}

.size-2w {
	letter-spacing: 0.15em;
}

.logo {
	text-align: center;
	font-weight: 700;
	margin: 6px 0;
}

/* ----------------------------------------------------
   QR-Code-Bereich
   ---------------------------------------------------- */
.qr-section {
	margin-top: 14px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	max-width: 40ch;
	margin-inline: auto;
}

.qr-card {
	border-radius: 10px;
	border: 1px solid #e5e7eb;
	background: #f9fafb;
	padding: 8px;
	text-align: center;
}

.qr-title {
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 4px;
}

.qr-img img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

details {
	font-size: 0.7rem;
	text-align: left;
	margin-top: 4px;
	color: #4b5563;
}

/* ----------------------------------------------------
   Footer / Hinweise / Links
   ---------------------------------------------------- */
.note {
	margin-top: 12px;
	font-size: 0.78rem;
	color: #6b7280;
	text-align: center;
}

.site-links {
	margin-top: 10px;
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	font-size: 0.8rem;
}

.site-links a {
	color: #2563eb;
	text-decoration: none;
}

.site-links a:hover {
	text-decoration: underline;
}

.footer {
	margin-top: 12px;
	font-size: 0.75rem;
	text-align: center;
	color: #9ca3af;
}

.error {
	color: #b91c1c;
	text-align: center;
	padding: 12px;
}
