/* bpm-textpruefung.css · Textpruefung im Schreibfenster (Konzept 10.11.2026).
   Farben aus currentColor/halbtransparent, damit Tag- und Nachtmodus des Fensters beide passen. Eckig, keine Pillen. */
::highlight(tp-rs){ text-decoration: underline wavy #c0392b; text-underline-offset: 3px; }
::highlight(tp-gr){ text-decoration: underline double #2f6fb3; text-underline-offset: 3px; }
::highlight(tp-kv){ text-decoration: underline dashed #b7791f; text-decoration-thickness: 2px; text-underline-offset: 3px; }
::highlight(tp-akt){ background-color: rgba(200,168,75,.35); }

.tp-tb{ width:auto !important; padding:0 10px !important; font-size:12.5px; font-weight:500; white-space:nowrap; border-radius:4px; }
.tp-tb-ki{ color:var(--gold,#c8a84b); border:1px solid rgba(200,168,75,.4); background:transparent; }

.tp-panel{ border-top:1px solid rgba(128,128,128,.35); background:rgba(128,128,128,.08); font-size:13px; line-height:1.45; max-height:240px; overflow:auto; flex-shrink:0; }
.tp-kopf{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; padding:7px 12px; border-bottom:1px solid rgba(128,128,128,.25); position:sticky; top:0; background:inherit; }
.tp-kopf .tp-gr{ flex:1; }
.tp-zaehler{ display:inline-flex; gap:5px; align-items:center; font-size:12px; }
.tp-zaehler i{ width:12px; height:3px; display:inline-block; }
.tp-zaehler.tp-rs i{ background:#c0392b; } .tp-zaehler.tp-gr i{ background:#2f6fb3; } .tp-zaehler.tp-kv i{ background:#b7791f; }
.tp-liste{ display:flex; flex-direction:column; gap:6px; padding:8px 12px; }
.tp-leer{ padding:10px 12px; opacity:.75; }
.tp-item{ border:1px solid rgba(128,128,128,.35); border-left-width:3px; padding:6px 8px; border-radius:2px; cursor:pointer; }
.tp-item.tp-i-rs{ border-left-color:#c0392b; } .tp-item.tp-i-gr{ border-left-color:#2f6fb3; } .tp-item.tp-i-kv{ border-left-color:#b7791f; }
.tp-item.tp-akt{ background:rgba(200,168,75,.18); }
.tp-item small{ text-transform:uppercase; letter-spacing:.05em; font-size:10.5px; opacity:.7; margin-right:4px; }
.tp-item code{ background:rgba(128,128,128,.18); padding:0 4px; border-radius:2px; }
.tp-a{ display:flex; gap:6px; flex-wrap:wrap; margin-top:5px; }
.tp-btn{ font:inherit; font-size:12.5px; padding:4px 9px; border:1px solid rgba(128,128,128,.5); background:transparent; color:inherit; border-radius:3px; cursor:pointer; }
.tp-btn:hover{ border-color:var(--gold,#c8a84b); }
.tp-btn.tp-prim{ background:var(--gold,#c8a84b); border-color:#a98a2e; color:#1a1400; font-weight:600; }
.tp-btn:focus-visible,.tp-chg:focus-visible{ outline:2px solid var(--gold,#c8a84b); outline-offset:1px; }

.tp-modal{ position:fixed; inset:0; background:rgba(10,9,7,.55); display:flex; align-items:center; justify-content:center; z-index:100000; padding:12px; }
.tp-dlg{ background:#fbfaf6; color:#22201a; width:min(520px,100%); max-height:90vh; display:flex; flex-direction:column; border-radius:3px; border:1px solid #dcd6c4; box-shadow:0 10px 40px rgba(0,0,0,.4); }
.tp-dlg.tp-breit{ width:min(720px,100%); }
.tp-dlg header{ padding:12px 16px; border-bottom:1px solid #dcd6c4; font-weight:600; font-size:15px; }
.tp-dlg .tp-c{ padding:12px 16px; display:flex; flex-direction:column; gap:8px; overflow:auto; }
.tp-dlg footer{ padding:12px 16px; border-top:1px solid #dcd6c4; display:flex; gap:8px; justify-content:flex-end; flex-wrap:wrap; }
.tp-dlg .tp-btn{ border-color:#c9c2ad; }
.tp-w{ display:flex; gap:10px; border:1px solid #dcd6c4; border-left-width:3px; padding:8px 10px; border-radius:2px; font-size:13px; line-height:1.4; }
.tp-w-hoch{ border-left-color:#c0392b; } .tp-w-mittel{ border-left-color:#b7791f; }
.tp-wt{ font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.05em; min-width:96px; padding-top:1px; }
.tp-w code{ background:#f1eee4; padding:0 4px; border-radius:2px; }
.tp-diff{ font-size:14px; line-height:1.7; white-space:normal; }
.tp-chg{ cursor:pointer; }
.tp-chg del{ background:#fbdcd7; color:#7a1f14; text-decoration:line-through; }
.tp-chg ins{ background:#d6efdf; color:#14522f; text-decoration:none; }
.tp-chg.tp-aus del{ background:transparent; text-decoration:none; color:inherit; outline:1px dashed #b7791f; }
.tp-chg.tp-aus ins{ display:none; }
.tp-klein{ font-size:12px; color:#6d6858; margin:0; }

.tp-menue{ position:fixed; z-index:100000; width:300px; background:#fbfaf6; color:#22201a; border:1px solid #dcd6c4; box-shadow:0 6px 20px rgba(0,0,0,.3); border-radius:3px; }
.tp-menue button{ display:block; width:100%; text-align:left; padding:9px 12px; border:0; border-bottom:1px solid #f1eee4; background:transparent; font:inherit; font-size:13px; color:inherit; cursor:pointer; }
.tp-menue button small{ display:block; color:#6d6858; font-size:12px; }
.tp-menue button:hover{ background:rgba(200,168,75,.18); }
.tp-hinweis{ padding:8px 12px; font-size:12px; background:rgba(200,168,75,.14); }

.tp-set{ display:flex; justify-content:space-between; gap:16px; padding:10px 0; border-top:1px solid rgba(128,128,128,.25); align-items:flex-start; }
.tp-set>div{ min-width:0; } .tp-set b{ font-weight:600; } .tp-set span{ display:block; opacity:.75; font-size:12.5px; margin-top:2px; }
.tp-tg{ width:40px; height:22px; background:#cfc9b6; border:0; border-radius:2px; position:relative; cursor:pointer; flex:none; }
.tp-tg::after{ content:""; position:absolute; top:3px; left:3px; width:16px; height:16px; background:#fff; border-radius:1px; transition:left .12s; }
.tp-tg[aria-checked="true"]{ background:var(--gold,#c8a84b); } .tp-tg[aria-checked="true"]::after{ left:21px; }
.tp-tag{ display:inline-block !important; border:1px solid rgba(128,128,128,.4); padding:1px 6px; margin:2px 4px 2px 0; border-radius:2px; }
.tp-tag button{ border:0; background:transparent; color:inherit; cursor:pointer; padding:0 0 0 4px; }
@media (prefers-reduced-motion:reduce){ .tp-tg::after{ transition:none; } }
