/* =====================================================================================================
   Baukasten „Belege“ für die Demos von liquit-software.de (Gestaltung). Logik: /assets/js/belege.js.
   Zwei Welten, klar getrennt:
     Welt des Betriebs (Papier, Mailprogramm, Tabelle …): weißes Blatt, schwarze Schrift, Systemschriften,
     graue Werkzeugleisten, kein LIQUIT-Grün. Klassen .lqb-* (Belege) und .lqm-* (Mailprogramm).
     Welt von LIQUIT (was die Software tut): Markierungen auf dem Blatt (.lqb-marke), Leiste im Mailprogramm
     (.lqm-lq), Buchungssatz und Zeitleiste in den Farben der Demo-Grundlage.
   Maße des Blatts in mm (A4 210 × 297 mm, DIN 5008 Form B); am Bildschirm skaliert der Betrachter per transform,
   der Text bleibt Text. Druck/PDF: @media print setzt jedes Blatt auf eine eigene Seite ohne Rand.
   ===================================================================================================== */

:root {
  --lqb-sans: Arial, 'Liberation Sans', Helvetica, sans-serif;
  --lqb-schmal: 'Arial Narrow', 'Liberation Sans Narrow', 'Nimbus Sans Narrow', Arial, sans-serif;
  --lqb-serif: Georgia, 'Times New Roman', 'Liberation Serif', serif;
  --lqb-breit: Verdana, 'DejaVu Sans', Tahoma, sans-serif;
  --lqb-mono: 'Courier New', 'Liberation Mono', 'DejaVu Sans Mono', monospace;
  --lqb-ui: system-ui, 'Segoe UI', 'Liberation Sans', Arial, sans-serif;
  --lq-gruen: #006850; --lq-gruen-hell: rgba(16, 185, 129, .12); --lq-ocker: #8A4B00; --lq-rot: #A33A1E;
}

/* ---------- 1. Dokument (A4-Blatt) ---------- */
.lqb-dokument { display: contents; }
.lqb-blatt {
  --lqb-schrift: var(--lqb-sans); --lqb-farbe: #222; --lqb-akzent: #222;
  position: relative; width: 210mm; height: 297mm; overflow: hidden; flex: none;
  background: #FFFFFF; color: #141414; font: 9.5pt/1.38 var(--lqb-schrift); text-align: left;
  font-variant-numeric: normal; letter-spacing: 0; -webkit-font-smoothing: auto;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 2px 4px rgba(0, 0, 0, .16), 0 10px 28px rgba(0, 0, 0, .14);
}
.lqb-blatt *, .lqb-blatt *::before, .lqb-blatt *::after { box-sizing: border-box; }
.lqb-blatt p { margin: 0 0 2.2mm; }
.lqb-blatt[data-schrift="schmal"] { --lqb-schrift: var(--lqb-schmal); font-size: 10pt; }
.lqb-blatt[data-schrift="serif"] { --lqb-schrift: var(--lqb-serif); font-size: 10pt; }
.lqb-blatt[data-schrift="breit"] { --lqb-schrift: var(--lqb-breit); font-size: 8.6pt; }
.lqb-blatt[data-schrift="mono"] { --lqb-schrift: var(--lqb-mono); }
.lqb-z { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }

/* Falz- und Lochmarken (DIN 5008 Form B) */
.lqb-falz { position: absolute; left: 3.5mm; width: 4mm; height: 0; border-top: .25mm solid #9A9A9A; }
.lqb-falz--1 { top: 105mm; } .lqb-falz--2 { top: 210mm; } .lqb-falz--loch { top: 148.5mm; width: 6mm; }

/* Briefkopf */
.lqb-kopf { position: absolute; top: 11mm; left: 25mm; right: 20mm; height: 32mm; display: flex; align-items: flex-start; justify-content: space-between; gap: 8mm; color: var(--lqb-farbe); }
.lqb-kopf__logo { display: flex; align-items: center; gap: 3.5mm; }
.lqb-kopf__logo svg { display: block; width: auto; height: 15mm; flex: none; }
.lqb-kopf__name { font-size: 15pt; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.lqb-kopf__zusatz { display: block; margin-top: 1mm; font-size: 8pt; font-weight: 400; letter-spacing: .02em; color: #555; }
.lqb-kopf__adr { font-size: 7.6pt; line-height: 1.45; text-align: right; color: #333; }
.lqb-kopf--rechts { flex-direction: row-reverse; }
.lqb-kopf--rechts .lqb-kopf__adr { text-align: left; }
.lqb-kopf--balken { top: 0; left: 0; right: 0; height: 40mm; padding: 11mm 20mm 0 25mm; border-top: 5mm solid var(--lqb-akzent); }
.lqb-kopf--linie::after { content: ''; position: absolute; left: 0; right: 0; bottom: 1mm; border-bottom: .5mm solid var(--lqb-akzent); }
.lqb-blatt[data-schrift="serif"] .lqb-kopf__name { font-weight: 400; font-size: 17pt; letter-spacing: .02em; font-variant: small-caps; }

/* Anschriftfeld (Form B: 20 mm vom linken Rand, 45 mm vom oberen Rand, 85 × 45 mm) */
.lqb-anschrift { position: absolute; top: 45mm; left: 20mm; width: 85mm; height: 45mm; padding: 5mm 5mm 0; }
.lqb-absender { display: block; margin-bottom: 3mm; font-size: 6.6pt; line-height: 1.2; text-decoration: underline; text-decoration-thickness: .15mm; text-underline-offset: .6mm; color: #333; white-space: nowrap; overflow: hidden; }
.lqb-empf { font-size: 10pt; line-height: 1.32; }
.lqb-blatt[data-schrift="breit"] .lqb-empf { font-size: 9pt; }

/* Informationsblock rechts (ab 125 mm) */
.lqb-info { position: absolute; top: 50mm; left: 125mm; width: 75mm; font-size: 8pt; line-height: 1.42; }
.lqb-blatt[data-schrift="breit"] .lqb-info { font-size: 7.1pt; }
.lqb-blatt[data-schrift="breit"] .lqb-kopf__adr { font-size: 6.8pt; }
.lqb-blatt[data-schrift="breit"] .lqb-fuss { font-size: 5.7pt; }
.lqb-blatt[data-schrift="breit"] .lqb-kopf__name { font-size: 13.5pt; }
.lqb-info table { width: 100%; border-collapse: collapse; }
.lqb-info th { padding: 0 2mm 0 0; font-weight: 400; color: #444; text-align: left; white-space: nowrap; vertical-align: top; }
.lqb-info td { padding: 0; text-align: left; vertical-align: top; }
.lqb-info tr.lqb-info__abstand th, .lqb-info tr.lqb-info__abstand td { padding-top: 2mm; }
.lqb-info strong { font-weight: 700; }

/* Inhalt */
.lqb-inhalt { position: absolute; top: 98.5mm; left: 25mm; right: 20mm; bottom: 31mm; }
.lqb-folge .lqb-inhalt { top: 34mm; }
.lqb-betreff { margin: 0 0 4.5mm; font-size: 11.5pt; font-weight: 700; line-height: 1.25; }
.lqb-betreff small { display: block; margin-top: .8mm; font-size: 9pt; font-weight: 400; color: #333; }
.lqb-text { margin: 0 0 4mm; }
.lqb-text p:last-child { margin-bottom: 0; }

/* Positionen */
.lqb-pos { width: 100%; border-collapse: collapse; font-size: 8.4pt; line-height: 1.3; }
.lqb-blatt[data-schrift="breit"] .lqb-pos { font-size: 7.6pt; }
.lqb-pos th { padding: 1.4mm 1.2mm; border-bottom: .35mm solid #222; font-weight: 700; text-align: left; vertical-align: bottom; white-space: nowrap; }
.lqb-pos td { padding: 1.5mm 1.2mm; border-bottom: .15mm solid #C8C8C8; vertical-align: top; }
.lqb-pos th:first-child, .lqb-pos td:first-child { padding-left: 0; }
.lqb-pos th:last-child, .lqb-pos td:last-child { padding-right: 0; }
.lqb-pos .lqb-z, .lqb-pos th.lqb-z { text-align: right; }
.lqb-pos td small { display: block; margin-top: .4mm; font-size: 7.4pt; color: #555; }
.lqb-pos__nr { width: 8mm; } .lqb-pos__art { width: 23mm; } .lqb-pos__menge { width: 15mm; } .lqb-pos__eh { width: 13mm; }
.lqb-pos__preis { width: 21mm; } .lqb-pos__ges { width: 23mm; }
.lqb-pos tr.lqb-pos__uebertrag td { border-bottom: 0; padding-top: 2mm; font-style: italic; color: #333; }
.lqb-kopf-farbig .lqb-pos th { border-bottom: 0; background: var(--lqb-akzent); color: #FFFFFF; }
.lqb-kopf-farbig .lqb-pos th:first-child { padding-left: 1.5mm; } .lqb-kopf-farbig .lqb-pos td:first-child { padding-left: 1.5mm; }
.lqb-kopf-farbig .lqb-pos th:last-child { padding-right: 1.5mm; } .lqb-kopf-farbig .lqb-pos td:last-child { padding-right: 1.5mm; }
.lqb-kopf-grau .lqb-pos th { background: #EDEDED; border-bottom: .3mm solid #888; }

/* Summen */
.lqb-summen { width: 78mm; margin: 3mm 0 0 auto; border-collapse: collapse; font-size: 9pt; }
.lqb-summen th { padding: .7mm 3mm .7mm 0; font-weight: 400; text-align: left; white-space: nowrap; }
.lqb-summen td { padding: .7mm 0; }
.lqb-summen tr.lqb-summen__end th, .lqb-summen tr.lqb-summen__end td { padding-top: 1.6mm; border-top: .35mm solid #222; font-weight: 700; font-size: 10pt; }
.lqb-summen tr.lqb-summen__end td { border-bottom: .9mm double #222; }
.lqb-unter { margin-top: 5mm; font-size: 8.8pt; }
.lqb-unter p { margin: 0 0 1.6mm; }
.lqb-gruss { margin-top: 5mm; }

/* Fuß in drei oder vier Spalten */
.lqb-fuss { position: absolute; left: 25mm; right: 20mm; bottom: 9mm; display: grid; grid-template-columns: 1.15fr 1fr 1.15fr 1.1fr; gap: 4mm; padding-top: 2mm; border-top: .2mm solid #9A9A9A; font-size: 6.4pt; line-height: 1.42; color: #3A3A3A; }
.lqb-fuss--3 { grid-template-columns: repeat(3, 1fr); }
.lqb-fuss b { font-weight: 700; color: #1A1A1A; }
.lqb-seite { position: absolute; right: 20mm; bottom: 25mm; font-size: 7.4pt; color: #444; }
.lqb-folgekopf { position: absolute; top: 12mm; left: 25mm; right: 20mm; display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 2mm; border-bottom: .2mm solid #9A9A9A; font-size: 8.4pt; color: var(--lqb-farbe); }
.lqb-folgekopf svg { height: 9mm; width: auto; }

/* Stempel, Handschrift, leere Stelle */
.lqb-stempel { position: absolute; padding: 2mm 3.5mm; border: .6mm solid #2949A8; border-radius: 1.5mm; color: #2949A8; font: 700 9pt/1.25 var(--lqb-mono); letter-spacing: .04em; text-transform: uppercase; transform: rotate(-6deg); opacity: .78; mix-blend-mode: multiply; }
.lqb-stempel small { display: block; font-size: 7.4pt; font-weight: 400; text-transform: none; }
.lqb-stempel--rot { border-color: #B42318; color: #B42318; }
.lqb-hand { font: italic 400 13pt/1.1 'Segoe Print', 'Bradley Hand', 'Comic Sans MS', 'URW Chancery L', cursive; color: #1C3FAA; transform: rotate(-3deg); }
.lqb-leer { display: inline-block; min-width: 24mm; min-height: 3.6mm; vertical-align: top; }

/* Formular (Tagesbericht, Prüfbericht …) */
.lqb-formular { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: .3mm solid #222; border-left: .3mm solid #222; }
.lqb-formular > div { min-height: 11mm; padding: 1.2mm 1.8mm 1.6mm; border-right: .3mm solid #222; border-bottom: .3mm solid #222; }
.lqb-formular label { display: block; margin-bottom: .8mm; font-size: 6.6pt; color: #444; text-transform: uppercase; letter-spacing: .03em; }
.lqb-formular span { display: block; font-size: 9.4pt; white-space: pre-line; }
.lqb-formular .lqb-hand { font-size: 12pt; }

/* Lesefassung einer XRechnung (neutrale, genormte Darstellung) */
.lqb-blatt--lese { --lqb-schrift: var(--lqb-sans); font-size: 8.6pt; }
.lqb-lese { position: absolute; inset: 14mm 16mm 14mm 16mm; }
.lqb-lese__kopf { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 2.5mm; margin-bottom: 4mm; border-bottom: .5mm solid #333; }
.lqb-lese__kopf h2 { margin: 0; font-size: 15pt; font-weight: 700; }
.lqb-lese__kopf span { font-size: 7.6pt; color: #555; text-align: right; }
.lqb-lese__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3mm 6mm; margin-bottom: 4mm; }
.lqb-lese__box { border: .25mm solid #BDBDBD; }
.lqb-lese__box h3 { margin: 0; padding: 1.2mm 2mm; background: #EFEFEF; border-bottom: .25mm solid #BDBDBD; font-size: 8pt; font-weight: 700; }
.lqb-lese__box table { width: 100%; border-collapse: collapse; }
.lqb-lese__box th { width: 45%; padding: .8mm 2mm; font-weight: 400; color: #444; text-align: left; vertical-align: top; }
.lqb-lese__box td { padding: .8mm 2mm; vertical-align: top; }
.lqb-lese__box th i { display: inline-block; min-width: 10.5mm; font-style: normal; font-size: 6.6pt; color: #888; }
.lqb-lese .lqb-pos { margin-top: 1mm; }
.lqb-lese .lqb-pos th { background: #EFEFEF; border-bottom: .25mm solid #BDBDBD; padding-left: 1.5mm; }
.lqb-lese .lqb-pos td { padding-left: 1.5mm; }

/* Kassenbon (Thermopapier, 80 mm) */
.lqb-blatt--bon { width: 76mm; height: auto; padding: 7mm 5mm 9mm; background: #FBFAF6; color: #262626; font: 8.6pt/1.34 var(--lqb-mono); box-shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 6px 16px rgba(0, 0, 0, .14); }
.lqb-bon__kopf { margin-bottom: 3mm; text-align: center; }
.lqb-bon__kopf svg { display: block; height: 11mm; width: auto; margin: 0 auto 1.5mm; }
.lqb-bon__kopf strong { display: block; font-size: 11pt; letter-spacing: .04em; }
.lqb-bon__trenn { margin: 1.6mm 0; border-top: .3mm dashed #555; }
.lqb-bon table { width: 100%; border-collapse: collapse; }
.lqb-bon td { padding: 0; vertical-align: top; }
.lqb-bon td.lqb-z { padding-left: 2mm; }
.lqb-bon__menge td { padding-left: 3mm; color: #444; }
.lqb-bon__summe td { padding-top: .8mm; font-size: 11pt; font-weight: 700; }
.lqb-bon__klein { font-size: 7.2pt; color: #444; }
.lqb-bon__strich { height: 11mm; margin: 2.5mm 4mm 1mm; background: repeating-linear-gradient(90deg, #222 0 .35mm, transparent .35mm .7mm, #222 .7mm 1.5mm, transparent 1.5mm 1.9mm, #222 1.9mm 2.2mm, transparent 2.2mm 3mm); }
.lqb-bon__mitte { text-align: center; }

/* ---------- 5. Weitere Gegenstände ---------- */

/* Fax / Scan: Kennung oben, leicht schief, körnig */
/* Filter nur auf den Inhalt, damit die Markierungen farbig bleiben */
.lqb-scan { transform: rotate(-.55deg); }
.lqb-scan > :not(.lqb-marken) { filter: grayscale(1) contrast(1.28) brightness(1.02); }
.lqb-scan::after { content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.4 1.12'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23k)'/%3E%3C/svg%3E"); }
.lqb-faxkennung { position: absolute; top: 3mm; left: 8mm; right: 8mm; z-index: 3; display: flex; justify-content: space-between; font: 7.4pt/1 var(--lqb-mono); color: #222; }

/* Handyfoto: Beleg auf einem Tisch, Perspektive, Schatten, leichte Unschärfe */
.lqb-foto { position: relative; width: 132mm; height: 176mm; overflow: hidden; flex: none; border-radius: 1mm;
  background: radial-gradient(120% 80% at 30% 20%, rgba(255, 250, 235, .55), transparent 60%),
    repeating-linear-gradient(97deg, rgba(90, 60, 30, .05) 0 2.5mm, rgba(255, 255, 255, .04) 2.5mm 4mm, rgba(70, 45, 20, .06) 4mm 7mm),
    linear-gradient(160deg, #B08A62, #8C6743 55%, #6F5034);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2), 0 10px 30px rgba(0, 0, 0, .18); }
.lqb-foto::after { content: ''; position: absolute; inset: 0; z-index: 6; pointer-events: none; background: radial-gradient(130% 100% at 50% 40%, transparent 55%, rgba(0, 0, 0, .28)); }
.lqb-foto__beleg { position: absolute; left: 50%; top: 50%; transform-origin: 50% 50%; filter: blur(.22px) saturate(.92) brightness(.98);
  transform: translate(-50%, -50%) perspective(260mm) rotateX(14deg) rotateZ(-5deg) scale(.86); box-shadow: 4mm 7mm 9mm rgba(30, 18, 6, .38); }
.lqb-foto__beleg .lqb-blatt { box-shadow: none; }
.lqb-foto__licht { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .16), transparent 40%, rgba(0, 0, 0, .1)); }
.lqb-foto__kante { position: absolute; z-index: 1; border-radius: 1mm; }

/* Sprachnachricht (Blase wie in einem Messenger, ohne Ton) */
.lqb-sprache { display: inline-flex; flex-direction: column; gap: 6px; max-width: 360px; padding: 8px 10px 6px; border-radius: 12px 12px 12px 3px; background: #FFFFFF; box-shadow: 0 1px 1px rgba(0, 0, 0, .12); font: 14px/1.4 var(--lqb-ui); color: #1B1B1B; }
.lqb-sprache__zeile { display: flex; align-items: center; gap: 10px; }
.lqb-sprache__knopf { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; background: #5A6670; color: #FFFFFF; cursor: pointer; }
.lqb-sprache__knopf svg { width: 14px; height: 14px; fill: currentColor; }
.lqb-sprache__welle { position: relative; display: flex; align-items: center; gap: 2px; height: 30px; flex: 1; min-width: 150px; }
.lqb-sprache__welle i { display: block; width: 3px; flex: none; border-radius: 2px; background: #B9C2C9; }
.lqb-sprache__welle i.an { background: #4C5A66; }
.lqb-sprache__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; color: #6B7680; }
.lqb-sprache__text { margin: 2px 0 0; font-size: 14px; color: #222; }
.lqb-sprache__text span { opacity: .18; transition: opacity .2s; }
.lqb-sprache__text span.an { opacity: 1; }
.lqb-chat { padding: 14px; border-radius: 10px; background: #E9E4DC; }

/* Tabelle (Blatt einer Tabellenkalkulation) */
.lqb-tabelle { max-width: 100%; overflow: auto; border: 1px solid #C8C8C8; background: #FFFFFF; font: 12.5px/1.2 var(--lqb-ui); color: #1A1A1A; }
.lqb-tabelle__leiste { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-bottom: 1px solid #D4D4D4; background: #F3F3F3; font-size: 12px; color: #444; }
.lqb-tabelle__leiste b { min-width: 42px; padding: 2px 6px; border: 1px solid #CFCFCF; background: #FFFFFF; font-weight: 400; }
.lqb-tabelle__leiste span { flex: 1; padding: 2px 6px; border: 1px solid #CFCFCF; background: #FFFFFF; font-family: var(--lqb-mono); }
.lqb-tabelle table { border-collapse: collapse; }
.lqb-tabelle th, .lqb-tabelle td { height: 22px; padding: 0 6px; border-right: 1px solid #E1E1E1; border-bottom: 1px solid #E1E1E1; white-space: nowrap; }
.lqb-tabelle thead th { position: sticky; top: 0; background: #EFEFEF; border-color: #CFCFCF; font-weight: 400; color: #555; text-align: center; }
.lqb-tabelle tbody th { position: sticky; left: 0; min-width: 34px; background: #EFEFEF; border-color: #CFCFCF; font-weight: 400; color: #555; text-align: center; }
.lqb-tabelle td.lqb-z { text-align: right; }
.lqb-tabelle tr.lqb-tabelle__kopf td { font-weight: 700; background: #FAFAFA; }
.lqb-tabelle__reiter { display: flex; gap: 2px; padding: 0 8px; border-top: 1px solid #D4D4D4; background: #F3F3F3; font-size: 12px; }
.lqb-tabelle__reiter span { padding: 4px 12px; color: #555; }
.lqb-tabelle__reiter span.an { background: #FFFFFF; color: #1A1A1A; border-bottom: 2px solid #5A6670; }

/* Telefonnotiz / Anruf */
.lqb-anruf { max-width: 420px; border: 1px solid #D4D4D4; border-radius: 10px; background: #FFFFFF; font: 14px/1.45 var(--lqb-ui); color: #1A1A1A; overflow: hidden; }
.lqb-anruf__kopf { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #E4E4E4; background: #F6F6F6; }
.lqb-anruf__symbol { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: #5A6670; color: #FFFFFF; }
.lqb-anruf__kopf strong { display: block; font-size: 15px; }
.lqb-anruf__kopf small { color: #666; font-size: 12.5px; }
.lqb-anruf__text { padding: 12px 14px; }
.lqb-anruf__text p { margin: 0 0 8px; }
.lqb-anruf__text b { font-weight: 600; color: #555; }

/* ---------- 2. Blattansicht (wie ein PDF-Betrachter) ---------- */
.lqb-betrachter { display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 1px solid #C9CDD1; border-radius: 6px; background: #E6E8EA; overflow: hidden; font: 13px/1.3 var(--lqb-ui); color: #222; container-type: inline-size; }
.lqb-leiste { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; min-height: 40px; padding: 4px 8px; border-bottom: 1px solid #C9CDD1; background: #F4F5F6; }
.lqb-reiter { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.lqb-reiter button { position: relative; padding: 7px 11px; border: 0; border-radius: 4px; background: transparent; color: #444; font: inherit; white-space: nowrap; cursor: pointer; }
.lqb-reiter button:hover { background: #E7E9EB; }
.lqb-reiter button[aria-selected="true"] { background: #FFFFFF; color: #111; box-shadow: 0 0 0 1px #C9CDD1; font-weight: 600; }
.lqb-reiter button[data-zustand]::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; vertical-align: 1px; background: var(--lq-gruen); }
.lqb-reiter button[data-zustand="warnung"]::after { background: #B26B00; }
.lqb-reiter button[data-zustand="fehler"]::after { background: #C0392B; }
.lqb-datei { display: flex; align-items: center; gap: 7px; min-width: 0; flex: 1 1 170px; color: #333; }
.lqb-datei span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lqb-datei:empty { flex: 1 1 0; }
.lqb-leiste [hidden] { display: none !important; }
.lqb-typ { flex: none; padding: 2px 5px; border-radius: 3px; background: #6B7280; color: #FFFFFF; font: 700 10px/1.2 var(--lqb-ui); letter-spacing: .04em; }
.lqb-typ--pdf { background: #B83B2E; } .lqb-typ--xml { background: #8A5A00; } .lqb-typ--bild { background: #3F6E8C; } .lqb-typ--csv { background: #4B7A3A; }
.lqb-werkzeug { display: flex; align-items: center; gap: 2px; margin-left: auto; color: #444; }
.lqb-werkzeug button, .lqb-werkzeug a { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 30px; height: 30px; padding: 0 7px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: inherit; font: inherit; text-decoration: none; cursor: pointer; white-space: nowrap; }
.lqb-werkzeug button:hover, .lqb-werkzeug a:hover { background: #E7E9EB; border-color: #D3D6D9; color: #111; }
.lqb-werkzeug svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lqb-werkzeug output { min-width: 46px; text-align: center; font-variant-numeric: tabular-nums; }
.lqb-werkzeug .lqb-trenn { width: 1px; height: 20px; margin: 0 4px; background: #D3D6D9; }
.lqb-umschalter { display: inline-flex; padding: 2px; border-radius: 5px; background: #E2E4E7; }
.lqb-umschalter button { height: 26px; padding: 0 10px; border: 0; border-radius: 4px; background: transparent; font: inherit; color: #444; cursor: pointer; }
.lqb-umschalter button[aria-pressed="true"] { background: #FFFFFF; color: #111; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.lqb-flaeche { position: relative; flex: 1; min-height: 0; overflow: auto; padding: 18px; overscroll-behavior: contain; }
.lqb-seiten { display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: min-content; }
.lqb-rahmen { position: relative; flex: none; }
.lqb-rahmen > .lqb-blatt, .lqb-rahmen > .lqb-foto { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.lqb-betrachter.ist-klein .lqb-rahmen { cursor: zoom-in; }
.lqb-lupe { position: absolute; right: 10px; bottom: 10px; z-index: 8; display: none; align-items: center; gap: 6px; padding: 7px 11px; border: 0; border-radius: 999px; background: rgba(30, 34, 38, .82); color: #FFFFFF; font: 600 12.5px/1 var(--lqb-ui); pointer-events: none; }
.lqb-betrachter.ist-klein .lqb-lupe { display: inline-flex; }
.lqb-betrachter.ist-voll { position: fixed; inset: 0; z-index: 1000; border: 0; border-radius: 0; }
.lqb-betrachter.ist-voll .lqb-flaeche { padding: 12px; }
.lqb-betrachter.ist-voll .lqb-seiten { align-items: flex-start; }
.lqb-schliessen { display: none !important; }
.lqb-betrachter.ist-voll .lqb-schliessen { display: inline-flex !important; }
.lqb-xmlblatt { position: relative; width: 100%; }
.lqb-xmlblatt__hinweis { margin: 0 0 8px; padding: 8px 12px; border: 1px solid #D3D6D9; border-radius: 4px; background: #FFFFFF; font-size: 12.5px; color: #444; }
.lqb-xml { margin: 0; min-height: 100%; padding: 12px 0; background: #FFFFFF; border: 1px solid #D3D6D9; font: 12px/1.6 var(--lqb-mono); color: #1E1E1E; white-space: pre; counter-reset: z; tab-size: 2; }
.lqb-xml span.lqb-xz { display: block; padding: 0 14px 0 0; }
.lqb-xml span.lqb-xz::before { counter-increment: z; content: counter(z); display: inline-block; width: 40px; margin-right: 12px; padding-right: 8px; border-right: 1px solid #E3E3E3; color: #9A9A9A; text-align: right; }
.lqb-xml .t { color: #22548F; } .lqb-xml .a { color: #8A3A00; } .lqb-xml .v { color: #1F6F2E; } .lqb-xml .k { color: #8A8A8A; }
.lqb-xml span.lqb-xz.ist-hell { background: var(--lq-gruen-hell); box-shadow: inset 3px 0 0 var(--lq-gruen); }
.lqb-stand { font-size: 11.5px; color: #666; }
/* Schmale Blattansicht (Handy): Reiter in eigener Zeile, Werkzeuge kompakt */
@container (max-width: 560px) {
  .lqb-leiste { gap: 2px 6px; padding: 4px 6px; }
  .lqb-reiter { flex: 1 0 100%; }
  .lqb-datei { flex: 1 1 0; min-width: 0; }
  .lqb-umschalter { order: 5; flex: 1 0 100%; justify-content: stretch; }
  .lqb-umschalter button { flex: 1; }
  .lqb-seitenzahl, .lqb-werkzeug .lqb-trenn, .lqb-werkzeug [data-z="fit"] { display: none; }
  .lqb-werkzeug output { min-width: 38px; }
  .lqb-original span { display: none; }
  .lqb-betrachter.ist-voll .lqb-schliessen span { display: inline; }
}

/* ---------- 3. Markierungen (Welt von LIQUIT) ---------- */
.lqb-marken { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.lqb-marke { --f: var(--lq-gruen); position: absolute; border: calc(1.6px / var(--lqb-s, 1)) solid var(--f); border-radius: calc(3px / var(--lqb-s, 1)); background: rgba(16, 185, 129, .07); pointer-events: auto; cursor: help; animation: lqb-rein .32s ease-out both; }
.lqb-marke b { position: absolute; left: calc(-1.6px / var(--lqb-s, 1)); bottom: 100%; margin-bottom: calc(2px / var(--lqb-s, 1)); padding: calc(1px / var(--lqb-s, 1)) calc(5px / var(--lqb-s, 1)); border-radius: calc(3px / var(--lqb-s, 1)); background: var(--f); color: #FFFFFF; font: 600 calc(9.5px / var(--lqb-s, 1))/1.35 'Geist Mono', ui-monospace, monospace; letter-spacing: .02em; white-space: nowrap; }
.lqb-marke.still { animation: none; }
.lqb-marke.rechts b { left: auto; right: calc(-1.6px / var(--lqb-s, 1)); }
.lqb-marke.unten b { bottom: auto; top: 100%; margin: calc(2px / var(--lqb-s, 1)) 0 0; }
.lqb-marke--warnung { --f: #A35F00; background: rgba(255, 170, 30, .12); }
.lqb-marke--fehler { --f: #B42318; background: rgba(220, 60, 40, .1); }
.lqb-marke--fehlt { --f: #B42318; border-style: dashed; background: repeating-linear-gradient(135deg, rgba(220, 60, 40, .1) 0 4px, transparent 4px 9px); }
.lqb-marke.ist-hell { background: rgba(16, 185, 129, .22); box-shadow: 0 0 0 calc(4px / var(--lqb-s, 1)) rgba(16, 185, 129, .35); z-index: 2; }
.lqb-marke--warnung.ist-hell { background: rgba(255, 170, 30, .28); box-shadow: 0 0 0 calc(4px / var(--lqb-s, 1)) rgba(255, 170, 30, .4); }
.lqb-marke--fehler.ist-hell, .lqb-marke--fehlt.ist-hell { background: rgba(220, 60, 40, .22); box-shadow: 0 0 0 calc(4px / var(--lqb-s, 1)) rgba(220, 60, 40, .32); }
.lqb-marke.ist-ruhig:not(.ist-hell) b { display: none; }
.lqb-marke.ist-hell { z-index: 3; }
.ist-hell[data-zeige-feld] { background: var(--lq-gruen-hell) !important; box-shadow: inset 3px 0 0 var(--lq-gruen); }
[data-zeige-feld] { cursor: default; transition: background-color .15s; }
@keyframes lqb-rein { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }

/* ---------- 4. Mailprogramm (neutral, Akzent Blau für Auswahl) ---------- */
.lqm { --b: #2F5FB3; --b-hell: #E5EDFA; --rand: #D9DCE0; --grau: #F3F4F6; display: flex; flex-direction: column; min-width: 0; height: 100%; min-height: 560px; container-type: inline-size; border: 1px solid #C9CDD1; border-radius: 8px; background: #FFFFFF; color: #1F2328; font: 13.5px/1.42 var(--lqb-ui); overflow: hidden; }
.lqm button { font: inherit; color: inherit; }
.lqm-titel { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px 0 12px; background: #E9EBEE; border-bottom: 1px solid var(--rand); font-size: 12.5px; color: #3A3F45; }
.lqm-titel__name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: center; }
.lqm-titel__fenster { display: flex; gap: 14px; color: #6A7078; }
.lqm-titel__fenster i { display: block; width: 10px; height: 10px; border: 1.3px solid currentColor; border-radius: 1px; }
.lqm-titel__fenster i:first-child { height: 0; border-width: 1.3px 0 0; margin-top: 5px; }
.lqm-titel__app { display: flex; align-items: center; gap: 7px; font-weight: 600; color: #2F3338; }
.lqm-titel__app svg { width: 15px; height: 15px; color: #5A6670; }
.lqm-leiste { display: flex; align-items: center; gap: 2px; min-height: 42px; padding: 4px 8px; border-bottom: 1px solid var(--rand); background: #FAFAFB; overflow-x: auto; scrollbar-width: none; }
.lqm-leiste button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid transparent; border-radius: 5px; background: transparent; cursor: pointer; white-space: nowrap; }
.lqm-leiste button:hover:not([disabled]) { background: #EDEFF2; border-color: var(--rand); }
.lqm-leiste button[disabled] { color: #9AA0A6; cursor: default; }
.lqm-leiste button.lqm-neu { margin-right: 8px; background: var(--b); color: #FFFFFF; }
.lqm-leiste button.lqm-neu:hover { background: #244C93; border-color: transparent; }
.lqm-leiste svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lqm-suche { display: flex; align-items: center; gap: 6px; margin-left: auto; min-width: 170px; height: 30px; padding: 0 10px; border: 1px solid var(--rand); border-radius: 5px; background: #FFFFFF; color: #8A9096; font-size: 12.5px; }
.lqm-koerper { display: grid; grid-template-columns: 172px minmax(250px, 320px) minmax(0, 1fr); flex: 1; min-height: 0; }
.lqm-ordner { padding: 8px 6px; border-right: 1px solid var(--rand); background: var(--grau); overflow-y: auto; }
.lqm-ordner__konto { display: block; padding: 6px 8px 8px; font-size: 12px; font-weight: 600; color: #3A3F45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lqm-ordner ul { margin: 0; padding: 0; list-style: none; }
.lqm-ordner li ul { padding-left: 14px; }
.lqm-ordner button { display: flex; align-items: center; gap: 8px; width: 100%; height: 30px; padding: 0 8px; border: 0; border-radius: 5px; background: transparent; text-align: left; cursor: pointer; }
.lqm-ordner button:hover { background: #E6E8EB; }
.lqm-ordner button[aria-current="true"] { background: var(--b-hell); color: #17366E; font-weight: 600; }
.lqm-ordner svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: #5F666E; }
.lqm-ordner button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lqm-ordner em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--b); }
.lqm-ordner__trenn { margin: 10px 8px 4px; font-size: 11px; color: #7A8087; text-transform: uppercase; letter-spacing: .05em; }
.lqm-ordnerwahl { display: none; }
.lqm-liste { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--rand); }
.lqm-liste__kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 12px 8px; border-bottom: 1px solid var(--rand); }
.lqm-liste__kopf strong { font-size: 15px; }
.lqm-liste__kopf span { font-size: 12px; color: #6A7078; }
.lqm-liste__inhalt { flex: 1; overflow-y: auto; }
.lqm-gruppe { padding: 8px 12px 4px; background: #FFFFFF; font-size: 11.5px; font-weight: 600; color: #5F666E; }
.lqm-mail { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 8px; width: 100%; padding: 9px 12px 10px 22px; border: 0; border-bottom: 1px solid #EEF0F2; background: #FFFFFF; text-align: left; cursor: pointer; }
.lqm-mail:hover { background: #F5F7FA; }
.lqm-mail[aria-selected="true"] { background: var(--b-hell); box-shadow: inset 3px 0 0 var(--b); }
.lqm-mail__von { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13.5px; }
.lqm-mail__zeit { font-size: 12px; color: #5F666E; white-space: nowrap; }
.lqm-mail__betreff { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
.lqm-mail__vorschau { grid-column: 1 / -1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12.5px; color: #6A7078; }
.lqm-mail__icons { display: flex; align-items: center; gap: 4px; color: #6A7078; }
.lqm-mail__icons svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lqm-mail.ist-neu::before { content: ''; position: absolute; left: 9px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--b); }
.lqm-mail.ist-neu .lqm-mail__von, .lqm-mail.ist-neu .lqm-mail__betreff { font-weight: 700; }
.lqm-mail.ist-neu .lqm-mail__zeit { color: var(--b); font-weight: 600; }
.lqm-mail__entwurf { color: #B42318; font-weight: 600; }
.lqm-mail .lqm-lq-marke { grid-column: 1 / -1; justify-self: start; margin-top: 3px; }
.lqm-leer { padding: 30px 16px; color: #6A7078; text-align: center; }
.lqm-lesen { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow-y: auto; }
.lqm-zurueck { display: none; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 0; border-bottom: 1px solid var(--rand); background: #FAFAFB; color: var(--b); font-weight: 600; text-align: left; cursor: pointer; }
.lqm-zurueck svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lqm-kopf { padding: 16px 20px 12px; border-bottom: 1px solid #EEF0F2; }
.lqm-kopf h3 { margin: 0 0 12px; font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
.lqm-absender { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 0 10px; align-items: start; }
.lqm-avatar { display: grid; place-items: center; grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; background: #6B7A8C; color: #FFFFFF; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.lqm-absender strong { font-weight: 600; overflow-wrap: anywhere; }
.lqm-absender strong small { font-weight: 400; color: #5F666E; font-size: 12.5px; }
.lqm-absender time { font-size: 12.5px; color: #5F666E; white-space: nowrap; }
.lqm-an { grid-column: 2 / -1; font-size: 12.5px; color: #5F666E; overflow-wrap: anywhere; }
.lqm-aktionen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.lqm-aktionen button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 1px solid var(--rand); border-radius: 5px; background: #FFFFFF; cursor: pointer; font-size: 13px; }
.lqm-aktionen button:hover { background: #F3F5F8; border-color: #C3C8CE; }
.lqm-aktionen svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lqm-anhaenge { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px 0; }
.lqm-anhang { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 9px; align-items: center; width: 232px; max-width: 100%; padding: 7px 10px 7px 7px; border: 1px solid var(--rand); border-radius: 6px; background: #FFFFFF; text-align: left; cursor: pointer; }
.lqm-anhang:hover { border-color: #AFB6BE; background: #F7F8FA; }
.lqm-anhang__typ { display: grid; place-items: center; grid-row: span 2; width: 34px; height: 40px; border-radius: 3px; background: #6B7280; color: #FFFFFF; font-size: 9.5px; font-weight: 700; letter-spacing: .03em; clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.lqm-anhang__typ--pdf { background: #B83B2E; } .lqm-anhang__typ--xml { background: #8A5A00; } .lqm-anhang__typ--bild { background: #3F6E8C; }
.lqm-anhang strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 600; }
.lqm-anhang small { font-size: 12px; color: #6A7078; }
.lqm-text { padding: 16px 20px 24px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.lqm-text p { margin: 0 0 11px; }
.lqm-text .lqm-sig { margin-top: 16px; padding-top: 8px; border-top: 1px solid #EEF0F2; font-size: 12.5px; line-height: 1.5; color: #5F666E; white-space: pre-line; }
.lqm-zitat { margin: 18px 0 0; padding: 4px 0 4px 12px; border-left: 3px solid #C9CDD1; color: #5F666E; font-size: 13px; white-space: pre-line; }
.lqm-zitat__kopf { display: block; margin-bottom: 6px; color: #3A3F45; }

/* Antwortentwurf */
.lqm-entwurf { display: flex; flex-direction: column; min-height: 100%; }
.lqm-entwurf__felder { padding: 6px 20px 0; }
.lqm-entwurf__feld { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 38px; border-bottom: 1px solid #EEF0F2; }
.lqm-entwurf__feld label { font-size: 13px; color: #5F666E; }
.lqm-entwurf__feld input { width: 100%; min-width: 0; height: 32px; padding: 0 4px; border: 0; background: transparent; color: #1F2328; font: inherit; }
.lqm-entwurf__feld input:focus { outline: 2px solid var(--b); outline-offset: -1px; border-radius: 3px; }
.lqm-empf-chip { display: inline-block; max-width: 100%; height: 24px; line-height: 24px; padding: 0 9px; border-radius: 12px; background: #EEF1F5; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lqm-entwurf textarea { display: block; width: 100%; min-height: 230px; margin: 0; padding: 14px 20px; border: 0; resize: vertical; background: #FFFFFF; color: #1F2328; font: 14px/1.55 var(--lqb-ui); }
.lqm-entwurf textarea:focus { outline: 2px solid var(--b); outline-offset: -2px; }
.lqm-entwurf .lqm-zitat { margin: 0 20px 20px; }
.lqm-senden { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-bottom: 1px solid #EEF0F2; }
.lqm-senden button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border: 1px solid var(--rand); border-radius: 5px; background: #FFFFFF; cursor: pointer; }
.lqm-senden button.lqm-senden__los { background: var(--b); border-color: var(--b); color: #FFFFFF; }
.lqm-senden button[disabled] { opacity: .5; cursor: not-allowed; }
.lqm-senden small { color: #6A7078; font-size: 12px; }
.lqm-hinweis-entwurf { padding: 8px 20px; background: #FFF8E6; border-bottom: 1px solid #F0E2B8; color: #6B4B00; font-size: 12.5px; }

/* Welt von LIQUIT im Mailprogramm: Leiste über der Mail, Marke in der Liste */
.lqm-lq { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 12px 20px 0; padding: 10px 12px; border: 1px solid #CDEBDD; border-radius: 10px; background: #EEF8F3; color: #0B1F18; font: 13.5px/1.4 'Geist', var(--lqb-ui); }
.lqm-lq__logo { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 7px; background: #006850; color: #FFFFFF; font: 700 12px/1 'Geist', var(--lqb-ui); }
.lqm-lq__text { flex: 1; min-width: 180px; }
.lqm-lq__text b { display: block; font-weight: 600; }
.lqm-lq__text span { color: #33473F; font-size: 13px; }
.lqm .lqm-lq .btn, .lqm .lqm-lq .btn:hover { font: 600 14px/1.1 'Geist', var(--lqb-ui); }
.lqm .lqm-lq .btn--primary, .lqm .lqm-lq .btn--primary:hover { color: #FFFFFF; }
.lqm .lqm-lq .btn--ghost, .lqm .lqm-lq .btn--ghost:hover { color: #0B1F18; }
.lqm-lq-marke { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: 999px; border: 1px solid #CDEBDD; background: #EEF8F3; color: #006850; font: 500 11px/1.3 'Geist Mono', ui-monospace, monospace; white-space: nowrap; }
.lqm-lq-marke::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lqm-lq-marke--warnung { border-color: #F1D6A8; background: #FFF6E8; color: #8A4B00; }
.lqm-lq-marke--fehler { border-color: #F1CDBE; background: #FDF1EC; color: #A33A1E; }
.lqm-lq-marke--fertig { border-color: #0B1F18; background: #0B1F18; color: #FFFFFF; }
.lqm-lq__text .lqm-lq-marke { color: #006850; font-size: 11px; }
.lqm-lq__text .lqm-lq-marke--warnung { color: #8A4B00; }
.lqm-lq__text .lqm-lq-marke--fehler { color: #A33A1E; }
.lqm-lq__text .lqm-lq-marke--fertig { color: #FFFFFF; }
.lqm-lq-marke--lauf::before { animation: lqb-puls 1s ease-in-out infinite; }
@keyframes lqb-puls { 50% { opacity: .2; } }

/* Mailprogramm am Handy und in schmalen Rahmen: Liste, dann Mail (mit „Zurück“) */
@container (max-width: 760px) {
  .lqm-koerper { grid-template-columns: minmax(0, 1fr); }
  .lqm-ordner { display: none; }
  .lqm-ordnerwahl { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--rand); background: var(--grau); }
  .lqm-ordnerwahl select { flex: 1; min-width: 0; height: 32px; padding: 0 8px; border: 1px solid var(--rand); border-radius: 5px; background: #FFFFFF; font: inherit; color: inherit; }
  .lqm-liste { border-right: 0; }
  .lqm.zeigt-mail .lqm-liste, .lqm.zeigt-mail .lqm-ordnerwahl { display: none; }
  .lqm:not(.zeigt-mail) .lqm-lesen { display: none; }
  .lqm-zurueck { display: flex; }
  .lqm-suche { display: none; }
  .lqm-leiste .lqm-lang { display: none; }
  .lqm-leiste button:not(.lqm-neu) span { display: none; }
  .lqm-kopf, .lqm-text { padding-left: 14px; padding-right: 14px; }
  .lqm-absender { grid-template-columns: 38px minmax(0, 1fr); }
  .lqm-absender time { grid-column: 2; }
  .lqm-absender strong small { display: block; overflow-wrap: anywhere; }
  .lqm-anhaenge { padding-left: 14px; padding-right: 14px; }
  .lqm-lq { margin-left: 14px; margin-right: 14px; }
  .lqm-entwurf__felder { padding: 4px 14px 0; }
  .lqm-entwurf textarea { padding: 12px 14px; }
  .lqm-entwurf .lqm-zitat { margin: 0 14px 16px; }
  .lqm-senden { padding: 10px 14px; flex-wrap: wrap; }
  .lqm-anhang { width: 100%; }
}
@container (min-width: 761px) and (max-width: 980px) {
  .lqm-koerper { grid-template-columns: 150px minmax(220px, 260px) minmax(0, 1fr); }
  .lqm-leiste .lqm-lang { display: none; }
}

/* ---------- Buchungssatz und Zeitleiste (Welt von LIQUIT, Farben der Demo-Grundlage) ---------- */
.lqb-buchung { width: 100%; border: 1px solid #E3EAE6; border-radius: 12px; overflow: hidden; background: #FFFFFF; font: 13px/1.35 'Geist', var(--lqb-ui); color: #0B1F18; }
.lqb-buchung__tab { width: 100%; border-collapse: collapse; }
.lqb-buchung__tab th { padding: 7px 10px; background: #F6F9F7; border-bottom: 1px solid #E3EAE6; font: 500 10px/1.2 'Geist Mono', ui-monospace, monospace; letter-spacing: .07em; text-transform: uppercase; color: #52645C; text-align: left; white-space: nowrap; }
.lqb-buchung__tab td { padding: 8px 10px; border-bottom: 1px solid #E3EAE6; vertical-align: top; }
.lqb-buchung__tab tr:last-child td { border-bottom: 0; }
.lqb-buchung__tab td[data-k="Datum"], .lqb-buchung__tab td[data-k="Beleg"], .lqb-buchung__tab td[data-k="Betrag"], .lqb-buchung__tab td[data-k="Steuer"] { white-space: nowrap; }
.lqb-buchung__tab .lqb-z { text-align: right; font-variant-numeric: tabular-nums; }
.lqb-buchung__tab small { display: block; color: #52645C; font-size: 11.5px; }
.lqb-buchung__fuss { padding: 8px 10px; border-top: 1px solid #E3EAE6; background: #FBFCFB; font-size: 12px; color: #52645C; }
.lqb-buchung--karten .lqb-buchung__tab, .lqb-buchung--karten .lqb-buchung__tab tbody, .lqb-buchung--karten .lqb-buchung__tab tr { display: block; }
.lqb-buchung--karten .lqb-buchung__tab thead { display: none; }
.lqb-buchung--karten .lqb-buchung__tab tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px 0; border-bottom: 1px solid #E3EAE6; }
.lqb-buchung--karten .lqb-buchung__tab td { display: block; padding: 5px 10px; border: 0; }
.lqb-buchung--karten .lqb-buchung__tab td::before { content: attr(data-k); display: block; font: 500 9.5px/1.3 'Geist Mono', ui-monospace, monospace; letter-spacing: .07em; text-transform: uppercase; color: #52645C; }
.lqb-buchung--karten .lqb-buchung__tab td.lqb-z { text-align: left; }
.lqb-buchung--karten .lqb-buchung__tab td.lqb-buchung__text { grid-column: 1 / -1; }

.lqb-zeit { display: grid; gap: 12px; padding: 18px 20px; border: 1px solid #E3EAE6; border-radius: 16px; background: #FFFFFF; font: 14px/1.45 'Geist', var(--lqb-ui); color: #0B1F18; }
.lqb-zeit__zeile { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr) 7.5em; align-items: center; gap: 6px 14px; }
.lqb-zeit__zeile > span:first-child { font-size: 13.5px; color: #33473F; }
.lqb-zeit__balken { position: relative; height: 14px; border-radius: 7px; background: #F0F4F2; overflow: hidden; }
.lqb-zeit__balken i { position: absolute; inset: 0 auto 0 0; border-radius: 7px; background: #006850; transition: width .5s ease; }
.lqb-zeit__balken--hand i { background: repeating-linear-gradient(135deg, #8EA79C 0 6px, #A9BDB4 6px 12px); }
.lqb-zeit__wert { font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.lqb-zeit__annahme { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 12px; border-top: 1px solid #E3EAE6; font-size: 13.5px; color: #33473F; }
.lqb-zeit__annahme label { display: inline-flex; align-items: center; gap: 8px; }
.lqb-zeit__annahme input { width: 4.5em; height: 36px; padding: 0 8px; border: 1px solid #CFDAD4; border-radius: 10px; font: 600 14px 'Geist', var(--lqb-ui); color: #0B1F18; text-align: right; }
.lqb-zeit__titel { font: 500 10.5px/1.25 'Geist Mono', ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: #52645C; }
@media (max-width: 600px) {
  .lqb-zeit { padding: 14px; }
  .lqb-zeit__zeile { grid-template-columns: minmax(0, 1fr) auto; }
  .lqb-zeit__zeile .lqb-zeit__balken { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Erweiterung D2: Handschrift, Formular mehrseitig, Skizze, Tabelle als Dokument ---------- */
.lqb-inhalt--formular { top: 50mm; }
.lqb-formular__pos { margin-top: 5mm; }
.lqb-formular__schluss { margin-top: 4mm; }
.lqb-notiz { position: absolute; z-index: 3; white-space: nowrap; transform-origin: 0 50%; }
.lqb-notiz[style*="width"] { white-space: normal; }
.lqb-notiz--gestrichen { text-decoration: line-through; text-decoration-thickness: .45mm; }
.lqb-notiz--druck { font: 400 9pt/1.2 var(--lqb-schmal); color: #1A1A1A; letter-spacing: .02em; }
.lqb-notiz--unscharf { filter: blur(1.1px); opacity: .85; }
.lqb-hand--rot { color: #B42318; }
.lqb-hand--blei { color: #4A4A4A; }
.lqb-hand--zelle { display: inline-block; font-size: 12.5pt; line-height: .9; white-space: nowrap; transform: rotate(-2deg); }
.lqb-formular__pos .lqb-pos__art { width: 32mm; }
.lqb-formular__pos .lqb-pos td { height: 8.4mm; }
.lqb-hand--notiz { display: block; margin-top: .4mm; font-size: 10.5pt; }
.lqb-gestrichen-wert { margin-right: 3mm; color: #1C3FAA; text-decoration: line-through; text-decoration-thickness: .45mm; }
.lqb-pos tr.lqb-gestrichen td { color: #4A4A4A; background-image: linear-gradient(-1.2deg, transparent calc(50% - .28mm), #1C3FAA calc(50% - .28mm), #1C3FAA calc(50% + .2mm), transparent calc(50% + .2mm)); }
.lqb-pos__nr--oz { width: 19mm; }
.lqb-pos__leer { width: 22mm; }
.lqb-linie { display: block; height: 3.6mm; border-bottom: .2mm dotted #777; }
.lqb-blatt--skizze { width: 210mm; height: 148mm; background-color: #FDFDFB; color: #1C3FAA; }
.lqb-blatt--kariert { background-image: linear-gradient(rgba(70, 120, 190, .22) .2mm, transparent .2mm), linear-gradient(90deg, rgba(70, 120, 190, .22) .2mm, transparent .2mm); background-size: 5mm 5mm; background-position: 2mm 3mm; }
.lqb-blatt--weiss { background: #FFFFFF; color: #1A1A1A; }
.lqb-skizze__zeichnung { position: absolute; inset: 0; }
.lqb-skizze__zeichnung svg { display: block; width: 100%; height: 100%; }
.lqb-foto--quer { width: 200mm; height: 150mm; }
.lqb-foto--quer .lqb-foto__beleg { transform: translate(-50%, -50%) perspective(300mm) rotateX(9deg) rotateZ(-3deg) scale(.84); }
.lqb-typ--tab, .lqm-anhang__typ--tab { background: #4E6A85; }
.lqm-anhang__typ--mail, .lqm-anhang__typ--txt { background: #5A6670; }
.lqb-nuransicht { padding: 3px 8px; border: 1px solid #E2D4A6; border-radius: 4px; background: #FFF8E1; color: #5E4B12; font-size: 12px; white-space: nowrap; }
.lqb-tabblatt { position: relative; width: 100%; }
.lqb-tabblatt .lqb-tabelle { width: 100%; }
.lqb-tabelle tr.lqb-tabelle__vor td { color: #333; }
.lqb-tabelle--fest table { table-layout: fixed; }
.lqb-tabelle--fest td { overflow: hidden; text-overflow: ellipsis; }
.lqb-tabelle--fest tr.lqb-tabelle__vor td { overflow: visible; }
.lqb-tabelle--fest tr.lqb-tabelle__vor td span { position: relative; z-index: 1; }
.lqb-marke.zeile b { left: auto; right: calc(4px / var(--lqb-s, 1)); bottom: auto; top: 50%; margin: 0; transform: translateY(-50%); }
.lqm-text.lqb-markbar, .lqb-anruf.lqb-markbar, .lqb-mailblatt { position: relative; }
.lqb-anruf__notiz { padding: 10px 14px 12px; border-top: 1px dashed #D4D4D4; background: #FFFDF3; font-size: 13.5px; }
.lqb-anruf__notiz b { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 600; color: #6A6A6A; text-transform: uppercase; letter-spacing: .04em; }
.lqm-anhaenge--entwurf { padding: 10px 20px 0; }
@container (max-width: 760px) { .lqm-anhaenge--entwurf { padding: 10px 14px 0; } }

/* Mail als Blatt (Druckansicht einer Mail in der Blattansicht) */
.lqb-mailblatt { width: min(100%, 760px); margin: 0 auto; padding: 22px 26px 26px; border: 1px solid #D3D6D9; background: #FFFFFF; font: 14px/1.55 var(--lqb-ui); color: #1F2328; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.lqb-mailblatt__kopf { padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px solid #3A3F45; }
.lqb-mailblatt__kopf h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.lqb-mailblatt__kopf table { border-collapse: collapse; font-size: 13px; }
.lqb-mailblatt__kopf th { padding: 1px 14px 1px 0; color: #5F666E; font-weight: 400; text-align: left; vertical-align: top; white-space: nowrap; }
.lqb-mailblatt__kopf td { padding: 1px 0; overflow-wrap: anywhere; }
.lqb-mailblatt__anhang { display: inline-flex; align-items: center; gap: 6px; margin: 0 10px 2px 0; }
.lqb-mailblatt__anhang i { display: inline-block; padding: 1px 4px; border-radius: 2px; color: #FFFFFF; font: 700 9.5px/1.3 var(--lqb-ui); font-style: normal; }
.lqb-mailblatt__text p { margin: 0 0 10px; }
.lqb-mailblatt .lqm-sig { margin-top: 14px; padding-top: 8px; border-top: 1px solid #EEF0F2; font-size: 12.5px; color: #5F666E; white-space: pre-line; }
.lqb-mailblatt .lqb-anruf { max-width: none; margin: 4px 0 10px; }
@media (max-width: 600px) { .lqb-mailblatt { padding: 14px 14px 18px; font-size: 13.5px; } }

/* Aufgabe (Rückruf, Wiedervorlage) */
.lqb-aufgabe { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border: 1px solid #D4D4D4; border-left: 3px solid #5A6670; border-radius: 6px; background: #FFFFFF; font: 13.5px/1.45 var(--lqb-ui); color: #1F2328; }
.lqb-aufgabe__box { width: 16px; height: 16px; margin-top: 2px; border: 1.5px solid #6A7078; border-radius: 3px; }
.lqb-aufgabe__box.an { background: #5A6670; box-shadow: inset 0 0 0 2px #FFFFFF; }
.lqb-aufgabe strong { display: block; font-weight: 600; }
.lqb-aufgabe small { display: block; color: #5F666E; font-size: 12px; }
.lqb-aufgabe p { margin: 6px 0 0; }

/* Auftragsmaske (Welt des Betriebs: neutrale Warenwirtschaft) */
.lqw { display: flex; flex-direction: column; min-width: 0; border: 1px solid #B8BDC3; border-radius: 4px; background: #F0F1F3; color: #1F2328; font: 12.5px/1.35 var(--lqb-ui); overflow: hidden; container-type: inline-size; }
.lqw-titel { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 10px; background: #D9DCE0; border-bottom: 1px solid #B8BDC3; font-size: 12.5px; color: #2F3338; }
.lqw-titel__app { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.lqw-titel__app svg { width: 15px; height: 15px; fill: none; stroke: #4E5A66; stroke-width: 1.7; }
.lqw-titel__name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: center; }
.lqw-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; min-height: 30px; padding: 3px 10px; border-bottom: 1px solid #C9CDD1; background: #ECEEF0; color: #3A3F45; }
.lqw-leiste span { white-space: nowrap; }
.lqw-leiste__status { margin-left: auto; padding: 1px 8px; border: 1px solid #B8BDC3; border-radius: 3px; background: #FFFFFF; font-weight: 600; }
.lqw-reiter { display: flex; gap: 2px; padding: 6px 10px 0; border-bottom: 1px solid #B8BDC3; background: #E4E6E9; overflow-x: auto; scrollbar-width: none; }
.lqw-reiter button { padding: 5px 14px; border: 1px solid transparent; border-bottom: 0; border-radius: 4px 4px 0 0; background: transparent; color: #3A3F45; font: inherit; cursor: pointer; white-space: nowrap; }
.lqw-reiter button[aria-selected="true"] { margin-bottom: -1px; border-color: #B8BDC3; background: #F7F8F9; color: #111; font-weight: 600; }
.lqw-inhalt { padding: 12px; background: #F7F8F9; }
.lqw-kopf { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 10px; }
.lqw-feld { min-width: 0; }
.lqw-feld label { display: block; margin-bottom: 2px; font-size: 11px; color: #5A6068; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lqw-wert { display: block; min-height: 24px; padding: 3px 6px; border: 1px solid #B9BEC4; border-radius: 2px; background: #FFFFFF; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .06); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.lqw-feld--mehr .lqw-wert { min-height: 52px; white-space: normal; }
.lqw-wert--auswahl { position: relative; padding-right: 20px; }
.lqw-wert--auswahl::after { content: ''; position: absolute; right: 7px; top: 9px; border: 4px solid transparent; border-top-color: #5A6068; }
.lqw-wert.ist-neu, .lqw-z span.ist-neu, .lqw-summen b.ist-neu { animation: lqw-blitz 1.1s ease-out; }
.lqw-wert[data-art="warnung"] { border-color: #C98A16; background: #FFF7E6; }
.lqw-wert[data-art="fehler"] { border-color: #C0392B; background: #FDF0EE; }
@keyframes lqw-blitz { from { background-color: #FFE89A; } to { background-color: #FFFFFF; } }
.lqw-pos { margin-top: 12px; }
.lqw-pos__titel { margin-bottom: 4px; font-size: 11px; font-weight: 600; color: #5A6068; text-transform: uppercase; letter-spacing: .04em; }
.lqw-gitter { border: 1px solid #B9BEC4; background: #FFFFFF; overflow-x: auto; }
.lqw-z { display: grid; gap: 0; border-bottom: 1px solid #E3E5E8; }
.lqw-z span { min-width: 0; min-height: 24px; padding: 3px 6px; border-right: 1px solid #EDEEF0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lqw-z span:last-child { border-right: 0; }
.lqw-z--kopf { background: #E9EBEE; border-bottom-color: #B9BEC4; font-size: 11.5px; color: #3A3F45; }
.lqw-zeilen .lqw-z:nth-child(even) { background: #FAFAFB; }
.lqw-z--warnung span { background: #FFF7E6; }
.lqw-z--fehler span { background: #FDF0EE; }
.lqw-zahl { text-align: right; font-variant-numeric: tabular-nums; }
.lqw-summen { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: end; gap: 2px; margin-top: 8px; }
.lqw-summen div { display: grid; grid-template-columns: auto 120px; gap: 10px; align-items: center; }
.lqw-summen span { color: #5A6068; text-align: right; }
.lqw-summen b { display: block; min-height: 22px; padding: 2px 6px; border: 1px solid #B9BEC4; background: #FFFFFF; text-align: right; font-variant-numeric: tabular-nums; }
.lqw-summen div:last-child b { font-weight: 700; }
.lqw-fuss { padding: 4px 10px; border-top: 1px solid #C9CDD1; background: #E4E6E9; color: #4A5058; font-size: 11.5px; }
@container (max-width: 560px) {
  .lqw-kopf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lqw-kopf .lqw-feld { grid-column: span 1 !important; }
  .lqw-kopf .lqw-feld--mehr { grid-column: 1 / -1 !important; }
  .lqw-leiste span:not(.lqw-leiste__status) { display: none; }
  .lqw-summen div { grid-template-columns: auto 104px; }
}

/* Bearbeitbare Werte auf dem Blatt (Welt von LIQUIT: zeigt, was der Besucher ändern darf) */
.lqb-editierbar { margin: -.3mm -.6mm; padding: .3mm .6mm; border-radius: .8mm; outline: .25mm dashed rgba(0, 104, 80, .6); background: rgba(16, 185, 129, .08); cursor: text; }
.lqb-editierbar:hover { background: rgba(16, 185, 129, .16); }
.lqb-editierbar:focus { outline: .4mm solid #006850; background: #FFFFFF; }
.lqb-druckrahmen { position: fixed; left: 0; top: 0; width: 0; height: 0; border: 0; }

/* ---------- Erweiterung D2: Welt von LIQUIT – Variantenwahl und Ergebnisspalte ---------- */
.lqb-varianten { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; font: 14px/1.35 'Geist', var(--lqb-ui); color: #0B1F18; }
.lqb-varianten__label { font: 500 10.5px/1.25 'Geist Mono', ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: #52645C; }
.lqb-varianten__knoepfe { display: flex; flex-wrap: wrap; gap: 6px; }
.lqb-varianten button { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 14px 8px; border: 1px solid #CFDAD4; border-radius: 14px; background: #FFFFFF; color: #0B1F18; font: inherit; text-align: left; cursor: pointer; }
.lqb-varianten button:hover { border-color: #52645C; }
.lqb-varianten button strong { font-size: 14px; font-weight: 600; }
.lqb-varianten button small { font-size: 12px; color: #52645C; }
.lqb-varianten button[aria-pressed="true"] { border-color: #0B1F18; background: #0B1F18; color: #FFFFFF; }
.lqb-varianten button[aria-pressed="true"] small { color: #C9DBD3; }
@media (max-width: 600px) {
  .lqb-varianten { gap: 6px; margin-bottom: 10px; }
  .lqb-varianten__knoepfe { width: 100%; }
  .lqb-varianten button { flex: 1 1 0; min-width: 0; padding: 6px 8px; border-radius: 10px; }
  .lqb-varianten button strong { font-size: 12.5px; line-height: 1.25; }
  .lqb-varianten button small { font-size: 11px; }
}

.lqe { min-width: 0; border: 1px solid #E3EAE6; border-radius: 16px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(11, 31, 24, .05); color: #0B1F18; font: 14px/1.5 'Geist', var(--lqb-ui); container-type: inline-size; }
.lqe-i { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lqe-kopf { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #E3EAE6; }
.lqe-logo { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px; background: #006850; color: #FFFFFF; font: 700 13px/1 'Geist', var(--lqb-ui); }
.lqe-kopf__text { flex: 1; min-width: 0; }
.lqe-kopf__text strong { display: block; font-size: 15px; letter-spacing: -.01em; }
.lqe-kopf__text span { display: block; font-size: 13px; color: #52645C; }
.lqe-kopf__rechts { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.lqe-betrag { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lqe-teil { padding: 14px 16px; border-bottom: 1px solid #E3EAE6; }
.lqe-teil:last-child { border-bottom: 0; }
.lqe-mini { display: block; margin-bottom: 9px; font: 500 10.5px/1.25 'Geist Mono', ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: #52645C; }
.lqe-leer { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 16px; color: #52645C; }
.lqe-leer p { margin: 0; font-size: 15px; }
.lqe-hinweis { font-size: 12.5px; color: #52645C; }
.lqe-felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; }
.lqe-feld { min-width: 0; padding: 7px 10px; border-radius: 10px; border: 1px solid #E3EAE6; background: #F6F9F7; }
.lqe-feld.ist-neu { animation: lqe-rein .3s both; }
.lqe-feld dt { display: flex; justify-content: space-between; gap: 6px; font: 500 9.5px/1.25 'Geist Mono', ui-monospace, monospace; letter-spacing: .07em; text-transform: uppercase; color: #52645C; }
.lqe-feld dt em { font-style: normal; letter-spacing: .02em; text-transform: none; color: #006850; white-space: nowrap; }
.lqe-feld dd { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 13.5px; font-weight: 560; font-variant-numeric: tabular-nums; }
.lqe-feld--warnung { background: #FFF6E8; border-color: #F1D6A8; }
.lqe-feld--warnung dt em { color: #8A4B00; }
.lqe-feld--fehler, .lqe-feld--fehlt { background: #FDF1EC; border-color: #F1CDBE; }
.lqe-feld--fehlt dd, .lqe-feld--fehler dt em { color: #A33A1E; }
.lqe-feld--info { background: #FFFFFF; }
.lqe-feld--breit { grid-column: 1 / -1; }
.lqe-checks { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.lqe-checks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; margin: 0 -8px; padding: 6px 8px; border-radius: 8px; font-size: 13.5px; line-height: 1.45; }
.lqe-checks li b { display: block; font-weight: 600; }
.lqe-checks .lqe-i { margin-top: 2px; color: #006850; }
.lqe-checks .lqe-warnung .lqe-i, .lqe-checks .lqe-warnung b, .lqe-checks .lqe-frage .lqe-i, .lqe-checks .lqe-offen .lqe-i { color: #8A4B00; }
.lqe-checks .lqe-fehler .lqe-i, .lqe-checks .lqe-fehler b { color: #A33A1E; }
.lqe-tab { border: 1px solid #E3EAE6; border-radius: 10px; overflow: hidden; }
.lqe-tab__z { display: grid; align-items: center; gap: 6px; padding: 7px 10px; border-top: 1px solid #E3EAE6; font-size: 12.5px; }
.lqe-tab__z > span { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.lqe-tab__z small { display: block; font-size: 11px; color: #52645C; }
.lqe-tab__kopf { border-top: 0; background: #F6F9F7; font: 500 9px/1.2 'Geist Mono', ui-monospace, monospace; letter-spacing: .03em; text-transform: uppercase; color: #52645C; }
.lqe-tab .w { text-align: right; font-variant-numeric: tabular-nums; }
.lqe-tab__z--warnung { background: #FFF6E8; }
.lqe-tab__z--fehler { background: #FDF1EC; }
.lqe-tab__z--aus { color: #62736B; }
.lqe-tab__z--summe { background: #FBFCFB; font-weight: 650; }
.lqe-fragen { display: flex; flex-direction: column; gap: 10px; }
.lqe-frage { padding: 10px 12px; border: 1px solid #F1D6A8; border-radius: 12px; background: #FFF6E8; }
.lqe-frage.ist-beantwortet { border-color: #CDEBDD; background: #EEF8F3; }
.lqe-frage p { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; margin: 0 0 9px; font-size: 14px; line-height: 1.45; }
.lqe-frage .lqe-i { margin-top: 2px; color: #8A4B00; }
.lqe-frage.ist-beantwortet .lqe-i { color: #006850; }
.lqe-antworten { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 26px; }
.lqe-antwort { min-height: 36px; padding: 0 13px; border: 1px solid #CFDAD4; border-radius: 999px; background: #FFFFFF; color: #0B1F18; font: 600 13px/1.1 'Geist', var(--lqb-ui); cursor: pointer; }
.lqe-antwort:hover { border-color: #52645C; }
.lqe-antwort[aria-pressed="true"] { border-color: #0B1F18; background: #0B1F18; color: #FFFFFF; }
.lqe-vorschlag { margin: 0; padding: 14px; border-radius: 14px; border: 1px solid #CDEBDD; background: #EEF8F3; }
.lqe-vorschlag--warn { border-color: #F1D6A8; background: #FFF6E8; }
.lqe-vorschlag--bad { border-color: #F1CDBE; background: #FDF1EC; }
.lqe-vorschlag--erledigt { border-color: #CFDAD4; background: #FFFFFF; }
.lqe-vorschlag p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; }
.lqe-vorschlag .lqe-mini { margin-bottom: 6px; }
.lqe-vorschlag--erledigt p { margin-bottom: 8px; }
.lqe-vorschlag .aktionen { display: flex; flex-wrap: wrap; gap: 8px; }
.lqe-link { padding: 0; border: 0; background: none; color: #006850; font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lqe .lqb-aufgabe { margin-bottom: 10px; }
@container (max-width: 360px) { .lqe-felder { grid-template-columns: minmax(0, 1fr); } }
@keyframes lqe-rein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Bewegung reduzieren, Druck ---------- */
@media (prefers-reduced-motion: reduce) {
  .lqb-marke, .lqb-zeit__balken i, .lqb-sprache__text span, .lqw-wert.ist-neu, .lqw-z span.ist-neu, .lqe-feld.ist-neu { animation: none !important; transition: none !important; }
}
@media print {
  @page { size: A4; margin: 0; }
  html, body { margin: 0 !important; padding: 0 !important; background: #FFFFFF !important; }
  .lqb-druck .lqb-blatt { box-shadow: none !important; page-break-after: always; break-after: page; }
  .lqb-druck .lqb-blatt:last-child { page-break-after: auto; break-after: auto; }
  .lqb-druck .lqb-marken { display: none; }
  .lqb-druck .lqb-editierbar { outline: 0; background: none; }
}

/* =====================================================================================================
   Erweiterung D3 (Sprache, Telefon, Chat, Wissen): Nachrichtenverlauf .lqv, Anrufliste .lqa, Chatfenster .lqc,
   Dateifenster .lqd, Tagesplan .lqt, Formblatt .lqv-form, Telefonnotiz .lqn. Logik: Block „Erweiterung D3“ in belege.js.
   Welt des Betriebs neutral (Grau, Systemschrift, Auswahl in Blau); Welt von LIQUIT: .lqv-m, .lqv-entwurf, .ist-neu.
   ===================================================================================================== */

/* Nachrichtenverlauf (Messenger ohne Marke) */
.lqv { --v-grund: #E4E8EC; --v-eigen: #D9E6F5; --v-rand: #D3D8DD; display: flex; flex-direction: column; min-width: 0; height: 100%; min-height: 0; border: 1px solid #C9CDD1; border-radius: 10px; overflow: hidden; background: var(--v-grund); font: 14px/1.4 var(--lqb-ui); color: #1B1F23; }
.lqv-kopf { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #F6F7F8; border-bottom: 1px solid var(--v-rand); }
.lqv-kopf__bild { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: #66737F; color: #FFFFFF; font: 600 11.5px/1 var(--lqb-ui); }
.lqv-kopf__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lqv-kopf__text strong { font-size: 15px; font-weight: 600; }
.lqv-kopf__text small { overflow: hidden; font-size: 12px; color: #66707A; white-space: nowrap; text-overflow: ellipsis; }
.lqv-kopf__knoepfe { display: flex; gap: 14px; color: #5A6670; }
.lqv-kopf__knoepfe svg, .lqv-eingabe svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lqv-liste { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 3px; background-color: var(--v-grund); background-image: radial-gradient(rgba(0, 0, 0, .035) 1px, transparent 1.2px); background-size: 14px 14px; overscroll-behavior: contain; }
.lqv-liste:focus-visible { outline: 2px solid #2F5FB3; outline-offset: -2px; }
.lqv-datum, .lqv-system { display: flex; justify-content: center; margin: 10px 0 6px; }
.lqv-datum span, .lqv-system span { padding: 4px 10px; border-radius: 7px; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 1px rgba(0, 0, 0, .08); font-size: 12px; color: #4F5962; }
.lqv-system span { background: #FFF6DA; max-width: 86%; text-align: center; }
.lqv-n { position: relative; flex: none; align-self: flex-start; max-width: min(86%, 440px); margin-top: 6px; padding: 6px 9px 5px; border-radius: 3px 10px 10px 10px; background: #FFFFFF; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); }
.lqv-n.folge { margin-top: 1px; border-radius: 10px; }
.lqv-n.eigen { align-self: flex-end; border-radius: 10px 3px 10px 10px; background: var(--v-eigen); }
.lqv-n.eigen.folge { border-radius: 10px; }
.lqv-n.ist-neu { animation: lqv-rein .3s ease-out both; }
.lqv-n__von { display: block; margin-bottom: 1px; font-size: 12.5px; font-weight: 600; }
.lqv-n__text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.lqv-n__zeit { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 6px 0 -3px 10px; font-size: 11px; color: #7A848D; line-height: 1; }
.lqv-n__haken svg { width: 15px; height: 15px; fill: none; stroke: #4A86C8; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lqv-n__unter { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 11.5px; color: #7A848D; }
.lqv-n__unter .lqv-n__zeit { float: none; margin: 0 0 0 auto; }
.lqv-n--bild { padding: 3px 3px 5px; }
.lqv-n--bild .lqv-n__von { padding: 2px 6px 0; }
.lqv-n--bild .lqv-n__text, .lqv-n--bild .lqv-n__unter { padding: 0 6px; }
.lqv-bild { display: block; width: 250px; max-width: 100%; height: 300px; padding: 0; border: 0; border-radius: 7px; overflow: hidden; background: #3A3A38; cursor: zoom-in; position: relative; }
.lqv-bild > * { pointer-events: none; }
.lqv-bild .lqb-foto { position: absolute; top: 0; left: 0; transform: scale(.5); transform-origin: 0 0; }
.lqv-datei { display: flex; align-items: center; gap: 10px; width: 260px; max-width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: #F1F3F5; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lqv-n.eigen .lqv-datei { background: rgba(255, 255, 255, .6); }
.lqv-datei__typ { display: grid; place-items: center; width: 34px; height: 40px; flex: none; border-radius: 4px; background: #B4483C; color: #FFFFFF; font: 700 10px/1 var(--lqb-ui); }
.lqv-datei strong { display: block; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.lqv-datei small { color: #6B7680; font-size: 11.5px; }
.lqv-sp { display: flex; align-items: center; gap: 9px; min-width: 228px; }
.lqv-sp__knopf { display: grid; place-items: center; width: 34px; height: 34px; flex: none; padding: 0; border: 0; border-radius: 50%; background: #5A6670; color: #FFFFFF; cursor: pointer; }
.lqv-sp__knopf svg { width: 14px; height: 14px; fill: currentColor; margin-left: 2px; }
.lqv-sp__knopf:hover { background: #3F4A53; }
.lqv-n.gespielt .lqv-sp__knopf { background: #8A949D; }
.lqv-sp__welle { position: relative; display: flex; align-items: center; gap: 2px; flex: 1; min-width: 110px; height: 30px; overflow: visible; }
.lqv-sp__welle i { display: block; width: 2.5px; flex: none; border-radius: 2px; background: #B6BFC7; }
.lqv-sp__welle i.an { background: #4C5A66; }
.lqv-sp__marke { position: absolute; top: 50%; left: 0; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: #4A86C8; transition: left .12s linear; }
.lqv-sp__bild { position: relative; display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: #A7B0B8; color: #FFFFFF; font: 600 12px/1 var(--lqb-ui); }
.lqv-sp__bild svg { position: absolute; right: -3px; bottom: -2px; width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: #FFFFFF; fill: none; stroke: #4A86C8; stroke-width: 2.2; }
.lqv-sp__sprache { padding: 1px 6px; border-radius: 4px; background: #EEF0F2; color: #4F5962; font-size: 11px; }
.lqv-n.spielt .lqv-sp__knopf { background: #4A86C8; }
.lqv-n.spielt, .lqv-n.gespielt { max-width: min(94%, 470px); }
/* Abschrift (Welt von LIQUIT) */
.lqv-abschrift { margin: 7px -2px 2px; padding: 8px 10px 6px; border-left: 3px solid var(--lq-gruen); border-radius: 0 6px 6px 0; background: #F3F8F5; font-size: 13.5px; line-height: 1.5; }
.lqv-abschrift__kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-bottom: 4px; font-size: 11px; color: #5C6B64; }
.lqv-abschrift__kopf b { font: 600 10.5px/1.3 'Geist Mono', ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--lq-gruen); }
.lqv-abschrift__zeile + .lqv-abschrift__zeile { margin-top: 5px; padding-top: 5px; border-top: 1px dashed #CFDDD6; }
.lqv-abschrift__titel { display: block; font: 500 10px/1.3 'Geist Mono', ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; color: #6B7A73; }
.lqv-abschrift p { margin: 0; }
.lqv-abschrift__zeile--wortlaut p { color: #48534E; font-style: italic; }
.lqv-w { opacity: 0; transition: opacity .18s; }
.lqv-w.an { opacity: 1; }
.lqv-m { padding: 0 1px; border-radius: 3px; background: transparent; color: inherit; transition: background-color .25s, box-shadow .25s; }
.lqv-m.an { background: rgba(16, 185, 129, .17); box-shadow: inset 0 -2px 0 var(--lq-gruen); }
.lqv-m.an[data-art="mehr"], .lqv-m.an[data-art="behinderung"] { background: rgba(255, 170, 30, .2); box-shadow: inset 0 -2px 0 #A35F00; }
.lqv-m.an[data-art="luecke"], .lqv-m.an[data-art="mangel"] { background: rgba(220, 60, 40, .12); box-shadow: inset 0 -2px 0 #B42318; }
.lqv-m.ist-hell { background: rgba(16, 185, 129, .35); }
/* Vorbereitete Nachricht (Welt von LIQUIT) */
.lqv-entwurf { flex: none; align-self: flex-end; width: min(90%, 400px); margin-top: 10px; padding: 9px 11px; border: 1.5px dashed var(--lq-gruen); border-radius: 10px; background: rgba(255, 255, 255, .94); animation: lqv-rein .3s ease-out both; }
.lqv-entwurf__kopf { display: block; font-size: 11.5px; color: #4F5E57; }
.lqv-entwurf__kopf b { margin-right: 2px; font: 600 10.5px 'Geist Mono', ui-monospace, monospace; letter-spacing: .08em; color: var(--lq-gruen); }
.lqv-entwurf__text { margin: 4px 0 8px; white-space: pre-line; }
.lqv-entwurf__knoepfe { display: flex; flex-wrap: wrap; gap: 6px; }
.lqv-entwurf__knopf { min-height: 32px; padding: 0 12px; border: 1px solid #CFDAD4; border-radius: 999px; background: #FFFFFF; color: #0B1F18; font: 600 12.5px 'Geist', var(--lqb-ui); cursor: pointer; }
.lqv-entwurf__knopf.haupt { border-color: var(--lq-gruen); background: var(--lq-gruen); color: #FFFFFF; }
/* Antwort mit Übersetzung und Quelle in einer Textnachricht (html) */
.lqv-ue { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px dashed #C9D2D9; color: #3E4A53; font-size: 13px; }
.lqv-ue b { display: block; font: 500 10px/1.4 'Geist Mono', ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; color: #6B7680; }
.lqv-quelle { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; padding: 2px 8px; border-radius: 6px; background: var(--lq-gruen-hell); color: var(--lq-gruen); font: 600 11.5px/1.5 'Geist', var(--lqb-ui); }
.lqv-eingabe { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #F6F7F8; border-top: 1px solid var(--v-rand); color: #66707A; }
.lqv-eingabe__feld { flex: 1; padding: 7px 12px; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--v-rand); font-size: 13.5px; color: #8A939B; }
@keyframes lqv-rein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Anrufliste */
.lqa-innen { display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100%; min-height: 0; }
.lqa { min-width: 0; min-height: 0; height: 100%; container-type: inline-size; border: 1px solid #C9CDD1; border-radius: 10px; overflow: hidden; background: #FFFFFF; font: 14px/1.4 var(--lqb-ui); color: #1B1F23; }
.lqa-liste { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid #DDE1E5; background: #FAFAFB; }
.lqa-kopf { padding: 12px 14px 8px; border-bottom: 1px solid #E4E7EA; }
.lqa-kopf strong { display: block; font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
.lqa-kopf small { color: #6B7680; font-size: 12px; }
.lqa-reiter { display: flex; gap: 4px; margin-top: 8px; padding: 2px; border-radius: 8px; background: #E9ECEF; font-size: 12.5px; }
.lqa-reiter span { flex: 1; padding: 4px 0; border-radius: 6px; text-align: center; color: #4F5962; }
.lqa-reiter span.an { background: #FFFFFF; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); color: #1B1F23; font-weight: 600; }
.lqa ul { flex: 1; margin: 0; padding: 0; list-style: none; overflow-y: auto; }
.lqa-anruf { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 10px 14px; border-bottom: 1px solid #ECEEF0; cursor: pointer; }
.lqa-anruf:hover { background: #F0F2F4; }
.lqa-anruf[aria-selected="true"] { background: #E5EDFA; }
.lqa-anruf:focus-visible { outline: 2px solid #2F5FB3; outline-offset: -2px; }
.lqa-anruf__sym { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #EDF0F2; color: #5A6670; }
.lqa-anruf__sym svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lqa-anruf--verpasst .lqa-anruf__sym { color: #C0392B; background: #FBEDEB; }
.lqa-anruf--verpasst .lqa-anruf__wer strong { color: #C0392B; }
.lqa-anruf--assistent .lqa-anruf__sym { color: #2F5FB3; background: #E8EEF9; }
.lqa-anruf__wer { min-width: 0; }
.lqa-anruf__wer strong { display: block; overflow: hidden; font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.lqa-anruf__wer small { display: block; overflow: hidden; color: #6B7680; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.lqa-anruf__zeit { font-size: 12px; color: #6B7680; }
.lqa-anruf__notiz { grid-column: 2 / -1; justify-self: start; padding: 1px 7px; border-radius: 4px; background: var(--lq-gruen-hell); color: var(--lq-gruen); font: 600 11px/1.5 'Geist', var(--lqb-ui); }
.lqa-detail { min-width: 0; min-height: 0; overflow-y: auto; padding: 16px 18px; }
.lqa-leer { display: grid; place-items: center; height: 100%; min-height: 160px; color: #7A848D; }
.lqa-person { display: flex; align-items: center; gap: 12px; }
.lqa-person__bild { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: #8A949D; color: #FFFFFF; font: 600 16px/1 var(--lqb-ui); }
.lqa-person__bild svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lqa-person strong { display: block; font-size: 17px; }
.lqa-person small { color: #6B7680; }
.lqa-daten { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 12px 0; padding: 10px 12px; border-radius: 8px; background: #F4F5F7; }
.lqa-daten dt { font-size: 11.5px; color: #6B7680; }
.lqa-daten dd { margin: 0; font-size: 13.5px; }
.lqa-abschrift { display: flex; flex-direction: column; gap: 6px; }
.lqa-abschrift__kopf { margin-bottom: 2px; font: 600 10.5px/1.3 'Geist Mono', ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--lq-gruen); }
.lqa-abschrift__kopf small { display: block; margin-top: 2px; font: 400 11.5px var(--lqb-ui); letter-spacing: 0; text-transform: none; color: #6B7680; }
.lqa-zeile { max-width: 88%; margin: 0; padding: 7px 10px; border-radius: 10px; background: #F1F3F5; font-size: 13.5px; animation: lqv-rein .3s ease-out both; }
.lqa-zeile b { display: block; font-size: 11px; font-weight: 600; color: #6B7680; }
.lqa-zeile--a { align-self: flex-end; background: #E8EEF9; }
.lqa-zeile--s { align-self: center; max-width: 100%; padding: 4px 10px; border-radius: 6px; background: #FFF6DA; color: #5B4A1A; font-size: 12px; text-align: center; }
.lqa-zeile--s b { display: inline; margin-right: 4px; color: inherit; }
@container (max-width: 520px) {
  .lqa-innen { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; height: auto; }
  .lqa-liste { border-right: 0; border-bottom: 1px solid #DDE1E5; }
  .lqa-detail { overflow: visible; padding: 14px; }
  .lqa-zeile { max-width: 96%; }
}

/* Chatfenster auf einer Firmenwebsite (Browserrahmen ohne Marke) */
.lqc { display: flex; flex-direction: column; min-width: 0; height: 100%; min-height: 0; container-type: inline-size; border: 1px solid #BFC4C9; border-radius: 10px; overflow: hidden; background: #FFFFFF; font: 14px/1.45 var(--lqb-ui); color: #1B1F23; box-shadow: 0 12px 30px -22px rgba(0, 0, 0, .45); }
.lqc-browser svg, .lqc-adresse svg, .lqc-seite__tel svg, .lqc-chat svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lqc-browser { display: flex; align-items: flex-end; gap: 12px; padding: 7px 10px 0; background: #DEE1E5; }
.lqc-punkte { display: flex; gap: 6px; padding-bottom: 9px; }
.lqc-punkte i { width: 11px; height: 11px; border-radius: 50%; background: #B5BAC0; }
.lqc-reiter { display: flex; align-items: center; gap: 10px; max-width: 240px; padding: 7px 12px; border-radius: 8px 8px 0 0; background: #F7F8F9; font-size: 12px; white-space: nowrap; overflow: hidden; }
.lqc-reiter i svg { width: 11px; height: 11px; color: #7A848D; }
.lqc-adresse { display: flex; align-items: center; gap: 12px; padding: 6px 10px; background: #F7F8F9; border-bottom: 1px solid #DADDE1; color: #5A6670; }
.lqc-url { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; padding: 4px 12px; border-radius: 999px; background: #EAECEF; font-size: 12.5px; color: #2A2F34; white-space: nowrap; overflow: hidden; }
.lqc-url svg { width: 12px; height: 12px; flex: none; }
.lqc-flaeche { position: relative; flex: 1; min-height: 440px; overflow: hidden; }
.lqc-seite { position: absolute; inset: 0; overflow: hidden; font-family: Georgia, 'Liberation Serif', serif; color: #23302B; background: #FFFFFF; }
.lqc-seite__kopf { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid #E8E4DC; font-family: var(--lqb-ui); }
.lqc-seite__logo { display: flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; }
.lqc-seite__logo svg { width: 30px; height: 30px; flex: none; }
@container (max-width: 720px) { .lqc-seite__menue { display: none; } .lqc-seite__tel { margin-left: auto; } }
.lqc-seite__menue { display: flex; gap: 14px; margin-left: auto; font-size: 12.5px; color: #4E5B55; }
.lqc-seite__tel { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: #8C4A1F; }
.lqc-seite__held { padding: 26px 20px 20px; background: linear-gradient(120deg, #F4EFE6, #EAE3D6); }
.lqc-seite__held small { font: 600 11px/1.2 var(--lqb-ui); letter-spacing: .1em; text-transform: uppercase; color: #8C4A1F; }
.lqc-seite__held h3 { max-width: 15em; margin: 6px 0 8px; font-size: 24px; font-weight: 400; line-height: 1.15; }
.lqc-seite__held p { max-width: 30em; margin: 0 0 12px; font: 13.5px/1.5 var(--lqb-ui); color: #3D4843; }
.lqc-seite__knopf { display: inline-block; padding: 7px 14px; border-radius: 4px; background: #8C4A1F; color: #FFFFFF; font: 600 12.5px var(--lqb-ui); }
.lqc-seite__kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 20px; font-family: var(--lqb-ui); }
.lqc-seite__kacheln div { padding: 10px 12px; border: 1px solid #E8E4DC; border-radius: 6px; }
.lqc-seite__kacheln b { display: block; font-size: 13px; }
.lqc-seite__kacheln span { font-size: 12px; color: #5A6660; }
.lqc-chat { position: absolute; right: 14px; bottom: 14px; display: flex; flex-direction: column; width: 330px; max-height: calc(100% - 28px); height: 420px; border-radius: 12px; background: #FFFFFF; box-shadow: 0 10px 34px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .06); overflow: hidden; }
.lqc-chat__kopf { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #8C4A1F; color: #FFFFFF; }
.lqc-chat__kopf strong { display: block; font-size: 13.5px; }
.lqc-chat__kopf small { display: block; font-size: 11.5px; opacity: .85; }
.lqc-chat__kopf > span:nth-child(2) { flex: 1; min-width: 0; }
.lqc-chat__bild { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.lqc-chat__verlauf { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: #F7F5F1; }
.lqc-chat__hinweis { flex: none; margin: 0 0 4px; padding: 6px 9px; border-radius: 6px; background: #FFF6DA; font-size: 12px; line-height: 1.4; color: #5B4A1A; }
.lqc-n { flex: none; max-width: 86%; padding: 7px 10px; border-radius: 10px; font-size: 13.5px; line-height: 1.42; animation: lqv-rein .25s ease-out both; overflow-wrap: anywhere; }
.lqc-n--bot { align-self: flex-start; border-bottom-left-radius: 3px; background: #FFFFFF; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.lqc-n--gast { align-self: flex-end; border-bottom-right-radius: 3px; background: #8C4A1F; color: #FFFFFF; }
.lqc-tippt { flex: none; align-self: flex-start; display: flex; gap: 4px; padding: 10px 12px; border-radius: 10px; background: #FFFFFF; }
.lqc-tippt i { width: 6px; height: 6px; border-radius: 50%; background: #A0A7AD; animation: lqb-puls 1s infinite; }
.lqc-tippt i:nth-child(2) { animation-delay: .2s; }
.lqc-tippt i:nth-child(3) { animation-delay: .4s; }
.lqc-chat__vorschlaege { display: flex; flex-wrap: wrap; gap: 5px; padding: 6px 10px 0; background: #F7F5F1; }
.lqc-chat__vorschlaege:empty { display: none; }
.lqc-chat__vorschlaege button { min-height: 30px; padding: 4px 10px; border: 1px solid #C9A88F; border-radius: 999px; background: #FFFFFF; color: #6E3A17; font: 500 12.5px/1.25 var(--lqb-ui); text-align: left; cursor: pointer; }
.lqc-chat__vorschlaege button:hover { background: #FBF3EC; }
.lqc-chat__vorschlaege button[disabled] { opacity: .5; cursor: default; }
.lqc-chat__eingabe { display: flex; gap: 6px; padding: 8px 10px; background: #F7F5F1; border-top: 1px solid #E8E2D8; }
.lqc-chat__eingabe input { flex: 1; min-width: 0; height: 36px; padding: 0 12px; border: 1px solid #D5CEC3; border-radius: 18px; background: #FFFFFF; font: 13.5px var(--lqb-ui); color: #1B1F23; }
.lqc-chat__eingabe button { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: #8C4A1F; color: #FFFFFF; cursor: pointer; }
@container (max-width: 560px) {
  .lqc-seite__menue, .lqc-seite__tel { display: none; }
  .lqc-seite__kacheln { grid-template-columns: 1fr; }
  .lqc-chat { left: 8px; right: 8px; bottom: 8px; width: auto; height: calc(100% - 16px); }
  .lqc-reiter { max-width: 170px; }
}

/* Dateifenster */
.lqd { display: flex; flex-direction: column; min-width: 0; container-type: inline-size; border: 1px solid #BFC4C9; border-radius: 8px; overflow: hidden; background: #FFFFFF; font: 13px/1.35 var(--lqb-ui); color: #1B1F23; }
.lqd svg:not(.lqd-sym) { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lqd-titel { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; background: #E9ECEF; font-size: 12.5px; }
.lqd-titel > span:first-child { display: flex; align-items: center; gap: 7px; }
.lqd-titel > span:first-child svg { color: #C99A2E; fill: #F2C94C; }
.lqd-titel__fenster { display: flex; gap: 14px; }
.lqd-titel__fenster i { width: 10px; height: 10px; border: 1.4px solid #7A848D; }
.lqd-titel__fenster i:first-child { height: 0; border-width: 1.4px 0 0; margin-top: 5px; }
.lqd-leiste { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-bottom: 1px solid #E1E4E7; background: #F7F8F9; color: #5A6670; }
.lqd-pfad { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; padding: 4px 8px; border: 1px solid #D6DADE; border-radius: 4px; background: #FFFFFF; color: #2A2F34; white-space: nowrap; overflow: hidden; }
.lqd-pfad b { font-weight: 400; }
.lqd-pfad i svg { width: 11px; height: 11px; color: #8A939B; }
.lqd-suche { display: flex; align-items: center; gap: 6px; width: 210px; padding: 4px 8px; border: 1px solid #D6DADE; border-radius: 4px; background: #FFFFFF; color: #8A939B; white-space: nowrap; overflow: hidden; }
.lqd-koerper { display: grid; grid-template-columns: 170px minmax(0, 1fr); min-height: 0; flex: 1; }
.lqd-orte { display: flex; flex-direction: column; gap: 1px; padding: 8px 6px; border-right: 1px solid #E1E4E7; background: #FAFAFB; }
.lqd-orte span { display: flex; align-items: center; gap: 7px; padding: 5px 8px; border-radius: 4px; color: #3A4148; white-space: nowrap; overflow: hidden; }
.lqd-orte span svg { color: #C99A2E; }
.lqd-orte span.an { background: #E5EDFA; }
.lqd-inhalt { overflow: auto; min-width: 0; }
.lqd table { width: 100%; border-collapse: collapse; }
.lqd th { position: sticky; top: 0; padding: 6px 10px; border-bottom: 1px solid #E1E4E7; background: #FFFFFF; font-weight: 400; color: #5A6670; text-align: left; white-space: nowrap; }
.lqd td { padding: 4px 10px; color: #3A4148; white-space: nowrap; }
.lqd tbody tr { cursor: default; }
.lqd tbody tr:hover td { background: #F1F5FB; }
.lqd tbody tr[aria-selected="true"] td { background: #DCE7F7; }
.lqd tbody tr.ist-quelle td { background: var(--lq-gruen-hell); }
.lqd tbody tr.ist-quelle td:first-child { box-shadow: inset 3px 0 0 var(--lq-gruen); }
.lqd-name { display: flex; align-items: center; gap: 8px; color: #1B1F23; }
.lqd-name span { overflow: hidden; text-overflow: ellipsis; }
.lqd-sym { width: 16px; height: 19px; flex: none; }
.lqd-status { padding: 4px 10px; border-top: 1px solid #E1E4E7; background: #F7F8F9; font-size: 11.5px; color: #6B7680; }
@container (max-width: 620px) {
  .lqd-koerper { grid-template-columns: minmax(0, 1fr); }
  .lqd-orte, .lqd-suche, .lqd-sp-art, .lqd-sp-groesse { display: none; }
  .lqd td:first-child { white-space: normal; }
}
@container (max-width: 400px) { .lqd-sp-datum { display: none; } }

/* Tagesplan (Kalender eines Tages) */
.lqt { min-width: 0; border: 1px solid #C9CDD1; border-radius: 8px; overflow: hidden; background: #FFFFFF; font: 13px/1.35 var(--lqb-ui); color: #1B1F23; }
.lqt-kopf { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid #E1E4E7; background: #F7F8F9; }
.lqt-kopf strong { flex: 1; font-size: 13.5px; }
.lqt-kopf__knoepfe { display: flex; gap: 6px; color: #5A6670; }
.lqt-kopf__knoepfe svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.lqt-kopf__art { display: flex; gap: 2px; padding: 2px; border-radius: 6px; background: #E9ECEF; font-size: 11.5px; }
.lqt-kopf__art span { padding: 2px 8px; border-radius: 4px; color: #4F5962; }
.lqt-kopf__art span.an { background: #FFFFFF; color: #1B1F23; }
.lqt-kalender { padding: 4px 12px; border-bottom: 1px solid #EEF0F2; font-size: 11.5px; color: #6B7680; }
.lqt-raster { position: relative; margin: 12px 10px 10px 0; }
.lqt-stunde { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid #ECEEF0; }
.lqt-stunde span { position: absolute; top: -7px; left: 8px; width: 40px; font-size: 11px; color: #7A848D; }
.lqt-termine { position: absolute; inset: 0 0 0 56px; }
.lqt-termin { position: absolute; left: 0; right: 0; overflow: hidden; padding: 3px 8px; border-left: 3px solid #5B7EA8; border-radius: 4px; background: #E4ECF6; font-size: 12px; line-height: 1.3; }
.lqt-termin b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lqt-termin span { color: #4F5962; }
.lqt-termin--privat { border-left-color: #9A8F6E; background: #F1EEE4; }
.lqt-termin.ist-neu { border: 1.5px solid var(--lq-gruen); border-left-width: 3px; background: #EAF6F0; animation: lqv-rein .35s ease-out both; }
.lqt-termin em { display: inline-block; margin-top: 1px; padding: 0 5px; border-radius: 3px; background: var(--lq-gruen); color: #FFFFFF; font: 600 10px/1.5 'Geist Mono', ui-monospace, monospace; font-style: normal; }

/* Formblatt (A4-Formular mit Abschnitten) */
.lqv-form { font-size: 9pt; }
.lqv-form__kopf { position: absolute; top: 12mm; left: 18mm; right: 15mm; display: flex; justify-content: space-between; align-items: flex-start; gap: 8mm; padding-bottom: 3mm; border-bottom: .5mm solid var(--lqb-akzent); color: var(--lqb-farbe); }
.lqv-form__firma { display: flex; align-items: center; gap: 3mm; }
.lqv-form__firma svg { height: 11mm; width: auto; flex: none; }
.lqv-form__firma b { display: block; font-size: 12pt; }
.lqv-form__firma small { display: block; margin-top: .6mm; font-size: 6.8pt; color: #444; }
.lqv-form__titel { text-align: right; }
.lqv-form__titel h2 { margin: 0; font-size: 15pt; font-weight: 700; letter-spacing: .01em; color: #141414; text-transform: uppercase; }
.lqv-form__titel small { display: block; font-size: 8pt; color: #444; }
.lqv-form__titel span { display: inline-block; margin-top: 1mm; font-size: 8.5pt; color: #141414; }
.lqv-fg { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: .3mm solid #222; border-left: .3mm solid #222; }
.lqv-fg--kopf { position: absolute; top: 33mm; left: 18mm; right: 15mm; }
.lqv-fk { min-height: 9.5mm; padding: .9mm 1.6mm 1.2mm; border-right: .3mm solid #222; border-bottom: .3mm solid #222; }
.lqv-fk label { display: block; font-size: 6.2pt; color: #444; text-transform: uppercase; letter-spacing: .03em; }
.lqv-fk__wert { display: block; min-height: 4.2mm; font-size: 9pt; line-height: 1.3; white-space: pre-line; }
.lqv-fk__wert > span { display: inline-block; min-width: 10mm; }
.lqv-form__inhalt { position: absolute; top: 56mm; left: 18mm; right: 15mm; bottom: 40mm; display: flex; flex-direction: column; gap: 3.2mm; overflow: hidden; }
.lqv-fa h3 { margin: 0; padding: .8mm 1.6mm; background: #E6E6E6; border: .3mm solid #222; border-bottom: 0; font-size: 7.6pt; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.lqv-ft { width: 100%; border-collapse: collapse; font-size: 8.4pt; }
.lqv-ft th { padding: .8mm 1.4mm; border: .3mm solid #222; background: #F3F3F3; font-size: 6.8pt; font-weight: 600; text-align: left; }
.lqv-ft td { height: 6mm; padding: .6mm 1.4mm; border: .3mm solid #222; vertical-align: middle; }
.lqv-ft td.lqb-z, .lqv-ft th.lqb-z { text-align: right; }
.lqv-fz { border: .3mm solid #222; }
.lqv-fz p { min-height: 6mm; margin: 0; padding: .9mm 1.6mm; border-bottom: .2mm solid #B5B5B5; font-size: 8.8pt; line-height: 1.35; }
.lqv-fz p:last-child { border-bottom: 0; }
.lqv-fz p.hinweis { font-weight: 700; }
.lqv-luecke { display: inline-block; min-width: 16mm; min-height: 4mm; vertical-align: middle; border-bottom: .25mm dotted #888; }
.lqv-unterschriften { position: absolute; left: 18mm; right: 15mm; bottom: 17mm; display: flex; gap: 10mm; }
.lqv-unterschriften > div { flex: 1; }
.lqv-unterschriften > div > span { display: block; height: 9mm; border-bottom: .3mm solid #222; }
.lqv-unterschriften small { display: block; margin-top: .8mm; font-size: 6.8pt; color: #444; }
.lqv-form__fuss { position: absolute; left: 18mm; right: 15mm; bottom: 7mm; display: flex; justify-content: space-between; gap: 6mm; font-size: 6pt; color: #555; }
/* Betriebsanweisung: farbige Balken wie auf dem Aushang; Handbuchseite: Fließtext */
.lqv-form--anweisung .lqv-fa h3 { background: var(--lqb-akzent); border-color: var(--lqb-akzent); color: #FFFFFF; text-align: center; font-size: 8.4pt; }
.lqv-form--anweisung .lqv-fz { border-color: var(--lqb-akzent); border-width: .6mm; }
.lqv-form--anweisung .lqv-fz p { border-bottom: 0; font-size: 9pt; padding: .7mm 2.4mm; }
.lqv-form--anweisung .lqv-fz p::before { content: '•'; margin-right: 1.8mm; }
.lqv-form--seite .lqv-fa h3 { padding: 0 0 1mm; border: 0; background: none; font-size: 10.5pt; text-transform: none; letter-spacing: 0; }
.lqv-form--seite .lqv-fz { border: 0; }
.lqv-form--seite .lqv-fz p { min-height: 0; border: 0; padding: .6mm 0; font-size: 9.5pt; line-height: 1.45; }

/* Telefonnotiz (Rückruf-Zettel) */
.lqn { position: relative; max-width: 380px; padding: 14px 16px 12px; background: #FFFDF2; border: 1px solid #E3DDBF; box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 8px 18px -12px rgba(0, 0, 0, .35); font: 13px/1.35 var(--lqb-sans); color: #1E1E1E; transform: rotate(-.6deg); }
.lqn::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: repeating-linear-gradient(90deg, #D7D0B0 0 2px, transparent 2px 9px); }
.lqn-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 4px 0 8px; padding-bottom: 4px; border-bottom: 2px solid #B5402F; }
.lqn-kopf strong { font-size: 17px; letter-spacing: .02em; color: #B5402F; text-transform: uppercase; }
.lqn-kopf span { font-size: 11px; color: #555; text-align: right; }
.lqn-z { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: end; gap: 6px; margin-bottom: 5px; }
.lqn-z label { font-size: 11px; color: #555; }
.lqn-z span { min-height: 19px; border-bottom: 1px solid #9C9786; font-size: 13.5px; overflow-wrap: anywhere; }
.lqn-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lqn-zwei .lqn-z { grid-template-columns: 50px minmax(0, 1fr); }
.lqn-kreuze { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 8px; font-size: 12px; }
.lqn-kreuze span { display: inline-flex; align-items: center; gap: 5px; color: #555; }
.lqn-kreuze i { display: grid; place-items: center; width: 13px; height: 13px; border: 1px solid #6E6A5C; font: 700 10px/1 var(--lqb-sans); font-style: normal; color: #1C3FAA; }
.lqn-kreuze span.an { color: #1E1E1E; font-weight: 600; }
.lqn-kreuze span.dringend.an { color: #B5402F; }
.lqn-nachricht label { font-size: 11px; color: #555; }
.lqn-nachricht p { min-height: 57px; margin: 2px 0 8px; padding: 0 2px; background: repeating-linear-gradient(transparent 0 18px, #CFC9B3 18px 19px); font-size: 13.5px; line-height: 19px; }
.lqn.ist-neu { animation: lqv-rein .35s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  .lqv-n.ist-neu, .lqv-entwurf, .lqa-zeile, .lqc-n, .lqt-termin.ist-neu, .lqn.ist-neu { animation: none !important; }
  .lqv-w, .lqv-m, .lqv-sp__marke { transition: none !important; }
}
/* ===== Ende Erweiterung D3 ===== */
   Erweiterung D4K (Kurz-Demos): Gestaltung der Bausteine aus dem Block „Erweiterung D4K“ in belege.js.
   Welt des Betriebs: neutrale Grautöne, Systemschrift, keine Farben oder Logos eines Anbieters. Klassen .lqk-*.
   ===================================================================================================== */
/* Freies A4-Blatt (blattHTML) */
.lqk-blatt { display: flex; flex-direction: column; padding: 14mm 18mm 12mm 22mm; }
.lqk-blatt__kopf { flex: none; margin-bottom: 6mm; }
.lqk-blatt__inhalt { flex: 1; min-height: 0; }
.lqk-blatt__fuss { flex: none; margin-top: 4mm; padding-top: 2mm; border-top: .2mm solid #9A9A9A; font-size: 6.6pt; line-height: 1.4; color: #555; display: flex; justify-content: space-between; gap: 6mm; }
.lqk-blatt h2 { margin: 0 0 1.5mm; font-size: 15pt; font-weight: 700; color: var(--lqb-farbe); letter-spacing: -.01em; }
.lqk-blatt h3 { margin: 0 0 1.5mm; font-size: 9pt; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #444; }
.lqk-blatt table { width: 100%; border-collapse: collapse; }

/* Diagramm (SVG) */
.lqk-diagramm { display: block; width: 100%; height: auto; overflow: visible; }
.lqk-dg__gitter { stroke: #E2E4E6; stroke-width: .6; }
.lqk-dg__achse { font: 7.5px Arial, 'Liberation Sans', sans-serif; fill: #6B7178; }
.lqk-dg__wert { font: 700 9px Arial, 'Liberation Sans', sans-serif; fill: #1E242A; }

/* Amtsschreiben: stil.kopf 'amt' – Fuß ohne Register- und Steuerspalte, Rechtsbehelfshinweis klein */
.lqb-blatt:has(.lqb-kopf--amt) .lqb-fuss { grid-template-columns: 1.1fr 1.2fr 1.1fr; }
.lqb-blatt:has(.lqb-kopf--amt) .lqb-fuss > div:nth-child(4) { display: none; }
.lqb-kopf--amt { border-bottom: .3mm solid var(--lqb-farbe); padding-bottom: 3mm; height: auto; }
.lqb-kopf--amt .lqb-kopf__name { font-size: 13pt; }
.lqb-blatt .lqb-text p[data-feld="rechtsbehelf"] { margin-top: 5mm; font-size: 7pt; line-height: 1.35; color: #3C3C3C; }
.lqb-blatt .lqb-text p[data-feld="frist"] { font-weight: 700; }

/* Plantafel */
.lqk-plan { display: flex; flex-direction: column; min-width: 0; border: 1px solid #C9CDD1; border-radius: 6px; background: #FFFFFF; font: 12.5px/1.3 var(--lqb-ui); color: #1F2328; overflow: hidden; }
.lqk-plan__leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 10px; border-bottom: 1px solid #D5D8DC; background: #F3F4F6; }
.lqk-plan__leiste b { font-weight: 600; }
.lqk-plan__leiste > span:not(.lqk-plan__ansicht) { color: #555B62; }
.lqk-plan__ansicht { display: inline-flex; margin-left: auto; border: 1px solid #C9CDD1; border-radius: 4px; overflow: hidden; }
.lqk-plan__ansicht i { padding: 3px 9px; font-style: normal; color: #555B62; background: #FFFFFF; }
.lqk-plan__ansicht i + i { border-left: 1px solid #C9CDD1; }
.lqk-plan__ansicht i.an { background: #E4E7EB; color: #1F2328; font-weight: 600; }
.lqk-plan__scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.lqk-plan__tafel { min-width: 560px; }
.lqk-plan__kopf, .lqk-plan__zeile { display: grid; grid-template-columns: 128px minmax(0, 1fr); }
.lqk-plan__kopf { background: #F8F9FA; border-bottom: 1px solid #D5D8DC; font-size: 11.5px; color: #555B62; }
.lqk-plan__kopf > span, .lqk-plan__kopf > div > span { padding: 6px 8px; }
.lqk-plan__kopf > div { display: grid; grid-template-columns: repeat(var(--tage, 5), minmax(0, 1fr)); }
.lqk-plan__kopf > div > span { border-left: 1px solid #E1E4E7; font-weight: 600; color: #30363D; }
.lqk-plan__zeile { border-bottom: 1px solid #E1E4E7; }
.lqk-plan__zeile:last-child { border-bottom: 0; }
.lqk-plan__name { padding: 7px 8px; background: #FAFBFB; border-right: 1px solid #E1E4E7; }
.lqk-plan__name b { display: block; font-weight: 600; }
.lqk-plan__name small { display: block; margin-top: 2px; font-size: 11px; color: #6A7178; }
.lqk-plan__spur { display: grid; grid-template-columns: repeat(var(--tage, 5), minmax(0, 1fr)); grid-auto-rows: minmax(38px, auto); grid-auto-flow: row dense; gap: 3px 0; padding: 4px 0; min-height: 50px;
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--tage, 5) - 1px), #ECEEF0 calc(100% / var(--tage, 5) - 1px) calc(100% / var(--tage, 5))); }
.lqk-plan__e { margin: 0 3px; padding: 4px 6px; border-radius: 3px; border-left: 3px solid #4A6A8A; background: #E3EBF3; overflow: hidden; }
.lqk-plan__e b { display: block; overflow: hidden; font-weight: 600; font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
.lqk-plan__e small { display: block; overflow: hidden; font-size: 10.5px; color: #4A535C; white-space: nowrap; text-overflow: ellipsis; }
.lqk-plan__e--abwesend { border-left-color: #8B8F94; background: repeating-linear-gradient(135deg, #EEEFF1 0 6px, #E2E4E7 6px 12px); color: #4A4F55; }
.lqk-plan__e--neu { animation: lqk-rein .45s ease-out both; }
.lqk-plan__e--vorschlag { border: 1.5px dashed #006850; border-left-width: 3px; background: #EEF8F3; }
.lqk-plan__e--konflikt { border-left-color: #B42318; background: #FDECEA; }
.lqk-plan__e--weg { opacity: .45; text-decoration: line-through; }
@keyframes lqk-rein { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }

/* Kalenderblatt (Monat) */
.lqk-kal { border: 1px solid #C9CDD1; border-radius: 6px; background: #FFFFFF; font: 12px/1.25 var(--lqb-ui); color: #1F2328; overflow: hidden; }
.lqk-kal__kopf { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid #D5D8DC; background: #F3F4F6; }
.lqk-kal__kopf b { font-size: 13px; font-weight: 600; }
.lqk-kal__pfeile i { display: inline-block; width: 20px; font-style: normal; text-align: center; color: #555B62; }
.lqk-kal__ansicht { margin-left: auto; padding: 2px 8px; border: 1px solid #C9CDD1; border-radius: 4px; background: #FFFFFF; color: #555B62; }
.lqk-kal__wt, .lqk-kal__gitter { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.lqk-kal__wt span { padding: 4px 6px; font-size: 11px; color: #6A7178; border-bottom: 1px solid #E1E4E7; }
.lqk-kal__tag { min-height: 46px; padding: 3px 4px; border-right: 1px solid #ECEEF0; border-bottom: 1px solid #ECEEF0; overflow: hidden; }
.lqk-kal__tag:nth-child(7n) { border-right: 0; }
.lqk-kal__tag.ist-we { background: #FAFBFB; }
.lqk-kal__tag.ist-aussen .lqk-kal__nr { color: #A9AFB5; }
.lqk-kal__nr { display: inline-block; min-width: 18px; font-size: 11px; color: #3A4047; }
.lqk-kal__tag.ist-heute .lqk-kal__nr { border-radius: 9px; background: #3A4047; color: #FFFFFF; text-align: center; }
.lqk-kal__e { display: block; margin-top: 2px; padding: 1px 4px; border-radius: 3px; border-left: 3px solid #4A6A8A; background: #E3EBF3; font-size: 10.5px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.lqk-kal__e--frist { border-left-color: #A33A1E; background: #FBE9E4; color: #6E1F0E; font-weight: 600; }
.lqk-kal { container-type: inline-size; }
.lqk-kal__liste { list-style: none; margin: 0; padding: 6px 10px 8px; border-top: 1px solid #D5D8DC; display: grid; gap: 3px; background: #FAFBFB; }
.lqk-kal__liste li { display: flex; gap: 8px; padding-left: 8px; border-left: 3px solid #4A6A8A; font-size: 12px; }
.lqk-kal__liste li.lqk-kal__li--frist { border-left-color: #A33A1E; background: none; color: #6E1F0E; font-weight: 600; }
.lqk-kal__liste b { min-width: 58px; font-weight: 600; color: #3A4047; }
@container (max-width: 560px) {
  .lqk-kal__tag { min-height: 36px; }
  .lqk-kal__e { height: 5px; margin-top: 3px; padding: 0; border-left: 0; font-size: 0; }
  .lqk-kal__e--frist { background: #A33A1E; }
  .lqk-kal__e--termin { background: #4A6A8A; }
}

/* Suchergebnis-Seite (neutral, ohne Anbieter) */
.lqk-suche { border: 1px solid #C9CDD1; border-radius: 6px; background: #FFFFFF; font: 13px/1.4 var(--lqb-ui); color: #202124; overflow: hidden; }
.lqk-suche__kopf { display: flex; align-items: center; gap: 12px; padding: 10px 14px 8px; }
.lqk-suche__marke { font: 700 15px/1 var(--lqb-ui); color: #5F6368; letter-spacing: .02em; }
.lqk-suche__feld { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; height: 36px; padding: 0 14px; border: 1px solid #DADCE0; border-radius: 18px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); color: #5F6368; }
.lqk-suche__feld span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #202124; }
.lqk-suche__reiter { display: flex; gap: 16px; padding: 0 14px; border-bottom: 1px solid #E3E5E8; font-size: 12.5px; color: #5F6368; overflow: hidden; }
.lqk-suche__reiter span { padding: 6px 0 7px; white-space: nowrap; }
.lqk-suche__reiter span.an { color: #202124; border-bottom: 2px solid #3C4043; font-weight: 600; }
.lqk-suche__inhalt { padding: 8px 14px 14px; }
.lqk-suche__zahl { margin: 0 0 8px; font-size: 11.5px; color: #70757A; }
.lqk-suche__karte { margin: 0 0 12px; border: 1px solid #DADCE0; border-radius: 8px; overflow: hidden; }
.lqk-suche__plan { position: relative; height: 92px; overflow: hidden; }
.lqk-suche__plan svg { display: block; width: 100%; height: 100%; }
.lqk-suche__nadel { position: absolute; display: grid; place-items: center; width: 20px; height: 20px; margin: -24px 0 0 -10px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #727982; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); font: normal 700 10px/1 Arial, sans-serif; color: #FFFFFF; }
.lqk-suche__nadel b { transform: rotate(45deg); font-weight: 700; }
.lqk-suche__nadel.ist-hervor { background: #2A2A2A; }
.lqk-suche__karte ol { list-style: none; margin: 0; padding: 0; }
.lqk-suche__karte li { position: relative; display: flex; gap: 10px; padding: 8px 12px; border-top: 1px solid #ECEEF0; }
.lqk-suche__karte li b { display: block; font-weight: 600; font-size: 13.5px; color: #1F2D4D; }
.lqk-suche__karte li span { display: block; font-size: 12px; color: #4D5156; }
.lqk-suche__pin { flex: none; display: grid !important; place-items: center; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: #727982; color: #FFFFFF !important; font: 700 10px/1 Arial, sans-serif !important; }
.lqk-suche__leer { font-style: normal; color: #80868B; }
.lqk-sterne { display: inline !important; letter-spacing: -1px; }
.lqk-sterne i { font-style: normal; color: #D2D5D9; }
.lqk-sterne i.an { color: #8A7A50; }
.lqk-sterne i.halb { background: linear-gradient(90deg, #8A7A50 50%, #D2D5D9 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lqk-suche__mehr { display: block; padding: 7px 12px; border-top: 1px solid #ECEEF0; font-size: 12px; color: #3C4043; font-weight: 600; }
.lqk-suche__treffer { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lqk-suche__url { display: block; font-size: 11.5px; color: #4D5156; overflow-wrap: anywhere; }
.lqk-suche__treffer b { display: block; margin: 1px 0 2px; font-weight: 400; font-size: 15px; line-height: 1.3; color: #1F3B7A; }
.lqk-suche__treffer p { margin: 0; font-size: 12.5px; color: #4D5156; }

/* Antwort eines KI-Assistenten (neutral) */
.lqk-ki { display: flex; flex-direction: column; border: 1px solid #C9CDD1; border-radius: 6px; background: #FFFFFF; font: 13px/1.5 var(--lqb-ui); color: #1F2328; overflow: hidden; }
.lqk-ki__kopf { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #E3E5E8; background: #F7F7F8; }
.lqk-ki__kopf b { font-weight: 600; }
.lqk-ki__kopf > span:last-child { margin-left: auto; font-size: 11.5px; color: #6A7178; }
.lqk-ki__symbol { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: #4B5058; color: #FFFFFF; }
.lqk-ki__verlauf { padding: 12px 14px; display: grid; gap: 10px; }
.lqk-ki__frage { justify-self: end; max-width: 85%; margin: 0; padding: 7px 12px; border-radius: 14px 14px 4px 14px; background: #ECEDEF; }
.lqk-ki__antwort p { margin: 0 0 6px; }
.lqk-ki__antwort ol { margin: 0 0 6px; padding-left: 20px; display: grid; gap: 5px; }
.lqk-ki__antwort li b { font-weight: 600; }
.lqk-ki__quellen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 11.5px; color: #6A7178; }
.lqk-ki__quellen i { padding: 1px 8px; border: 1px solid #DADCE0; border-radius: 999px; font-style: normal; color: #3C4043; }
.lqk-ki__eingabe { margin: 0 12px 12px; padding: 8px 12px; border: 1px solid #DADCE0; border-radius: 18px; color: #80868B; font-size: 12.5px; }

/* Browserfenster ohne Marke */
.lqk-browser { border: 1px solid #C2C6CB; border-radius: 8px; background: #FFFFFF; overflow: hidden; font: 12.5px/1.3 var(--lqb-ui); color: #1F2328; box-shadow: 0 8px 22px -14px rgba(0, 0, 0, .35); }
.lqk-browser__reiterleiste { display: flex; align-items: flex-end; gap: 8px; padding: 6px 10px 0; background: #E3E5E8; }
.lqk-browser__punkte { display: inline-flex; gap: 5px; align-self: center; margin-right: 4px; }
.lqk-browser__punkte i { width: 9px; height: 9px; border-radius: 50%; background: #B9BDC2; }
.lqk-browser__reiter { display: inline-flex; align-items: center; gap: 6px; max-width: 60%; padding: 6px 12px; border-radius: 6px 6px 0 0; background: #FFFFFF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lqk-browser__fav { width: 11px; height: 11px; flex: none; border-radius: 2px; background: #2D3A45; }
.lqk-browser__plus { padding-bottom: 5px; color: #6A7178; }
.lqk-browser__leiste { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-bottom: 1px solid #E3E5E8; }
.lqk-browser__knoepfe { color: #6A7178; letter-spacing: 4px; white-space: nowrap; }
.lqk-browser__adresse { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; padding: 4px 12px; border-radius: 14px; background: #F1F3F4; color: #5F6368; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lqk-browser__adresse b { font-weight: 400; color: #202124; }
.lqk-browser__inhalt { position: relative; }

/* Beitrag in einem neutralen Netzwerk-Rahmen */
.lqk-beitrag { border: 1px solid #D5D8DC; border-radius: 8px; background: #FFFFFF; font: 13.5px/1.45 var(--lqb-ui); color: #1F2328; overflow: hidden; }
.lqk-beitrag header { display: flex; align-items: center; gap: 10px; padding: 10px 12px 6px; }
.lqk-beitrag header b { display: block; font-weight: 600; }
.lqk-beitrag header small { display: block; font-size: 11.5px; color: #6A7178; }
.lqk-beitrag__avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: #2D3A45; color: #FFFFFF; font: 700 13px/1 var(--lqb-ui); }
.lqk-beitrag__mehr { margin-left: auto; color: #6A7178; }
.lqk-beitrag__text { display: block; width: 100%; margin: 0; padding: 4px 12px 10px; border: 0; background: transparent; font: inherit; color: inherit; resize: vertical; white-space: pre-wrap; }
textarea.lqk-beitrag__text { min-height: 120px; outline: 1px dashed #B9C0C7; outline-offset: -4px; border-radius: 6px; }
textarea.lqk-beitrag__text:focus { outline: 2px solid #4A6A8A; }
.lqk-beitrag__bild svg, .lqk-beitrag__bild img { display: block; width: 100%; height: auto; }
.lqk-beitrag footer { display: flex; justify-content: space-around; padding: 7px 8px; border-top: 1px solid #E3E5E8; font-size: 12.5px; color: #5F6368; }

/* Foto in der Fotoansicht eines Handys */
.lqk-handybild { margin: 0; border-radius: 14px; background: #111; color: #EDEDED; overflow: hidden; font: 12px/1.3 var(--lqb-ui); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6); }
.lqk-handybild__leiste { display: flex; justify-content: space-between; padding: 7px 12px; color: #D0D0D0; }
.lqk-handybild__foto svg, .lqk-handybild__foto img { display: block; width: 100%; height: auto; }
.lqk-handybild figcaption { padding: 7px 12px 9px; color: #BDBDBD; font-size: 11.5px; }
@media (prefers-reduced-motion: reduce) { .lqk-plan__e--neu { animation: none !important; } }

/* ===== Erweiterung D4R (Rechnungen als E-Rechnung ausstellen): Abschläge unter den Summen, Lesefassung ===== */
.lqr-summen { margin-bottom: 0; }
.lqr-abzug { margin-top: 1.2mm; }
.lqr-abzug th { white-space: normal; }
.lqr-abzug th small { display: block; font-size: 7.4pt; color: #555; }
.lqr-abzug .lqr-abzug__z th, .lqr-abzug .lqr-abzug__z td { padding-top: 1mm; vertical-align: top; }
.lqr-abzug tr.lqb-summen__end td { border-bottom: .9mm double #222; }
.lqr-lese .lqb-pos small { display: block; font-size: 7pt; color: #666; }
.lqb-foto.lqr-foto-a4 { width: 172mm; height: 232mm; }
.lqr-foto-a4 .lqb-foto__beleg { transform: translate(-50%, -50%) perspective(340mm) rotateX(8deg) rotateZ(-2.5deg) scale(.74); }
/* ===== Ende Erweiterung D4R ===== */

/* =====================================================================================================
   Erweiterung D4E (Exportdokumente): Handelspapier (.lqx-blatt) aus LQBelege.handelspapierHTML – Handelsrechnung
   und Packliste mit zweisprachigen Beschriftungen; Aufbau Feld für Feld (.lqx-aufbau, LQBelege.aufbau).
   Welt des Betriebs: Systemschrift, Grau, Farbe nur aus dem Briefkopf des Ausstellers.
   ===================================================================================================== */
.lqx-kopf { position: absolute; top: 11mm; left: 20mm; right: 15mm; display: flex; justify-content: space-between; align-items: flex-start; gap: 8mm; padding-bottom: 3mm; border-bottom: .5mm solid var(--lqb-akzent); color: var(--lqb-farbe); }
.lqx-kopf__logo { display: flex; align-items: center; gap: 3mm; }
.lqx-kopf__logo svg { display: block; height: 12mm; width: auto; flex: none; }
.lqx-kopf__logo b { display: block; font-size: 13pt; line-height: 1.1; }
.lqx-kopf__logo small { display: block; margin-top: .8mm; font-size: 7pt; color: #555; }
.lqx-kopf__adr { font-size: 7pt; line-height: 1.4; text-align: right; color: #333; }
.lqx-inhalt { position: absolute; top: 34mm; left: 20mm; right: 15mm; bottom: 38mm; display: flex; flex-direction: column; gap: 3.4mm; overflow: hidden; }
.lqx-titel { display: flex; justify-content: space-between; align-items: flex-end; gap: 6mm; }
.lqx-titel h2 { margin: 0; font-size: 15pt; font-weight: 700; line-height: 1.1; letter-spacing: .01em; text-transform: uppercase; color: #141414; }
.lqx-titel h2 span { display: block; margin-top: .8mm; font-size: 9pt; font-weight: 400; letter-spacing: .04em; color: #555; }
.lqx-nr { border-collapse: collapse; font-size: 8.4pt; }
.lqx-nr th { padding: .2mm 3mm .2mm 0; font-weight: 400; color: #555; text-align: left; white-space: nowrap; }
.lqx-nr td { padding: .2mm 0; text-align: right; white-space: nowrap; }
.lqx-parteien { display: grid; gap: 2.5mm; }
.lqx-partei { min-width: 0; padding: 1.5mm 2mm 1.8mm; border: .25mm solid #8A8A8A; font-size: 8.2pt; line-height: 1.34; }
.lqx-partei h3 { margin: 0 0 .8mm; font-size: 6.3pt; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #555; }
.lqx-block { display: block; }
.lqx-partei__zusatz { margin-top: 1mm; font-size: 7.4pt; color: #333; }
.lqx-angaben { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: .25mm solid #8A8A8A; border-left: .25mm solid #8A8A8A; }
.lqx-angaben > div { min-width: 0; padding: 1mm 1.6mm 1.2mm; border-right: .25mm solid #8A8A8A; border-bottom: .25mm solid #8A8A8A; }
.lqx-angaben > div.lqx-breit { grid-column: span 2; }
.lqx-angaben dt { font-size: 6.1pt; letter-spacing: .03em; text-transform: uppercase; color: #555; }
.lqx-angaben dd { margin: .4mm 0 0; min-height: 3.6mm; font-size: 8.2pt; line-height: 1.3; }
.lqx-tab { width: 100%; border-collapse: collapse; font-size: 7.8pt; line-height: 1.28; }
.lqx-tab th { padding: 1mm 1.1mm; border-bottom: .35mm solid #222; background: #EDEDED; font-weight: 700; text-align: left; vertical-align: bottom; }
.lqx-tab th small { display: block; font-size: 6.2pt; font-weight: 400; color: #555; }
.lqx-tab td { padding: 1.1mm 1.1mm; border-bottom: .15mm solid #C8C8C8; vertical-align: top; }
.lqx-tab td small { display: block; margin-top: .3mm; font-size: 6.8pt; color: #555; }
.lqx-tab .lqb-z, .lqx-tab th.lqb-z { text-align: right; }
.lqx-summen { width: 92mm; margin: -1mm 0 0 auto; border-collapse: collapse; font-size: 8.4pt; }
.lqx-summen th { padding: .6mm 3mm .6mm 0; font-weight: 400; text-align: left; white-space: nowrap; }
.lqx-summen td { padding: .6mm 0; }
.lqx-summen tr.lqx-summen__end th, .lqx-summen tr.lqx-summen__end td { padding-top: 1.4mm; border-top: .35mm solid #222; font-weight: 700; font-size: 9.4pt; }
.lqx-texte { font-size: 7.9pt; line-height: 1.38; }
.lqx-texte p { margin: 0 0 1.2mm; }
.lqx-texte p.lqx-fett { font-weight: 700; }
.lqx-unterschrift { position: absolute; left: 20mm; right: 15mm; bottom: 24mm; display: flex; gap: 12mm; }
.lqx-unterschrift > div { flex: 1; }
.lqx-unterschrift span { display: block; height: 8mm; border-bottom: .3mm solid #222; }
.lqx-unterschrift small { display: block; margin-top: .8mm; font-size: 6.6pt; color: #444; }
.lqx-blatt .lqb-fuss { left: 20mm; right: 15mm; }
.lqx-luecke { display: inline-block; min-width: 14mm; min-height: 3.6mm; vertical-align: middle; border-bottom: .25mm dotted #999; }
.lqx-q { transition: color .25s ease; }
.lqx-aufbau .lqx-q:not(.ist-da), .lqx-aufbau .lqx-q:not(.ist-da) small { color: transparent; }
.lqx-aufbau.lqv-form [data-feld]:not(.ist-da):not([data-feld="aussteller"]):not([data-feld="titel"]) { color: transparent; }
@media (prefers-reduced-motion: reduce) { .lqx-q { transition: none; } }
/* ===== Ende Erweiterung D4E ===== */

/* =====================================================================================================
   Erweiterung D4N (Nachweise): Gestaltung der Bausteine aus dem Block „Erweiterung D4N“ in belege.js.
   Welt des Betriebs: Zertifikat einer erfundenen Stelle (Doppelrahmen, Serifenschrift, kein Logo, kein
   Prüfzeichen), Organigramm (Kästen, Linien), freies Blatt mit Rand (.lqx-blatt) mit Deckblatt einer Nachweis-Mappe
   (.lqx-mappe) und Ausdruck aus dem Handelsregister (.lqx-hr), neutral grau. Klassen .lqx-*.
   ===================================================================================================== */
.lqx-zert { padding: 14mm; background: #FFFFFF; color: #1A1A1A; font-family: var(--lqb-serif); }
.lqx-zert__rahmen { position: relative; height: 100%; padding: 14mm 16mm 12mm; border: 1.2mm double #5A5F66; outline: .25mm solid #9AA0A6; outline-offset: -3.2mm; text-align: center; }
.lqx-zert__stelle b { display: block; font: 700 12pt/1.2 var(--lqb-sans); letter-spacing: .14em; text-transform: uppercase; color: #3A4047; }
.lqx-zert__stelle span { display: block; margin-top: 1mm; font: 7.4pt/1.35 var(--lqb-sans); color: #5A6068; }
.lqx-zert__art { margin: 16mm 0 2mm; font: 400 30pt/1 var(--lqb-serif); letter-spacing: .32em; text-transform: uppercase; color: #22272D; }
.lqx-zert__nr { margin: 0 0 12mm !important; font: 9pt var(--lqb-sans); letter-spacing: .06em; color: #444; }
.lqx-zert__satz { margin: 0 auto 4mm !important; max-width: 140mm; font-size: 11pt; line-height: 1.5; color: #333; }
.lqx-zert__inhaber { display: inline-block; margin: 2mm auto 6mm; }
.lqx-zert__inhaber b { display: block; font-size: 19pt; font-weight: 700; letter-spacing: .01em; color: #141414; }
.lqx-zert__inhaber span { display: block; margin-top: 1.4mm; font-size: 10.5pt; color: #333; }
.lqx-zert__inhaber small { display: block; margin-top: 1mm; font-size: 9pt; color: #555; }
.lqx-zert__norm { display: inline-block; margin: 1mm auto 7mm !important; padding: 2.5mm 8mm; border-top: .3mm solid #5A5F66; border-bottom: .3mm solid #5A5F66; font: 700 17pt/1.2 var(--lqb-sans); letter-spacing: .04em; color: #22272D; }
.lqx-zert__bereich { margin: 0 auto 8mm; max-width: 150mm; }
.lqx-zert__bereich span { display: block; margin-bottom: 1.5mm; font: 700 7.4pt var(--lqb-sans); letter-spacing: .16em; text-transform: uppercase; color: #5A6068; }
.lqx-zert__bereich p { display: inline; font-size: 11pt; line-height: 1.5; }
.lqx-zert__daten { margin: 0 auto; border-collapse: collapse; font: 9.5pt/1.4 var(--lqb-sans); }
.lqx-zert__daten th { padding: 1mm 6mm 1mm 0; text-align: right; font-weight: 400; color: #555; }
.lqx-zert__daten td { padding: 1mm 0; text-align: left; font-weight: 700; color: #1A1A1A; }
.lqx-zert__unter { position: absolute; left: 16mm; right: 16mm; bottom: 24mm; display: flex; justify-content: space-between; gap: 20mm; text-align: left; font: 9pt var(--lqb-sans); }
.lqx-zert__unter > div { flex: 1; max-width: 62mm; }
.lqx-zert__unter > div > span { display: block; min-height: 9mm; padding-bottom: 1mm; border-bottom: .3mm solid #333; }
.lqx-zert__unter small { display: block; margin-top: 1mm; font-size: 7pt; color: #555; }
.lqx-zert__hand { font-size: 15pt; color: #23305E; }
.lqx-zert__hinweis { position: absolute; left: 16mm; right: 16mm; bottom: 9mm; margin: 0 !important; font: 6.6pt/1.4 var(--lqb-sans); color: #666; }

.lqx-org { display: flex; flex-direction: column; padding: 14mm 15mm 10mm 20mm; }
.lqx-org__kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 8mm; padding-bottom: 3mm; border-bottom: .5mm solid var(--lqb-akzent); color: var(--lqb-farbe); }
.lqx-org__firma { display: flex; align-items: center; gap: 3mm; }
.lqx-org__firma svg { height: 11mm; width: auto; flex: none; }
.lqx-org__firma b { display: block; font-size: 12pt; }
.lqx-org__firma small { display: block; margin-top: .6mm; font-size: 6.8pt; color: #444; }
.lqx-org__titel { text-align: right; }
.lqx-org__titel h2 { margin: 0; font-size: 15pt; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: #141414; }
.lqx-org__titel span { display: inline-block; margin-top: 1mm; font-size: 8.5pt; color: #333; }
.lqx-org__baum { position: relative; margin-top: 12mm; display: flex; flex-direction: column; align-items: center; gap: 9mm; }
.lqx-org__k { position: relative; z-index: 1; padding: 2.4mm 3mm; border: .35mm solid #333; background: #FFFFFF; text-align: center; font-size: 8.4pt; line-height: 1.3; }
.lqx-org__k b { display: block; font-size: 8.8pt; }
.lqx-org__k span { display: block; margin-top: .6mm; color: #222; }
.lqx-org__k small { display: block; margin-top: .5mm; font-size: 7pt; color: #555; }
.lqx-org__k.ist-spitze { min-width: 62mm; border-width: .5mm; background: #F1F2F3; }
.lqx-org__k.ist-stab { background: #FAFAFA; }
.lqx-org__k.ist-extern { border-style: dashed; }
.lqx-org__oben { position: relative; }
.lqx-org__oben::after { content: ''; position: absolute; left: 50%; top: 100%; height: 60mm; border-left: .35mm solid #333; }
.lqx-org__stab { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 10mm minmax(0, 1fr); align-items: center; }
.lqx-org__stab > div { display: flex; gap: 3mm; width: fit-content; max-width: 100%; background: linear-gradient(#333, #333) 0 50% / 100% .35mm no-repeat; }
.lqx-org__stab > div:first-child { justify-self: end; }
.lqx-org__stab > div:empty { background: none; }
.lqx-org__stab > span { align-self: center; border-top: .35mm solid #333; }
.lqx-org__stab .lqx-org__k { flex: 0 1 46mm; }
.lqx-org__bereiche { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3mm; padding-top: 5mm; background: linear-gradient(#FFFFFF, #FFFFFF) no-repeat 0 5mm / 100% 100%; }
.lqx-org__bereiche::before { content: ''; position: absolute; top: 0; left: calc(50% / var(--n)); right: calc(50% / var(--n)); border-top: .35mm solid #333; }
.lqx-org__bereiche .lqx-org__k::before { content: ''; position: absolute; left: 50%; bottom: 100%; height: 5mm; border-left: .35mm solid #333; }
.lqx-org__bereiche .lqx-org__k { text-align: left; align-self: start; }
.lqx-org__hinweise { margin-top: 14mm; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3mm 6mm; font-size: 8.4pt; }
.lqx-org__hinweise > div { padding: 2mm 3mm; border-left: .8mm solid var(--lqb-akzent); background: #F6F6F6; }
.lqx-org__hinweise b { display: block; font-size: 7.2pt; text-transform: uppercase; letter-spacing: .05em; color: #444; }
.lqx-org__fuss { margin-top: auto; display: flex; justify-content: space-between; gap: 6mm; padding-top: 2mm; border-top: .2mm solid #9A9A9A; font-size: 6.4pt; color: #555; }

/* Freies Blatt mit Rand (blattHTML + Klasse lqx-blatt): Deckblatt einer Nachweis-Mappe (.lqx-mappe), Ausdruck aus
   dem Handelsregister (.lqx-hr). Auch für „Drucken“ (der Druckrahmen lädt nur belege.css). */
.lqx-blatt { display: flex; flex-direction: column; padding: 14mm 18mm 12mm 22mm; }
.lqx-hr { font-size: 9pt; line-height: 1.45; color: #141414; }
.lqx-hr__k { margin: 0 0 7mm !important; padding-bottom: 2mm; border-bottom: .3mm solid #333; font-weight: 700; }
.lqx-hr h2 { margin: 0 0 4mm; font-size: 14pt; color: #141414; }
.lqx-hr table { width: auto; margin: 0 0 7mm; border-collapse: collapse; }
.lqx-hr th { padding: .6mm 8mm .6mm 0; text-align: left; font-weight: 400; color: #444; }
.lqx-hr td { padding: .6mm 0; font-weight: 700; }
.lqx-hr ol { margin: 0; padding-left: 7mm; }
.lqx-hr li { margin: 0 0 3.2mm; }
.lqx-mappe__kopf { display: flex; align-items: center; gap: 3mm; padding-bottom: 3mm; border-bottom: .5mm solid var(--lqb-farbe); color: var(--lqb-farbe); }
.lqx-mappe__kopf svg { height: 11mm; width: auto; flex: none; }
.lqx-mappe__kopf b { display: block; font-size: 12pt; }
.lqx-mappe__kopf small { display: block; margin-top: .6mm; font-size: 6.8pt; color: #444; }
.lqx-mappe { font-size: 9pt; line-height: 1.4; color: #141414; }
.lqx-mappe__ueber { margin: 4mm 0 1mm !important; font-size: 7.6pt; letter-spacing: .16em; text-transform: uppercase; color: #555; }
.lqx-mappe h2 { margin: 0 0 5mm; font-size: 16pt; color: #141414; }
.lqx-mappe h3 { margin: 5mm 0 1.5mm; font-size: 8pt; text-transform: uppercase; letter-spacing: .06em; color: #333; }
.lqx-mappe__meta { width: auto !important; margin: 0 0 3mm; border-collapse: collapse; font-size: 9pt; }
.lqx-mappe__meta th { width: 34mm; padding: .8mm 6mm .8mm 0; text-align: left; font-weight: 400; color: #555; vertical-align: top; }
.lqx-mappe__meta td { padding: .8mm 0; }
.lqx-mappe__tab { width: 100%; border-collapse: collapse; font-size: 8pt; }
.lqx-mappe__tab th { padding: 1.1mm 1.4mm; border-bottom: .4mm solid #222; text-align: left; font-size: 6.8pt; font-weight: 700; }
.lqx-mappe__tab td { padding: 1.1mm 1.4mm; border-bottom: .2mm solid #BDBDBD; vertical-align: top; }
.lqx-mappe__tab td:first-child { width: 8mm; font-weight: 700; }
.lqx-mappe__tab td small { display: block; margin-top: .3mm; font-size: 6.4pt; color: #666; }
.lqx-mappe__offen { margin: 0; padding: 0; list-style: none; font-size: 8pt; }
.lqx-mappe__offen li { display: grid; grid-template-columns: 8mm minmax(0, 1fr) 52mm; gap: 2mm; padding: .9mm 1.4mm; border-bottom: .2mm solid #D5D5D5; }
.lqx-mappe__offen b { font-weight: 700; }
.lqx-mappe__offen span:last-child { color: #555; }
/* ===== Ende Erweiterung D4N ===== */
