/* Logo-Feld (Einstellungen, Reiter Rechnung): Upload-Zone nach dem Muster „File upload“ aus Untitled UI.
   Die ganze Fläche ist ein Knopf: gestrichelter Rahmen, Symbol im hellen Kreis, Text in der Hauptfarbe.
   Zustände: Hover, Fokus, Ziehen (ist-ziehen), mit Logo (hat-logo), Fehler (ist-fehler). Logik: konto/js/logo-feld.js */

.lf { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.lf-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; min-height: 120px; padding: 14px 24px; margin: 0;
  font: inherit; color: var(--text-3); text-align: center; cursor: pointer;
  background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.lf-zone:hover { border-color: var(--primary); background: var(--surface-2); }
.lf-zone:focus-visible { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.lf-zone:active { background: var(--primary-soft); }

/* Datei wird über die Zone gezogen */
.lf.ist-ziehen .lf-zone {
  border-style: solid; border-color: var(--primary); background: var(--primary-soft); box-shadow: var(--ring-weich);
}
.lf.ist-ziehen .lf-kreis { color: var(--primary); background: var(--surface); border-color: var(--primary-soft-2, var(--primary-soft)); transform: translateY(-2px); }

/* Leerzustand */
.lf-leer { display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.lf-leer[hidden] { display: none; }
.lf-kreis {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: var(--text-2); background: var(--surface-2); border: 6px solid var(--bg);
  box-sizing: content-box; transition: transform .15s var(--ease), background-color .15s;
}
.lf-zone:hover .lf-kreis { color: var(--primary); }
.lf-kreis .k-ikon, .lf-kreis .k-ikon-platz { width: 20px; height: 20px; }
.lf-text { font-size: 14px; line-height: 20px; color: var(--text-3); }
.lf-tippen { font-weight: 600; color: var(--primary); }
.lf-formate { font-size: 12px; line-height: 18px; color: var(--text-3); }

/* Maus: „klicken“ und Ziehen; Touch: nur „tippen“ */
.lf-nur-touch { display: none; }
@media (hover: none), (pointer: coarse), (max-width: 600px) {
  .lf-nur-touch { display: inline; }
  .lf-nur-maus, .lf-ziehen { display: none; }
}

/* Mit Logo: große Vorschau mittig */
.lf.hat-logo .lf-zone { min-height: 124px; padding: 16px; border-style: solid; border-color: var(--border); background: var(--surface-2); }
.lf.hat-logo .lf-zone:hover { border-color: var(--primary); }
.lf-vorschau { display: grid; place-items: center; width: 100%; height: 88px; pointer-events: none; }
.lf-vorschau[hidden] { display: none; }
.lf-vorschau img {
  max-width: min(100%, 320px); max-height: 100%; object-fit: contain;
  padding: 6px 8px; border-radius: var(--radius-sm); background: #FFFFFF; /* Logo auf Papierweiß wie auf der Rechnung */
}

.lf-aktionen { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.lf-aktionen[hidden] { display: none; }
.lf-aktion { gap: 6px; color: var(--text-2); }
.lf-aktion--weg:hover { color: var(--error-text); background: var(--error-soft); }

/* Fehler: Rand rot, Meldung darunter */
.lf.ist-fehler .lf-zone { border-color: var(--error); border-style: solid; }
.lf.ist-fehler .lf-zone:focus-visible { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--error); }
.lf.ist-fehler .lf-kreis { color: var(--error-text); background: var(--error-soft); }
.lf-fehler { margin: 0; }
.lf-fehler:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
  .lf-zone, .lf-kreis { transition: none; }
  .lf.ist-ziehen .lf-kreis { transform: none; }
}
