/*
 * Coachingkasten: Ergebnisblatt für den Druck (ab 2.5.0), gemeinsam für alle Tools.
 * assets/druck.js legt beim Drucken ein eigenes Blatt (#ck-druck) direkt unter <body> an:
 * Kopf mit Logo, Adresse und Datum, Titel der Methode, eine Kopie des Tools mit Eingaben als Text.
 * Alles andere auf der Seite wird für den Druck ausgeblendet (display:none), deshalb gibt es keine leeren Seiten mehr.
 * Ohne das Skript (Klasse ck-druck-an fehlt) druckt der Browser die Seite wie gewohnt.
 */
#ck-druck{display:none}
@media print{
  @page{margin:14mm 15mm 15mm}
  html.ck-druck-an,html.ck-druck-an body{background:#fff!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important}
  html.ck-druck-an body>*:not(#ck-druck){display:none!important}
  html.ck-druck-an #ck-druck{display:block;color:var(--ck-ink,#14233b);font-size:10.5pt;line-height:1.5}
  #ck-druck,#ck-druck *{-webkit-print-color-adjust:exact;print-color-adjust:exact}

  /* Kopf und Titel (bewusst keine Fußzeile: sie landete sonst oft allein auf einer zweiten Seite) */
  #ck-druck .ck-kopf{display:flex;justify-content:space-between;align-items:flex-end;gap:10mm;padding-bottom:3mm;border-bottom:1.5pt solid var(--ck-acc,#1e4fa3)}
  #ck-druck .ck-marke{font-weight:700;font-size:13pt;line-height:1;color:var(--ck-acc,#1e4fa3)}
  #ck-druck .ck-marke img{display:block;height:7mm;width:auto;max-width:70mm}
  #ck-druck .ck-datum{font-size:9pt;opacity:.72;white-space:nowrap}
  #ck-druck .ck-titel{font-size:21pt;line-height:1.15;margin:6mm 0 6mm;padding:0;color:inherit}

  /* Tool im Blatt: volle Breite, Blocksatz statt Flex-Spalten (bricht in allen Browsern sauber um) */
  #ck-druck .ck-inhalt>*{max-width:none;margin:0;display:block}
  #ck-druck :is(.lr-panel,.ct-panel,.sz-panel,.em-panel,.eb-head,.eb-result,.ck-unten){display:block}
  #ck-druck :is(.ck-inhalt>*,.lr-panel,.ct-panel,.sz-panel,.em-panel,.eb-head,.eb-result,.ck-unten)>*+*{margin-top:5mm}
  #ck-druck h2{font-size:1.35em}
  #ck-druck h3{font-size:1.12em}
  #ck-druck p{max-width:none}

  /* Bedienelemente raus, Eingaben als Text */
  #ck-druck :is(.lr-steps,.lr-foot,.lr-nav,.lr-noprint,.ct-steps,.ct-foot,.ct-nav,.ct-hints,.ct-noprint,.sz-letters,.sz-foot,.sz-nav,.sz-noprint,.eb-setup,.eb-foot,.eb-noprint,.em-steps,.em-foot,.em-nav,.em-noprint,noscript){display:none!important}
  #ck-druck button:not([aria-pressed=true]){display:none!important}
  #ck-druck button[aria-pressed=true]{flex:none;font-size:.85em;font-weight:600;padding:1mm 3mm;border-radius:99px;box-shadow:none}
  #ck-druck .ck-wert{white-space:pre-wrap;overflow-wrap:anywhere}
  #ck-druck div.ck-wert{border-left:1.5pt solid var(--ck-line,#d1d5db);padding-left:3mm}
  #ck-druck details>summary{display:none}

  /* Seitenumbrüche: Überschriften bleiben beim Folgenden, Kästen und Zeilen bleiben ganz */
  #ck-druck :is(h2,h3,h4,.ct-label,.sz-label,.em-label){break-after:avoid;page-break-after:avoid}
  #ck-druck :is(.lr-wheel,.lr-facts,.lr-quad,.lr-focus,.lr-notes p,.ct-card,.ct-note,.ct-q,.ct-rr,.ct-stmt,.ct-member,.ct-stage,.ct-scale,.ct-legend,.ct-circles,.ct-sq,.ct-tetra,.ct-field2,.ct-chain,.ct-stairs>div,.ct-chart,.ct-kpis,.ct-field,.sz-crit>div,.sz-focus,.sz-ba,.sz-goal,.sz-field,.eb-printhead,.eb-above,.eb-level,.eb-sentence,.em-rr,.em-note,.em-q,.em-sw>div,tr,li,.ck-wert){break-inside:avoid;page-break-inside:avoid}
  #ck-druck .em-scroll{overflow:visible}
  #ck-druck .ct-chart{max-width:150mm}
  #ck-druck .ct-tip{display:none}

  /* Lebensrad: Rad links, Kennzahlen und Startpunkt rechts, Vier-Felder-Tafel und Notizen darunter über die volle Breite */
  #ck-druck .lr-main{display:block}
  #ck-druck .lr-main::after{content:"";display:block;clear:both}
  #ck-druck .lr-wheel{position:static;float:left;width:84mm;margin:0 8mm 0 0}
  #ck-druck .lr-panel{margin:0 0 0 92mm}
  #ck-druck .lr-panel :is(h2,h3){clear:none} /* Astra setzt bei Überschriften clear:both */
  #ck-druck .lr-facts{gap:3mm 10mm}
  #ck-druck .lr-facts b{font-size:1.35em}
  #ck-druck .lr-quad>div{padding:3mm 4mm}
}
