/* quik Sites: Zugriff des Betreibers (public/js/betreiber-zugriff.js), Datenschutz und Verwaltung. Baut auf den ds-Klassen
   aus public/statistik.css auf. Farben nur über die Variablen (docs/GESTALTUNG.md Abschnitte 13 und 15). */
/* Eigener Block statt display: contents, damit .page-narrow > * die Breite der Karten begrenzt */
.bz-wrap { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; min-width: 0; }
.ds-page > .bz-card { margin-top: 16px; }
.bz-plattform > * + * { margin-top: 16px; }
.bz-card .card-h, .ds-card .card-h { flex-wrap: wrap; }
.bz-sp { flex: 1 1 auto; }
.seg.seg-full { display: flex; width: 100%; }
.seg.seg-full > button { flex: 1 1 0; justify-content: center; }

.bz-zusage { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.bz-zusage-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--green-tint); color: var(--green-ink); }
.bz-zusage.is-offen .bz-zusage-ic { background: var(--orange-tint); color: var(--orange-ink); }
.bz-zusage > div { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bz-zusage b { font-weight: 600; color: var(--fg); }
.bz-zusage span { font-size: var(--fs-sm); color: var(--ink-soft); }
.bz-fl { margin-top: 6px; }
.bz-bereiche { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.bz-bereiche small { display: block; margin-bottom: 8px; font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.ds-chip.is-leise { background: transparent; border: 1px solid var(--line-soft); color: var(--ink-soft); }
.bz-bereiche .ds-chip { max-width: 100%; white-space: normal; line-height: 1.35; }

.bz-zl { list-style: none; margin: 0; padding: 0; }
.bz-z { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); min-width: 0; }
.bz-z:first-child { border-top: 0; padding-top: 0; }
.bz-z-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 99px; background: var(--surface-2); color: var(--ink-soft); }
.bz-z.is-notfall .bz-z-ic { background: var(--orange-tint); color: var(--orange-ink); }
.bz-z-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bz-z-t b { font-weight: 560; font-size: var(--fs-sm); color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-z-t span { font-size: var(--fs-xs); color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-z-am { flex: none; font-size: var(--fs-xs); color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.bz-leer { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: var(--fs-sm); padding: 4px 0; }

.bz-angaben { display: grid; grid-template-columns: minmax(160px, 34%) minmax(0, 1fr); gap: 0; margin: 0; }
.bz-angaben dt, .bz-angaben dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: var(--fs-sm); min-width: 0; }
.bz-angaben dt:first-of-type, .bz-angaben dt:first-of-type + dd { border-top: 0; padding-top: 0; }
.bz-angaben dt { color: var(--ink-soft); padding-right: 16px; }
.bz-angaben dd { color: var(--fg); overflow-wrap: anywhere; }
.bz-angaben dd.is-offen { color: var(--ink-faint); font-style: italic; }

.bz-ank { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bz-ank-z { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--orange-tint); color: var(--orange-ink); }
.bz-ank-z > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bz-ank-z span { color: var(--fg); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.bz-tab { display: flex; flex-direction: column; font-size: var(--fs-sm); }
.bz-tr { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) minmax(0, .9fr) minmax(0, 1.4fr) 90px; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.bz-tr > span { min-width: 0; overflow-wrap: anywhere; }
.bz-tr.is-kopf { border-top: 0; padding-top: 0; font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }

.bz-form .fld + .btn { margin: -4px 0 8px; align-self: flex-start; }
.bz-dl-kopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.bz-dl { display: flex; flex-direction: column; gap: 8px; }
.bz-dl-z { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.4fr) 120px 32px; gap: 8px; align-items: center; }

@media (max-width: 700px) {
  .bz-bereiche { grid-template-columns: minmax(0, 1fr); }
  .bz-zusage { flex-wrap: wrap; }
  .bz-zusage > .btn { width: 100%; justify-content: center; }
  .bz-angaben { grid-template-columns: minmax(0, 1fr); }
  .bz-angaben dt { padding-bottom: 0; }
  .bz-angaben dd { border-top: 0; padding-top: 2px; }
  .bz-tr.is-kopf { display: none; }
  .bz-tr { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .bz-tr > span:first-child { font-weight: 560; }
  .bz-dl-z { grid-template-columns: minmax(0, 1fr) 32px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
  .bz-dl-z > input:not(:first-child) { grid-column: 1; }
}

/* >>> Ruhig (Audit 25.11.2026, docs/GESTALTUNG.md Abschnitt 17): Checkliste kompakt, Seltenes als Zeile mit Dialog */
.ds-page > .ds-card + .ds-card, .ds-page > .ds-card + .bz-wrap { margin-top: 16px; }
.ds-check .card-h { align-items: center; }
.ds-check-r { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.ds-check-r .ringv b { font-size: 11px; letter-spacing: -.03em; }
.ds-alles { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--ink-soft); font-size: var(--fs-sm); }
.ds-alles > .ic, .ds-alles > svg { color: var(--green-dot); }
.ds-fertig { margin-top: 6px; padding-top: 4px; border-top: 1px solid var(--line-soft); }
.ds-fertig .ru-auf > summary { font-size: var(--fs-sm); color: var(--ink-soft); }
.ds-fertig .ru-auf > summary .count { color: var(--ink-faint); font-weight: 500; }
/* Zeile, die einen Dialog öffnet (dlgZeile): ganze Zeile klickbar, rechts Pfeil */
.bz-dzl { display: flex; flex-direction: column; }
.bz-dz { display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 0; border: 0; border-top: 1px solid var(--line-soft); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.bz-dzl > .bz-dz:first-child { border-top: 0; padding-top: 2px; }
.bz-card > .bz-dz { margin-top: 8px; }
.bz-dz:hover .bz-dz-t b { text-decoration: underline; text-underline-offset: 3px; }
.bz-dz:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.bz-dz > .ic:last-child, .bz-dz > svg:last-child { flex: none; color: var(--ink-faint); }
.bz-dz-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bz-dz-t b { font-weight: 560; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-dz-t span { font-size: var(--fs-sm); color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-unterlagen .bz-ank { margin-bottom: 8px; }
/* Popover „Was geschützt ist und was der Betreiber sieht“ */
.ru-pop:has(> .bz-pop) { max-width: min(640px, calc(100vw - 32px)); }
.bz-pop { display: flex; flex-direction: column; gap: 12px; padding: 8px 10px; font-size: var(--fs-sm); line-height: 1.5; }
.bz-pop-sp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.bz-pop-sp small { display: block; margin-bottom: 6px; }
@media (max-width: 640px) { .bz-pop-sp { grid-template-columns: minmax(0, 1fr); } }
.bz-pop p { margin: 0; color: var(--ink); }
.bz-pop small { margin-top: 4px; font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.bz-pop .ds-chip { white-space: normal; line-height: 1.35; }
.ds-dlg .ds-verantw { margin-top: 16px; }
@media (max-width: 700px) {
  .ds-check-r .ds-chip { display: none; }
  .bz-dz-t b, .bz-dz-t span { white-space: normal; }
}
/* <<< Ruhig */
