/* JCself — Anleitung (07.10.2026). Ergänzt style-20261002.css: Leitgedanke, Bildschirmfotos,
   Nachschlagetabellen, kleine Überschriften, Druckfassung. */
.stand { font-size: .92rem; color: var(--muted); }
.toc-pdf { margin-top: var(--s-3); font-size: .95rem; padding-left: .7rem; }
.toc ol { font-size: .98rem; }

.leit { margin: var(--s-4) 0 0; padding: var(--s-4) var(--s-4) var(--s-4) var(--s-5); background: var(--card);
  border-left: 3px solid var(--bronze); border-radius: 0 6px 6px 0; max-width: var(--measure); }
.leit p + p { margin-top: var(--s-3); }
.leit .leit-satz { font: italic 500 clamp(1.7rem, 3.2vw, 2.3rem)/1.15 var(--f-display); color: var(--bronze); }

h4 { font: 600 1.12rem/1.3 var(--f-body); margin: 0; }
.flow > * + h4 { margin-top: var(--s-4); }
.flow > h4 + * { margin-top: var(--s-2); }
.flow dl { margin-bottom: 0; }
.opt { font-weight: 400; color: var(--muted); font-size: .92em; }
kbd { background: var(--card); border: 1px solid var(--line); border-bottom-width: 2px; padding: .02em .35em; border-radius: 4px; white-space: nowrap; }
.steps code, .field code { overflow-wrap: anywhere; }

figure.shot { margin: var(--s-4) 0 0; max-width: 46rem; }
figure.shot img { display: block; width: 100%; height: auto; background: #f2f5f5; border: 1px solid var(--line);
  border-radius: 6px; box-shadow: 0 12px 26px -20px rgb(34 28 22 / .55); }
figure.shot.narrow { max-width: 30rem; }
figure.shot figcaption { margin-top: var(--s-2); font-size: .9rem; color: var(--muted); }

table.iv.ref { min-width: 0; width: 100%; max-width: 46rem; }
table.iv.ref td { vertical-align: top; }
table.iv.ref td:first-child { color: var(--ink); font-weight: 600; font-variant-numeric: normal; }
@media (min-width: 40rem) { table.iv.ref td:first-child { width: 30%; } }

.note strong { font-weight: 600; }

/* ---------- Druckfassung (PDF) ---------- */
.print-only { display: none; }
@page { size: A4; margin: 16mm 17mm 18mm; }
@media print {
  html { scroll-behavior: auto; }
  body { background: #fff; font-size: 10.4pt; line-height: 1.5; color: #1f1a15; }
  .site-head, .site-foot, .toc, .menu-btn, .lang { display: none !important; }
  .print-only { display: block; }
  main { padding: 0; }
  .wrap { max-width: none; padding-inline: 0; }
  .page-head { display: none; }
  .docs { display: block; padding-top: 0; }
  p, ul.clean, .field, .note, .leit, figure.shot, table.iv.ref { max-width: none; }
  .flow > * + h2 { margin-top: 0; }
  h2 { break-before: page; font-size: 24pt; padding-bottom: 3mm; border-bottom: 1px solid var(--line); margin-bottom: 4mm; }
  h3 { font-size: 15pt; }
  h4 { font-size: 11pt; }
  .flow > * + h3 { margin-top: 7mm; }
  h2, h3, h4 { break-after: avoid; }
  figure.shot, .field, tr, .leit, .note, .steps li, pre { break-inside: avoid; }
  figure.shot { max-width: none; }
  figure.shot.narrow { max-width: 115mm; }
  figure.shot img { box-shadow: none; }
  a { color: inherit; text-decoration: none; }
  .field { padding-block: 2.2mm; grid-template-columns: 45mm minmax(0, 1fr); gap: 5mm; }
  .stand { display: none; }
  table.iv { font-size: 9.6pt; }
  pre { white-space: pre-wrap; }
  .steps { gap: 2.2mm; margin-top: 3mm; }
}

/* Nachtrag: breitere Felder, kein Umbruch in kurzen Befehlen, Bild als Link */
.flow > dl > .field { max-width: 46rem; }
@media (min-width: 44rem) { .flow > dl > .field { grid-template-columns: 12rem minmax(0, 1fr); } }
.field dd ul.clean { margin: .3em 0 .5em; padding-left: 1.1em; }
code.nw { white-space: nowrap; }
figure.shot a { display: block; }
figure.shot a:focus-visible img { outline: 2px solid var(--bronze); outline-offset: 2px; }
@media print { .flow > dl > .field { grid-template-columns: 45mm minmax(0, 1fr); } }
