/* Das lauschende Herz – Flyer zum Selbstdrucken (erste Runde, 2026-12-03): drei Entwürfe als A4-Druckbogen für Büro-
   und Heimdrucker. Erzeugt die Seiten werkzeug/bauen.py; Begründungen dort und in Design.md.

   Werte aus Marke/tokens.json (Finish 2 „Grau“) auf weißem Papier; Schrift Spectral, lokal (../fonts).
   Schwarz-Weiß (body.sw) ist eine eigene Fassung: Schrift in reinem Schwarz, Linien als Haarlinie, Fotos in eigenen Graustufen.
   Alles in Millimetern und Punkt; der Bogen ist A4 (210 × 297), jede Zelle ein ganzer Zettel. */

@import url("fonts/spectral.css");

:root {
  --tinte: #4A4541;          /* Lesetext */
  --titel-ton: #6E4A39;      /* Name, Einladung */
  --grau: #68625C;           /* Auskunft, Orte */
  --strich: #B5A993;         /* Rosette, Lot, Marken */
  --akzent: #AE5B38;         /* die Glut */
  --knopf: #5E4436;
  --flaeche: #E8DFCE;
  --sand: #F1EADD;
  --haar: 0.2mm;             /* Strichstärke von Rosette und Lot */
  --schrift: "Spectral", "Iowan Old Style", Georgia, serif;
}
body.sw {
  --tinte: #000; --titel-ton: #000; --grau: #000; --akzent: #000;
  --strich: #000; --haar: 0.1mm;
}
body.sw .nur-farbe, body.farbe .nur-sw { display: none !important; }

/* ================================================================ die Seite am Bildschirm */
html { background: var(--sand); }
body { margin: 0; font-family: var(--schrift); color: #4A4541; -webkit-font-smoothing: antialiased; }
.leiste { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.8rem 1.6rem; padding: 0.9rem clamp(1rem, 4vw, 2.6rem); background: rgba(241, 234, 221, 0.94); border-bottom: 1px solid #DDD3C2; }
.marke-kopf { display: flex; align-items: center; gap: 0.75rem; }
.marke-kopf .zeichen { width: 1.9rem; height: 1.9rem; color: #6E4A39; }
.marke-kopf .zeichen circle { fill: #AE5B38; }
.marke-kopf p { margin: 0; line-height: 1.2; }
.marke-kopf .wer { font-weight: 300; font-size: 1.2rem; color: #6E4A39; }
.marke-kopf .was { font-style: italic; font-weight: 300; font-size: 0.95rem; color: #68625C; }
.wahl { display: flex; gap: 0.15rem; padding: 0.2rem; border: 1px solid #B5A993; border-radius: 999px; font: 400 0.98rem/1 var(--schrift); }
.wahl button { all: unset; cursor: pointer; padding: 0.55rem 1rem; border-radius: 999px; color: #4A4541; white-space: nowrap; }
.wahl button[aria-pressed="true"] { background: #4A4541; color: #F1EADD; }
.knoepfe { display: flex; align-items: center; gap: 0.9rem; font: 400 1.05rem/1 var(--schrift); }
.drucken { all: unset; cursor: pointer; padding: 0.8rem 1.6rem; border-radius: 3px; background: #5E4436; color: #F1EADD; letter-spacing: 0.02em; }
.drucken:hover { background: #4A3428; }
.pdf { color: #5E4436; text-decoration: underline; text-decoration-color: #AE5B38; text-underline-offset: 0.25em; }
.wahl button:focus-visible, .drucken:focus-visible, .pdf:focus-visible { outline: 2px solid #AE5B38; outline-offset: 3px; }
.buehne { display: flex; justify-content: center; padding: 2rem 1rem 1.2rem; }
.rahmen { position: relative; }
.rahmen .bogen { position: absolute; left: 0; top: 0; transform-origin: 0 0; box-shadow: 0 0.3mm 0.8mm rgba(62, 50, 40, 0.18), 0 6mm 14mm -6mm rgba(62, 50, 40, 0.35); }
.anleitung { max-width: 46rem; margin: 0 auto; padding: 0.4rem 1.2rem 3.5rem; font-size: 1.02rem; line-height: 1.55; }
.anleitung ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: 1.2rem 2rem; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.anleitung li { counter-increment: s; }
.anleitung li b { display: block; font-weight: 400; font-size: 1.12rem; color: #6E4A39; }
.anleitung li b::before { content: counter(s) "  "; color: #AE5B38; white-space: pre; }
.anleitung li span { color: #4A4541; }
.anleitung li span b { display: inline; font-size: inherit; color: inherit; font-weight: 500; }
.anleitung li span b::before { content: none; }
.tipp { margin: 1.8rem 0 0; padding-top: 1.1rem; border-top: 1px solid #DDD3C2; font-size: 0.93rem; color: #68625C; }
.tipp a { color: #5E4436; text-decoration-color: #AE5B38; text-underline-offset: 0.22em; }

/* ================================================================ Druck: nur der Bogen, 1 : 1 */
@media print {
  html, body { background: none; }
  .leiste, .anleitung { display: none !important; }
  .buehne { display: block; padding: 0; }
  .rahmen { width: auto !important; height: auto !important; }
  .rahmen .bogen { position: relative; transform: none !important; box-shadow: none; }
}

/* ================================================================ der Bogen */
.bogen { position: relative; overflow: hidden; background: #fff; color: var(--tinte); font-family: var(--schrift);
  font-size: 9pt; line-height: 1.55; font-kerning: normal; font-variant-ligatures: common-ligatures; text-rendering: geometricPrecision;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.bogen.hoch { width: 210mm; height: 297mm; }
.bogen.quer { width: 297mm; height: 210mm; }
.bogen *, .bogen *::before, .bogen *::after { box-sizing: border-box; margin: 0; }
.bogen img, .bogen svg { display: block; }
.zelle { position: absolute; }
.hoch .zelle { width: 105mm; height: 148.5mm; }
.quer .zelle { width: 148.5mm; height: 210mm; }
.marken { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.marken path { fill: none; stroke: var(--strich); stroke-width: 0.25; }
.marken .falz { stroke-dasharray: 1.2 1; }
body.sw .marken path { stroke: #000; stroke-width: 0.12; }

.zettel { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.zettel > * { flex-shrink: 0; }
.zettel > .feder { flex: 1 1 0; align-self: stretch; }

/* ---------- die Bausteine (wie Version 4) ---------- */
.zeichen { flex: none; color: var(--titel-ton); }
.zeichen circle { fill: var(--akzent); }
.kopfblock { text-align: center; color: var(--titel-ton); }
.kopfblock .zeichen { margin: 0 auto; }
.name { font-weight: 200; letter-spacing: -0.016em; line-height: 1.06; color: var(--titel-ton); white-space: nowrap; }
.ruf { font-style: italic; font-weight: 300; line-height: 1.36; color: var(--tinte); }
.ruf span { display: block; }
.orte { display: flex; align-items: center; justify-content: center; color: var(--grau); white-space: nowrap; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.24em; }
.orte span { margin-right: -0.24em; }
.orte .glut { flex: none; position: relative; top: -0.1em; }
.glut circle, .faden circle { fill: var(--akzent); }
.faden { width: 1.5mm; height: 1.5mm; }
.rosette path { fill: none; stroke: var(--strich); stroke-width: var(--haar); vector-effect: non-scaling-stroke; }
.rosette circle { fill: var(--akzent); }
.rosette { width: var(--ros); height: var(--ros); }
.lot { width: 2mm; height: var(--lot); }
.lot line { stroke: var(--strich); stroke-width: var(--haar); }
.lotpunkt { width: 1.4mm; height: 1.4mm; margin-top: -0.2mm; }
.fenster { position: relative; overflow: hidden; align-self: stretch; height: var(--fenster); }
.fenster img { width: 100%; height: 100%; object-fit: cover; object-position: var(--blick, 50% 50%); }

.vorwort { font-style: italic; font-weight: 300; line-height: 1.42; color: var(--tinte); text-wrap: balance; }
.vorwort.zeilen span { display: block; }
.vorwort.zeilen span:nth-child(3) { margin-top: 1.1mm; }
.erzaehl p span { display: block; text-wrap: balance; }
.treffen { color: var(--titel-ton); line-height: 1.45; text-wrap: balance; }
.treffen span { display: block; }
.weiter { display: flex; align-items: center; justify-content: center; text-align: left; }
.qr path { fill: var(--tinte); }
body.farbe .qr path { fill: #3E3936; }   /* eine Spur dunkler als der Lesetext: liest sich auch auf blassem Druck */
.hinweis { line-height: 1.5; color: var(--grau); }
.adresse { font-weight: 400; color: var(--titel-ton); text-decoration: underline; text-decoration-color: var(--akzent);
  text-decoration-thickness: 0.2mm; text-underline-offset: 0.28em; white-space: nowrap; }
body.sw .adresse { text-decoration-thickness: 0.15mm; }

/* ================================================================ 1 „Fenster“: zwei Handzettel A5 */
/* Ränder 12 mm (seitlich) und 13 mm (oben, unten): Bürodrucker lassen 3 bis 5 mm frei, „an den Druckbereich anpassen“
   nimmt noch einmal bis 6 mm. Das Fenster wie beim Aushang, flacher, damit der ganze Text Platz hat. */
.e1 { padding: 13mm 12mm 12.5mm; --fenster: 50mm; --blick: 78% 55%; }
.e1 .kopfblock { margin-top: 8.5mm; }
.e1 .kopfblock .zeichen { width: 7.2mm; height: 7.2mm; margin-bottom: 3mm; }
.e1 .name { font-size: 22pt; }
.e1 .ruf { margin-top: 2.6mm; font-size: 12.4pt; }
.e1 .orte { margin-top: 3.6mm; font-size: 6.8pt; gap: 2.4mm; }
.e1 .orte .glut { width: 0.9mm; height: 0.9mm; }
.e1 .vorwort { max-width: 104mm; font-size: 10.4pt; }
.e1 .erzaehl { margin-top: 3.4mm; max-width: 98mm; font-size: 8.7pt; line-height: 1.5; }
.e1 .erzaehl p + p { margin-top: 1.6mm; }
.e1 .treffen { font-size: 9.4pt; }
.e1 .treffen span + span { margin-top: 0.6mm; }
.e1 .weiter { gap: 4.5mm; margin-top: 3.4mm; }
.e1 .qr svg { width: 16mm; height: 16mm; }
.e1 .hinweis { max-width: 62mm; font-size: 8pt; }

/* ================================================================ 2 „Rosette“: vier Kärtchen A6 */
.e2 { padding: 12mm 11mm 11.5mm; --ros: 17mm; --lot: 5.5mm; }
.e2 .rosette { margin-bottom: 4.6mm; }
.e2 .name { font-size: 18.5pt; }
.e2 .ruf { margin-top: 1.8mm; font-size: 10.6pt; }
.e2 .orte { margin-top: 2.8mm; font-size: 5.9pt; gap: 1.9mm; }
.e2 .orte .glut { width: 0.8mm; height: 0.8mm; }
.e2 .lot { margin-top: 3.6mm; }
.e2 .vorwort { margin-top: 3.2mm; max-width: 80mm; font-size: 9.2pt; line-height: 1.4; }
.e2 .erzaehl { margin-top: 2.4mm; max-width: 81mm; font-size: 8pt; line-height: 1.45; }
.e2 .erzaehl p + p { margin-top: 1.2mm; }
.e2 .karte { display: flex; align-items: center; justify-content: center; gap: 3.6mm; text-align: left; }
.e2 .qr svg { width: 14mm; height: 14mm; }
.e2 .treffen { font-size: 8.3pt; line-height: 1.38; }
.e2 .hinweis { margin-top: 1.1mm; font-size: 8pt; }

/* ================================================================ 3 „Faltkarte“: Klappkarte A5 */
/* Vorn das A6 von Version 4 mal Wurzel 2, hinten seine Rückseite; seitlich 12 mm statt 8,13 mm (Druckrand). */
.e3 { padding: 15mm 12mm 14mm; }
.e3.vorn { --fenster: 112mm; --blick: 50% 77%; }
.e3.vorn .kopfblock { margin-top: 14.5mm; }
.e3.vorn .kopfblock .zeichen { width: 8.6mm; height: 8.6mm; margin-bottom: 4.2mm; }
.e3.vorn .name { font-size: 27pt; }
.e3.vorn .ruf { margin-top: 3.8mm; font-size: 15pt; }
.e3.vorn .orte { margin-top: 5.6mm; font-size: 7.8pt; gap: 2.8mm; }
.e3.vorn .orte .glut { width: 1.05mm; height: 1.05mm; }
.e3.hinten { --fenster: 36mm; --blick: 50% 50%; --ros: 14mm; padding-bottom: 15mm; }
.e3.hinten .vorwort { margin-top: 4.6mm; font-size: 12pt; }
.e3.hinten .erzaehl { margin-top: 5mm; font-size: 9.3pt; line-height: 1.58; }
.e3.hinten .erzaehl p + p { margin-top: 2.2mm; }
.e3.hinten .treffen { font-size: 10pt; max-width: 90mm; }
.e3.hinten .weiter { gap: 5mm; margin-top: 4.4mm; }
.e3.hinten .qr svg { width: 17mm; height: 17mm; }
.e3.hinten .hinweis { max-width: 60mm; font-size: 8.4pt; }

/* nur im Netz (bauen.py, web_upload) */
@page { size: A4 landscape; margin: 0; }
.fuss { text-align: center; font-size: 13px; margin: 0 auto 40px; color: var(--grau); }
.fuss a { color: inherit; }
@media print { .fuss { display: none; } }
