/* Personenverzeichnis / Adressverwaltung (ab 2.0.0) – ergänzt zbv.css */
.pv-wrap { max-width: 1200px; }
.pv-wrap .zbv-head h2 a { color: inherit; text-decoration: none; }
.pv-tabs { margin-bottom: 14px; }
.pv-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.pv-filter input[type=search] { min-width: 240px; flex: 1 1 240px; }
.pv-filter select, .pv-filter input[type=search] { padding: 6px 8px; border-radius: 6px; border: 1px solid #c9d2df; font-size: 14px; }
.pv-multi { position: relative; }
.pv-multi summary { cursor: pointer; padding: 6px 10px; border: 1px solid #c9d2df; border-radius: 6px; background: #fff; color: #222; font-size: 14px; list-style: none; }
.pv-multi summary::-webkit-details-marker { display: none; }
.pv-multi summary::after { content: " ▾"; font-size: 11px; }
.pv-multi[open] > div { position: absolute; z-index: 20; top: 100%; left: 0; margin-top: 4px; background: #fff; color: #222; border: 1px solid #c9d2df; border-radius: 8px; padding: 8px 12px; box-shadow: 0 6px 18px rgba(0,0,0,.18); max-height: 320px; overflow: auto; min-width: 220px; }
.pv-multi label { display: block; padding: 3px 0; font-weight: normal; white-space: nowrap; }
.pv-inline { display: inline-flex; gap: 6px; align-items: center; font-weight: normal; }
.pv-reset { font-size: 13px; }
.pv-zahl { margin: 6px 0 10px; }
.pv-table-wrap { overflow-x: auto; }
.pv-table { width: 100%; border-collapse: collapse; background: #fff; color: #222; font-size: 14px; }
.pv-table th, .pv-table td { padding: 7px 9px; border-bottom: 1px solid #e3e8ef; text-align: left; vertical-align: top; }
.pv-table th { background: #f1f4f8; font-weight: 600; white-space: nowrap; }
.pv-table td.pv-c, .pv-table th.pv-c, .pv-c { text-align: center; }
.pv-table tr.pv-firma td:first-child { border-left: 3px solid #7048e8; }
.pv-table a { color: #1c4f8c; }
.pv-link { font-weight: 600; }
.pv-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 9px; background: #e5dbff; color: #5f3dc4; vertical-align: 1px; }
@keyframes pv-hl { 0%, 60% { background: #fff3bf; } 100% { background: transparent; } }
tr.pv-hl td { animation: pv-hl 4s ease-out; }
tr.pv-hl td:first-child { box-shadow: inset 4px 0 0 #f59f00; }
.pv-seiten { margin: 10px 0; }
.pv-crumbs { margin: 0 0 8px; font-size: 14px; }
.pv-status { font-size: 14px; margin: 0 0 10px; }
.pv-st-mitglied { color: #2b8a3e; }
.pv-wrap .pv-box, .pv-wrap .zbv-box.pv-box { margin: 0 0 14px; max-width: none; width: auto; box-sizing: border-box; }
fieldset.pv-box { border: 1px solid rgba(0,0,0,.08); }
fieldset.pv-box legend { font-weight: 700; padding: 0 6px; font-size: 15px; }
.pv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
.pv-f { margin: 6px 0; display: flex; flex-direction: column; gap: 3px; }
.pv-f > label { font-weight: 600; font-size: 14px; }
.pv-f input[type=text], .pv-f input[type=email], .pv-f input[type=tel], .pv-f input[type=url], .pv-f input[type=date], .pv-f input[type=number], .pv-f select, .pv-f textarea { width: 100%; box-sizing: border-box; padding: 7px 9px; border: 1px solid #c9d2df; border-radius: 6px; font-size: 14px; background: #fff; color: #222; }
.pv-f input:disabled, .pv-f select:disabled, .pv-f textarea:disabled { background: #f4f6f9; color: #444; }
.pv-f .pv-kurz, .pv-kurz { width: 7em !important; }
.pv-breit { grid-column: 1 / -1; }
.pv-checks { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pv-checks label { font-weight: normal; display: inline-flex; gap: 5px; align-items: center; }
.pv-f[hidden] { display: none; }
.pv-bild { max-width: 140px; max-height: 140px; border-radius: 6px; display: block; margin-bottom: 4px; }
.pv-actions { display: flex; gap: 14px; align-items: center; margin: 6px 0 16px; }
.pv-kontakte input[type=text], .pv-kontakte input[type=email] { width: 100%; box-sizing: border-box; padding: 6px 8px; border: 1px solid #c9d2df; border-radius: 6px; }
.pv-kontakte td:first-child { position: relative; min-width: 200px; }
.pv-vorschlaege { position: absolute; z-index: 30; left: 9px; right: 9px; background: #fff; border: 1px solid #c9d2df; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.pv-vorschlaege button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 7px 10px; cursor: pointer; color: #222; font-size: 14px; }
.pv-vorschlaege button:hover { background: #eef3fa; }
.pv-vorschlaege span { display: block; padding: 7px 10px; color: #666; font-size: 13px; }
.pv-x { background: none; border: 0; color: #c92a2a; cursor: pointer; font-size: 15px; padding: 2px 6px; }
.pv-liste { margin: 0; padding-left: 18px; }
.pv-danger h3 { margin-top: 0; }
.pv-meta { margin-top: 4px; }
.pv-subtabs { display: flex; gap: 6px; margin: 0 0 12px; flex-wrap: wrap; }
.pv-subtabs a { padding: 6px 12px; border-radius: 6px; background: var(--zp-soft, rgba(255,255,255,.18)); color: inherit; text-decoration: none; font-size: 14px; }
.pv-subtabs a.aktiv { background: #fff; color: #1c4f8c; font-weight: 600; }
.pv-listen { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.pv-listen .pv-box { margin: 0; }
.pv-liste-tab input[type=text] { width: 100%; box-sizing: border-box; padding: 5px 7px; border: 1px solid #c9d2df; border-radius: 5px; }
.pv-inaktiv td { opacity: .55; }
.pv-link-btn { background: none; border: 0; padding: 0; color: #1c4f8c; text-decoration: underline; cursor: pointer; font: inherit; }
.pv-rot { color: #c92a2a; }
.pv-map select { width: 100%; padding: 5px; border-radius: 5px; border: 1px solid #c9d2df; }
.pv-imp-opt { margin-top: 12px; }
.pv-bericht { background: #fff; color: #222; border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; border-left: 4px solid #2b8a3e; }
.pv-bericht.pv-pruefen { border-left-color: #f59f00; }
.pv-bericht h4 { margin: 0 0 6px; }
.pv-num { font-weight: 700; font-size: 18px; }
.pv-sicht td:first-child { white-space: nowrap; }
@media (max-width: 700px) {
  .pv-grid { grid-template-columns: 1fr; }
  .pv-filter input[type=search] { min-width: 0; }
}
.pv-wrap .pv-table a, .pv-wrap .pv-table .pv-link-btn { color: #1c4f8c !important; }
.pv-wrap .pv-table .pv-rot { color: #c92a2a !important; }
.pv-wrap .pv-table .zbv-small { color: #666 !important; }
.pv-wrap .pv-filter select, .pv-wrap .pv-filter input[type=search] { width: auto; margin: 0; }
.pv-wrap .pv-filter select { flex: 0 0 auto; max-width: 220px; }
.pv-wrap .pv-filter input[type=search] { flex: 1 1 260px; }
.pv-wrap .pv-filter .zbv-btn { margin: 0; }
.pv-wrap .pv-bericht h4 { font-size: 16px; }
.pv-wrap .pv-bericht, .pv-wrap .pv-bericht p, .pv-wrap .pv-bericht summary, .pv-wrap .pv-bericht h4 { color: #222; }
.pv-wrap .pv-link-btn { color: var(--zp-link, #d7e0ff); }
/* ab 2.1.0: Kommunikation und Auswertungen */
.pv-aktionen { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: -4px 0 12px; }
.pv-platzhalter { margin: -4px 0 12px; line-height: 2; }
.pv-ph { font: 12px/1.4 monospace; padding: 2px 6px; border: 1px solid #b9c7da; background: #eef3fa; color: #1c4f8c; border-radius: 4px; cursor: pointer; }
.pv-vorschau { margin: 6px 0 14px; }
.pv-vorschau summary { cursor: pointer; font-weight: 600; }
#pv-vorschau { background: #fff; color: #222; border: 1px solid #ccd; border-radius: 6px; padding: 10px 14px; margin-top: 8px; }
.pv-kennzahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.pv-kennzahlen div { background: #fff; color: #222; border-radius: 8px; padding: 12px; text-align: center; }
.pv-kennzahlen strong { display: block; font-size: 26px; color: #1c4f8c; }
.pv-kennzahlen span { font-size: 13px; }
.pv-statgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.pv-wrap .pv-stat { max-width: none; }
.pv-bar-zelle { width: 45%; }
.pv-bar { display: block; height: 12px; min-width: 2px; background: #2f6fbf; border-radius: 3px; }
.pv-selbst .pv-grid { margin-top: 8px; }
.pv-selbst .pv-f { display: flex; flex-direction: column; gap: 3px; margin: 0 0 8px; }
.pv-selbst .pv-f input, .pv-selbst .pv-f select, .pv-selbst .pv-f textarea { width: 100%; box-sizing: border-box; }
@media (max-width: 700px) { .pv-kennzahlen, .pv-statgrid { grid-template-columns: 1fr 1fr; } .pv-statgrid { grid-template-columns: 1fr; } }
.pv-selbst .pv-f input:not([type=checkbox]) { min-height: 38px; padding: 6px 10px; font-size: 14px; }
.pv-wrap #pv-vorschau p, .pv-wrap #pv-vorschau strong { color: #222; }
/* ab 2.2.0: Rechnungen & Zahlungen */
.pv-wrap .pv-r, .pv-wrap th.pv-r { text-align: right; white-space: nowrap; }
.pv-st { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 12px; background: #e5e7eb; color: #333; white-space: nowrap; }
.pv-st-offen { background: #fde68a; color: #6b4e00; }
.pv-st-teil { background: #fed7aa; color: #7a3b00; }
.pv-st-bezahlt { background: #bbf7d0; color: #14532d; }
.pv-st-storniert { background: #e5e7eb; color: #666; text-decoration: line-through; }
.pv-inline-form { display: inline; margin: 0; }
.pv-inline-form select { max-width: 260px; }
.pv-linkbtn { background: none; border: 0; padding: 0; color: #b42318 !important; text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; }
.pv-links a { margin-right: 8px; white-space: nowrap; }
.pv-wrap .pv-total td { font-weight: 700; border-top: 2px solid #999; }
.pv-pos input { width: 100%; box-sizing: border-box; }
.pv-pos td:last-child { width: 9em; }
.pv-wrap .pv-table tr.pv-inaktiv td { color: #888; }
/* ab 2.3.0: Auswahllisten kompakt, nie breiter als der Kasten */
.pv-listen { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.pv-wrap .pv-liste-tab { width: 100%; table-layout: fixed; }
.pv-wrap .pv-liste-tab th:nth-child(2), .pv-wrap .pv-liste-tab td:nth-child(2) { width: 54px; text-align: center; }
.pv-wrap .pv-liste-tab th:nth-child(3), .pv-wrap .pv-liste-tab td:nth-child(3) { width: 82px; text-align: center; }
.pv-wrap .pv-liste-tab th:nth-child(4), .pv-wrap .pv-liste-tab td:nth-child(4) { width: 34px; }
.pv-wrap .pv-liste-tab input[type=text] { width: 100%; min-width: 0; box-sizing: border-box; }
.pv-wrap .pv-liste-tab td { padding: 5px 6px; vertical-align: middle; }
