/* Archipel Lead-Formular: Einwilligung zur Weitergabe + Foto-Upload (mobil zuerst, Touch-Ziele ≥ 44 px).
   GEMEINSAMER BAUSTEIN: Quelle apps/_shared/lead/assets/, verteilt per `node scripts/lead-sync.mjs`.
   Nutzt die Insel-Variablen (--tanne, --ink-2 …) mit neutralen Rückfallwerten. */
.lf-consent, .lf-photos { grid-column: 1 / -1; box-sizing: border-box; width: 100%; min-width: 0; }

.lf-consent { display: flex; align-items: flex-start; gap: 12px; margin: 14px 0 0; padding: 12px 14px; min-height: 44px;
  border: 1px solid var(--line, #d7e0da); border-radius: var(--r-md, 14px); background: var(--paper, #fff);
  color: var(--ink-2, #33443a); font-size: 14px; line-height: 1.5; cursor: pointer; }
.lf-consent input { flex: none; width: 22px; height: 22px; min-height: 22px; margin: 1px 0 0; accent-color: var(--tanne, #1f5b3f); cursor: pointer; }
.lf-consent span { display: block; min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.lf-consent small { display: block; margin-top: 4px; color: var(--ink-3, #5b6b62); font-size: 12.5px; font-weight: 500; }
.lf-consent:has(input:checked) { border-color: var(--tanne, #1f5b3f); background: var(--salbei-hell, #eef5f0); }
.lf-consent:focus-within { outline: 3px solid var(--gold, #d6a84f); outline-offset: 2px; }

.lf-photos { margin: 14px 0 0; padding: 14px; border: 1px dashed var(--line, #c9d6cd); border-radius: var(--r-md, 14px); background: var(--paper, #fff); }
.lf-photos-title { margin: 0; font-weight: 700; color: var(--ink, #102016); font-size: 15px; }
.lf-photos-title span { font-weight: 500; color: var(--ink-3, #5b6b62); font-size: 13px; }
.lf-photos-hint { margin: 4px 0 10px; color: var(--ink-3, #5b6b62); font-size: 13px; line-height: 1.5; }
.lf-photos-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lf-photos-pick { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px;
  padding: 10px 16px; border: 1.5px solid var(--tanne, #1f5b3f); border-radius: var(--r-pill, 999px); background: transparent;
  color: var(--tanne, #1f5b3f); font-weight: 700; font-size: 15px; cursor: pointer; flex: 1 1 160px; text-align: center; }
.lf-photos-pick[hidden] { display: none; }
.lf-photos-pick:focus-within { outline: 3px solid var(--gold, #d6a84f); outline-offset: 2px; }
/* Dateifeld unsichtbar, aber fokussierbar (Tastatur und Screenreader erreichen es über das Label). */
.lf-photos-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.lf-photos-pick.is-full { opacity: .5; pointer-events: none; }
.lf-photos-count { margin: 10px 0 0; font-size: 13px; color: var(--ink-2, #33443a); }
.lf-photos-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.lf-photos-list:empty { display: none; }
.lf-photo { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; min-width: 0;
  padding: 6px; border: 1px solid var(--line, #d7e0da); border-radius: var(--r-sm, 10px); background: var(--card, #fbfdfb); }
.lf-photo-thumb { grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--salbei-hell, #eef5f0);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--ink-3, #5b6b62); }
.lf-photo-name { min-width: 0; font-size: 12.5px; color: var(--ink-2, #33443a); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lf-photo-remove { justify-self: start; min-height: 44px; min-width: 44px; padding: 0 10px; margin: 0 0 -6px -10px; border: 0; background: transparent;
  color: #9b2c1f; font-weight: 700; font-size: 13px; text-decoration: underline; cursor: pointer; }
.lf-photo-remove:focus-visible { outline: 3px solid var(--gold, #d6a84f); outline-offset: 0; border-radius: 8px; }
.lf-photos-error { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--r-sm, 10px); background: #fdecea; color: #8a1f12; font-size: 14px; line-height: 1.45; }
.lf-photos-error[hidden] { display: none; }
.lf-photos.has-error { border-color: #c0392b; border-style: solid; }

@media (max-width: 480px) {
  .lf-photos { padding: 12px; }
  .lf-photos-list { grid-template-columns: 1fr 1fr; }
}
