/* TWS Projektbrief (Relaunch P10). Formularteile kommen aus tws-anfrage (wie Quick-Check), Farben und Schriften aus tws-theme-2026.
   Hier nur Ergebnis, Brief und A4-Druck. */
.tws-pb{margin-bottom:var(--a6)}
.tws-pb .tws-quickcheck__frage>legend{float:left;width:100%}
.tws-pb .tws-quickcheck__frage>legend~*{clear:left}
.tws-pb .tws-anfrage__hilfe{margin-top:0}
.tws-pb .tws-anfrage__wahl{align-items:flex-start;padding:.45rem 0}
.tws-pb .tws-anfrage__wahl input{margin-top:.15rem}
.tws-pb__ergebnis{border-top:2px solid var(--tief);margin-top:2rem;padding-top:1.25rem}
.tws-pb__knoepfe{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 .75rem}
.tws-pb__leise{color:var(--tief);background:#fff}
.tws-pb__leise:hover{color:#fff}
.tws-pb__status{border-left:3px solid var(--akzent);padding-left:.75rem;color:var(--text)}
/* Der Brief: auf dem Bildschirm als Blatt, im Druck als A4-Seite */
.tws-pb-brief{background:#fff;border:1px solid var(--linie-hell);border-radius:var(--rad);padding:clamp(1rem,4vw,2.25rem);font-size:.9375rem;line-height:1.45}
.tws-pb-brief__kopf{border-bottom:1.5px solid var(--text);padding-bottom:1rem;margin-bottom:1rem}
.tws-pb-brief__ueber{font-family:var(--schrift-mono);font-size:.8125rem;color:var(--text-2);margin:0 0 .25rem}
article.tws-pb-brief h3,article.tws-pb-brief h4{margin:1rem 0 .4rem}
article.tws-pb-brief .tws-pb-brief__titel{font-size:1.35rem;margin:0}
article.tws-pb-brief h5{font-size:.95rem;font-weight:700;margin:.6rem 0 .2rem}
.tws-pb-brief .schriftfeld{margin:.75rem 0 0}
.tws-pb-brief .schriftfeld>div{flex-basis:9rem;padding:.4rem .6rem}
.tws-pb-brief .schriftfeld>div:last-child{flex-basis:100%}
.tws-pb-brief ol{list-style:none;margin:0;padding:0}
article.tws-pb-brief li{margin:0 0 .3rem;padding:0 0 0 2.1rem;position:relative}
.tws-pb-brief__nr{position:absolute;left:0;font-family:var(--schrift-mono);color:var(--text-2)}
.tws-pb-brief .pruefliste{columns:2 17rem;column-gap:1.5rem;margin:0}
article.tws-pb-brief .pruefliste>li{break-inside:avoid;padding-left:1.6rem}
.tws-pb-brief .pruefliste>li::before{width:.85rem;height:.85rem;top:.25em}
.tws-pb-brief__schritt{border-left:3px solid var(--tief);padding:.1rem 0 .1rem 1rem;margin-top:1rem}
article.tws-pb-brief .tws-pb-brief__schritt h4{margin-top:0}
.tws-pb-brief__schritt p{margin:0 0 .3rem}
.tws-pb-brief__schritt-titel{font-weight:700}
.tws-pb-brief__fuss{border-top:1px solid var(--linie-hell);margin-top:1rem;padding-top:.5rem;font-size:.8125rem;color:var(--text-2)}
.tws-pb-beispiel{margin:1.5rem 0;max-width:46rem}
.tws-pb-beispiel figcaption{font-size:.875rem;color:var(--text-2);margin-top:.5rem}
@media print{
  /* Ab Seite 2 eine Kopfzeile, damit lose Blätter zuzuordnen bleiben (Thomas, 12.11.2026) */
  html.tws-pb-druck .tws-pb-brief--eigen{page:projektbrief}
  @page projektbrief{@top-left{content:"Projektbrief Telefonanlage, Seite " counter(page);font:7.5pt "Atkinson Hyperlegible Next",sans-serif;color:#000;vertical-align:bottom;padding-bottom:3mm}}
  @page projektbrief:first{@top-left{content:none}}
  html.tws-pb-druck body *:not(.tws-pb-brief--eigen):not(.tws-pb-brief--eigen *):not(:has(.tws-pb-brief--eigen)){display:none!important}
  html.tws-pb-druck body *:has(.tws-pb-brief--eigen){display:block!important;margin:0!important;padding:0!important;border:0!important;max-width:none!important;width:auto!important;background:none!important}
  article.tws-pb-brief{border:0;padding:0;font-size:8.5pt;line-height:1.3;color:#000}
  article.tws-pb-brief .tws-pb-brief__titel{font-size:14pt}
  article.tws-pb-brief h4{font-size:10.5pt;margin:3mm 0 1mm;break-after:avoid}
  article.tws-pb-brief h5{font-size:8.5pt;margin:0 0 .5mm;break-after:avoid}
  .tws-pb-brief__kopf{padding-bottom:2mm;margin-bottom:1mm;border-color:#000}
  .tws-pb-brief .schriftfeld{margin-top:2mm}
  .tws-pb-brief .schriftfeld>div{padding:.8mm 2mm}
  .tws-pb-brief .schriftfeld dt{font-size:7pt;margin:0}
  .tws-pb-brief .schriftfeld dd{font-size:8pt}
  .tws-pb-brief__fragen,.tws-pb-brief .pruefliste{columns:2;column-gap:6mm}
  .tws-pb-brief__fragen h4{column-span:all}
  .tws-pb-brief__stelle{margin-bottom:1.5mm}
  article.tws-pb-brief li{margin-bottom:.7mm;padding-left:5.5mm;break-inside:avoid}
  article.tws-pb-brief .pruefliste>li{padding-left:5mm}
  .tws-pb-brief .pruefliste>li::before{width:2.6mm;height:2.6mm;top:.4mm}
  .tws-pb-brief__schritt{border-color:#000;margin-top:3mm;break-inside:avoid}
  .tws-pb-brief__fuss{font-size:7pt;margin-top:3mm;padding-top:1.5mm;border-color:#000;color:#000}
}
