:root {
  --hpz-ui-bg: #f4f6f8;
  --hpz-ui-surface: #fff;
  --hpz-ui-border: #d9e0e7;
  --hpz-ui-border-strong: #b8c3ce;
  --hpz-ui-text: #19364d;
  --hpz-ui-muted: #71808b;
  --hpz-ui-primary: #afca0a;
  --hpz-ui-primary-hover: #a1bb00;
  --hpz-ui-success: #18794e;
  --hpz-ui-warning: #9a6700;
  --hpz-ui-danger: #b42318;
  --hpz-ui-info: #175cd3;
  --hpz-ui-shadow: 0 8px 24px rgba(23,33,43,.08);
  --hpz-ui-space-1: 4px;
  --hpz-ui-space-2: 8px;
  --hpz-ui-space-3: 12px;
  --hpz-ui-space-4: 16px;
  --hpz-ui-space-5: 24px;
  --hpz-ui-space-6: 32px;
}
.hpz-ui-page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin:0 0 24px;padding:0 0 18px;border-bottom:1px solid var(--hpz-ui-border)}
.hpz-ui-page-header h1{margin:4px 0 0;font-size:clamp(26px,3vw,38px);line-height:1.15;color:var(--hpz-ui-text)}
.hpz-ui-page-header p{margin:8px 0 0;color:var(--hpz-ui-muted)}
.hpz-ui-page-header__actions,.hpz-ui-card__actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.hpz-ui-back{display:inline-flex;color:var(--hpz-ui-primary);font-weight:600;text-decoration:none}
.hpz-ui-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 16px;border:1px solid var(--hpz-ui-border-strong);border-radius:0!important;background:#fff;color:var(--hpz-ui-text);font:inherit;font-weight:650;line-height:1.2;text-decoration:none;cursor:pointer;transition:background .16s,border-color .16s,color .16s,transform .16s}
.hpz-ui-button:hover{background:#eef2f5;color:var(--hpz-ui-text)}
.hpz-ui-button:active{transform:translateY(1px)}
.hpz-ui-button--primary{background:var(--hpz-ui-primary);border-color:var(--hpz-ui-primary);color:#19364d}.hpz-ui-button--primary:hover{background:var(--hpz-ui-primary-hover);color:#19364d}
.hpz-ui-button--danger{background:var(--hpz-ui-danger);border-color:var(--hpz-ui-danger);color:#fff}.hpz-ui-button--ghost{background:transparent;border-color:transparent}
.hpz-ui-button--small{min-height:34px;padding:6px 10px;font-size:13px}.hpz-ui-button--large{min-height:50px;padding:12px 20px}
.hpz-ui-button[disabled]{opacity:.55;cursor:not-allowed}
.hpz-ui-card{background:var(--hpz-ui-surface);border:1px solid var(--hpz-ui-border);border-radius:0!important;box-shadow:var(--hpz-ui-shadow);overflow:hidden}
.hpz-ui-card__header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid var(--hpz-ui-border)}
.hpz-ui-card__heading{display:flex;align-items:center;gap:10px}.hpz-ui-card__heading h2{margin:0;font-size:18px}.hpz-ui-card__content{padding:18px}.hpz-ui-card__footer{padding:12px 18px;border-top:1px solid var(--hpz-ui-border);background:#f8fafb}
.hpz-ui-card--accent-info{border-left:4px solid var(--hpz-ui-info)}.hpz-ui-card--accent-success{border-left:4px solid var(--hpz-ui-success)}.hpz-ui-card--accent-warning{border-left:4px solid var(--hpz-ui-warning)}.hpz-ui-card--accent-danger{border-left:4px solid var(--hpz-ui-danger)}
.hpz-ui-stat{padding:18px}.hpz-ui-stat__label{font-size:14px;color:var(--hpz-ui-muted);font-weight:650}.hpz-ui-stat__value{margin-top:6px;font-size:30px;font-weight:750;line-height:1.1;color:var(--hpz-ui-text)}.hpz-ui-stat__hint{margin:8px 0 0;color:var(--hpz-ui-muted)}
.hpz-ui-stats-grid{display:grid;grid-template-columns:repeat(var(--hpz-ui-columns,4),minmax(0,1fr));gap:16px;margin:0 0 24px}
.hpz-ui-badge{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border:1px solid var(--hpz-ui-border);border-radius:0!important;background:#eef2f5;color:var(--hpz-ui-text);font-size:12px;font-weight:700}.hpz-ui-badge--success{background:#ecfdf3;border-color:#abefc6;color:#067647}.hpz-ui-badge--warning{background:#fffaeb;border-color:#fedf89;color:#b54708}.hpz-ui-badge--danger{background:#fef3f2;border-color:#fecdca;color:#b42318}.hpz-ui-badge--info{background:#eff8ff;border-color:#b2ddff;color:#175cd3}
.hpz-ui-alert{display:flex;gap:12px;padding:14px 16px;margin:0 0 16px;border:1px solid var(--hpz-ui-border);border-left-width:4px;border-radius:0!important;background:#fff}.hpz-ui-alert strong{display:block;margin-bottom:3px}.hpz-ui-alert--success{border-left-color:var(--hpz-ui-success);background:#f6fef9}.hpz-ui-alert--warning{border-left-color:var(--hpz-ui-warning);background:#fffcf5}.hpz-ui-alert--danger{border-left-color:var(--hpz-ui-danger);background:#fffbfa}.hpz-ui-alert--info{border-left-color:var(--hpz-ui-info);background:#f5faff}
.hpz-ui-tabs{margin:0 0 24px}.hpz-ui-tabs__nav{display:flex;gap:0;overflow:auto;border-bottom:1px solid var(--hpz-ui-border)}.hpz-ui-tabs__nav button{appearance:none;border:0;border-bottom:3px solid transparent;border-radius:0!important;background:transparent;padding:12px 16px;font:inherit;font-weight:650;white-space:nowrap;cursor:pointer}.hpz-ui-tabs__nav button[aria-selected=true]{border-color:var(--hpz-ui-primary);color:#5d7000}.hpz-ui-tabs__panel{padding-top:18px}
.hpz-ui-field{display:grid;gap:7px;margin:0 0 18px}.hpz-ui-field label{font-weight:650;color:var(--hpz-ui-text)}.hpz-ui-field input,.hpz-ui-field textarea,.hpz-ui-field select{width:100%;min-height:44px;padding:9px 11px;border:1px solid var(--hpz-ui-border-strong);border-radius:0!important;background:#fff;color:var(--hpz-ui-text);font:inherit;box-sizing:border-box}.hpz-ui-field textarea{min-height:120px;resize:vertical}.hpz-ui-field input:focus,.hpz-ui-field textarea:focus,.hpz-ui-field select:focus{outline:3px solid rgba(0,106,106,.14);border-color:var(--hpz-ui-primary)}.hpz-ui-field small{color:var(--hpz-ui-muted)}
.hpz-ui-check{display:flex;align-items:flex-start;gap:10px;margin:0 0 12px;cursor:pointer}.hpz-ui-check input{position:absolute;opacity:0;pointer-events:none}.hpz-ui-check__box{width:20px;height:20px;flex:0 0 20px;border:1px solid var(--hpz-ui-border-strong);background:#fff;position:relative}.hpz-ui-check input:checked+.hpz-ui-check__box{background:var(--hpz-ui-primary);border-color:var(--hpz-ui-primary)}.hpz-ui-check input:checked+.hpz-ui-check__box:after{content:"";position:absolute;left:6px;top:2px;width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}.hpz-ui-check input:focus-visible+.hpz-ui-check__box{outline:3px solid rgba(0,106,106,.2)}.hpz-ui-check__text{display:grid}.hpz-ui-check__text small{color:var(--hpz-ui-muted);margin-top:2px}
.hpz-ui-table-wrap{width:100%;overflow:auto;border:1px solid var(--hpz-ui-border)}.hpz-ui-table{width:100%;border-collapse:collapse;background:#fff}.hpz-ui-table th,.hpz-ui-table td{padding:12px 14px;border-bottom:1px solid var(--hpz-ui-border);text-align:left;vertical-align:top}.hpz-ui-table th{background:#f5f7f9;font-size:13px;text-transform:uppercase;letter-spacing:.025em;color:var(--hpz-ui-muted)}.hpz-ui-table tbody tr:hover{background:#fafcfd}.hpz-ui-table__empty{text-align:center!important;color:var(--hpz-ui-muted);padding:30px!important}
.hpz-ui-empty{text-align:center;padding:42px 20px;border:1px dashed var(--hpz-ui-border-strong);background:#fafbfc}.hpz-ui-empty h3{margin:8px 0}.hpz-ui-empty p{margin:0 auto 18px;max-width:540px;color:var(--hpz-ui-muted)}.hpz-ui-empty__icon{font-size:36px}
.hpz-ui-modal{position:fixed;inset:0;z-index:100000;display:none}.hpz-ui-modal[data-open=true]{display:block}.hpz-ui-modal__backdrop{position:absolute;inset:0;background:rgba(9,19,29,.62)}.hpz-ui-modal__dialog{position:relative;width:min(680px,calc(100% - 32px));max-height:calc(100vh - 48px);margin:24px auto;background:#fff;border:1px solid var(--hpz-ui-border);border-radius:0!important;box-shadow:0 24px 80px rgba(0,0,0,.28);overflow:auto}.hpz-ui-modal--large .hpz-ui-modal__dialog{width:min(1000px,calc(100% - 32px))}.hpz-ui-modal__dialog>header,.hpz-ui-modal__dialog>footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid var(--hpz-ui-border)}.hpz-ui-modal__dialog>footer{border-top:1px solid var(--hpz-ui-border);border-bottom:0;justify-content:flex-end}.hpz-ui-modal__dialog h2{margin:0}.hpz-ui-modal__content{padding:20px}.hpz-ui-icon-button{width:38px;height:38px;border:1px solid var(--hpz-ui-border);border-radius:0!important;background:#fff;font-size:24px;cursor:pointer}
.hpz-ui-toast{position:fixed;right:20px;bottom:20px;z-index:100001;display:flex;align-items:center;gap:16px;max-width:420px;padding:13px 15px;border:1px solid var(--hpz-ui-border);border-left:4px solid var(--hpz-ui-success);border-radius:0!important;background:#fff;box-shadow:var(--hpz-ui-shadow)}.hpz-ui-toast--danger{border-left-color:var(--hpz-ui-danger)}.hpz-ui-toast--warning{border-left-color:var(--hpz-ui-warning)}.hpz-ui-toast button{border:0;background:transparent;font-size:20px;cursor:pointer}
.hpz-ui-demo{max-width:1200px;margin:30px auto;padding:0 20px}
@media(max-width:900px){.hpz-ui-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hpz-ui-page-header{flex-direction:column}.hpz-ui-page-header__actions{width:100%}}
@media(max-width:560px){.hpz-ui-stats-grid{grid-template-columns:1fr}.hpz-ui-button{width:100%}.hpz-ui-page-header__actions{display:grid}.hpz-ui-card__header{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.hpz-ui-button{transition:none}}
html.hpz-ui-modal-open,html.hpz-ui-modal-open body{overflow:hidden}
.hpz-ui-shell{max-width:1280px;margin:0 auto;padding:24px}
.hpz-ui-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 18px}
.hpz-ui-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hpz-ui-grid{display:grid;grid-template-columns:repeat(var(--hpz-ui-columns,2),minmax(0,1fr));gap:16px}
.hpz-ui-stack>*+*{margin-top:16px}.hpz-ui-muted{color:var(--hpz-ui-muted)}
.hpz-ui-status{display:inline-flex;align-items:center;gap:7px}.hpz-ui-status:before{content:"";width:9px;height:9px;background:var(--hpz-ui-border-strong)}.hpz-ui-status--success:before{background:var(--hpz-ui-success)}.hpz-ui-status--warning:before{background:var(--hpz-ui-warning)}.hpz-ui-status--danger:before{background:var(--hpz-ui-danger)}
.hpz-ui-toast-stack{position:fixed;right:20px;bottom:20px;z-index:100001;display:grid;gap:10px;width:min(420px,calc(100vw - 40px))}.hpz-ui-toast-stack .hpz-ui-toast{position:relative;right:auto;bottom:auto;width:auto;max-width:none}
.hpz-ui-modal--small .hpz-ui-modal__dialog{width:min(480px,calc(100% - 32px))}.hpz-ui-modal--xlarge .hpz-ui-modal__dialog{width:min(1280px,calc(100% - 32px))}
.hpz-ui-modal__dialog:focus{outline:none}.hpz-ui-modal__content>:first-child{margin-top:0}.hpz-ui-modal__content>:last-child{margin-bottom:0}
.hpz-ui-button--success{background:var(--hpz-ui-success);border-color:var(--hpz-ui-success);color:#fff}.hpz-ui-button--warning{background:var(--hpz-ui-warning);border-color:var(--hpz-ui-warning);color:#fff}
.hpz-ui-button.is-loading{pointer-events:none;opacity:.75}.hpz-ui-button.is-loading:before{content:"";width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;animation:hpz-ui-spin .7s linear infinite}
@keyframes hpz-ui-spin{to{transform:rotate(360deg)}}
@media(max-width:760px){.hpz-ui-shell{padding:16px}.hpz-ui-grid{grid-template-columns:1fr}.hpz-ui-toolbar{align-items:stretch}.hpz-ui-toolbar>.hpz-ui-actions{display:grid}.hpz-ui-table-wrap{border-left:0;border-right:0}.hpz-ui-modal__dialog{width:100%;max-height:100vh;height:100vh;margin:0}.hpz-ui-modal__content{padding:16px}}
/* Phase-2 compatibility layer: existing Lifecycle markup rendered with core tokens. */
.hpz-lifecycle-admin{--hpz-green:var(--hpz-ui-primary);--hpz-dark:var(--hpz-ui-text);--hpz-border:var(--hpz-ui-border)}
.hpz-lifecycle-btn{min-height:38px!important;border:1px solid var(--hpz-ui-primary)!important;background:var(--hpz-ui-primary)!important;color:#fff!important}.hpz-lifecycle-btn.secondary{background:#fff!important;color:var(--hpz-ui-text)!important;border-color:var(--hpz-ui-border-strong)!important}.hpz-lifecycle-btn.danger{background:var(--hpz-ui-danger)!important;border-color:var(--hpz-ui-danger)!important}
.hpz-lifecycle-card{border-color:var(--hpz-ui-border)!important;box-shadow:var(--hpz-ui-shadow)!important}.hpz-lifecycle-table{border-color:var(--hpz-ui-border)!important}.hpz-lifecycle-table th{background:#f5f7f9!important;color:var(--hpz-ui-muted)}
.hpz-lifecycle-alert{border:1px solid var(--hpz-ui-border)!important;border-left:4px solid var(--hpz-ui-success)!important;background:#f6fef9!important}.hpz-lifecycle-alert.is-error{border-left-color:var(--hpz-ui-danger)!important;background:#fffbfa!important}
/* Phase 2 / Stage 2: reusable data and form components. */
.hpz-ui-form{border:1px solid var(--hpz-ui-border);background:#fff}.hpz-ui-form__body{padding:20px}.hpz-ui-form__actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding:14px 20px;border-top:1px solid var(--hpz-ui-border);background:#f8fafb}
.hpz-ui-filter-bar{display:grid;gap:14px;margin:0 0 18px;padding:14px;border:1px solid var(--hpz-ui-border);background:#f8fafb}.hpz-ui-filter-bar__fields{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.hpz-ui-filter-bar__fields>.hpz-ui-field{min-width:180px;flex:1;margin:0}.hpz-ui-filter-bar__meta{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid var(--hpz-ui-border)}.hpz-ui-filter-bar__result{font-size:14px;color:var(--hpz-ui-muted)}
.hpz-ui-search{position:relative;min-width:min(320px,100%);flex:2}.hpz-ui-search .hpz-ui-field{margin:0}.hpz-ui-search input[type=search]{padding-right:42px}.hpz-ui-search__clear{position:absolute;right:5px;bottom:5px;width:34px;height:34px;border:0;background:transparent;font-size:22px;line-height:1;cursor:pointer;color:var(--hpz-ui-muted)}.hpz-ui-search__clear:hover,.hpz-ui-search__clear:focus{color:var(--hpz-ui-text);background:#edf1f3}
.hpz-ui-table caption{padding:12px 14px;text-align:left;font-weight:700;background:#f8fafb;border:1px solid var(--hpz-ui-border);border-bottom:0}.hpz-ui-table td,.hpz-ui-table th{vertical-align:middle}.hpz-ui-table__actions-heading{width:1%;white-space:nowrap}.hpz-ui-table__actions{text-align:right;white-space:nowrap}.hpz-ui-table__actions .hpz-ui-actions{justify-content:flex-end;flex-wrap:nowrap}.hpz-ui-table__empty{text-align:center!important;padding:38px 20px!important;color:var(--hpz-ui-muted)}.hpz-ui-table__empty strong,.hpz-ui-table__empty span{display:block}.hpz-ui-table__empty strong{color:var(--hpz-ui-text);margin-bottom:4px}.hpz-ui-skeleton{display:block;width:100%;height:13px;background:linear-gradient(90deg,#edf0f2 25%,#f7f8f9 37%,#edf0f2 63%);background-size:400% 100%;animation:hpz-ui-skeleton 1.4s ease infinite}.hpz-ui-skeleton--short{width:64px;margin-left:auto}@keyframes hpz-ui-skeleton{0%{background-position:100% 0}100%{background-position:0 0}}
.hpz-ui-pagination{margin:18px 0}.hpz-ui-pagination ul{display:flex;align-items:center;justify-content:center;gap:4px;margin:0;padding:0;list-style:none}.hpz-ui-pagination a,.hpz-ui-pagination span{display:flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 10px;border:1px solid var(--hpz-ui-border);background:#fff;color:var(--hpz-ui-text);text-decoration:none}.hpz-ui-pagination a:hover,.hpz-ui-pagination a:focus{border-color:var(--hpz-ui-primary);background:#f7fae9}.hpz-ui-pagination .current{border-color:var(--hpz-ui-primary);background:var(--hpz-ui-primary);color:#fff;font-weight:700}.hpz-ui-confirm__message{font-size:16px;line-height:1.55}
@media(max-width:760px){.hpz-ui-form__body{padding:16px}.hpz-ui-form__actions{display:grid;padding:12px 16px}.hpz-ui-filter-bar__fields{display:grid}.hpz-ui-filter-bar__fields>.hpz-ui-field,.hpz-ui-search{min-width:0;width:100%}.hpz-ui-filter-bar__meta{align-items:stretch;flex-direction:column}.hpz-ui-table-wrap--responsive .hpz-ui-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.hpz-ui-table-wrap--responsive .hpz-ui-table,.hpz-ui-table-wrap--responsive .hpz-ui-table tbody,.hpz-ui-table-wrap--responsive .hpz-ui-table tr,.hpz-ui-table-wrap--responsive .hpz-ui-table td{display:block;width:100%}.hpz-ui-table-wrap--responsive .hpz-ui-table tr{padding:10px 14px;border-bottom:1px solid var(--hpz-ui-border)}.hpz-ui-table-wrap--responsive .hpz-ui-table tr:last-child{border-bottom:0}.hpz-ui-table-wrap--responsive .hpz-ui-table td{display:grid;grid-template-columns:minmax(105px,38%) 1fr;gap:10px;padding:7px 0!important;border:0!important;text-align:left}.hpz-ui-table-wrap--responsive .hpz-ui-table td:before{content:attr(data-label);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.02em;color:var(--hpz-ui-muted)}.hpz-ui-table-wrap--responsive .hpz-ui-table__actions{display:block;padding-top:10px!important}.hpz-ui-table-wrap--responsive .hpz-ui-table__actions:before{display:none}.hpz-ui-table-wrap--responsive .hpz-ui-table__actions .hpz-ui-actions{display:grid}.hpz-ui-table__hide-mobile{display:none!important}.hpz-ui-pagination ul{justify-content:flex-start;overflow-x:auto;padding-bottom:4px}}

/* Phase 2 / Stufe 4: zentrale JavaScript-Komponenten */
.hpz-ui-spinner{display:inline-block;width:1em;height:1em;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:hpz-ui-spin .7s linear infinite;vertical-align:-.15em}
@keyframes hpz-ui-spin{to{transform:rotate(360deg)}}
.hpz-ui-button.is-loading,.hpz-ui-button[aria-busy="true"]{cursor:progress;opacity:.78}
.hpz-ui-field-error{margin-top:6px;color:#a61b1b;font-size:13px;font-weight:600}
.hpz-ui-field [aria-invalid="true"]{border-color:#a61b1b!important;box-shadow:inset 4px 0 0 #a61b1b}
.hpz-ui-countdown{display:inline-flex;align-items:center;gap:8px;font-variant-numeric:tabular-nums;font-weight:700}
.hpz-ui-countdown.is-warning{color:#8a5a00}
.hpz-ui-countdown.is-expired{color:#a61b1b}
[data-hpz-dropdown]{position:relative}
[data-hpz-dropdown-menu]{display:none;position:absolute;z-index:1200;top:calc(100% + 4px);right:0;min-width:220px;background:#fff;border:1px solid var(--hpz-ui-border,#d9dee5);box-shadow:var(--hpz-ui-shadow,0 8px 24px rgba(0,0,0,.14));padding:6px}
[data-hpz-dropdown][data-open="true"] [data-hpz-dropdown-menu]{display:block}
[data-hpz-dropdown-menu] a,[data-hpz-dropdown-menu] button{display:flex;width:100%;align-items:center;text-align:left;padding:9px 10px;border:0;background:transparent;color:inherit;text-decoration:none;cursor:pointer}
[data-hpz-dropdown-menu] a:hover,[data-hpz-dropdown-menu] button:hover{background:#f2f4f6}
[data-hpz-sortable-item]{cursor:grab}
[data-hpz-sortable-item].is-dragging{opacity:.45;cursor:grabbing}
[data-hpz-sortable-item]:focus-visible{outline:3px solid var(--hpz-ui-primary,#afca0a);outline-offset:2px}


/* Phase 5 / Stufe 2: lesbare Activity-Timeline */
.hpz-audit-timeline{list-style:none;margin:0;padding:0;position:relative}.hpz-audit-timeline:before{content:"";position:absolute;left:8px;top:8px;bottom:8px;width:2px;background:var(--hpz-ui-border,#d9dee5)}
.hpz-audit-timeline__item{position:relative;display:grid;grid-template-columns:18px minmax(0,1fr);gap:14px;padding:0 0 22px}.hpz-audit-timeline__item:last-child{padding-bottom:0}.hpz-audit-timeline__marker{position:relative;z-index:1;width:14px;height:14px;margin-top:5px;border:3px solid #fff;background:var(--hpz-ui-info,#2e90fa);box-shadow:0 0 0 1px var(--hpz-ui-border,#d9dee5)}
.hpz-audit-timeline__item--warning .hpz-audit-timeline__marker{background:var(--hpz-ui-warning,#f79009)}.hpz-audit-timeline__item--error .hpz-audit-timeline__marker,.hpz-audit-timeline__item--critical .hpz-audit-timeline__marker{background:var(--hpz-ui-danger,#d92d20)}
.hpz-audit-timeline__content{min-width:0;padding:0 0 2px}.hpz-audit-timeline__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.hpz-audit-timeline__head strong{color:var(--hpz-ui-text,#172b3a)}.hpz-audit-timeline__head time{white-space:nowrap;font-size:13px;color:var(--hpz-ui-muted,#667085)}.hpz-audit-timeline__content p{margin:5px 0 7px}.hpz-audit-timeline__meta{display:flex;gap:8px 14px;flex-wrap:wrap;font-size:12px;color:var(--hpz-ui-muted,#667085)}.hpz-audit-timeline__meta span+span:before{content:"·";margin-right:14px}.hpz-audit-timeline-wrap{padding:4px 0}
@media(max-width:600px){.hpz-audit-timeline__head{display:block}.hpz-audit-timeline__head time{display:block;margin-top:3px}.hpz-audit-timeline__meta span{display:block;width:100%}.hpz-audit-timeline__meta span+span:before{display:none}}

/* Notification Center – Phase 6 */
.hpz-notification-center{border:1px solid var(--hpz-border,#d7dce1);background:#fff;padding:20px}
.hpz-notification-center__head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}
.hpz-notification-center__head h2{margin:0}
.hpz-notification-center__list{display:grid;gap:10px}
.hpz-notification{display:flex;justify-content:space-between;gap:20px;border-left:4px solid #c9ced4;border-top:1px solid #e2e5e8;border-right:1px solid #e2e5e8;border-bottom:1px solid #e2e5e8;padding:16px;background:#fff}
.hpz-notification.is-unread{border-left-color:var(--hpz-primary,#afca0a);background:#fbfdf2}
.hpz-notification h3{margin:7px 0 4px;font-size:1rem}.hpz-notification p{margin:0 0 8px}.hpz-notification small{color:#66707a}
.hpz-notification__actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
@media(max-width:700px){.hpz-notification-center__head,.hpz-notification{align-items:stretch;flex-direction:column}.hpz-notification__actions{justify-content:flex-start}}

/* Notification preferences */
.hpz-notification-preferences{display:grid;gap:20px}.hpz-notification-preference{display:flex;align-items:center;justify-content:space-between;gap:16px}.hpz-notification-preference span{display:grid;gap:4px}.hpz-notification-preference small{color:var(--hpz-text-muted,#687078)}.hpz-notification-preference input[type=checkbox]{width:22px;height:22px}.hpz-notification-preferences select{min-width:100px}.hpz-notification-preferences .hpz-table th:first-child{text-align:left}.hpz-form-actions{display:flex;justify-content:flex-end;margin-top:16px}.hpz-muted{color:var(--hpz-text-muted,#687078)}
@media(max-width:760px){.hpz-notification-preferences .hpz-table-wrap{overflow-x:auto}.hpz-notification-preferences .hpz-table{min-width:720px}}

/* 8.2.0 – Gemeinsamer Frontend-Admin-Shell mit einklappbarer Navigation */

.hpz-admin-shell,.hpz-admin-shell *{box-sizing:border-box}
.hpz-admin-shell{--hpz-admin-accent:#afca0a;--hpz-admin-dark:#10283e;--hpz-admin-dark-2:#17344d;--hpz-admin-sidebar:332px;--hpz-admin-sidebar-collapsed:78px;position:relative;left:50%;width:100vw;margin-left:-50vw;min-width:0;background:#f4f6f8;color:var(--hpz-ui-text);border:0;box-shadow:none;overflow:clip}
.hpz-admin-shell__body{display:grid;grid-template-columns:var(--hpz-admin-sidebar) minmax(0,1fr);align-items:start;min-height:calc(100vh - 74px);transition:grid-template-columns .22s ease}
.hpz-admin-shell__workspace{display:flex;flex-direction:column;min-width:0;background:#f4f6f8}
.hpz-admin-shell__header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:30px 48px 26px;background:#fff;border-bottom:1px solid #dfe4e7;box-shadow:0 1px 2px rgba(25,38,48,.04);position:relative;z-index:4}
.hpz-admin-shell__heading{min-width:0}.hpz-admin-shell__kicker{display:block;margin:0 0 6px;color:#667482;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.hpz-admin-shell__title{margin:0;color:#102235;font-size:clamp(29px,3vw,39px);line-height:1.12;font-weight:700}.hpz-admin-shell__subtitle{max-width:900px;margin:9px 0 0;color:#68757f;font-size:17px;line-height:1.45}
.hpz-admin-shell__header-tools,.hpz-admin-shell__actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px}.hpz-admin-shell__sidebar{position:sticky;top:0;z-index:5;display:flex;flex-direction:column;align-self:start;min-width:0;height:calc(100dvh - var(--hpz-admin-sidebar-viewport-offset,0px));max-height:calc(100dvh - var(--hpz-admin-sidebar-viewport-offset,0px));background:linear-gradient(180deg,var(--hpz-admin-dark),var(--hpz-admin-dark-2));box-shadow:4px 0 20px rgba(10,27,43,.12);overflow:hidden}
.hpz-admin-shell__brand{display:flex;align-items:center;gap:13px;min-height:88px;margin:0 16px;padding:8px 15px;border-bottom:1px solid rgba(255,255,255,.15);color:#fff;white-space:nowrap}.hpz-admin-shell__brand-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;font-size:25px}.hpz-admin-shell__brand-label{font-size:18px;font-weight:800;letter-spacing:.045em;text-transform:uppercase}
.hpz-admin-shell__nav{position:relative;top:auto;flex:1;min-height:0;padding:14px 16px 22px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.25) transparent}.hpz-admin-shell--static-nav .hpz-admin-shell__nav{position:static}.hpz-admin-shell__nav-group{padding:5px 0 13px;border-bottom:1px solid rgba(255,255,255,.13);margin-bottom:10px}.hpz-admin-shell__nav-group:last-child{border-bottom:0;margin-bottom:0}.hpz-admin-shell__nav-heading{display:block;padding:11px 9px 7px;color:#aabcca;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap}
.hpz-admin-shell__nav-item{display:flex;align-items:center;gap:13px;width:100%;min-height:66px;margin:5px 0;padding:11px 13px;border:0;border-left:4px solid transparent;background:rgba(255,255,255,.055);color:#fff!important;text-decoration:none!important;font-size:15px;line-height:1.25;text-align:left;cursor:pointer;transition:background .15s,color .15s,border-color .15s,transform .15s}.hpz-admin-shell__nav-item:hover{background:rgba(255,255,255,.12);color:#fff!important;transform:translateX(2px)}.hpz-admin-shell__nav-item.is-active{background:var(--hpz-admin-accent);border-left-color:#d6ef2b;color:#17212b!important}.hpz-admin-shell__nav-item.is-disabled{opacity:.62;cursor:not-allowed}.hpz-admin-shell__nav-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 29px;width:29px;min-height:29px;color:#f3f7fa;font-size:22px}.hpz-admin-shell__nav-item.is-active .hpz-admin-shell__nav-icon{color:#17212b}.hpz-admin-shell__nav-copy{display:grid;gap:4px;min-width:0;flex:1}.hpz-admin-shell__nav-label{color:#fff;font-size:16px;font-weight:750}.hpz-admin-shell__nav-copy small{color:#c4d2dc;font-size:12px;font-weight:500;line-height:1.35}.hpz-admin-shell__nav-item.is-active .hpz-admin-shell__nav-label{color:#17212b}.hpz-admin-shell__nav-item.is-active small{color:#44520d}.hpz-admin-shell__nav-badge{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 7px;background:rgba(255,255,255,.16);color:#fff;font-size:11px;font-weight:800}.hpz-admin-shell__nav-item.is-active .hpz-admin-shell__nav-badge{background:rgba(23,33,43,.12);color:#17212b}
.hpz-admin-shell__sidebar-footer{margin-top:auto;padding:16px 22px;border-top:1px solid rgba(255,255,255,.12);color:#c3d0da;font-size:12px}.hpz-admin-shell__sidebar-footer a{color:#fff}.hpz-admin-shell__collapse{display:flex;align-items:center;gap:12px;width:calc(100% - 32px);min-height:58px;margin:auto 16px 0;padding:13px 14px;border:0;border-top:1px solid rgba(255,255,255,.16);background:transparent;color:#fff;font:inherit;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;cursor:pointer;white-space:nowrap}.hpz-admin-shell__collapse:hover{background:rgba(255,255,255,.07)}.hpz-admin-shell__collapse-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;font-size:17px}.hpz-admin-shell__content{min-width:0;flex:1;background:#f4f6f8}.hpz-admin-shell__content-inner{min-width:0;padding:30px 48px 42px}.hpz-admin-shell--full-width{border-left:0;border-right:0}.hpz-admin-shell__nav-toggle{display:none;align-items:center;gap:9px;min-height:42px;padding:8px 12px;border:1px solid #cbd4da;background:#fff;color:#17212b;font:inherit;font-weight:700;cursor:pointer}.hpz-admin-shell__nav-toggle-icon{display:grid;gap:3px;width:18px}.hpz-admin-shell__nav-toggle-icon i{display:block;height:2px;background:currentColor}.hpz-admin-shell__backdrop{display:none}
.hpz-admin-shell.is-collapsed .hpz-admin-shell__body{grid-template-columns:var(--hpz-admin-sidebar-collapsed) minmax(0,1fr)}.hpz-admin-shell.is-collapsed .hpz-admin-shell__brand{justify-content:center;margin:0;padding-left:0;padding-right:0}.hpz-admin-shell.is-collapsed .hpz-admin-shell__brand-label,.hpz-admin-shell.is-collapsed .hpz-admin-shell__nav-heading,.hpz-admin-shell.is-collapsed .hpz-admin-shell__nav-copy,.hpz-admin-shell.is-collapsed .hpz-admin-shell__nav-badge,.hpz-admin-shell.is-collapsed .hpz-admin-shell__collapse-label,.hpz-admin-shell.is-collapsed .hpz-admin-shell__sidebar-footer{display:none}.hpz-admin-shell.is-collapsed .hpz-admin-shell__nav{padding-left:9px;padding-right:9px}.hpz-admin-shell.is-collapsed .hpz-admin-shell__nav-group{padding-bottom:8px}.hpz-admin-shell.is-collapsed .hpz-admin-shell__nav-item{justify-content:center;min-height:58px;padding:10px 7px;border-left-width:3px}.hpz-admin-shell.is-collapsed .hpz-admin-shell__nav-item:hover{transform:none}.hpz-admin-shell.is-collapsed .hpz-admin-shell__nav-icon{flex-basis:31px;width:31px;font-size:22px}.hpz-admin-shell.is-collapsed .hpz-admin-shell__collapse{justify-content:center;width:100%;margin-left:0;margin-right:0}.hpz-admin-shell.is-collapsed .hpz-admin-shell__collapse-icon{transform:rotate(180deg)}
@media(max-width:1180px){.hpz-admin-shell{--hpz-admin-sidebar:285px}.hpz-admin-shell__header,.hpz-admin-shell__content-inner{padding-left:30px;padding-right:30px}}
@media(max-width:900px){.hpz-admin-shell{overflow:visible}.hpz-admin-shell__body,.hpz-admin-shell.is-collapsed .hpz-admin-shell__body{grid-template-columns:1fr;min-height:0}.hpz-admin-shell__workspace{width:100%}.hpz-admin-shell__header{align-items:center;padding:18px 16px}.hpz-admin-shell__actions{width:100%}.hpz-admin-shell__header-tools{flex-wrap:nowrap}.hpz-admin-shell__nav-toggle{display:inline-flex}.hpz-admin-shell__sidebar{position:fixed;z-index:100002;inset:0 auto 0 0;width:min(332px,88vw);height:100dvh;max-height:100dvh;transform:translateX(-105%);transition:transform .2s ease;box-shadow:8px 0 28px rgba(3,15,27,.28)}.hpz-admin-shell.is-nav-open .hpz-admin-shell__sidebar{transform:translateX(0)}.hpz-admin-shell__nav{position:static;flex:1}.hpz-admin-shell__collapse{display:none}.hpz-admin-shell.is-collapsed .hpz-admin-shell__brand{justify-content:flex-start;margin:0 16px;padding:8px 15px}.hpz-admin-shell.is-collapsed .hpz-admin-shell__brand-label,.hpz-admin-shell.is-collapsed .hpz-admin-shell__nav-heading,.hpz-admin-shell.is-collapsed .hpz-admin-shell__nav-copy,.hpz-admin-shell.is-collapsed .hpz-admin-shell__nav-badge{display:initial}.hpz-admin-shell.is-collapsed .hpz-admin-shell__nav-copy{display:grid}.hpz-admin-shell.is-collapsed .hpz-admin-shell__nav{padding:14px 16px 22px}.hpz-admin-shell.is-collapsed .hpz-admin-shell__nav-item{justify-content:flex-start;min-height:66px;padding:11px 13px}.hpz-admin-shell__backdrop{position:fixed;z-index:100001;inset:0;border:0;background:rgba(9,19,29,.56);cursor:pointer}.hpz-admin-shell.is-nav-open .hpz-admin-shell__backdrop{display:block}.hpz-admin-shell__content-inner{padding:20px 12px 30px}}
@media(max-width:600px){.hpz-admin-shell__header{align-items:flex-start;flex-direction:column}.hpz-admin-shell__header-tools{width:100%;justify-content:space-between}.hpz-admin-shell__actions{justify-content:flex-start}.hpz-admin-shell__title{font-size:27px}.hpz-admin-shell__subtitle{font-size:15px}}
@media(prefers-reduced-motion:reduce){.hpz-admin-shell__sidebar,.hpz-admin-shell__body{transition:none}}


/* Frontend-Admin als App: Website-Footer ausblenden und Arbeitsfläche vollständig nutzen. */
body.hpz-admin-shell-no-footer > footer,
body.hpz-admin-shell-no-footer #footer,
body.hpz-admin-shell-no-footer .site-footer,
body.hpz-admin-shell-no-footer .tm-footer,
body.hpz-admin-shell-no-footer [data-elementor-type="footer"]{display:none!important}
body:has(.hpz-admin-shell--app-layout) > footer,
body:has(.hpz-admin-shell--app-layout) #footer,
body:has(.hpz-admin-shell--app-layout) .site-footer,
body:has(.hpz-admin-shell--app-layout) .tm-footer,
body:has(.hpz-admin-shell--app-layout) [data-elementor-type="footer"]{display:none!important}
.hpz-admin-shell--app-layout .hpz-admin-shell__body{min-height:calc(100dvh - var(--hpz-admin-sidebar-viewport-offset,0px))}


/* v8.3 Headerloser App-Workspace und sekundäre Navigation-Aktionen */
.hpz-admin-shell--no-header .hpz-admin-shell__content{min-height:100%}
.hpz-admin-shell--no-header .hpz-admin-shell__content-inner{padding-top:24px}
.hpz-admin-shell__nav-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:5px;align-items:stretch;margin:5px 0}
.hpz-admin-shell__nav-row .hpz-admin-shell__nav-item{margin:0}
.hpz-admin-shell__nav-action{display:flex;align-items:center;justify-content:center;border:0;background:rgba(255,255,255,.1);color:#fff;cursor:pointer;font-size:14px;transition:background .15s,color .15s}
.hpz-admin-shell__nav-action:hover,.hpz-admin-shell__nav-action:focus-visible{background:var(--hpz-admin-accent);color:#17212b;outline:0}
.hpz-admin-shell.is-collapsed .hpz-admin-shell__nav-row{display:block;margin:5px 0}
.hpz-admin-shell.is-collapsed .hpz-admin-shell__nav-row .hpz-admin-shell__nav-action{position:absolute;right:2px;bottom:2px;width:22px;height:22px;border-radius:50%;background:var(--hpz-admin-accent);color:#17212b;font-size:10px;box-shadow:0 0 0 2px var(--hpz-admin-dark)}
.hpz-admin-shell__nav-toggle--floating{position:fixed;left:12px;top:82px;z-index:100000}
@media(min-width:901px){.hpz-admin-shell__nav-toggle--floating{display:none!important}}
@media(max-width:900px){.hpz-admin-shell--no-header .hpz-admin-shell__content-inner{padding-top:70px}.hpz-admin-shell__nav-row{grid-template-columns:minmax(0,1fr) 44px}.hpz-admin-shell.is-collapsed .hpz-admin-shell__nav-row{display:grid}.hpz-admin-shell.is-collapsed .hpz-admin-shell__nav-row .hpz-admin-shell__nav-action{position:static;width:auto;height:auto;border-radius:0;box-shadow:none;background:rgba(255,255,255,.1);font-size:14px}}


/* -------------------------------------------------------------------------
 * HPZnet Design-Kompatibilität
 * Zentraler Form-/Dropdown-/Modal- und Toast-Layer für alle Frontendmodule.
 * Module dürfen Speziallayouts behalten, die elementaren Controls sehen aber
 * überall gleich aus.
 * ------------------------------------------------------------------------- */
body:not(.wp-admin) input[type="text"],
body:not(.wp-admin) input[type="email"],
body:not(.wp-admin) input[type="password"],
body:not(.wp-admin) input[type="search"],
body:not(.wp-admin) input[type="tel"],
body:not(.wp-admin) input[type="url"],
body:not(.wp-admin) input[type="number"],
body:not(.wp-admin) input[type="date"],
body:not(.wp-admin) input[type="time"],
body:not(.wp-admin) input[type="datetime-local"],
body:not(.wp-admin) input[type="month"],
body:not(.wp-admin) textarea,
body:not(.wp-admin) select,
.hpz-admin-shell input[type="text"],
.hpz-admin-shell input[type="email"],
.hpz-admin-shell input[type="password"],
.hpz-admin-shell input[type="search"],
.hpz-admin-shell input[type="tel"],
.hpz-admin-shell input[type="url"],
.hpz-admin-shell input[type="number"],
.hpz-admin-shell input[type="date"],
.hpz-admin-shell input[type="time"],
.hpz-admin-shell input[type="datetime-local"],
.hpz-admin-shell input[type="month"],
.hpz-admin-shell textarea,
.hpz-admin-shell select{
  box-sizing:border-box;
  min-height:42px;
  max-width:100%;
  border:1px solid #cbd6dc;
  border-radius:0!important;
  background-color:#fff;
  color:#19364d;
  font:inherit;
  line-height:1.35;
  transition:border-color .15s,box-shadow .15s,background-color .15s;
}
body:not(.wp-admin) input[type="text"],
body:not(.wp-admin) input[type="email"],
body:not(.wp-admin) input[type="password"],
body:not(.wp-admin) input[type="search"],
body:not(.wp-admin) input[type="tel"],
body:not(.wp-admin) input[type="url"],
body:not(.wp-admin) input[type="number"],
body:not(.wp-admin) input[type="date"],
body:not(.wp-admin) input[type="time"],
body:not(.wp-admin) input[type="datetime-local"],
body:not(.wp-admin) input[type="month"],
body:not(.wp-admin) textarea,
body:not(.wp-admin) select{padding:9px 11px}
body:not(.wp-admin) textarea,.hpz-admin-shell textarea{min-height:96px;resize:vertical}
body:not(.wp-admin) select:not([multiple]),.hpz-admin-shell select:not([multiple]){
  appearance:none;
  -webkit-appearance:none;
  padding-right:38px!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2319364d' stroke-width='1.6' d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:12px 8px;
}
body:not(.wp-admin) select[multiple],.hpz-admin-shell select[multiple]{padding:8px 10px!important;background-image:none}
body:not(.wp-admin) input:focus,
body:not(.wp-admin) textarea:focus,
body:not(.wp-admin) select:focus,
.hpz-admin-shell input:focus,
.hpz-admin-shell textarea:focus,
.hpz-admin-shell select:focus{
  outline:0;
  border-color:#afca0a;
  box-shadow:0 0 0 3px rgba(175,202,10,.18);
}
body:not(.wp-admin) input:disabled,
body:not(.wp-admin) textarea:disabled,
body:not(.wp-admin) select:disabled,
.hpz-admin-shell input:disabled,
.hpz-admin-shell textarea:disabled,
.hpz-admin-shell select:disabled{background:#f0f3f4;color:#8b979d;cursor:not-allowed}
body:not(.wp-admin) input::placeholder,
body:not(.wp-admin) textarea::placeholder{color:#96a1a7;opacity:1}
body:not(.wp-admin) input[type="checkbox"],
body:not(.wp-admin) input[type="radio"],
.hpz-admin-shell input[type="checkbox"],
.hpz-admin-shell input[type="radio"]{accent-color:#afca0a}

/* UIkit-Kompatibilität für ältere Module: gleiche HPZ-Linie, ohne die
 * funktionierenden UIkit-Komponenten technisch zu ersetzen. */
body:not(.wp-admin) .uk-button{
  border-radius:0!important;
  min-height:40px;
  padding:7px 14px;
  border:1px solid #cbd6dc;
  background:#fff;
  color:#19364d;
  font-weight:750;
  text-transform:none;
  line-height:1.35;
}
body:not(.wp-admin) .uk-button:hover{background:#f3f6f7;color:#19364d}
body:not(.wp-admin) .uk-button-primary{background:#afca0a;border-color:#afca0a;color:#19364d}
body:not(.wp-admin) .uk-button-primary:hover{background:#a1bb00;border-color:#a1bb00;color:#19364d}
body:not(.wp-admin) .uk-button-danger{background:#b42318;border-color:#b42318;color:#fff}
body:not(.wp-admin) .uk-modal-dialog{border-radius:0!important;box-shadow:0 24px 80px rgba(16,37,52,.28)}
body:not(.wp-admin) .uk-alert-primary,
body:not(.wp-admin) .uk-alert-success,
body:not(.wp-admin) .uk-alert-warning,
body:not(.wp-admin) .uk-alert-danger{border-radius:0!important;border-left:4px solid #afca0a;background:#fff}
body:not(.wp-admin) .uk-alert-danger{border-left-color:#b42318}
body:not(.wp-admin) .uk-alert-warning{border-left-color:#9a6700}

/* Programmatische HPZ-Dialoge */
.hpz-ui-programmatic-dialog{z-index:100100}
.hpz-ui-programmatic-dialog .hpz-ui-modal__dialog{margin-top:max(24px,8vh)}
.hpz-ui-dialog__eyebrow{display:block;margin-bottom:3px;color:#718600;font-size:10px;font-weight:900;letter-spacing:.12em}
.hpz-ui-dialog__message{margin:0;color:#4e626e;line-height:1.55;white-space:pre-line}
.hpz-ui-dialog__prompt[hidden]{display:none!important}
.hpz-ui-dialog__prompt{display:grid;gap:6px;margin-top:16px;color:#19364d;font-weight:700}
.hpz-ui-dialog__prompt input{width:100%;min-height:44px;padding:9px 11px;border:1px solid #cbd6dc;border-radius:0;background:#fff;color:#19364d;font:inherit}
.hpz-ui-dialog__prompt input:focus{outline:0;border-color:#afca0a;box-shadow:0 0 0 3px rgba(175,202,10,.18)}

/* Toasts: oberhalb von Modul-Modals, aber außerhalb des Inhaltsflusses. */
.hpz-ui-toast-stack{z-index:100200}
.hpz-ui-toast{border-left-width:4px;color:#19364d}
.hpz-ui-toast--success{border-left-color:#7d9500}
.hpz-ui-toast--info{border-left-color:#3f6f8f}
.hpz-ui-toast--warning{border-left-color:#c18a16;background:#fffdf7}
.hpz-ui-toast--danger{border-left-color:#b42318;background:#fffafa}
.hpz-ui-toast span{line-height:1.4}

/* Gemeinsame kleine UI-Details */
body:not(.wp-admin) button,
body:not(.wp-admin) input[type="submit"],
body:not(.wp-admin) input[type="button"]{border-radius:0}
body:not(.wp-admin) table{border-radius:0}
body:not(.wp-admin) :where(.hpz-ui-card,.hpz-food-panel,.hpz-news-card,.hpz-df-card,.meinhpz-card){border-radius:0!important}


/* Core-Modal Adapter
 * Historisch gewachsene Modul-Modals werden nicht mehr separat gestylt/verwaltet,
 * sondern als Core-Modal adoptiert. Die modulinterne Inhaltsstruktur bleibt erhalten.
 */
.hpz-ui-adopted-modal{
  position:fixed!important;
  inset:0!important;
  z-index:100100!important;
  padding:24px!important;
  overflow:auto!important;
}
.hpz-ui-adopted-modal[data-open="true"]{
  display:flex!important;
  align-items:flex-start;
  justify-content:center;
}
.hpz-ui-adopted-modal__backdrop{
  position:fixed!important;
  inset:0!important;
  z-index:-1!important;
  background:rgba(9,25,36,.68)!important;
  backdrop-filter:none!important;
  border-radius:0!important;
}
.hpz-ui-adopted-modal__dialog{
  position:relative!important;
  z-index:1!important;
  width:min(720px,calc(100vw - 48px));
  max-width:none!important;
  max-height:calc(100vh - 48px)!important;
  margin:0 auto!important;
  border:1px solid #d7e0e4!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:0 28px 90px rgba(8,28,40,.28)!important;
  overflow:auto;
}
.hpz-ui-modal--small .hpz-ui-adopted-modal__dialog{width:min(500px,calc(100vw - 48px))}
.hpz-ui-modal--medium .hpz-ui-adopted-modal__dialog{width:min(760px,calc(100vw - 48px))}
.hpz-ui-modal--large .hpz-ui-adopted-modal__dialog{width:min(1050px,calc(100vw - 48px))}
.hpz-ui-modal--xlarge .hpz-ui-adopted-modal__dialog{width:min(1380px,calc(100vw - 48px))}
.hpz-ui-adopted-modal__dialog>header{
  border-bottom:1px solid #dfe6ea!important;
  background:#fff!important;
}
.hpz-ui-adopted-modal__dialog>footer{
  border-top:1px solid #dfe6ea!important;
  background:#fafcfc!important;
}
.hpz-ui-adopted-modal__close{
  border-radius:0!important;
}
@media(max-width:760px){
  .hpz-ui-adopted-modal{padding:0!important}
  .hpz-ui-adopted-modal__dialog,
  .hpz-ui-modal--small .hpz-ui-adopted-modal__dialog,
  .hpz-ui-modal--medium .hpz-ui-adopted-modal__dialog,
  .hpz-ui-modal--large .hpz-ui-adopted-modal__dialog,
  .hpz-ui-modal--xlarge .hpz-ui-adopted-modal__dialog{
    width:100%!important;
    min-height:100vh;
    max-height:none!important;
    margin:0!important;
    border-left:0!important;
    border-right:0!important;
  }
}


/* HPZ Core 8.86 – globaler Footer */
.hpz-site-footer{
    --hpz-footer-ink:#17364d;
    --hpz-footer-muted:#667984;
    --hpz-footer-line:#dce3e7;
    --hpz-footer-accent:#afca0a;
    margin-top:28px;
    background:#fff;
    color:var(--hpz-footer-ink);
    border-top:1px solid var(--hpz-footer-line);
    font-family:inherit;
}
.hpz-site-footer__accent{height:4px;background:var(--hpz-footer-accent)}
.hpz-site-footer__inner{max-width:1540px;margin:0 auto;padding:24px 30px 14px;box-sizing:border-box}
.hpz-site-footer__brand{display:flex;align-items:baseline;gap:12px;padding-bottom:17px;margin-bottom:18px;border-bottom:1px solid #edf0f2}
.hpz-site-footer__brand strong{font-size:20px;letter-spacing:-.02em}
.hpz-site-footer__brand span{font-size:12px;color:var(--hpz-footer-muted)}
.hpz-site-footer__columns{display:grid;grid-template-columns:1fr 1fr minmax(220px,.8fr);gap:42px}
.hpz-site-footer__section h2{margin:0 0 10px;font-size:11px;line-height:1.2;text-transform:uppercase;letter-spacing:.1em;font-weight:800;color:#718590}
.hpz-site-footer__section nav{display:grid;grid-template-columns:1fr 1fr;gap:5px 20px}
.hpz-site-footer__section a,
.hpz-site-footer__link-button{
    color:var(--hpz-footer-ink)!important;
    text-decoration:none!important;
    font-size:12px;
    line-height:1.55;
}
.hpz-site-footer__section a:hover,
.hpz-site-footer__link-button:hover{color:#789000!important;text-decoration:underline!important}
.hpz-site-footer__link-button{appearance:none;border:0;background:none;padding:0;text-align:left;cursor:pointer;font:inherit}
.hpz-site-footer__system{display:flex;flex-direction:column;align-items:flex-start}
.hpz-site-footer__status{display:flex;align-items:center;gap:8px;color:var(--hpz-footer-ink)!important;text-decoration:none!important;font-size:12px}
.hpz-site-footer__status-dot{width:9px;height:9px;border-radius:50%;background:#8a969c;box-shadow:0 0 0 3px #edf0f2}
.hpz-site-footer__status--ok .hpz-site-footer__status-dot{background:#719400;box-shadow:0 0 0 3px #eef4d8}
.hpz-site-footer__status--warning .hpz-site-footer__status-dot{background:#c68a00;box-shadow:0 0 0 3px #fbf0d2}
.hpz-site-footer__status--error .hpz-site-footer__status-dot{background:#b8322a;box-shadow:0 0 0 3px #f7dfdc}
.hpz-site-footer__status span:last-child{display:flex;flex-direction:column}
.hpz-site-footer__status strong{font-weight:700}
.hpz-site-footer__status small{font-size:10px;color:var(--hpz-footer-muted);margin-top:1px}
.hpz-site-footer__version{margin-top:8px;font-size:10px;color:#81909a}
.hpz-site-footer__backend{display:inline-flex!important;margin-top:9px;padding:5px 9px;border:1px solid var(--hpz-footer-line);background:#f7f9fa;font-weight:700}
.hpz-site-footer__bottom{display:flex;justify-content:space-between;gap:15px;margin-top:18px;padding-top:11px;border-top:1px solid #edf0f2;color:#81909a;font-size:10px}
@media(max-width:900px){
    .hpz-site-footer__columns{grid-template-columns:1fr 1fr;gap:26px}
    .hpz-site-footer__system{grid-column:1/-1}
}
@media(max-width:600px){
    .hpz-site-footer__inner{padding:20px 18px 12px}
    .hpz-site-footer__brand{display:block}
    .hpz-site-footer__brand span{display:block;margin-top:3px}
    .hpz-site-footer__columns{grid-template-columns:1fr;gap:22px}
    .hpz-site-footer__system{grid-column:auto}
    .hpz-site-footer__section nav{grid-template-columns:1fr 1fr}
}

/* HPZ Core 8.94 – gemeinsame mobile Grundregeln */
@media(max-width:767px){
  html,body{max-width:100%;overflow-x:hidden}
  .hpz-site-footer{margin-top:20px!important}
  .hpz-site-footer__inner{padding-left:16px!important;padding-right:16px!important}
  .hpz-site-footer__columns{gap:18px!important}
  .hpz-site-footer__section nav{gap:5px 16px!important}
  .hpz-site-footer__bottom{padding-bottom:calc(8px + env(safe-area-inset-bottom))!important}

  /* Touch-Ziele in HPZ-Komponenten */
  [class^="hpz-"] button,[class*=" hpz-"] button,
  [class^="hpz-"] select,[class*=" hpz-"] select{
    touch-action:manipulation;
  }
}

/* ================================================================
 * HPZnet Core 8.123 – Full-HD / 1920x1080 Ergonomics Layer
 * Ziel: gleiche Lesbarkeit und Flächeneffizienz in allen Frontend-
 * Verwaltungsbereichen, ohne Tablet/Mobile-Layouts zu verändern.
 * ================================================================ */
@media (min-width:1366px) and (min-height:800px){
  /* Admin-Shell: weniger tote Fläche, aber größere Nutzschrift. */
  .hpz-admin-shell__header{
    padding:18px 32px 17px!important;
  }
  .hpz-admin-shell__content-inner{
    padding:22px 32px 32px!important;
  }
  .hpz-admin-shell__title{
    font-size:31px!important;
    line-height:1.12!important;
  }
  .hpz-admin-shell__subtitle{
    font-size:14px!important;
    line-height:1.45!important;
  }
  .hpz-admin-shell__nav-item{
    min-height:58px!important;
  }
  .hpz-admin-shell__nav-label{
    font-size:15px!important;
    line-height:1.18!important;
  }
  .hpz-admin-shell__nav-description{
    font-size:11px!important;
    line-height:1.28!important;
  }
  .hpz-admin-shell__nav-heading,
  .hpz-admin-shell__nav-section-title{
    font-size:10px!important;
    letter-spacing:.09em!important;
  }

  /* Formulare und Toolbar-Controls sollen auf 1080p nicht wie Zoom 80% wirken. */
  .hpz-admin-shell input[type="text"],
  .hpz-admin-shell input[type="email"],
  .hpz-admin-shell input[type="password"],
  .hpz-admin-shell input[type="search"],
  .hpz-admin-shell input[type="tel"],
  .hpz-admin-shell input[type="url"],
  .hpz-admin-shell input[type="number"],
  .hpz-admin-shell input[type="date"],
  .hpz-admin-shell input[type="time"],
  .hpz-admin-shell input[type="datetime-local"],
  .hpz-admin-shell textarea,
  .hpz-admin-shell select{
    min-height:40px!important;
    font-size:14px!important;
  }
  .hpz-admin-shell label,
  .hpz-ui-field>label{
    font-size:13px!important;
  }
  .hpz-ui-button{
    min-height:40px;
    padding:8px 14px;
    font-size:14px;
  }
  .hpz-ui-button--small{
    min-height:34px;
    font-size:13px;
  }
  .hpz-ui-card__header{
    padding:13px 16px;
  }
  .hpz-ui-card__content{
    padding:16px;
  }
  .hpz-ui-table th{
    padding:10px 12px;
    font-size:12px;
  }
  .hpz-ui-table td{
    padding:10px 12px;
    font-size:14px;
  }
  .hpz-ui-filter-bar{
    gap:10px;
    margin-bottom:14px;
    padding:12px;
  }

  /* Große Dialoge nutzen die Full-HD-Breite besser aus. */
  .hpz-ui-modal--large .hpz-ui-modal__dialog{
    width:min(1380px,calc(100vw - 42px))!important;
    max-height:calc(100vh - 36px)!important;
    margin:18px auto!important;
  }

  /* Akademie: die ältesten 8–11px Regeln sind auf 1080p zu klein. */
  .hpz-akademie-app,
  .hpz-akademie-app--core-shell{
    width:100%!important;
    max-width:none!important;
  }
  .hpz-akademie-event-card h3,
  .hpz-akademie-event-title{
    font-size:19px!important;
  }
  .hpz-akademie-event-card p,
  .hpz-akademie-event-card .hpz-akademie-event-description{
    font-size:13px!important;
    line-height:1.45!important;
  }
  .hpz-akademie-facts--appointment small,
  .hpz-akademie-approval-event>span,
  .hpz-akademie-matrix-stat small,
  .hpz-akademie-history-table th,
  .hpz-akademie-registration-table thead th,
  .hpz-akademie-admin-count small,
  .hpz-akademie-editor-topbar small,
  .hpz-akademie-section-title small{
    font-size:10px!important;
  }
  .hpz-akademie-facts--appointment strong,
  .hpz-akademie-history-table td,
  .hpz-akademie-registration-table td,
  .hpz-akademie-approval-person small{
    font-size:12px!important;
  }
  #hpz-akademie-event-modal .hpz-akademie-editor-nav a,
  #hpz-akademie-event-modal .hpz-academy-select__button,
  #hpz-akademie-event-modal .hpz-academy-select__option{
    font-size:12px!important;
  }
  #hpz-akademie-event-modal .hpz-akademie-form-section>label{
    font-size:12px!important;
  }
  #hpz-akademie-event-modal .hpz-akademie-form-section .uk-input,
  #hpz-akademie-event-modal .hpz-akademie-form-section .uk-select,
  #hpz-akademie-event-modal .hpz-akademie-form-section .uk-textarea{
    font-size:13px!important;
  }

  /* News: Feed und Admin auf dieselbe Grundlesbarkeit ziehen. */
  .hpz-news-app.hpz-news-feed-layout{
    width:100%!important;
    max-width:none!important;
  }
  .hpz-news-feed .hpz-news-card-body>p,
  .hpz-news-modal-text,
  .hpz-news-poll-option strong{
    font-size:14px!important;
    line-height:1.5!important;
  }
  .hpz-news-feed .hpz-news-card h2,
  .hpz-news-feed .hpz-news-card-title{
    font-size:20px!important;
  }
  .hpz-news-meta>span,
  .hpz-news-poll-kicker,
  .hpz-news-comments-kicker{
    font-size:10px!important;
  }
  .hpz-admin-shell--news .hpz-news-admin-summary,
  .hpz-admin-shell--news .hpz-news-admin-filters input,
  .hpz-admin-shell--news .hpz-news-admin-filters select{
    font-size:13px!important;
  }
  .hpz-admin-shell--news .hpz-news-admin-titleline>strong{
    font-size:18px!important;
  }

  /* Personal / ToDos: Metadaten nicht unter die 11px-Lesbarkeit drücken. */
  .hpz-da-admin,
  .hpz-eakte,
  .hpz-payroll-admin,
  .hpz-user-tasks{
    font-size:14px;
  }
  .hpz-da-admin small,
  .hpz-eakte small,
  .hpz-payroll-admin small,
  .hpz-user-tasks small{
    font-size:11px;
    line-height:1.35;
  }
  .hpz-da-card--compact{
    gap:14px!important;
  }

  /* meinHPZ: Karten und Fakten lesbar, ohne die mobile Dichte anzufassen. */
  .meinhpz-admin-shell,
  .meinhpz-panel{
    font-size:14px;
  }
  .meinhpz-panel small,
  .meinhpz-admin-shell small{
    font-size:11px;
    line-height:1.35;
  }
  .meinhpz-appointment-card__description,
  .meinhpz-location-profile__intro p{
    font-size:14px!important;
  }

  /* Verpflegung: sehr kleine Status-/Meta-Schriften begrenzen. */
  .hpz-food-admin,
  .hpz-nutrition-app,
  .hpz-order-app,
  .hpz-plan-builder-layout{
    font-size:14px;
  }
  .hpz-food-admin small,
  .hpz-nutrition-app small,
  .hpz-order-app small,
  .hpz-plan-builder-layout small{
    font-size:11px;
    line-height:1.35;
  }

  /* Dienstfahrten: Formulare dürfen schmal bleiben, Nutzschrift aber nicht. */
  .hpz-df-wrap,
  .hpz-dienstfahrten-meine,
  .hpz-dienstfahrten-my{
    font-size:14px;
  }
  .hpz-df-wrap small,
  .hpz-dienstfahrten-meine small,
  .hpz-dienstfahrten-my small{
    font-size:11px;
  }

  /* Standort/Telefonlisten und Wissen. */
  .hpz-residents-app,
  .hpz-phonebook-table-wrap,
  .hpz-wissen-app,
  .hpz-qm-app{
    font-size:14px;
  }

  /* Häufige Layout-Fallen: Wrapper dürfen im Shell-Content nicht zusätzlich einrücken. */
  .hpz-admin-shell__content-inner > :where(.hpz-akademie-admin,.hpz-news-admin,.hpz-food-admin,.hpz-da-admin,.meinhpz-admin-shell){
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
  }
}


/* HPZ Core 8.130 – Footer 2.0 / echte Viewport-Breite
 * Der Shortcode darf innerhalb eines YOOtheme-/Builder-Containers liegen.
 * 100vw + relative Zentrierung bricht bewusst aus dessen max-width aus.
 */
.hpz-site-footer{
    width:100vw!important;
    max-width:none!important;
    position:relative;
    left:50%;
    right:50%;
    margin-left:-50vw!important;
    margin-right:-50vw!important;
    margin-top:32px!important;
    box-sizing:border-box;
    overflow:hidden;
}
.hpz-site-footer__inner{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:22px clamp(22px,3.2vw,64px) 14px!important;
}
.hpz-site-footer__brand{
    max-width:none;
}
.hpz-site-footer__columns{
    grid-template-columns:minmax(260px,1fr) minmax(300px,1.15fr) minmax(240px,.75fr);
    gap:clamp(28px,4vw,72px);
}
.hpz-site-footer__bottom{
    width:100%;
}
@media (max-width:900px){
    .hpz-site-footer__columns{grid-template-columns:1fr 1fr}
    .hpz-site-footer__system{grid-column:1/-1}
}
@media (max-width:640px){
    .hpz-site-footer{margin-top:22px!important}
    .hpz-site-footer__inner{padding:20px 18px 12px!important}
    .hpz-site-footer__brand{align-items:flex-start;flex-direction:column;gap:2px}
    .hpz-site-footer__columns{grid-template-columns:1fr;gap:22px}
    .hpz-site-footer__system{grid-column:auto}
    .hpz-site-footer__section nav{grid-template-columns:1fr 1fr}
}


/* HPZ Core 8.131 – globale Mobile-Härtung */
@media(max-width:900px){
  html,body{max-width:100%;overflow-x:hidden}
  .hpz-admin-shell,
  .hpz-admin-shell__workspace,
  .hpz-admin-shell__content,
  .hpz-admin-shell__content-inner,
  .hpz-ui-page,
  .hpz-ui-page-content{min-width:0!important;max-width:100%!important}
  .hpz-admin-shell__content-inner{overflow-x:hidden}
  .hpz-admin-shell__nav-toggle--floating{
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    max-width:100%!important;
    margin:0 0 10px!important;
    justify-content:flex-start!important;
    z-index:20!important;
  }
  /* Nie eine Shell-Navigation über ein geöffnetes Modal legen. */
  html.hpz-ui-modal-open .hpz-admin-shell__nav-toggle,
  html:has(.uk-modal.uk-open) .hpz-admin-shell__nav-toggle,
  html:has(.hpz-news-modal.is-open) .hpz-admin-shell__nav-toggle{
    visibility:hidden!important;
    pointer-events:none!important;
  }
  .hpz-ui-modal,
  .uk-modal{z-index:100500!important}
  .hpz-ui-modal__dialog,
  .hpz-ui-adopted-modal__dialog{
    width:100vw!important;
    max-width:100vw!important;
    margin:0!important;
  }
}


/* HPZnet 8.142: globales Light-Mode-Enforcement.
 * HPZnet besitzt ein fest definiertes helles Corporate Design; Browser sollen
 * deshalb auch bei aktiviertem System-Dark-Mode keine nativen Controls abdunkeln. */
:root,
html {
  color-scheme: light !important;
}
html,
body,
input,
select,
textarea,
button {
  color-scheme: light !important;
}
