/* Briefe: Maße in mm, damit Vorschau und Druck identisch sind. */
.sheet { background: #fff; overflow: hidden; break-after: page; position: relative; width: 297mm; height: 210mm; }
.sheet:last-child { break-after: auto; }
.sheet.pair { display: flex; gap: 12mm; padding: 6mm; }
/* großer Brief: hochkant gedreht auf dem Querformat-Blatt; inline-block verhindert Seitenumbruch im Brief */
.sheet.a4 > .letter { display: inline-block; vertical-align: top; margin: -33.5mm 0 0 53.5mm; transform: rotate(-90deg); }

.letter {
  --frame: #fff; --paper: #fffaf0; --accent: #23573f; --accent2: #c8102e; --stitch: #23573f;
  --badge: #23573f; --badge-ink: #fff; --tree: #23573f; --tree2: #2f7a55; --snow: #eaf2f8; --snow-line: #c4d7e6; --dot: #b9cfe0;
  position: relative; width: 136.5mm; height: 198mm; border-radius: 5mm; padding: 3.5mm; background: var(--frame);
  font-family: Andika, "Comic Sans MS", Verdana, sans-serif; color: #2a2a2a;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.letter.big { width: 190mm; height: 277mm; }
.paper {
  position: relative; height: 100%; border-radius: 2.5mm; background: var(--paper);
  display: flex; flex-direction: column; padding: 7mm 9mm 0; overflow: hidden;
}
.paper::before {
  content: ""; position: absolute; inset: 1.8mm; border: 0.45mm dashed var(--stitch); border-radius: 1.8mm; pointer-events: none;
}
.corner { position: absolute; top: 3.2mm; width: 9mm; height: 9mm; }
.corner.l { left: 3.2mm; }
.corner.r { right: 3.2mm; }
.corner .badge-bg { fill: var(--badge); stroke: var(--badge-ink); stroke-width: 1.2; }
.corner .flake { stroke: var(--badge-ink); stroke-width: 1.3; stroke-linecap: round; fill: none; }
.subtitle { text-align: center; font-size: 8pt; font-weight: bold; letter-spacing: 2.5px; color: var(--accent2); text-transform: uppercase; }
.heading {
  text-align: center; font-family: "Mountains of Christmas", Georgia, serif; font-weight: 700; color: var(--accent);
  line-height: 1.1; margin: 1.5mm 8mm 0; font-size: 21pt;
}
.big .heading { font-size: 30pt; }
.divider { display: block; width: 55%; height: 5mm; margin: 1.5mm auto 2.5mm; }
.divider .dl { stroke: var(--accent2); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1 6; }
.divider .ds { fill: var(--accent2); }
.divider .dc { fill: var(--accent); }
.content { flex: 1; min-height: 0; overflow: hidden; line-height: 1.42; font-size: 16pt; }
.big .content { font-size: 17pt; }
.content p { margin: 0 0 0.55em; white-space: pre-line; }
.content p.sign {
  text-align: right; font-family: "Mountains of Christmas", Georgia, serif; font-weight: 700; color: var(--accent);
  font-size: 1.15em; line-height: 1.2; margin-top: 0.3em;
}
.content p.ps { font-size: 0.9em; font-style: italic; }
.lfooter { margin: 0 -9mm; flex: 0 0 auto; }
.lfooter svg { display: block; width: 100%; height: auto; }
.lfooter .t1 { fill: var(--tree); }
.lfooter .t2 { fill: var(--tree2); }
.lfooter .trunk { fill: #6b4226; }
.lfooter .hill { fill: var(--snow); stroke: var(--snow-line); stroke-width: 0.8; }
.lfooter .dot { fill: var(--dot); }

/* ---------- Designs ---------- */
.d-zuckerstange { --frame: repeating-linear-gradient(45deg, #c8102e 0 3mm, #fff 3mm 6mm); }

.d-nordisch {
  --frame: radial-gradient(circle, #fff 0.55mm, transparent 0.65mm) 0 0 / 4mm 4mm,
    radial-gradient(circle, rgba(255, 255, 255, 0.6) 0.3mm, transparent 0.4mm) 2mm 2mm / 4mm 4mm, #b3202a;
  --paper: #fff; --accent: #b3202a; --accent2: #333; --stitch: #b3202a; --badge: #b3202a;
}

.d-winterwald {
  --frame: radial-gradient(circle, #fff 0.35mm, transparent 0.45mm) 0 0 / 7mm 6mm,
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 0.25mm, transparent 0.35mm) 3mm 3mm / 5mm 5mm, #1d2b4f;
  --paper: #f4f8fc; --accent: #1d2b4f; --accent2: #3f6fa8; --stitch: #9db7d6; --badge: #1d2b4f;
  --tree: #1f4d4a; --tree2: #3b7d64;
}

.d-lebkuchen {
  --frame: radial-gradient(circle, #a8754a 0.6mm, transparent 0.7mm) 0 0 / 5mm 5mm, #8a5a32;
  --paper: #fff8ec; --accent: #7a4a24; --accent2: #b3202a; --stitch: #c9a27a; --badge: #8a5a32;
}
.d-lebkuchen::after {
  content: ""; position: absolute; inset: 1.4mm; border: 0.7mm dashed #fff; border-radius: 4mm; pointer-events: none;
}

.d-sparsam {
  --frame: #fff; --paper: #fff; --accent: #222; --accent2: #555; --stitch: #999; --badge: #fff; --badge-ink: #333;
  --snow: #fff; --snow-line: #333; --dot: #999;
  border: 0.5mm solid #333; padding: 2mm;
}
.d-sparsam .paper { border: 0.25mm solid #333; }
.d-sparsam .lfooter .t1, .d-sparsam .lfooter .t2, .d-sparsam .lfooter .trunk { fill: #fff; stroke: #333; stroke-width: 0.8; }

/* ---------- Anleitungen hinter den Briefen ---------- */
@page guide { size: A4 landscape; margin: 12mm; }
.guide { page: guide; break-before: page; font: 10pt/1.4 Nunito, Arial, sans-serif; color: #222; }
.guide h1 { font: 700 20pt "Mountains of Christmas", serif; color: #1f4d3a; margin: 0 0 4mm; }
.guide-cols { column-count: 2; column-gap: 10mm; }
.gcard { break-inside: avoid; border: 0.3mm solid #ddd; border-radius: 3mm; padding: 3mm 4mm; margin: 0 0 4mm; }
.gcard h2 { font: 800 12pt Nunito, Arial, sans-serif; margin: 0.5mm 0 1mm; }
.gcard h2 span { font-weight: 400; color: #777; font-size: 9pt; }
.gcard p { margin: 0 0 1mm; }
.gcard ol { margin: 1mm 0; padding-left: 5mm; }
.gdate { font-size: 8.5pt; font-weight: 700; color: #c8102e; text-transform: uppercase; letter-spacing: 0.5px; }
.gsafe { color: #8a6100; }

/* ---------- Eltern-Plan ---------- */
.plan-print { font: 10.5pt/1.4 Nunito, Arial, sans-serif; color: #222; }
.plan-print h1 { font: 700 20pt "Mountains of Christmas", serif; margin: 0 0 2mm; color: #1f4d3a; }
.plan-print table { width: 100%; border-collapse: collapse; }
.plan-print th, .plan-print td { border-bottom: 0.3mm solid #ccc; padding: 2mm; vertical-align: top; text-align: left; }
.plan-print tr { break-inside: avoid; }
.plan-print td:first-child { white-space: nowrap; font-weight: 700; }
.plan-print .box { display: inline-block; width: 4mm; height: 4mm; border: 0.3mm solid #333; border-radius: 1mm; }
