/* =========================================================
   Bilder zu PDF – Styles (Basis: assets/css/tool-ui.css)
   ========================================================= */
.bp .tu-card__head { flex-wrap: wrap; }
.bp-count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; margin-left: 6px; border-radius: 11px; font-size: 12px; font-weight: 700; color: #fff; background: var(--orange); }
#bpShare[hidden], .bp-count[hidden], .bp-tools[hidden], .bp-dnd[hidden], #bpOrientField[hidden], .bp-progress[hidden], .bp-result[hidden] { display: none; }
.bp-tools { display: flex; flex-wrap: wrap; gap: 8px; }

/* Ablagefläche */
.bp-drop { position: relative; display: grid; justify-items: center; gap: 8px; padding: 34px 20px; border-radius: 16px; text-align: center; cursor: pointer; background: #fff; border: 2px dashed rgba(15,19,48,.15); transition: border-color .2s, background .2s, padding .2s; }
.bp-drop:hover, .bp-drop.is-drop { border-color: var(--orange); background: rgba(240,160,75,.05); }
.bp-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bp-drop:focus-within { outline: 2px solid #8fa8ff; outline-offset: 2px; }
.bp-drop strong { color: var(--ink); }
.bp-drop span:not(.icon-tile) { font-size: 13px; color: var(--muted); }
.bp-drop.is-compact { grid-template-columns: auto minmax(0, 1fr); justify-items: start; text-align: left; padding: 14px 18px; column-gap: 14px; row-gap: 2px; }
.bp-drop.is-compact .icon-tile { grid-row: span 2; width: 40px; height: 40px; }

/* Seiten */
.bp-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.bp-list:empty { display: none; }
.bp-item { display: grid; gap: 8px; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid rgba(15,19,48,.08); cursor: grab; transition: box-shadow .2s, border-color .2s, opacity .2s; }
.bp-item:hover { box-shadow: 0 10px 24px -16px rgba(15,19,48,.4); }
.bp-item.is-drag { opacity: .4; }
.bp-item.is-over { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(91,140,255,.35); }
.bp-page { position: relative; width: 100%; max-height: 220px; margin: 0 auto; background: #fff; border-radius: 3px; box-shadow: 0 1px 3px rgba(15,19,48,.25), 0 0 0 1px rgba(15,19,48,.06); overflow: hidden; }
.bp-box { position: absolute; }
.bp-box.is-clip { overflow: hidden; }
.bp-place { position: absolute; }
.bp-place img { position: absolute; left: 50%; top: 50%; display: block; max-width: none; object-fit: fill; transition: transform .25s var(--ease); pointer-events: none; }
.bp-meta { display: grid; min-width: 0; line-height: 1.3; }
.bp-no { font-size: 12px; color: var(--blue); }
.bp-fname { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-info { font-size: 11.5px; color: var(--muted); }
.bp-actions { display: flex; justify-content: space-between; gap: 2px; }
.bp-actions button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; color: var(--muted); background: none; cursor: pointer; }
.bp-actions button:hover:not(:disabled) { color: var(--blue); background: rgba(91,140,255,.1); }
.bp-actions button[data-act="del"]:hover { color: #d14343; background: rgba(209,67,67,.1); }
.bp-actions button:disabled { opacity: .3; cursor: default; }
.bp-actions button:focus-visible { outline: 2px solid #8fa8ff; outline-offset: 1px; }
.bp-actions .i { width: 16px; height: 16px; }
.bp-dnd { margin-top: 14px; }

/* Einstellungen */
.bp-fields { display: grid; gap: 14px; }
.bp .tu-segment { flex-wrap: wrap; }
.bp-quality { width: 100%; }
.bp-quality label { flex: 1; }
.bp-name { display: flex; align-items: center; gap: 6px; }
.bp-name .tu-input { flex: 1; min-width: 0; }
.bp-name span { font-weight: 600; color: var(--muted); }
.bp-go { width: 100%; justify-content: center; margin-top: 18px; }
.bp-progress { display: grid; gap: 6px; margin-top: 14px; }
.bp-progress .tu-meter span { transition: width .2s; }
.bp-progress small, .bp-result small { font-size: 12.5px; color: var(--muted); }
.bp-result { display: grid; gap: 8px; margin-top: 14px; padding: 14px; border-radius: 14px; background: rgba(46,170,110,.08); border: 1px solid rgba(46,170,110,.25); }
.bp-dl { justify-content: center; overflow-wrap: anywhere; }

@media (max-width: 560px) {
  .bp-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bp-item { padding: 8px; }
  .bp-actions button { width: 28px; }
}
@media (prefers-reduced-motion: reduce) { .bp-place img { transition: none; } }
