/* Einstellungen, Baugruppe logo: Stilregeln, die nur diese Baugruppe braucht. Gemeinsames (es-…) steht in oo.einstellungen.css,
   Allgemeines in oo.css – hier nie etwas davon überschreiben. Eigene Klassen mit der Vorsilbe es-lg-, nur Marken aus oo.css.
   Eingebunden in Dokument.razor nach oo.einstellungen.css. */

/* Hochladen: Beschriftung als Knopf, das Dateifeld selbst unsichtbar, aber mit Tastatur erreichbar (Fokus zeigt die Beschriftung). */
.es-lg-datei { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; clip-path: inset(50%); }
.es-lg-hoch { cursor: pointer; white-space: nowrap; }
.es-lg-hoch.gesperrt { opacity: .55; cursor: default; pointer-events: none; }
.es-aktionen:focus-within .es-lg-hoch { box-shadow: 0 0 0 3px var(--akzent-schein); }

/* Kennzahlen und Speicherbalken */
.es-lg-kz { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--linie-fein); border-radius: 3px; }
.es-lg-kz-feld { display: grid; gap: 2px; padding: 8px 12px; min-width: 0; }
.es-lg-kz-feld + .es-lg-kz-feld { border-left: 1px solid var(--linie-fein); }
.es-lg-kz-feld span { color: var(--tinte-5); font-size: 12px; }
.es-lg-kz-feld b { font-size: 16px; font-weight: 600; color: var(--tinte-1); font-variant-numeric: tabular-nums; white-space: nowrap; }
.es-lg-speicher { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--tinte-5); }
.es-lg-speicher-titel, .es-lg-speicher-max { flex: 0 0 auto; white-space: nowrap; }
.es-lg-balken { flex: 1 1 auto; height: 6px; border-radius: 3px; background: var(--flaeche-2); overflow: hidden; }
.es-lg-balken-fuellung { display: block; height: 100%; background: var(--tinte-4); }
.es-lg-balken-fuellung.voll { background: var(--alarm); }

/* Liste der Logos */
.es-lg-suche { position: relative; display: flex; align-items: center; margin-bottom: 8px; color: var(--tinte-5); }
.es-lg-suche svg { position: absolute; left: 8px; pointer-events: none; }
.es-lg-suche .ein { width: 100%; padding-left: 28px; }
.es-lg-liste { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow-y: auto; }
.es-lg-liste li + li { border-top: 1px solid var(--linie-fein); }
.es-lg-zeile { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px; border: 0; border-radius: 3px;
  background: transparent; color: var(--tinte-2); text-align: left; cursor: pointer; font: inherit; }
.es-lg-zeile:hover { background: var(--grund); }
.es-lg-zeile.gewaehlt { background: var(--auswahl); box-shadow: inset 2px 0 0 var(--tinte-1); }
.es-lg-text { display: grid; gap: 2px; min-width: 0; }
.es-lg-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-lg-meta { color: var(--tinte-5); font-size: 12px; font-variant-numeric: tabular-nums; }
.es-lg-abzeichen { display: flex; flex-wrap: wrap; gap: 4px; }

/* Vorschaubild bzw. neutrales Feld mit der Endung (Schachbrett, damit helle Logos auf Weiß sichtbar bleiben) */
.es-lg-bild { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; overflow: hidden; border: 1px solid var(--linie-fein);
  border-radius: 3px; background-color: var(--flaeche);
  background-image: linear-gradient(45deg, var(--flaeche-2) 25%, transparent 25%, transparent 75%, var(--flaeche-2) 75%),
    linear-gradient(45deg, var(--flaeche-2) 25%, transparent 25%, transparent 75%, var(--flaeche-2) 75%);
  background-size: 12px 12px; background-position: 0 0, 6px 6px; }
.es-lg-bild.klein { width: 56px; height: 36px; }
.es-lg-bild.gross { width: 100%; height: 180px; }
.es-lg-bild img { max-width: 100%; max-height: 100%; object-fit: contain; }
.es-lg-endung { padding: 2px 5px; border-radius: 3px; background: var(--flaeche-2); color: var(--tinte-5); font-size: 11px; font-weight: 600; letter-spacing: .03em; }

/* Gewähltes Logo */
.es-lg-gross { margin-bottom: 10px; }
.es-lg-ohne-datei { margin: -4px 0 8px; }
.es-lg-angaben { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0 0 14px; font-size: 13px; }
.es-lg-angaben dt { color: var(--tinte-5); }
.es-lg-angaben dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.es-lg-pfad { font-size: 12px; color: var(--tinte-4); }
.es-lg-titel { font-size: 13px; font-weight: 600; color: var(--tinte-1); }
.es-lg-zwecke { display: grid; margin-top: 8px; border-top: 1px solid var(--linie-fein); }
.es-lg-zweck { display: flex; align-items: flex-start; gap: 9px; min-height: 40px; padding: 7px 2px; border-bottom: 1px solid var(--linie-fein); }
.es-lg-zweck input { margin-top: 2px; }
.es-lg-zweck-text { display: grid; gap: 1px; min-width: 0; }
.es-lg-zweck-text small { color: var(--tinte-5); font-size: 12px; }
.es-lg-loeschen { color: var(--alarm); }
.es-lg-loeschen:hover { color: var(--alarm); background: var(--alarm-grund); }

@media (max-width: 860px) {
  .es-lg-kz { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .es-lg-kz-feld:nth-child(3) { border-left: 0; }
  .es-lg-kz-feld:nth-child(n + 3) { border-top: 1px solid var(--linie-fein); }
  .es-lg-liste { max-height: 320px; }
}
@media (max-width: 480px) {
  .es-lg-speicher { flex-wrap: wrap; }
  .es-lg-balken { flex-basis: 100%; order: 3; }
  .es-lg-bild.gross { height: 140px; }
  .es-lg-hoch span:last-child { overflow: hidden; text-overflow: ellipsis; }
}
