/* Tagwerk 2.0 – Dokumente lesen (Vorsilbe le-). Schlichtes Grund-CSS: Raster, Abstände, 390 px ohne Querscrollen, hell/dunkel über die
   Variablen aus app.css. Die Feingestaltung folgt in gestaltung.css (dort auch die Fensterbreite: .fenster:has(.le-fenster)).
   Wiederverwendet aus app.css/module.css: .knopf, .eingabe, .rund, .form, .reihe. */

.fenster:has(.le-fenster) { width: min(760px, 100%); max-height: 90vh; overflow-y: auto; }
.le-fenster { min-width: 0; }
.le-datei { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 12px; color: var(--leise); min-width: 0; }
.le-datei-name { color: var(--text); font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.le-datei-groesse { font-size: 13px; }
.le-zaehler { margin-left: auto; font-size: 13px; font-variant-numeric: tabular-nums; }
.le-zaehler[hidden] { display: none; }

.le-hinweis, .le-still { color: var(--leise); margin: 8px 0 12px; }
.le-fehler, .le-aktfehler { color: var(--warn); margin: 8px 0 12px; }
.le-aktfehler[hidden] { display: none; }
.le-laedt { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--leise); }
.le-punkte { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--linie-stark, currentColor); border-top-color: var(--akzent, currentColor); animation: le-dreh .9s linear infinite; flex: none; }
@keyframes le-dreh { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .le-punkte { animation: none; } }

.le-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px; }
.le-art { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 650; background: var(--akzent-weich); color: var(--akzent-kraeftig, var(--text)); }
.le-richtung { font-size: 13px; color: var(--leise); }
.le-kurz { flex: 1 1 100%; overflow-wrap: anywhere; }
.le-unsicher { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; color: var(--leise); font-size: 14px; }

.le-felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; margin: 0 0 14px; }
.le-feld { display: grid; gap: 4px; min-width: 0; }
.le-feld.breit { grid-column: 1 / -1; }
.le-etikett { font-size: 12.5px; color: var(--leise); }
.le-feld .eingabe { width: 100%; min-width: 0; box-sizing: border-box; }

.le-pos-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0 0 8px; }
.le-pos-summe { margin-left: auto; color: var(--leise); font-size: 14px; }
.le-pos-liste { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.le-pos-zeile { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, .7fr) minmax(0, .7fr) minmax(0, .9fr) auto; gap: 6px; align-items: center; }
.le-pos-zeile .eingabe { width: 100%; min-width: 0; box-sizing: border-box; }

.le-wege { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.le-unten { margin-top: 8px; }

@media (max-width: 560px) {
  .le-felder { grid-template-columns: minmax(0, 1fr); }
  .le-pos-zeile { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
  .le-pos-titel { grid-column: 1 / -1; }
  .le-pos-zusatz { grid-column: 1 / 3; }
  .le-pos-groesse { grid-column: 3 / 4; }
  .le-pos-menge { grid-column: 1 / 2; }
  .le-pos-preis { grid-column: 2 / 4; }
  .le-wege .knopf { flex: 1 1 100%; }
}
