/* ============================================================================
   B1 "Bewertungen sammeln" (webapp-v4/seiten/33-bewertungen-sammeln.html,
   page prefix bs-). V4 page only, every rule under .bl-v4 like v4.css.
   The paper previews use fixed print colours, not app tokens.
   ========================================================================= */

.bl-v4 .bs-loc-form { display: flex; align-items: center; gap: 8px; }
.bl-v4 .bs-loc { min-width: 300px; }
.bl-v4 .bs-loc select { flex: 1 1 auto; }

/* Standort wählen (first visit, several locations) */
.bl-v4 .bs-pick .bl-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bl-v4 .bs-pick .bl-choice { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; color: inherit; text-decoration: none; }
.bl-v4 .bs-pick .bl-choice > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bl-v4 .bs-pick-chev { margin-left: auto; color: var(--muted); flex: none; }
.bl-v4 .bs-pick-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--muted); flex: none; }
.bl-v4 .bs-pick-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.bl-v4 .bs-pick-meta b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Link and QR code */
.bl-v4 .bs-loc-id { min-width: 0; }
.bl-v4 .bs-loc-id p { margin-top: 2px; }
.bl-v4 .bs-rating { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.bl-v4 .bs-rating b { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.bl-v4 .bs-rating .bs-up { color: var(--good); font-weight: 600; }
.bl-v4 .bs-hero-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; padding: 28px 24px 24px; align-items: center; }
.bl-v4 .bs-left { min-width: 0; }
.bl-v4 .bs-link-col { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.bl-v4 .bs-link-col .bl-linkbox .bl-mono { font-size: 13.5px; }
.bl-v4 .bs-link-help { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.bl-v4 .bs-uses { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); min-width: 0; }
.bl-v4 .bs-uses-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bl-v4 .bs-qr-col { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-left: 40px; border-left: 1px solid var(--line); }
.bl-v4 .bs-qr-col .bl-qr { width: 176px; height: 176px; }
.bl-v4 .bs-qr-btns { display: flex; gap: 8px; }
.bl-v4 .bs-qr-cap { font-size: 12px; color: var(--muted); }
/* .bl-card-foot.bs-legal: this file loads before v4.css, so beat its .bl-card-foot */
.bl-v4 .bl-card-foot.bs-legal { justify-content: flex-start; flex-direction: column; align-items: stretch; gap: 8px; }
.bl-v4 .bs-legal .bl-legal-note { color: var(--ink-2); }
.bl-v4 .bs-legal .bl-legal-note .bl-ic { flex: none; margin-top: 2px; color: var(--muted); }
.bl-v4 .bs-legal .bl-legal-note strong { font-weight: 700; color: var(--ink); }

/* Print templates */
.bl-v4 .bs-tpl-ctl { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.bl-v4 .bs-logo-mini { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); flex: none; overflow: hidden; }
.bl-v4 .bs-logo-mini.bl-is-none { background: var(--surface-2); border: 1px dashed var(--line-strong); }
.bl-v4 .bs-logo-mini img { width: 100%; height: 100%; object-fit: contain; }
.bl-v4 .bs-dot { color: var(--muted-2); }
.bl-v4 .bl-card.bl-tpl { padding: 16px 16px 20px; }
.bl-v4 .bs-tpl-art { overflow: hidden; }
.bl-v4 .bs-tpl-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.bl-v4 .bs-tpl-foot > div { min-width: 0; }
.bl-v4 .bs-tpl-foot .bl-tpl-sub { margin-top: 2px; }

/* Paper preview */
.bl-v4 .bs-sheet { position: relative; display: flex; flex-direction: column; align-items: center; background: #fff; color: #0c1b1e; border-radius: 4px; box-shadow: 0 10px 24px -12px rgba(12, 27, 30, .45), 0 1px 2px rgba(12, 27, 30, .12); text-align: center; font-weight: 700; line-height: 1.15; }
.bl-v4 .bs-sheet svg { display: block; }
.bl-v4 .bs-sh-logo { display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.bl-v4 .bs-sh-logo img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.bl-v4 .bs-sh-stars { color: #f5b301; height: auto; }
.bl-v4 .bs-sh-qr svg { width: 100%; height: auto; }
.bl-v4 .bs-sh-name { color: #4a5d60; font-weight: 600; overflow-wrap: anywhere; }
.bl-v4 .bs-sh-hint { color: #6b7c7f; font-weight: 500; }
.bl-v4 .bs-sh-g { color: #4a5d60; font-weight: 600; font-size: 4.5px; }
/* Aufsteller A5, portrait */
.bl-v4 .bs-a5 { width: 38%; aspect-ratio: 1 / 1.414; padding: 8% 6% 6%; gap: 5%; justify-content: flex-start; }
.bl-v4 .bs-a5::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 70%; height: 8px; transform: translateX(-50%); border-radius: 0 0 6px 6px; background: #c9d3d2; z-index: -1; }
.bl-v4 .bs-a5 .bs-sh-logo { width: 22%; height: 10%; }
.bl-v4 .bs-a5 .bs-sh-head { font-size: 8.5px; letter-spacing: -.01em; }
.bl-v4 .bs-a5 .bs-sh-stars { width: 40%; }
.bl-v4 .bs-a5 .bs-sh-qr { width: 46%; }
.bl-v4 .bs-a5 .bs-sh-hint { font-size: 4.5px; }
.bl-v4 .bs-a5 .bs-sh-name { margin-top: auto; font-size: 5px; }
/* Tischkarte A6, folded */
.bl-v4 .bs-a6 { width: 66%; aspect-ratio: 1.414 / 1; flex-direction: row; gap: 7%; padding: 6% 7%; align-items: center; transform: perspective(300px) rotateX(14deg); transform-origin: bottom; }
.bl-v4 .bs-a6::before { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: linear-gradient(#dfe6e5, #eef2f1); border-radius: 0 0 4px 4px; }
.bl-v4 .bs-a6 .bs-sh-text,
.bl-v4 .bs-vk .bs-sh-text { flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; min-width: 0; }
.bl-v4 .bs-a6 .bs-sh-logo { width: 22px; height: 14px; justify-content: start; }
.bl-v4 .bs-a6 .bs-sh-head { font-size: 9.5px; }
.bl-v4 .bs-a6 .bs-sh-stars { width: 46px; }
.bl-v4 .bs-a6 .bs-sh-name { font-size: 5px; }
.bl-v4 .bs-a6 .bs-sh-qr { width: 34%; flex: none; }
/* Visitenkarte 85 x 55 mm */
.bl-v4 .bs-vk { width: 64%; aspect-ratio: 85 / 55; flex-direction: row; gap: 7%; padding: 7% 8%; align-items: center; }
.bl-v4 .bs-vk .bs-sh-text { gap: 5px; }
.bl-v4 .bs-vk .bs-sh-logo { width: 20px; height: 13px; justify-content: start; }
.bl-v4 .bs-vk .bs-sh-head { font-size: 9px; }
.bl-v4 .bs-vk .bs-sh-stars { width: 40px; }
.bl-v4 .bs-vk .bs-sh-qr { width: 32%; flex: none; }
.bl-v4 .bs-vk::after { content: ""; position: absolute; inset: 0; transform: translate(10px, -8px) rotate(-4deg); background: #f4f7f7; border-radius: 4px; box-shadow: 0 6px 16px -10px rgba(12, 27, 30, .4); z-index: -1; }
.bl-v4 .bs-art-btn { all: unset; display: grid; place-items: center; width: 100%; height: 100%; cursor: zoom-in; isolation: isolate; }
.bl-v4 .bs-art-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 12px; }
.bl-v4 .bs-art-btn:hover .bs-sheet { box-shadow: 0 14px 30px -12px rgba(12, 27, 30, .5), 0 1px 2px rgba(12, 27, 30, .12); }


/* Dialogs */
.bl-v4 .bs-dlg-art { margin-top: 16px; display: grid; place-items: center; height: 340px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); isolation: isolate; }
.bl-v4 .bs-stage { display: grid; place-items: center; width: 300px; aspect-ratio: 4 / 3; zoom: 1.45; }
.bl-v4 .bs-stage .bs-a5 { width: 46%; }
.bl-v4 .bs-stage .bs-a6,
.bl-v4 .bs-stage .bs-vk { width: 70%; transform: none; }
.bl-v4 .bs-stage .bs-sheet::before,
.bl-v4 .bs-stage .bs-sheet::after { display: none; }
.bl-v4 .bs-dlg-kv { margin-top: 16px; }
.bl-v4 .bs-set .bl-choices { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.bl-v4 .bs-set .bl-choice { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; }
.bl-v4 .bs-set .bl-choice > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bl-v4 .bs-set .bl-form { margin-top: 16px; }
.bl-v4 .bs-set form[aria-busy="true"] { pointer-events: none; opacity: .6; }
.bl-v4 .bs-seg { align-self: flex-start; }
.bl-v4 .bs-seg .bl-seg-item { position: relative; cursor: pointer; }
.bl-v4 .bs-seg .bl-seg-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bl-v4 .bs-seg .bl-seg-item:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(12, 27, 30, .1), 0 0 0 1px var(--line); }
.dark .bl-v4 .bs-seg .bl-seg-item:has(input:checked) { background: var(--line-strong); box-shadow: none; }
.bl-v4 .bs-seg .bl-seg-item:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.bl-v4 .bs-file { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.bl-v4 .bs-file input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bl-v4 .bs-file .bl-btn:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.bl-v4 .bs-file-name { font-size: 13px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1023.98px) {
  .bl-v4 .bs-page .bl-page-actions,
  .bl-v4 .bs-loc-form { width: 100%; }
  .bl-v4 .bs-loc { min-width: 0; width: 100%; height: 44px; }
  .bl-v4 .bs-pick .bl-choices { grid-template-columns: minmax(0, 1fr); }
  .bl-v4 .bs-pick .bl-choice { min-height: 64px; }
  .bl-v4 .bs-rating { white-space: normal; flex-wrap: wrap; }
  .bl-v4 .bs-hero-body { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 20px 16px; }
  .bl-v4 .bs-left { display: contents; }
  .bl-v4 .bs-link-col { order: 1; }
  .bl-v4 .bs-qr-col { order: 2; margin-top: 24px; padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .bl-v4 .bs-uses { order: 3; margin-top: 24px; padding-top: 20px; }
  .bl-v4 .bs-rating .bs-sep { display: none; }
  .bl-v4 .bs-rating .bs-up { flex-basis: 100%; }
  .bl-v4 .bs-qr-btns { width: 100%; }
  .bl-v4 .bs-qr-btns .bl-btn { flex: 1 1 0; height: 44px; }
  .bl-v4 .bs-link-col .bl-linkbox { flex-direction: column; align-items: stretch; height: auto; gap: 10px; padding: 12px; border-radius: 16px; }
  .bl-v4 .bs-link-col .bl-linkbox .bl-mono { white-space: normal; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.5; padding: 0 4px; }
  .bl-v4 .bs-link-col .bl-linkbox .bl-btn { height: 44px; }
  .bl-v4 .bs-link-help .bl-textbtn { min-height: 40px; }
  .bl-v4 .bl-card-foot.bs-legal { padding: 16px; }
  .bl-v4 .bs-tpl-head { flex-wrap: wrap; }
  .bl-v4 .bs-tpl-ctl { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .bl-v4 .bs-tpl-ctl .bl-textbtn { margin-left: auto; min-height: 40px; }
  .bl-v4 .bs-tpl-art { aspect-ratio: 16 / 10; }
  .bl-v4 .bs-tpl-foot .bl-btn { height: 44px; }
    .bl-v4 .bs-dlg-art { height: 300px; }
  .bl-v4 .bs-stage { zoom: 1.05; }
  .bl-v4 .bs-seg .bl-seg-item { height: 40px; min-width: 72px; }
  .bl-v4 .bs-file .bl-btn { height: 44px; }
}
