/* Brief-Editor wie Word (Walter 22.11.2026) — js/brief-editor.js.
   Oben die Leiste, darunter ein weisses Blatt in der Textbreite des Briefs (168 mm),
   Schrift in pt: was hier steht, steht so im PDF. Das Blatt bleibt auch dunkel weiss. */
.be-huelle{display:flex;flex-direction:column;min-height:0}
.be-huelle.be-fill{flex:1 1 auto;min-height:220px}
.be-leiste{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:6px;margin-bottom:8px;
    border-radius:12px;background:var(--oc-flaeche-2);border:1px solid var(--oc-rand)}
.be-leiste select{width:auto;min-width:0;padding:6px 10px;font-size:13px}
.be-leiste .be-schrift{min-width:150px}
.be-leiste .be-groesse{min-width:110px}
.be-trenner{width:1px;align-self:stretch;margin:2px 4px;background:var(--oc-rand)}
.be-knopf{width:34px;height:32px;border-radius:9px;border:1px solid var(--oc-rand);background:var(--oc-feld);
    color:var(--oc-text-stark);font-size:15px;line-height:1;cursor:pointer;font-family:Georgia,'Times New Roman',serif}
.be-knopf:hover{background:var(--oc-hover)}
.be-knopf.aktiv{background:var(--oc-primaer);color:var(--oc-primaer-text);border-color:var(--oc-primaer)}
.be-bogen{flex:1 1 auto;min-height:0;overflow:auto;padding:14px;border-radius:12px;background:var(--oc-flaeche-2);
    border:1px solid var(--oc-rand-schwach)}
.be-blatt{width:168mm;max-width:calc(100% - 20mm);box-sizing:content-box;margin:0 auto;min-height:calc(100% - 20mm);
    padding:10mm;outline:none;background:var(--oc-papier);color:var(--oc-papier-text);line-height:1.35;
    white-space:pre-wrap;overflow-wrap:break-word;border-radius:4px;box-shadow:var(--oc-papier-schatten)}
.be-blatt div{min-height:1.35em}
.be-blatt:empty::before{content:attr(data-leer);color:var(--oc-text-3);pointer-events:none}
.be-blatt:focus{box-shadow:var(--oc-papier-schatten),0 0 0 2px var(--oc-rand-stark)}
/* Lese-Ansicht (HR) mit Formaten: eine Zeile je div. */
.be-lese div{min-height:1.4em}
