@font-face{font-family:"Rovex Legal";font-style:normal;font-weight:400;font-display:swap;src:url('/Bilder/legal-fonts/LiberationSerif-Regular.ttf') format('truetype')}
@font-face{font-family:"Rovex Legal";font-style:normal;font-weight:700;font-display:swap;src:url('/Bilder/legal-fonts/LiberationSerif-Bold.ttf') format('truetype')}
#le-editor,#le-pdf{box-sizing:border-box;border:1px solid #484848;border-radius:10px;padding:0;background:#202020;color:#f3f3f3;width:min(1440px,96vw);max-width:96vw;height:94vh;max-height:94vh;font:0.875rem/1.5 system-ui,sans-serif;box-shadow:0 24px 80px #0008;overflow:auto}
#le-editor::backdrop,#le-pdf::backdrop{background:#000b;backdrop-filter:blur(4px)}
#le-editor *,#le-pdf *{box-sizing:border-box}
#le-editor [hidden],#le-pdf [hidden]{display:none!important}
#le-editor button,#le-pdf button{font:inherit;cursor:pointer;box-shadow:none;background-image:none;text-shadow:none}
#le-editor button:disabled{opacity:.5;cursor:default}
#le-editor :is(button,textarea,a):focus-visible,#le-pdf :is(button,a):focus-visible{outline:3px solid #ed6b6b;outline-offset:3px}
#le-editor a{color:#ffbaba;overflow-wrap:anywhere}
.le-header{padding:22px 26px;display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid #424242}
.le-header h2{font-size:1.5rem;line-height:1.25;margin:5px 0 7px}
.le-header p{font-size:.8125rem;color:#c4c4c4;margin:0}
.le-kicker{color:#c8c8c8;font-size:.75rem}
.le-toolbar{display:flex;gap:8px;flex-wrap:wrap;padding:14px 24px;background:#292929;position:sticky;top:0;z-index:3;border-bottom:1px solid #444}
#le-editor .le-button{border:1px solid #626262;background:#323232;color:#fff;border-radius:5px;padding:9px 12px;font-size:.8125rem;min-height:38px}
#le-editor .le-button:hover{background:#414141}
#le-editor .le-primary{background:#c91b23;color:#fff;border-color:#e02a32;font-weight:700}
#le-editor .le-primary:hover{background:#e0232b}
.le-statusbar{display:flex;justify-content:space-between;gap:15px;padding:10px 26px;font-size:.8125rem;color:#cadaca;background:#242424;font-variant-numeric:tabular-nums}
.le-statusbar #le-fields{color:#e1d0b6}
.le-error{color:#ffb3b3!important}
.le-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px}
.le-document{min-width:0;padding:28px;background:#3b3b3b}
#le-editor .le-paper{background:#fff;color:#111;padding:42px 50px;min-height:900px;box-shadow:0 2px 12px #0003;max-width:850px;margin:auto;font:1rem/1.5 "Rovex Legal",Georgia,serif}
.le-brand{display:flex;justify-content:space-between;align-items:center;gap:22px;padding-bottom:16px;border-bottom:1px solid #c7c7c7;margin-bottom:32px}
#le-editor .le-brand img{background:transparent;width:190px;max-width:45%;height:auto;padding:0;object-fit:contain}
.le-brand div{font: .6875rem/1.5 "Rovex Legal",Georgia,serif;color:#333;text-align:right}
.le-label{display:block;color:#626262;font: .75rem/1.4 system-ui,sans-serif;margin:0 0 14px}
#le-editor textarea{display:block;resize:vertical;width:100%;border:1px solid transparent;border-radius:3px;background:transparent;color:inherit;font:inherit;line-height:1.5;padding:6px 7px;min-height:36px;overflow:hidden;box-shadow:none;text-transform:none;letter-spacing:normal;white-space:pre-wrap}
#le-editor .le-paper textarea{background:transparent!important;color:#111!important;border:1px solid transparent!important;border-radius:3px!important;font-family:"Rovex Legal",Georgia,serif!important;font-size:1rem!important;font-weight:400!important;line-height:1.5!important;padding:6px 7px!important;box-shadow:none!important;min-height:36px!important}
#le-editor .le-paper textarea:hover{background:#fafafa!important;border-color:#ccc!important}
#le-editor .le-paper textarea:focus{background:#fff!important;border-color:#b71921!important;outline:2px solid #b71921;outline-offset:1px}
#le-editor .le-paper #le-title{font-size:1.375rem!important;font-weight:700!important;line-height:1.35!important;text-transform:uppercase;text-align:center;margin:10px 0 18px}
#le-editor .le-paper textarea[data-field=reference]{text-align:center}
#le-editor .le-paper textarea::placeholder{color:#666!important;font: .875rem/1.4 system-ui,sans-serif}
.le-company-label{padding:12px 0;border-top:1px solid #e3e3e3;border-bottom:1px solid #e3e3e3;margin:20px 0}
#le-editor .le-company-label textarea{font-size:.8125rem!important;color:#444!important}
.le-company-label small{display:block;font: .6875rem/1.5 system-ui,sans-serif;color:#666;margin-top:5px}
.le-section{margin:24px 0}
.le-section-heading{display:flex;align-items:flex-start;gap:3px;margin:20px 0 9px;color:#111}
.le-section-heading>span{font-weight:700;padding:6px 0}
#le-editor .le-section-heading textarea{font-weight:700!important;flex:1;min-width:0}
.le-tools{display:flex;flex-shrink:0;padding-top:4px}
#le-editor .le-tools button,#le-editor .le-row-action button,#le-editor .le-signature button{background:transparent;border:0;border-radius:4px;color:#666;font-size:1rem;padding:3px 6px;min-height:32px}
#le-editor .le-tools button:hover,#le-editor .le-row-action button:hover,#le-editor .le-signature button:hover{background:#fdebed;color:#a11118}
#le-editor .le-contract .le-section-heading{display:block;position:relative;padding:0 68px;margin-top:30px}
.le-contract .le-section-heading>span{display:block;text-align:center;padding:0}
#le-editor .le-contract .le-section-heading textarea{text-align:center}
.le-contract .le-tools{position:absolute;right:0;top:0}
#le-editor .le-contract [data-field=paragraphs]{line-height:1.65!important}
.le-table-scroll{overflow:auto;margin:14px 0 6px}
.le-table-scroll table{table-layout:fixed;width:100%;border-collapse:collapse;font-size:.875rem}
.le-table-scroll td,.le-table-scroll th{border:1px solid #bcbcbc;padding:2px;vertical-align:top}
.le-table-scroll th{background:#f4f4f4;text-align:left}
.le-table-scroll .le-row-action{width:30px;background:#f7f7f7;padding:1px;border-right:0}
#le-editor .le-table-scroll textarea{min-width:0!important;overflow-wrap:anywhere;font-size:.875rem!important}
#le-editor .le-table-scroll th textarea{font-weight:700!important}
#le-editor .le-inline,#le-editor .le-add{background:transparent;color:#7f151b;border:1px dashed #c3b4b5;border-radius:4px;padding:7px 10px;font: .75rem/1.4 system-ui,sans-serif;min-height:34px}
#le-editor .le-add{padding:11px 15px;width:100%;margin-top:14px}
.le-signatures{margin-top:30px;border-top:1px solid #ccc;padding-top:14px}
.le-signatures h3{font-size:1rem}
.le-signatures label{font: .75rem/1.4 system-ui,sans-serif;color:#626262}
.le-signature{margin:14px 0 0;display:flex;align-items:center;padding-top:26px;border-bottom:1px solid #999;max-width:430px}
.le-paper-footer{font: .75rem/1.5 "Rovex Legal",Georgia,serif;color:#555;border-top:1px solid #c7c7c7;margin-top:44px;padding-top:12px;text-align:center}
.le-sidebar{padding:26px 20px;font-size:.8125rem;min-width:0}
.le-sidebar h3{margin:0 0 14px;font-size:1rem}
.le-sidebar p{color:#d0d0d0}
.le-sidebar .le-purpose{margin:0 0 20px;line-height:1.5;color:#d8d8d8}
.le-sidebar ul{padding-left:18px;color:#ccc}
.le-sidebar li{margin:10px 0;overflow-wrap:anywhere}
.le-sidebar .le-approval{color:#ead8bd;padding:12px;background:#37322c;border-radius:5px;font-size:.75rem}
.le-sidebar label{display:block;margin-top:22px;font-weight:700}
#le-editor .le-sidebar textarea{margin:8px 0;background:#292929!important;border:1px solid #646464!important;color:#f3f3f3!important;font: .875rem/1.5 system-ui,sans-serif!important;min-height:160px!important}
.le-sidebar small{color:#bcbcbc;font-size:.75rem;line-height:1.5}
.le-sidebar details{margin-top:20px;border-top:1px solid #4a4a4a;padding-top:12px}
.le-sidebar summary{cursor:pointer}
.le-discard{color:#ffb0b0;border:0;background:transparent;padding:8px 25px;text-decoration:underline}
.le-field-links{max-height:260px;overflow:auto;margin:10px 0 18px}
.le-field-links button{display:flex;justify-content:space-between;gap:8px;align-items:center;width:100%;text-align:left;padding:9px;border:1px solid #58524b;background:#302d29;color:#f0ddc2;border-radius:4px;margin:6px 0;font-size:.75rem!important}
.le-field-links button span{overflow-wrap:anywhere}
.le-field-links button small{flex-shrink:0;background:#544638;border-radius:10px;padding:1px 6px}
.le-sidebar #le-open-fields{border-bottom:1px solid #444;margin-bottom:22px}
.le-sidebar #le-open-fields details{margin-top:0;border:0;padding-top:0}
.le-sidebar #le-open-fields summary{font-weight:700}
.le-older{padding:12px;background:#38322a;border:1px solid #716047;color:#f0dcb8;border-radius:5px;margin-bottom:16px}
.le-older button{display:block;margin-top:10px}
.le-drafting{margin-bottom:14px}
#le-history{padding:25px}
#le-history article{padding:15px 0;border-bottom:1px solid #484848;display:flex;align-items:center;gap:16px;flex-wrap:wrap}
#le-history article>div{flex:1}
#le-history p{color:#c4c4c4;font-size:.8125rem;margin:5px 0}
.le-list-item{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;border:1px solid #484848;border-radius:6px;margin-bottom:12px;background:#292929}
.le-list-item h3{margin:6px 0 0;font-size:1rem!important}
.le-list-item p{margin:3px 0;color:#ccc}
.le-list-item small{color:#b7b7b7}
.le-list-item>div{min-width:0;overflow-wrap:anywhere}
#ld-root .ld-purpose{font-size:.75rem;color:#c5c5c5;line-height:1.5;margin:7px 0 12px}
#le-pdf{display:none}
#le-pdf[open]{display:flex;flex-direction:column;gap:0}
#le-pdf header{display:flex;align-items:center;justify-content:space-between;padding:15px 20px;gap:20px}
#le-pdf button{border:0;background:#3b3b3b;color:white;padding:8px 15px;border-radius:5px;min-height:38px}
#le-pdf iframe{width:100%;flex:1;border:0;background:#fff}
#le-pdf>a{padding:12px 20px;color:#ffbaba}
@media(max-width:1050px){.le-layout{grid-template-columns:minmax(0,1fr)}.le-sidebar{border-top:1px solid #474747}.le-sidebar ul{columns:2;column-gap:36px}.le-sidebar li{break-inside:avoid}}
@media(max-width:620px){
 #le-editor,#le-pdf{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;margin:0;border:0}
 .le-header{padding:15px;align-items:flex-start}.le-header h2{font-size:1.1875rem}.le-header p{display:none}.le-header .le-button{max-width:130px}
 .le-toolbar{padding:10px;gap:6px}.le-statusbar{padding:9px 12px;flex-wrap:wrap}
 .le-document{padding:12px 8px}#le-editor .le-paper{padding:24px 14px}
 .le-brand{gap:12px}.le-brand img{width:145px!important}.le-brand div{font-size:.625rem}
 #le-editor .le-paper #le-title{font-size:1.25rem!important}
 #le-editor .le-paper textarea,#le-editor .le-company-label textarea,#le-editor .le-table-scroll textarea,#le-editor .le-sidebar textarea{font-size:1rem!important}
 #le-editor .le-contract .le-section-heading{padding:0}.le-contract .le-tools{position:static;justify-content:center;margin-top:4px}
 .le-table-scroll table{min-width:560px}.le-sidebar{padding:20px 16px}.le-sidebar ul{columns:1}
 .le-list-item{padding:14px;align-items:flex-start;flex-wrap:wrap}.le-list-item .ld-button{flex-shrink:0}
 #ld-root .ld-tabs{overflow:auto}#ld-root .ld-tab{flex-shrink:0;padding-left:11px;padding-right:11px}
}
@media(prefers-reduced-motion:reduce){#le-editor *{scroll-behavior:auto!important}}
