:root { --papier: #f4efe4; --tinte: #1f1b16; --blass: #6d655a; --akzent: #b4442c; --linie: #d9cfbd; color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--papier); color: var(--tinte); font: 16px/1.4 system-ui, sans-serif; }
body { max-width: 780px; margin: 0 auto; padding: 10px 10px calc(30px + env(safe-area-inset-bottom)); }

/* Optionen (nur am Bildschirm) */
.optionen h1 { font-size: 22px; margin: 4px 0 10px; }
.zurueck { margin: 0; font-size: 15px; }
.zurueck a { color: #2c6e8f; }
fieldset { border: 1px solid var(--linie); border-radius: 10px; background: #fff; margin: 0 0 10px; padding: 6px 12px 8px; display: flex; flex-wrap: wrap; gap: 2px 16px; }
legend { font-size: 13px; color: var(--blass); padding: 0 4px; }
fieldset label { display: flex; align-items: center; gap: 6px; min-height: 40px; font-size: 16px; }
fieldset input { width: 20px; height: 20px; accent-color: var(--akzent); }
.bereich { width: 100%; display: grid !important; grid-template-columns: auto minmax(0,1fr) auto minmax(0,1fr); }
.bereich select { width: 100%; min-width: 0; font-size: 15px; padding: 6px; min-height: 40px; border: 1px solid var(--linie); border-radius: 8px; background: #fff; }
.drucken { width: 100%; min-height: 54px; border: 0; border-radius: 12px; background: var(--akzent); color: #fff; font-size: 19px; font-weight: 600; }
.drucken:disabled { opacity: .5; }
.tipp, .status { font-size: 14px; color: var(--blass); margin: 8px 2px; }

/* Heft – Bildschirmvorschau als Blätter */
.heft { margin-top: 16px; }
.deckblatt, .hino { background: #fff; padding: 18px 16px; margin: 0 0 14px; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.deckblatt h1 { font-size: 34px; margin: 40px 0 4px; text-align: center; }
.deckblatt .autor { text-align: center; font-size: 18px; margin: 0 0 8px; }
.deckblatt .klein { text-align: center; font-size: 12px; color: var(--blass); }
.inhalt { columns: 2; column-gap: 28px; margin: 30px 0 0; padding-left: 2.2em; font-size: 14px; line-height: 1.7; }
.inhalt a { color: inherit; text-decoration: none; }
.hino-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--linie); margin-bottom: 6px; }
.hino-kopf h2 { font-size: 21px; margin: 0 0 4px; }
.hino-info { margin: 0; font-size: 13px; color: var(--blass); white-space: nowrap; }
.satz svg { display: block; width: 100%; height: auto; }
.griffe { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.griff { border: 1px solid var(--linie); border-radius: 6px; padding: 4px 4px 0; text-align: center; font-weight: 700; font-size: 14px; }
.griff svg { display: block; }
.liedtext { white-space: pre-wrap; columns: 2 260px; column-gap: 28px; font-size: 14px; line-height: 1.45; margin: 10px 0 0; }
.hinweis, .unsicher { font-size: 12px; color: var(--blass); }
.unsicher ul { margin: 2px 0 0; padding-left: 1.2em; }
.unsicher p { margin: 8px 0 0; font-weight: 600; }

@page { size: A4; margin: 14mm 15mm; }
@media print {
  html, body { background: #fff; }
  body { max-width: none; padding: 0; }
  .optionen { display: none; }
  .heft { margin: 0; }
  .deckblatt, .hino { box-shadow: none; padding: 0; margin: 0; border-radius: 0; }
  .hino { break-before: page; }
  .griffe, .griff { break-inside: avoid; }
  .hino-kopf { break-after: avoid; }
  .liedtext { font-size: 12.5px; }
}
