:root{--bg:#f3f6f8;--panel:#fff;--ink:#17212b;--muted:#64717d;--line:#d9e0e6;--brand:#17324d;--brand2:#295476;--danger:#a52828;--ok:#287347;--warn:#9a6419;--shadow:0 1px 6px #10203014}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}body{min-height:100vh}header{height:64px;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:8px max(14px,env(safe-area-inset-left));position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:10px}.brand img{display:none;width:40px;height:40px;object-fit:contain;background:#fff;border-radius:6px}.brand b{font-size:18px}.brand small{display:block;opacity:.76}.head-actions{display:flex;align-items:center;gap:8px;font-size:12px}.iconbtn,.btn{border:0;border-radius:8px;cursor:pointer}.iconbtn{width:38px;height:38px;background:#ffffff20;color:#fff;font-size:21px}nav{display:flex;gap:2px;padding:7px max(10px,env(safe-area-inset-left));overflow:auto;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:64px;z-index:19}nav button{white-space:nowrap;border:0;background:transparent;padding:9px 12px;border-radius:7px;color:#465562;font-weight:600}nav button.active{background:#e8eef4;color:var(--brand)}main{max-width:1450px;margin:auto;padding:18px 18px 90px}.panel,.card,.rowitem{background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:10px}.panel{padding:18px;margin:0 0 16px}.panel h2,.panel h3{margin-top:0}.sectionhead,.project-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin:0 0 16px}.sectionhead h1,.project-title h1{margin:0}.hint,.meta{color:var(--muted);font-size:13px}.toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.btn{background:var(--brand);color:#fff;padding:9px 13px;font-weight:650}.btn:hover{background:var(--brand2)}.btn.secondary{background:#edf2f6;color:#243745;border:1px solid #cbd6df}.btn.danger{background:#fff0f0;color:var(--danger);border:1px solid #e9bcbc}.btn.ok{background:#eaf6ef;color:var(--ok);border:1px solid #b9ddc8}.btn.warn{background:#fff7e8;color:var(--warn);border:1px solid #ead0a7}.btn.small{padding:6px 9px;font-size:12px}.grid{display:grid;gap:12px}.cards{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px}.card{padding:16px}.card span{color:var(--muted);font-size:13px}.big{font-size:30px;display:block;margin-top:4px}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.field{display:flex;flex-direction:column;gap:5px}.field.full{grid-column:1/-1}.field label{font-size:13px;font-weight:700;color:#394a57}.field input,.field select,.field textarea{width:100%;border:1px solid #cbd4dc;border-radius:7px;background:#fff;padding:9px 10px;font:inherit;color:inherit}.field textarea{min-height:95px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid #9ebdd5;border-color:#7aa2bf}.list{display:grid;gap:8px}.rowitem{display:flex;align-items:center;gap:12px;padding:12px}.grow{flex:1;min-width:0}.title{font-weight:750}.badge{display:inline-flex;align-items:center;padding:3px 7px;border-radius:999px;font-size:11px;font-weight:700;background:#edf2f6;color:#455764}.badge.open{background:#fff1df;color:#8a5512}.badge.done{background:#e8f5ed;color:#226d43}.badge.overdue{background:#ffe9e9;color:#982a2a}.empty{padding:30px;text-align:center;color:var(--muted);border:1px dashed #c4cfd8;border-radius:10px;background:#fff}.tabs2{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 12px}.tabs2 button{border:1px solid #cad4dd;background:#f5f8fa;padding:7px 10px;border-radius:7px}.tabs2 button.active{background:var(--brand);color:#fff}.issue{border:1px solid var(--line);border-radius:9px;padding:12px;margin-bottom:10px;background:#fbfcfd}.issue-head{display:flex;justify-content:space-between;gap:10px}.photos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:9px}.photo{position:relative;border:1px solid var(--line);border-radius:7px;overflow:hidden;background:#eee;aspect-ratio:4/3}.photo img{width:100%;height:100%;object-fit:cover}.photo button{position:absolute;right:4px;top:4px}.doc-editor{min-height:250px;font-family:inherit}.matrix{overflow:auto}.matrix table{border-collapse:collapse;width:100%;min-width:900px}.matrix th,.matrix td{border:1px solid #cfd7de;padding:7px;text-align:left;vertical-align:top;font-size:12px}.matrix th{background:#edf2f6}.kpi{display:flex;gap:10px;flex-wrap:wrap}.kpi span{padding:8px 10px;background:#f0f4f7;border-radius:7px}.split{display:grid;grid-template-columns:1.15fr .85fr;gap:16px}.sticky-actions{position:sticky;bottom:10px;background:#ffffffee;backdrop-filter:blur(6px);border:1px solid var(--line);box-shadow:0 4px 15px #0002;border-radius:10px;padding:9px;display:flex;gap:8px;z-index:15}.statusline{padding:9px 11px;border-radius:8px;background:#f2f5f7;color:#435461;font-size:13px}.timeline{border-left:2px solid #ced8e0;margin-left:8px;padding-left:16px}.timeline .event{margin:0 0 12px}.desktop-only{display:block}.mobile-only{display:none}#toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);background:#17212b;color:#fff;padding:10px 15px;border-radius:8px;opacity:0;pointer-events:none;transition:.2s;z-index:99;max-width:90vw}#toast.show{opacity:1;transform:translate(-50%,0)}@media(max-width:900px){main{padding:12px 10px 80px}.cards{grid-template-columns:repeat(2,1fr)}.formgrid,.split{grid-template-columns:1fr}.photos{grid-template-columns:repeat(2,1fr)}.desktop-only{display:none}.mobile-only{display:block}.project-title,.sectionhead{align-items:stretch}.project-title{flex-direction:column}nav{top:64px}.btn{min-height:40px}}@media(max-width:520px){.cards{grid-template-columns:1fr 1fr}.brand small{display:none}.panel{padding:13px}.rowitem{align-items:flex-start;flex-wrap:wrap}.rowitem .toolbar{width:100%}.photos{grid-template-columns:1fr 1fr}}


/* SiGe-Plan 1.2 */
.plan-picker{border:1px solid var(--line,#d7dde3);border-radius:10px;padding:12px;background:#fafbfc}.work-catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-top:10px}.work-group{border:1px solid #e0e4e8;border-radius:8px;padding:10px;background:#fff}.work-group b{display:block;margin-bottom:6px}.work-group label{display:block;padding:3px 0;font-size:13px}.sige-sheet{display:grid;grid-template-columns:minmax(0,4fr) minmax(220px,1fr);gap:12px;align-items:start}.sige-main,.sige-side{background:#fff;border:1px solid #cfd6dd;padding:10px}.site-measures{margin-bottom:10px}.site-grid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:4px 10px;margin-top:6px;font-size:12px}.plan-matrix{overflow:auto;max-height:68vh}.plan-matrix table{min-width:1450px;border-collapse:collapse}.plan-matrix th,.plan-matrix td{border:1px solid #b8c0c8;padding:3px;vertical-align:middle}.plan-matrix th{background:#f2f4f6;font-size:11px;position:sticky;top:0;z-index:2}.plan-matrix th.nr{width:38px}.plan-matrix th.work{width:170px}.plan-matrix th.haz{width:42px;height:118px;padding:0;vertical-align:bottom}.plan-matrix th.haz span{writing-mode:vertical-rl;transform:rotate(180deg);display:inline-block;padding:5px 3px;white-space:nowrap}.plan-matrix th.notes{width:260px}.plan-matrix th.rules{width:150px}.plan-matrix th.resp{width:140px}.plan-matrix textarea{width:100%;min-height:48px;border:0;background:transparent;resize:vertical;font-size:11px}.mark{text-align:center}.mark-btn{width:30px;height:30px;border:0;border-radius:4px;font-weight:800;cursor:pointer}.mark-empty{background:#f2f3f4}.mark-X{background:#21b7e9}.mark-hash{background:#f1b51c}.mark-O{background:#9bd35b}.plan-legend{display:flex;gap:16px;flex-wrap:wrap;padding:7px 4px;font-size:11px}.plan-image-slot{border:1px solid #bcc5ce;padding:7px;margin-bottom:10px;text-align:center}.plan-image-slot img{max-width:100%;height:140px;object-fit:contain;display:block;margin:auto}.plan-image-slot input{width:100%;margin:6px 0}.image-placeholder{height:110px;display:grid;place-items:center;background:#f4f5f6;color:#777;margin-bottom:6px}.plan-meta{font-size:12px;line-height:1.5}.authority-row{display:flex;gap:6px;flex-wrap:wrap}.authority-row select{flex:1;min-width:260px}.notice-result{padding:7px 10px;border-radius:999px;font-weight:700}.notice-result.required{background:#ffe2df;color:#8a1710}.notice-result.notrequired{background:#e3f4e6;color:#195d28}.notice-result.unclear{background:#fff2c7;color:#765900}@media(max-width:900px){.sige-sheet{grid-template-columns:1fr}.site-grid{grid-template-columns:1fr 1fr}.sige-side{order:-1}}@media(max-width:600px){.site-grid{grid-template-columns:1fr}}


/* Version 1.3.0 - SiGe-Plan Standards/Piktogramme */
.pictogram-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:8px}.picto-choice{display:flex;align-items:center;gap:7px;border:1px solid #d4dbe1;border-radius:8px;padding:6px;background:#fff}.safety-picto{display:flex;align-items:center;gap:7px;min-width:0}.picto-symbol{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;font-size:10px;font-weight:900;border:4px solid #111}.safety-picto.warn .picto-symbol{clip-path:polygon(50% 0,100% 92%,0 92%);padding-top:8px;background:#f6d727}.safety-picto.prohibit .picto-symbol{border-radius:50%;border-color:#d8232a;background:#fff}.safety-picto.mandatory .picto-symbol{border-radius:50%;border-color:#1768b2;background:#1768b2;color:#fff}.picto-label{font-size:11px;line-height:1.15}.safety-picto.compact .picto-label{font-size:10px}.mark-settings{display:grid;gap:8px}.mark-settings label{display:flex;align-items:center;gap:8px}.legend-chip{display:inline-grid;place-items:center;width:27px;height:27px;border-radius:4px}.legend-chip.hash{background:#f1b51c}.legend-chip.x{background:#21b7e9}.legend-chip.o{background:#9bd35b}.settings-pictos{max-height:350px;overflow:auto;border:1px solid #e0e5e9;padding:8px;border-radius:8px}

/* Version 1.4.0 – normorientierte ISO-7010-Sicherheitszeichen */
.safety-picto.real{align-items:center}.picto-real{flex:0 0 46px;width:46px;height:46px;display:grid;place-items:center}.iso-sign-svg{width:46px;height:46px;display:block}.safety-picto.compact .picto-real,.safety-picto.compact .iso-sign-svg{width:40px;height:40px}.picto-choice:has(input:checked){outline:2px solid #7ca9cf;background:#f5f9fc}.pictogram-picker.settings-pictos .picto-label b{font-size:10px}


/* Version 1.5.0 */
.plan-matrix th.haz{height:150px;min-width:38px;max-width:38px;vertical-align:bottom;overflow:hidden}
.plan-matrix th.haz span{writing-mode:vertical-rl;transform:rotate(180deg);white-space:normal;line-height:1.05;max-height:142px;padding:5px 8px}
.plan-matrix td textarea{min-height:72px;line-height:1.25;overflow:hidden}
.picto-group-title{margin:15px 0 6px;padding-bottom:4px;border-bottom:1px solid #dde3e8;font-size:14px}
.safety-picto.real .picto-real{background:#fff;border-radius:4px}
.safety-picto.real .iso-sign-svg{width:48px;height:48px}
@media print{.print-matrix th.vert{height:120px;width:24px;padding:0;vertical-align:bottom}.print-matrix th.vert span{writing-mode:vertical-rl;transform:rotate(180deg);display:inline-block;white-space:nowrap;padding:4px}}

/* v1.6 modulare Dokumente */
.topic-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin-top:12px}.structured-section textarea{min-height:100px}.doc-toc{border:1px solid var(--line,#d7dce3);border-radius:10px;padding:14px}.doc-toc>div{display:flex;justify-content:space-between;gap:20px;border-bottom:1px dotted #bbb;padding:6px 0}.doc-toc>div span:last-child{color:#667085;font-size:.9em;white-space:nowrap}@media(max-width:700px){.doc-toc>div{display:block}.doc-toc>div span{display:block}}

/* v1.6.2 professionelle ISO-7010-Piktogramme */
.iso7010-professional{display:block;width:100%;height:100%;max-width:58px;max-height:58px;object-fit:contain;margin:auto}.picto-real{display:flex;align-items:center;justify-content:center;min-width:58px;min-height:58px}.safety-picto.compact .iso7010-professional{max-width:48px;max-height:48px}

/* v1.6.4 – SiGe-Plan: Zeilenhöhe nach tatsächlichem Inhalt */
.plan-matrix tbody td{height:auto;vertical-align:top}
.plan-matrix tbody td.mark,.plan-matrix tbody td:first-child{vertical-align:middle}
.plan-matrix td textarea{
  display:block;
  box-sizing:border-box;
  width:100%;
  min-height:34px;
  height:auto;
  overflow:hidden;
  resize:none;
  field-sizing:content;
  line-height:1.28;
}
.plan-matrix tbody tr{height:auto}

/* v1.6.5 – robuste automatische Zeilenhöhe im SiGe-Plan */
.plan-matrix tbody tr.sige-activity-row{height:auto !important}
.plan-matrix tbody tr.sige-activity-row > td{height:inherit;padding:3px;vertical-align:top}
.plan-matrix tbody tr.sige-activity-row > td:first-child,
.plan-matrix tbody tr.sige-activity-row > td.mark{vertical-align:middle}
.plan-matrix tbody tr.sige-activity-row textarea{
  display:block;
  width:100%;
  box-sizing:border-box;
  border:0;
  padding:3px 4px;
  margin:0;
  resize:none;
  overflow:hidden;
  line-height:15px;
  font-size:11px;
  background:transparent;
}

/* v1.6.7 – Gruppensteuerung Piktogramme */
.picto-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}
.picto-group-head .picto-group-title{margin:0}
.picto-group-actions{display:flex;gap:6px;flex-wrap:wrap}
.btn.tiny{padding:4px 9px;font-size:11px;line-height:1.2}

/* v1.6.8 – mobile Adressbuchauswahl für Begehungsberichte */
.contact-check-field{grid-column:1/-1}
.contact-checklist{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:7px;margin-top:5px}
.contact-check{display:flex;align-items:flex-start;gap:9px;border:1px solid #cdd5dc;border-radius:8px;padding:9px 10px;background:#fff;cursor:pointer;min-height:54px}
.contact-check.selected{border-color:currentColor;background:rgba(30,110,180,.06)}
.contact-check input{margin-top:3px;flex:none}
.contact-check-main{display:flex;flex-direction:column;min-width:0}
.contact-check-main b,.contact-check-main small{overflow-wrap:anywhere}
.contact-check-main small{margin-top:2px;color:#65717c}
.missing-mail{font-weight:700;color:#a22}
.contact-list-actions{display:flex;gap:6px;margin-top:7px}
.report-recipient-summary{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:12px 0;padding:10px;border:1px solid #d5dde4;border-radius:8px;background:#f8fafb}
.recipient-chip{display:inline-flex;padding:4px 8px;border-radius:999px;background:#e7f4eb;font-size:12px}
.recipient-chip.invalid{background:#f9e7e7}
@media(max-width:600px){.contact-checklist{grid-template-columns:1fr}}

/* v1.6.9 – Format Berichtsnummer */
.report-number-settings{padding:10px;border:1px solid #d7dee5;border-radius:8px;background:#fafcfd}
.report-number-grid{display:grid;grid-template-columns:minmax(160px,1fr) 120px minmax(160px,1fr);gap:10px;margin-top:6px}
.report-number-grid .sub-label{display:block;font-size:11px;color:#65717c;margin-bottom:4px}
.report-number-grid input{width:100%}
.report-number-example{margin-top:8px;font-size:12px;color:#52606b}
#report-number-preview{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:inherit}
@media(max-width:650px){.report-number-grid{grid-template-columns:1fr}.report-number-settings{padding:8px}}

/* v1.7.0 – Nutzerkonten, Team und HiDrive */
#accountStatus{font-size:12px;opacity:.85;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.auth-shell{min-height:65vh;display:grid;place-items:center;padding:24px}
.auth-card{width:min(560px,100%)}
.auth-error{padding:10px;border-radius:8px;background:#f8e6e6;color:#8a2020;margin:10px 0}
.team-role{font-weight:700}
@media(max-width:700px){#accountStatus{display:none}}

/* v1.7.1 – eindeutige Einrichtung des Hauptkontos */
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:16px 0}
.auth-tabs button{min-height:44px}
.auth-tabs button.active{font-weight:700;box-shadow:inset 0 -3px currentColor}
.auth-card #authForm h2{margin-top:8px}
@media(max-width:520px){.auth-tabs{grid-template-columns:1fr}.auth-card .toolbar{align-items:stretch}.auth-card .toolbar .btn{width:100%}}

/* v1.7.6 – Sitzungsdiagnose */
.diag-output{white-space:pre-wrap;overflow:auto;max-height:260px;padding:10px;background:#111;color:#eee;border-radius:6px;font-size:11px;margin-top:10px}

/* v1.7.7 – HiDrive-Ordnerauswahl erst nach Login */
.hidrive-browser{margin-top:12px;border:1px solid #d5dde4;border-radius:9px;padding:10px;background:#fafcfd}
.hidrive-browser-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding-bottom:8px;border-bottom:1px solid #e1e6ea}
.hidrive-current-path{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;margin-top:3px;overflow-wrap:anywhere;color:#56636e}
.hidrive-folder-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:7px;margin-top:9px}
.hidrive-folder{display:flex;align-items:center;gap:8px;text-align:left;border:1px solid #ccd5dd;background:#fff;border-radius:7px;padding:9px 10px;cursor:pointer;color:inherit}
.hidrive-folder:hover{background:#f2f6f9}
.folder-icon{font-size:17px}
.hidrive-selected{padding:8px 10px;background:#e9f5ec;border-radius:7px;margin-bottom:8px;overflow-wrap:anywhere}
@media(max-width:600px){.hidrive-browser-head{display:block}.hidrive-browser-head .toolbar{margin-top:8px}.hidrive-folder-list{grid-template-columns:1fr}}

/* v1.7.9 – Autosave und vereinfachte Vorankündigung */
#autosaveStatus{font-size:11px;white-space:nowrap}
#autosaveStatus.saving{opacity:.7}
#autosaveStatus.saved{opacity:.85}
#autosaveStatus.error{color:#b42318;font-weight:700}
.notice-wizard{display:grid;gap:12px}
.notice-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;position:sticky;top:0;z-index:3;background:var(--bg,#f5f7f9);padding:5px 0}
.notice-progress span{padding:8px;text-align:center;border-radius:7px;background:#e9eef2;font-size:12px;font-weight:650}
.notice-step{margin:0}
.step-title{display:flex;align-items:flex-start;gap:10px}
.step-title>b{display:grid;place-items:center;min-width:30px;height:30px;border-radius:50%;background:#17324d;color:#fff;font-size:14px}
.step-title h2{margin:1px 0 3px}
.step-title p{margin:0;color:#65717c;font-size:12px}
.notice-choice select{min-height:42px;font-weight:600}
.autosave-note{padding:10px 12px;border-radius:8px;background:#eaf4ed;font-size:12px;text-align:center}
@media(max-width:700px){.notice-progress{grid-template-columns:1fr 1fr}.notice-progress span{font-size:11px;padding:6px}.step-title p{font-size:11px}}

/* v1.8.0 – Offline-Status */
#syncStatus.offline{font-weight:700}

/* v1.8.1 – korrigierte Anzeige Beteiligte & Berichtsempfänger */
.contact-check-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
.contact-check-heading>label{margin:0;font-weight:700}
.contact-count{font-size:11px;padding:3px 7px;border-radius:999px;background:#e8edf1;white-space:nowrap}
.contact-selection-summary{border:1px solid #d9e0e5;border-radius:8px;padding:8px 9px;margin-bottom:8px;background:#f8fafb}
.contact-selection-summary.empty-summary{font-size:12px;color:#687580}
.summary-label{display:block;font-size:11px;font-weight:700;color:#586570;margin-bottom:6px}
.contact-summary-chips{display:flex;flex-wrap:wrap;gap:6px}
.contact-summary-chip{display:inline-flex;flex-direction:column;gap:1px;padding:5px 8px;border-radius:7px;background:#e8f4eb;font-size:11px;max-width:300px}
.contact-summary-chip small{font-size:10px;color:#53615a;overflow-wrap:anywhere}
.contact-summary-chip.missing{background:#f8e6e6}
.contact-check{position:relative}
.contact-check-main{gap:2px}
.contact-name-line{display:flex;align-items:flex-start;justify-content:space-between;gap:7px}
.selection-mark{display:none;font-size:10px;font-weight:700;white-space:nowrap}
.contact-check.selected .selection-mark{display:inline}
.contact-company-role{font-size:11px;font-weight:600;color:#485660}
.contact-detail{font-size:11px;color:#66737d;line-height:1.3}
.contact-email{font-size:11px;color:#365d77;overflow-wrap:anywhere}
.contact-check.selected{background:#edf7ef}
.contact-check.selected .contact-name-line>b{font-weight:750}
@media(max-width:600px){
  .contact-check-heading{align-items:flex-start}
  .contact-name-line{display:block}
  .selection-mark{margin-top:2px}
}

/* v1.8.2 – Kontaktübersicht als Auswahldialog */
.contact-picker-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:7px}
.contact-picker-heading label{margin:0;font-weight:700}
.contact-picker-value{border:1px solid #d6dee5;border-radius:8px;background:#fafcfd;padding:8px;min-height:48px}
.contact-selection-empty{font-size:12px;color:#687580;padding:4px}
.selected-contact-list{display:grid;gap:5px}
.selected-contact-row{display:flex;gap:8px;padding:6px 8px;border-radius:6px;background:#edf5ef}
.selected-contact-row .grow{display:flex;flex-direction:column}
.selected-contact-row span,.selected-contact-row small{font-size:11px;color:#5f6b74}
.selected-contact-row.missing{background:#f8e7e7}
.contact-modal-backdrop{position:fixed;inset:0;z-index:9999;background:rgba(10,20,30,.55);display:grid;place-items:center;padding:18px}
.contact-modal{width:min(880px,100%);max-height:min(84vh,900px);display:flex;flex-direction:column;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 18px 50px rgba(0,0,0,.28)}
.contact-modal-head{display:flex;justify-content:space-between;align-items:flex-start;padding:16px;border-bottom:1px solid #e0e5e9}
.contact-modal-head h2{margin:0 0 3px}
.contact-modal-tools{display:flex;gap:10px;align-items:center;padding:10px 16px;border-bottom:1px solid #e0e5e9}
.contact-modal-tools input{flex:1;min-height:40px}
.contact-modal-list{overflow:auto;padding:10px 16px;display:grid;gap:7px}
.contact-modal-row{display:flex;gap:10px;padding:10px;border:1px solid #d5dde4;border-radius:8px;cursor:pointer;background:#fff}
.contact-modal-row.selected{border-color:#6a8c74;background:#edf7ef}
.contact-modal-row input{margin-top:4px}
.contact-modal-name{font-weight:750}
.contact-modal-company{font-size:12px;font-weight:600;color:#4e5b64}
.contact-modal-detail,.contact-modal-email{font-size:11px;color:#65717b;margin-top:2px;overflow-wrap:anywhere}
.contact-modal-email{color:#365f78}
.contact-modal-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;border-top:1px solid #e0e5e9;background:#f7f9fa}
@media(max-width:650px){
  .contact-modal-backdrop{padding:0;place-items:stretch}
  .contact-modal{width:100%;max-height:100vh;height:100vh;border-radius:0}
  .contact-modal-tools{display:block}
  .contact-modal-tools .toolbar{margin-top:8px}
  .contact-modal-footer{align-items:flex-start;flex-direction:column}
}

/* v1.8.3 – professionelle Kontaktanzeige */
.contact-picker-heading{align-items:flex-start}
.contact-picker-heading>div:first-child{display:flex;flex-direction:column;gap:2px}
.contact-picker-subtitle{font-size:11px;color:#6a7680;font-weight:400}
.contact-picker-value{padding:10px;background:#f7f9fa}
.selected-contact-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:8px}
.selected-contact-card{display:flex;align-items:flex-start;gap:10px;border:1px solid #d8e0e5;border-radius:9px;padding:10px;background:#fff;min-width:0}
.selected-contact-card.missing{border-color:#e2b8b8;background:#fff8f8}
.contact-avatar{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:#e7edf2;color:#294252;font-size:12px;font-weight:800;letter-spacing:.02em}
.selected-contact-content{min-width:0;flex:1}
.selected-contact-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.selected-contact-name{font-size:13px;font-weight:750;line-height:1.25;overflow-wrap:anywhere}
.selected-contact-company{font-size:11px;font-weight:600;color:#56636d;margin-top:2px;overflow-wrap:anywhere}
.selected-contact-details{display:flex;flex-direction:column;gap:2px;margin-top:5px;font-size:10.5px;color:#67747d;line-height:1.35}
.selected-contact-details span{overflow-wrap:anywhere}
.contact-type-badge{flex:none;border-radius:999px;padding:2px 6px;background:#e6eff7;color:#315872;font-size:9.5px;font-weight:700}
.contact-type-badge.participant{background:#e8f2e9;color:#3e6547}
.mail-ok{color:#315e77;font-weight:600}
.mail-missing{color:#a43131;font-weight:700}
.contact-selection-empty{display:flex;align-items:center;gap:10px;padding:8px;color:#66727c}
.contact-selection-empty>div{display:flex;flex-direction:column;gap:2px}
.contact-selection-empty b{font-size:12px;color:#49565f}
.contact-selection-empty span:not(.empty-contact-icon){font-size:11px}
.empty-contact-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e9eef2;font-size:16px}
.contact-modal-name-line{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.modal-selected-badge{border-radius:999px;padding:2px 6px;background:#dcefe0;color:#356143;font-size:9.5px;font-weight:750;white-space:nowrap}
.modal-avatar{margin-top:1px}
.contact-modal-meta{display:flex;flex-direction:column;gap:2px;margin-top:5px;font-size:11px;color:#66737c}
.contact-modal-meta span{overflow-wrap:anywhere}
.contact-modal-row{align-items:flex-start}
.contact-modal-row.selected{box-shadow:inset 3px 0 #6c9578}
@media(max-width:700px){
  .selected-contact-list{grid-template-columns:1fr}
  .selected-contact-top{display:block}
  .contact-type-badge{display:inline-flex;margin-top:4px}
}

/* v1.8.4 – endgültig getrennte Kontaktansicht */
.contact-assignment-panel{overflow:visible}
.contact-assignment-grid{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:14px;
  align-items:start;
}
.bc-picker{
  min-width:0;
  border:1px solid #d5dde4;
  border-radius:10px;
  background:#fff;
  overflow:hidden;
}
.bc-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
  padding:12px 13px;
  border-bottom:1px solid #e2e7eb;
  background:#f7f9fa;
}
.bc-head h3{margin:0;font-size:14px;line-height:1.25}
.bc-head p{margin:3px 0 0;font-size:11px;color:#67747d;line-height:1.3}
.bc-count{
  display:grid;
  place-items:center;
  flex:0 0 26px;
  width:26px;
  height:26px;
  border-radius:50%;
  background:#e5ebef;
  font-size:11px;
  font-weight:800;
}
.bc-values{display:grid;gap:0;padding:0;background:#fff;min-height:54px}
.bc-row{
  display:flex;
  min-width:0;
  padding:10px 12px;
  border-bottom:1px solid #edf0f2;
  background:#fff;
}
.bc-row:last-child{border-bottom:0}
.bc-row.bc-warning{background:#fff8f7}
.bc-main{display:flex;flex-direction:column;gap:2px;min-width:0;width:100%}
.bc-main strong{font-size:12.5px;line-height:1.3;overflow-wrap:anywhere}
.bc-secondary{font-size:11px;color:#53616b;line-height:1.3;overflow-wrap:anywhere}
.bc-meta{display:flex;flex-wrap:wrap;gap:3px 12px;margin-top:2px}
.bc-meta span{font-size:10.5px;color:#697680;line-height:1.3;overflow-wrap:anywhere}
.bc-meta .bc-mail-missing{color:#a22d2d;font-weight:700}
.bc-empty{padding:17px 12px;font-size:11.5px;color:#6d7982;text-align:center}
.bc-actions{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  padding:10px 12px;
  border-top:1px solid #e4e9ec;
  background:#fafbfc;
}
.bc-actions .btn{margin:0}
@media(max-width:760px){
  .contact-assignment-grid{grid-template-columns:1fr}
  .contact-assignment-panel .sectionhead{align-items:flex-start}
}

/* v1.8.5 – komplett neuer Bereich Beteiligte & Berichtsempfänger */
.ba-panel{overflow:visible}
.ba-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}
.ba-box{border:1px solid #d8dfe5;border-radius:10px;background:#fff;overflow:hidden;min-width:0}
.ba-box-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;padding:12px 14px;background:#f7f9fa;border-bottom:1px solid #e1e6ea}
.ba-box-head h3{margin:0;font-size:14px}
.ba-box-head p{margin:3px 0 0;color:#6a7680;font-size:11px}
.ba-badge{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:50%;background:#e7edf1;font-size:11px;font-weight:800}
.ba-values{min-height:58px}
.ba-person{padding:10px 13px;border-bottom:1px solid #edf0f2;background:#fff}
.ba-person:last-child{border-bottom:0}
.ba-person-error{background:#fff7f7}
.ba-person-body{display:flex;flex-direction:column;gap:2px;min-width:0}
.ba-person strong{font-size:12.5px;line-height:1.3;overflow-wrap:anywhere}
.ba-person span,.ba-person small{font-size:10.5px;line-height:1.3;overflow-wrap:anywhere}
.ba-person-sub{color:#57636d}
.ba-person-mail{color:#3f6378}
.ba-person-mail.ba-missing{color:#a72f2f;font-weight:700}
.ba-empty{padding:18px 12px;text-align:center;color:#6d7881;font-size:11.5px}
.ba-box-actions{display:flex;gap:7px;flex-wrap:wrap;padding:10px 12px;background:#fafbfc;border-top:1px solid #e5e9ec}
.ba-overlay{position:fixed;inset:0;z-index:10000;background:rgba(12,23,34,.56);display:grid;place-items:center;padding:18px}
.ba-dialog{width:min(820px,100%);max-height:86vh;display:flex;flex-direction:column;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 20px 55px rgba(0,0,0,.30)}
.ba-dialog-head,.ba-dialog-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px}
.ba-dialog-head{border-bottom:1px solid #e1e6ea}
.ba-dialog-head h2{margin:0;font-size:18px}
.ba-dialog-head p{margin:3px 0 0;color:#6b7780;font-size:11px}
.ba-dialog-tools{display:flex;gap:10px;align-items:center;padding:10px 16px;border-bottom:1px solid #e1e6ea}
.ba-dialog-tools input{flex:1;min-height:40px}
.ba-dialog-list{overflow:auto;padding:10px 16px;display:grid;gap:7px}
.ba-dialog-row{display:flex;align-items:flex-start;gap:10px;border:1px solid #d8dfe5;border-radius:8px;padding:10px;background:#fff;cursor:pointer}
.ba-dialog-row.selected{background:#eef7f0;border-color:#8eae97}
.ba-dialog-row input{margin-top:3px}
.ba-dialog-person{display:flex;flex-direction:column;gap:2px;min-width:0}
.ba-dialog-person strong{font-size:12.5px}
.ba-dialog-person span{font-size:11px;color:#56636d}
.ba-dialog-person small{font-size:10.5px;color:#6b7780;overflow-wrap:anywhere}
.ba-dialog-person em{font-style:normal;color:#aa3030;font-size:10.5px;font-weight:700}
.ba-dialog-foot{border-top:1px solid #e1e6ea;background:#f8fafb}
@media(max-width:760px){
  .ba-grid{grid-template-columns:1fr}
}
@media(max-width:620px){
  .ba-overlay{padding:0;place-items:stretch}
  .ba-dialog{width:100%;height:100vh;max-height:100vh;border-radius:0}
  .ba-dialog-tools{display:block}
  .ba-dialog-tools .toolbar{margin-top:8px}
  .ba-dialog-foot{align-items:flex-start;flex-direction:column}
}

/* v1.8.6 – korrigierte Aufzählung Beteiligte & Berichtsempfänger */
.ba-contact-list{
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
  display:block !important;
}
.ba-contact-list>li.ba-contact-item{
  list-style:none !important;
  margin:0 !important;
  padding:10px 13px !important;
  border:0 !important;
  border-bottom:1px solid #edf0f2 !important;
  background:#fff;
  display:block !important;
  min-width:0;
}
.ba-contact-list>li.ba-contact-item:last-child{border-bottom:0 !important}
.ba-contact-list>li.ba-contact-item::before,
.ba-contact-list>li.ba-contact-item::marker{content:none !important;display:none !important}
.ba-contact-list>li.ba-contact-item.ba-person-error{background:#fff7f7}
.ba-values{padding:0 !important}

/* v1.9.0 Standardtexte */
.field-label-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}.field-label-row label{margin:0}
.text-template-trigger{border:0;background:transparent;padding:2px 4px;font-size:10.5px;font-weight:700;color:#315d78;cursor:pointer}
.template-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:14px}.template-topics{align-self:start;position:sticky;top:8px}
.template-topic-btn{display:block;width:100%;text-align:left;border:0;border-radius:6px;padding:8px 9px;background:transparent;cursor:pointer;margin-bottom:3px}.template-topic-btn.active,.template-topic-btn:hover{background:#e9eef2;font-weight:700}
.template-cards{display:grid;gap:10px}.template-card{border:1px solid #d8dfe5;border-radius:9px;padding:12px;background:#fff}.template-card-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.template-card h3{margin:4px 0 0;font-size:14px}.template-topic-tag{display:inline-flex;border-radius:999px;background:#e8edf1;padding:2px 7px;font-size:9.5px;font-weight:700}.template-card-text{margin-top:9px;font-size:12px;line-height:1.45}
.text-template-overlay{position:fixed;inset:0;z-index:11000;background:rgba(10,20,30,.56);display:grid;place-items:center;padding:18px}.text-template-dialog{width:min(780px,100%);max-height:86vh;display:flex;flex-direction:column;background:#fff;border-radius:12px;overflow:hidden}.text-template-dialog-head{display:flex;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #e0e5e9}.text-template-dialog-head h2{margin:0}.text-template-dialog-head p{margin:3px 0 0;font-size:11px;color:#68747d}.text-template-search{display:flex;gap:8px;padding:10px 16px;border-bottom:1px solid #e0e5e9}.text-template-search input{flex:1}.text-template-dialog-list{overflow:auto;padding:10px 16px;display:grid;gap:7px}.text-template-select{text-align:left;border:1px solid #d8dfe5;border-radius:8px;background:#fff;padding:10px;display:flex;flex-direction:column;gap:3px;color:inherit}.text-template-select strong{font-size:12.5px}.text-template-select small{font-size:11px;color:#62707a;white-space:normal}.text-template-dialog-foot{padding:10px 16px;border-top:1px solid #e0e5e9;text-align:right}
@media(max-width:700px){.template-layout{grid-template-columns:1fr}.template-topics{position:static}.text-template-overlay{padding:0}.text-template-dialog{width:100%;height:100vh;max-height:100vh;border-radius:0}}

/* v1.9.1 – Standardtexte im Begehungsbericht */
.template-insert-mode{display:flex;flex-wrap:wrap;gap:8px 16px;margin-right:auto;font-size:11px}
.template-insert-mode label{display:flex;align-items:center;gap:5px;cursor:pointer}
.text-template-dialog-foot{display:flex;align-items:center;justify-content:space-between;gap:12px}
@media(max-width:620px){.text-template-dialog-foot{align-items:stretch;flex-direction:column}.template-insert-mode{display:grid;gap:8px}}

/* v2.0.0 – moderne Projekt-/Begehungsstruktur */
:root{--surface:#fff;--surface-soft:#f5f7f9;--line:#dfe5e9;--ink:#17232d;--muted:#66737d;--accent:#173f67;--radius:12px}
body{background:#f2f5f7}
header{box-shadow:0 1px 0 rgba(20,35,45,.08)}
.brand{gap:10px}.brand img{width:42px;height:42px;border-radius:10px;object-fit:cover;display:block}
.brand b{font-size:15px}.brand small{opacity:.72}
.panel{border-radius:var(--radius);border-color:var(--line);box-shadow:0 1px 2px rgba(20,35,45,.04)}
.page-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:16px;padding:4px 2px}
.page-hero h1{margin:2px 0 4px;font-size:28px;letter-spacing:-.02em}.page-hero p{margin:0;color:var(--muted);max-width:700px}
.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:9.5px;font-weight:800;color:#5f7180}
.primary-action{min-height:42px}
.active-project-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px}
.active-project-strip span{margin-left:8px;color:var(--muted);font-size:11px}
.count-pill{display:inline-grid;place-items:center;min-width:28px;height:28px;padding:0 8px;border-radius:999px;background:#e8edf1;font-size:11px;font-weight:800}
.report-list,.project-report-list{display:grid;gap:8px}
.report-card{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:12px 13px;cursor:pointer;transition:box-shadow .15s,border-color .15s,transform .15s}
.report-card:hover,.report-card:focus{border-color:#aebbc5;box-shadow:0 4px 14px rgba(22,42,58,.08);outline:none}
.report-card:active{transform:translateY(1px)}
.report-card-main{min-width:0;flex:1}.report-card-top{display:flex;align-items:center;gap:8px;justify-content:space-between}.report-card-top strong{font-size:13px;overflow-wrap:anywhere}
.report-card-meta{display:flex;flex-wrap:wrap;gap:5px 12px;margin-top:5px;color:var(--muted);font-size:10.5px}.report-card-meta span:not(:last-child)::after{content:"";margin-left:12px}
.report-state{flex:none;border-radius:999px;padding:3px 7px;font-size:9.5px;font-weight:750;background:#edf1f4;color:#58656f}.report-state.sent{background:#e5f1e8;color:#356043}
.report-card-actions{display:flex;gap:6px;flex:none}.report-orphan{border-color:#d8adad}.report-link-warning{margin-top:5px;color:#9b3030;font-size:10.5px}
.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px;padding:26px 16px;color:var(--muted);border:1px dashed #cfd8de;border-radius:10px;background:#fafbfc}.empty-state b{color:#47545d;font-size:12px}.empty-state span{font-size:11px}
.list-footer{margin-top:12px;text-align:center}
@media(max-width:700px){
 .page-hero{align-items:stretch;flex-direction:column}.page-hero .btn{width:100%}
 .report-card{align-items:stretch;flex-direction:column}.report-card-actions{width:100%}.report-card-actions .btn{flex:1}
 .report-card-top{align-items:flex-start}.active-project-strip{align-items:flex-start;flex-direction:column}
}

/* ==========================================================================
   v2.1.0 – Responsive-System Desktop / Tablet / Smartphone
   ========================================================================== */
:root{
  --app-max:1540px;
  --content-pad:clamp(12px,2vw,28px);
  --touch:44px;
}

/* shared */
html{overflow-x:hidden}
body{overflow-x:hidden}
main{width:100%;max-width:var(--app-max);padding-left:var(--content-pad);padding-right:var(--content-pad)}
img,svg,video,canvas{max-width:100%}
button,input,select,textarea{max-width:100%}
.field input,.field select{min-height:42px}
.field textarea{line-height:1.45}
.btn,.iconbtn{touch-action:manipulation}
.btn{min-height:38px}
.sectionhead>div,.project-title>div{min-width:0}
.sectionhead h1,.project-title h1,.page-hero h1{overflow-wrap:anywhere}
.panel{min-width:0}
.matrix,.plan-matrix{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.report-card,.rowitem,.template-card,.issue,.ba-box{min-width:0}

/* Project address card */
.project-address-card{
  width:100%;
  appearance:none;
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto;
  align-items:center;
  gap:13px;
  margin:-3px 0 16px;
  padding:13px 15px;
  border:1px solid #d8e2e9;
  border-radius:13px;
  background:linear-gradient(135deg,#fff,#f5f9fc);
  color:var(--ink);
  text-align:left;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(23,50,77,.06);
}
.project-address-card:not(.empty-address):hover{border-color:#a8bdcd;box-shadow:0 5px 17px rgba(23,50,77,.10)}
.address-icon{
  display:grid;place-items:center;width:44px;height:44px;border-radius:11px;
  background:#e8f0f6;color:#173f67;font-size:25px;font-weight:800;
}
.address-body{display:flex;flex-direction:column;gap:2px;min-width:0}
.address-body span{font-size:10px;text-transform:uppercase;letter-spacing:.06em;font-weight:800;color:#73818b}
.address-body b{font-size:13.5px;line-height:1.35;overflow-wrap:anywhere}
.address-body small{font-size:10.5px;color:#697781}
.address-action{font-size:11px;font-weight:750;color:#2f607f;white-space:nowrap}
.project-address-card.empty-address{cursor:default;grid-template-columns:48px 1fr;box-shadow:none}
.project-address-card.empty-address .address-action{display:none}

/* ---------------- Desktop >= 1200 ---------------- */
@media(min-width:1200px){
  header{padding-left:max(22px,calc((100vw - var(--app-max))/2 + 22px));padding-right:max(22px,calc((100vw - var(--app-max))/2 + 22px))}
  nav{padding-left:max(18px,calc((100vw - var(--app-max))/2 + 18px));padding-right:max(18px,calc((100vw - var(--app-max))/2 + 18px));justify-content:flex-start}
  nav button{padding:10px 13px}
  main{padding-top:22px}
  .cards{grid-template-columns:repeat(4,minmax(180px,1fr))}
  .split{grid-template-columns:minmax(0,1.18fr) minmax(340px,.82fr);gap:20px}
  .formgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
  .photos{grid-template-columns:repeat(4,minmax(150px,1fr))}
  .topic-picker{grid-template-columns:repeat(3,minmax(250px,1fr))}
  .template-layout{grid-template-columns:240px minmax(0,1fr)}
  .ba-grid{grid-template-columns:1fr 1fr}
  .pictogram-picker{grid-template-columns:repeat(4,minmax(200px,1fr))}
  .mobile-nav-toggle{display:none!important}
}

/* ---------------- Tablet 768–1199 ---------------- */
@media(min-width:768px) and (max-width:1199px){
  header{height:62px;padding:8px 16px}
  .brand img{width:38px;height:38px}
  .brand b{font-size:16px}
  nav{top:62px;padding:6px 12px;flex-wrap:wrap;overflow:visible;gap:4px}
  nav button{padding:8px 10px;font-size:12px}
  main{padding:16px 16px 92px}
  .cards{grid-template-columns:repeat(4,minmax(0,1fr))}
  .split{grid-template-columns:1fr;gap:14px}
  .formgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .photos{grid-template-columns:repeat(3,minmax(0,1fr))}
  .project-title{align-items:center}
  .project-title>.toolbar,.sectionhead>.toolbar{justify-content:flex-end}
  .report-card{align-items:center}
  .sticky-actions{bottom:8px;flex-wrap:wrap}
  .sticky-actions .btn{flex:1 1 170px}
  .sige-sheet{grid-template-columns:1fr}
  .sige-side{order:0}
  .plan-matrix{max-height:60vh}
  .site-grid{grid-template-columns:repeat(2,1fr)}
  .pictogram-picker{grid-template-columns:repeat(3,minmax(190px,1fr))}
  .template-layout{grid-template-columns:210px minmax(0,1fr)}
  .contact-modal,.ba-dialog,.text-template-dialog{width:min(92vw,900px)}
  .mobile-nav-toggle{display:none!important}
}

/* ---------------- Smartphone <= 767 ---------------- */
@media(max-width:767px){
  body{padding-bottom:env(safe-area-inset-bottom)}
  header{
    height:58px;
    padding:7px max(10px,env(safe-area-inset-left)) 7px max(10px,env(safe-area-inset-right));
  }
  .brand{gap:8px;min-width:0}
  .brand img{width:36px!important;height:36px!important;border-radius:9px;flex:none}
  .brand>div{min-width:0}
  .brand b{display:block;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:50vw}
  .brand small{display:none}
  .head-actions{gap:5px}
  #accountStatus{display:none}
  #syncStatus{max-width:92px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}
  .iconbtn{width:38px;height:38px}
  .mobile-nav-toggle{display:inline-grid!important;place-items:center}

  nav{
    display:none;
    position:fixed;
    left:8px;right:8px;top:62px;
    max-height:calc(100dvh - 76px);
    overflow:auto;
    padding:8px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:12px;
    box-shadow:0 12px 30px rgba(10,25,40,.20);
    z-index:80;
    grid-template-columns:1fr 1fr;
    gap:5px;
  }
  nav.mobile-open{display:grid}
  nav button{white-space:normal;min-height:44px;padding:9px 10px;text-align:left;font-size:12px}
  nav button.active{box-shadow:inset 3px 0 var(--brand)}

  main{padding:12px 10px 104px}
  .panel{padding:13px;margin-bottom:12px;border-radius:11px}
  .sectionhead,.project-title,.page-hero{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-bottom:12px}
  .sectionhead>button,.project-title>.btn,.page-hero>.btn{width:100%}
  .sectionhead>.toolbar,.project-title>.toolbar{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .sectionhead>.toolbar>.btn,.project-title>.toolbar>.btn{width:100%}
  .page-hero h1,.project-title h1,.sectionhead h1{font-size:22px}
  .page-hero p{font-size:12px;line-height:1.4}

  .cards{grid-template-columns:1fr 1fr;gap:8px}
  .card{padding:12px}.big{font-size:24px}
  .split,.formgrid,.ba-grid,.template-layout,.sige-sheet,.site-grid,.report-list,.project-report-list{grid-template-columns:1fr!important}
  .formgrid{gap:10px}
  .field.full{grid-column:auto}
  .field input,.field select{min-height:46px;font-size:16px}
  .field textarea{font-size:16px;min-height:110px}
  .field label{font-size:12px}
  .toolbar{gap:7px}
  .btn{min-height:44px;padding:10px 12px}
  .btn.small,.btn.tiny{min-height:38px}
  .rowitem{display:flex;align-items:stretch;flex-direction:column;padding:11px}
  .rowitem>.toolbar{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .rowitem>.toolbar>.btn{width:100%}
  .tabs2{display:flex;overflow:auto;flex-wrap:nowrap;padding-bottom:4px;scrollbar-width:none}
  .tabs2::-webkit-scrollbar{display:none}
  .tabs2 button{white-space:nowrap;min-height:42px}

  .report-card{display:flex;flex-direction:column;align-items:stretch;padding:11px}
  .report-card-top{align-items:flex-start}
  .report-card-meta{display:grid;grid-template-columns:1fr 1fr;gap:4px 8px}
  .report-card-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .report-card-actions .btn{width:100%}
  .active-project-strip{flex-direction:column;align-items:stretch}
  .active-project-strip .btn{width:100%}

  .project-address-card{
    grid-template-columns:42px minmax(0,1fr);
    padding:11px;
    gap:10px;
    border-radius:11px;
  }
  .address-icon{width:40px;height:40px;font-size:22px}
  .address-action{grid-column:2;white-space:normal;margin-top:2px}
  .address-body b{font-size:12.5px}
  .address-body small{display:none}

  .photos{grid-template-columns:1fr 1fr;gap:7px}
  .issue{padding:10px}
  .issue-head{flex-direction:column;align-items:stretch}
  .issue-head>.btn{width:100%}

  .sticky-actions{
    left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom));
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px;
    padding:7px;
    max-height:40vh;
    overflow:auto;
  }
  .sticky-actions .btn{width:100%;min-width:0;font-size:11px}

  .matrix,.plan-matrix{margin-left:-3px;margin-right:-3px;padding-bottom:6px}
  .matrix table{min-width:760px}
  .plan-matrix table{min-width:1200px}
  .plan-matrix th.haz{height:115px}
  .plan-matrix th.haz span{max-height:108px}
  .plan-matrix textarea{min-height:58px}
  .site-grid{display:grid!important}
  .sige-side{order:0}
  .plan-image-slot img{height:105px}
  .work-catalog,.topic-picker,.pictogram-picker{grid-template-columns:1fr!important}

  .ba-overlay,.contact-modal-backdrop,.text-template-overlay{padding:0!important;place-items:stretch!important}
  .ba-dialog,.contact-modal,.text-template-dialog{width:100%!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}
  .ba-dialog-tools,.contact-modal-tools,.text-template-search{display:block}
  .ba-dialog-tools .toolbar,.contact-modal-tools .toolbar{margin-top:7px}
  .ba-dialog-foot,.contact-modal-footer,.text-template-dialog-foot{flex-direction:column;align-items:stretch}
  .ba-dialog-foot .toolbar,.contact-modal-footer .toolbar{display:grid;grid-template-columns:1fr 1fr;width:100%}

  .template-topics{position:static}
  .template-card-head{flex-direction:column}
  .template-card-head>.toolbar{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .contact-assignment-grid{grid-template-columns:1fr!important}
  .contact-checklist{grid-template-columns:1fr!important}

  .authority-row{display:grid;grid-template-columns:1fr}
  .authority-row select{min-width:0}
  .notice-progress{grid-template-columns:1fr 1fr}
  .notice-step{padding:12px}
}

/* ---------------- Small smartphones <= 430 ---------------- */
@media(max-width:430px){
  main{padding-left:8px;padding-right:8px}
  .cards{grid-template-columns:1fr}
  .sectionhead>.toolbar,.project-title>.toolbar,.rowitem>.toolbar,.report-card-actions,.sticky-actions{grid-template-columns:1fr}
  .photos{grid-template-columns:1fr}
  .report-card-meta{grid-template-columns:1fr}
  nav{grid-template-columns:1fr}
  .project-address-card{grid-template-columns:38px minmax(0,1fr)}
  .address-icon{width:36px;height:36px}
  .ba-dialog-foot .toolbar,.contact-modal-footer .toolbar{grid-template-columns:1fr}
}

/* Landscape phones: preserve usable vertical workspace */
@media(max-width:900px) and (orientation:landscape){
  header{position:sticky}
  main{padding-bottom:76px}
  nav.mobile-open{max-height:calc(100dvh - 66px)}
  .sticky-actions{position:static;grid-template-columns:repeat(4,1fr);max-height:none;margin-top:10px}
  .photos{grid-template-columns:repeat(4,1fr)}
}

/* ==========================================================================
   v2.2.0 – neue Informations-/Projektstruktur
   ========================================================================== */
.dashboard-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
.dashboard-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-bottom:12px}
.dashboard-search input{min-height:44px;border:1px solid #cbd4dc;border-radius:9px;padding:9px 11px;font:inherit}
.search-placeholder{padding:18px;text-align:center;color:var(--muted);font-size:12px}
.dashboard-search-list{display:grid;gap:6px}
.dashboard-search-result{display:grid;grid-template-columns:80px minmax(0,1fr);gap:2px 10px;text-align:left;border:1px solid var(--line);background:#fff;border-radius:9px;padding:10px 12px;color:inherit;cursor:pointer}
.dashboard-search-result:hover{background:#f7f9fb}
.dashboard-search-result .search-type{grid-row:1/3;align-self:center;font-size:9.5px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#667783}
.dashboard-search-result b{font-size:12.5px}.dashboard-search-result small{font-size:10.5px;color:var(--muted)}
.project-filter{display:flex;gap:5px;flex-wrap:wrap}
.project-filter button{border:1px solid #ced8df;background:#f7f9fa;color:#455762;border-radius:999px;padding:7px 11px;font-weight:700;cursor:pointer}
.project-filter button.active{background:var(--brand);border-color:var(--brand);color:#fff}
.project-list-modern{display:grid;gap:8px}
.project-list-card{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:11px;padding:12px 13px;background:#fff;cursor:pointer}
.project-list-card:hover,.project-list-card:focus{border-color:#afbdc7;box-shadow:0 3px 12px rgba(20,40,55,.07);outline:none}
.project-list-main{flex:1;min-width:0}.project-list-title{display:flex;align-items:center;gap:8px;justify-content:space-between}.project-list-title b{font-size:13px}
.project-state{font-size:9.5px;font-weight:800;border-radius:999px;padding:3px 7px;background:#e7f2e9;color:#356143}.project-state.completed{background:#eceff1;color:#64717a}
.project-list-address{font-size:11.5px;color:#5d6b75;margin-top:3px;overflow-wrap:anywhere}
.project-list-meta{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:5px;font-size:10.5px;color:#75818a}
.new-report-bar{display:flex;align-items:end;gap:10px;padding:10px 12px;margin-bottom:12px;background:#f7f9fa;border:1px solid #e0e6ea;border-radius:10px}
.new-report-bar label{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}.new-report-bar label span{font-size:10.5px;font-weight:700;color:#5c6a74}
.new-report-bar select{min-height:42px;border:1px solid #cbd5dc;border-radius:8px;background:#fff;padding:8px 10px;font:inherit;width:100%}

/* Ausfallsicheres mobiles Menü: funktioniert auch bei app.js-Laufzeitfehlern */
.mobile-menu-toggle-input{position:fixed;width:1px;height:1px;opacity:0;pointer-events:none;left:-9999px}
.mobile-menu-close-icon{display:none}.mobile-nav-toggle{user-select:none;-webkit-user-select:none;cursor:pointer;align-items:center;justify-content:center;line-height:1}
@media(min-width:768px){.mobile-nav-toggle{display:none!important}}
@media(max-width:767px){
  #tabs{display:none!important}
  #mobileMenuToggle:checked ~ #tabs{display:grid!important}
  #mobileMenuToggle:checked ~ header .mobile-menu-open-icon{display:none}
  #mobileMenuToggle:checked ~ header .mobile-menu-close-icon{display:inline}
  #mobileMenuToggle:checked ~ header #mobileNavBtn{background:rgba(255,255,255,.30)}
  .dashboard-kpis{grid-template-columns:1fr 1fr}
  .dashboard-search{grid-template-columns:1fr}
  .dashboard-search-result{grid-template-columns:64px minmax(0,1fr)}
  .project-filter{display:grid;grid-template-columns:repeat(3,1fr);width:100%}
  .project-filter button{padding:8px 5px}
  .project-list-card{align-items:stretch;flex-direction:column}
  .project-list-card>.btn{width:100%}
  .project-list-title{align-items:flex-start}
  .new-report-bar{align-items:stretch;flex-direction:column}
  .new-report-bar .btn{width:100%}
}
@media(max-width:430px){
  .dashboard-kpis{grid-template-columns:1fr}
  .project-filter{grid-template-columns:1fr}
  .dashboard-search-result{grid-template-columns:1fr}
  .dashboard-search-result .search-type{grid-row:auto}
}

/* v2.2.1 – Berichtsempfänger aus Projektbeteiligten oder globalem Adressbuch */
.recipient-source-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  padding:10px 16px 0;
  background:#fff;
}
.recipient-source-tabs button{
  min-height:42px;
  border:1px solid #ccd6de;
  border-radius:8px;
  background:#f6f8fa;
  color:#465762;
  font-weight:750;
  cursor:pointer;
}
.recipient-source-tabs button.active{
  background:#e7eff5;
  border-color:#89a8bd;
  color:#173f67;
  box-shadow:inset 0 -2px #315f7d;
}
.recipient-source-tabs button:disabled{
  opacity:.5;
  cursor:not-allowed;
}
.recipient-source-tabs button span{
  display:inline-grid;
  place-items:center;
  min-width:20px;
  height:20px;
  margin-left:5px;
  padding:0 5px;
  border-radius:999px;
  background:#fff;
  font-size:10px;
}
@media(max-width:520px){
  .recipient-source-tabs{grid-template-columns:1fr;padding:9px 12px 0}
}

/* v2.3.1 – Firmenkontakte und Ansprechpartner */
.hidden{display:none!important}
.contact-title-line{display:flex;align-items:center;justify-content:space-between;gap:8px}
.contact-kind-badge{flex:none;padding:2px 7px;border-radius:999px;background:#e8edf1;color:#52636e;font-size:9.5px;font-weight:800}
.contact-person-preview{display:flex;flex-direction:column;gap:2px;margin-top:5px;font-size:10.5px;color:#66747d}
.company-contact-persons.hidden{display:none!important}
.contact-person-list{display:grid;gap:10px}
.contact-person-card{position:relative;border:1px solid #d9e1e6;border-radius:10px;padding:12px 12px 12px 46px;background:#fafcfd}
.contact-person-number{position:absolute;left:12px;top:12px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#e7edf2;color:#405766;font-size:10px;font-weight:800}
.contact-person-remove{position:absolute;right:10px;top:10px}
.contact-person-card .formgrid{padding-top:28px}
.contact-person-empty{border:1px dashed #d2dbe1;border-radius:8px}
@media(max-width:700px){
  .contact-title-line{align-items:flex-start}
  .contact-person-card{padding:12px}
  .contact-person-number{position:static;margin-bottom:8px}
  .contact-person-remove{position:static;width:100%;margin-top:8px}
  .contact-person-card .formgrid{padding-top:0}
}

/* v2.3.2 – einheitliche Kontaktmaske */
.company-contact-persons{display:block!important}
.contact-book-row .title{font-size:13px;font-weight:750}

/* ==========================================================================
   v2.4.0 – globale Korrektur von Checkboxen, Radiofeldern und Auswahlkarten
   ========================================================================== */

/* Checkboxen / Radios dürfen niemals die Vollbreiten-Regeln normaler Eingabefelder erben. */
input[type="checkbox"],
input[type="radio"]{
  width:18px!important;
  min-width:18px!important;
  max-width:18px!important;
  height:18px!important;
  min-height:18px!important;
  max-height:18px!important;
  margin:0!important;
  padding:0!important;
  flex:0 0 18px!important;
  align-self:flex-start;
  border-radius:4px;
  accent-color:var(--brand);
}
input[type="radio"]{border-radius:50%}

/* Einheitliche Zeile für Schalter und Auswahloptionen. */
.choice-row,
.field>label:has(>input[type="checkbox"]),
.field>label:has(>input[type="radio"]),
.work-group label:has(input[type="checkbox"]),
.site-grid label:has(input[type="checkbox"]),
.topic-picker label:has(input[type="checkbox"]),
.template-insert-mode label:has(input[type="radio"]){
  display:flex!important;
  align-items:flex-start!important;
  gap:8px!important;
  width:100%;
  min-width:0;
  line-height:1.35;
}
.choice-row>span,
.work-group label:has(input[type="checkbox"]),
.site-grid label:has(input[type="checkbox"]),
.topic-picker label:has(input[type="checkbox"]){
  overflow-wrap:anywhere;
}

/* Einstellungen: Matrixkennzeichnungen */
.mark-settings{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:2px;
}
.mark-settings .choice-row{
  min-height:48px;
  align-items:center!important;
  padding:9px 10px;
  border:1px solid #d9e1e6;
  border-radius:8px;
  background:#fafcfd;
}
.mark-settings .legend-chip{
  flex:0 0 auto;
  min-width:26px;
  text-align:center;
}
.mark-settings .choice-row>span{
  font-size:12px;
  font-weight:600;
  color:#465763;
}

/* Piktogramm-Auswahl */
.pictogram-picker{
  align-items:stretch;
}
.picto-choice{
  display:grid!important;
  grid-template-columns:18px minmax(0,1fr)!important;
  align-items:start!important;
  gap:9px!important;
  min-height:82px;
  padding:9px!important;
  overflow:hidden;
}
.picto-choice>input[type="checkbox"]{
  margin-top:4px!important;
}
.picto-choice .safety-picto{
  width:100%;
  min-width:0;
}
.picto-choice .picto-real{
  flex:0 0 52px;
  width:52px;
  min-width:52px;
  height:52px;
  min-height:52px;
}
.picto-choice .iso-sign-svg,
.picto-choice .iso7010-professional{
  display:block!important;
  width:48px!important;
  height:48px!important;
  max-width:48px!important;
  max-height:48px!important;
  object-fit:contain;
}
.picto-choice .picto-label{
  min-width:0;
  font-size:10.5px!important;
  line-height:1.25!important;
  overflow-wrap:anywhere;
}
.pictogram-picker.settings-pictos{
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
}
.pictogram-picker.settings-pictos .picto-choice{
  min-height:76px;
}

/* Arbeitsbereiche / Themen / Baustelleneinrichtung */
.work-group label:has(input[type="checkbox"]),
.site-grid label:has(input[type="checkbox"]),
.topic-picker label:has(input[type="checkbox"]){
  padding:6px 4px!important;
  font-size:12px!important;
}
.work-group label:has(input[type="checkbox"])+label,
.site-grid label:has(input[type="checkbox"])+label{
  border-top:1px solid #eef1f3;
}
.site-grid{
  align-items:start;
}

/* Kontakt- und Empfängerauswahl */
.ba-dialog-row>input[type="checkbox"],
.contact-modal-row>input[type="checkbox"]{
  margin-top:3px!important;
}
.ba-dialog-row,
.contact-modal-row{
  min-width:0;
}
.ba-dialog-person,
.contact-check-main{
  min-width:0;
}

/* Standardtext-Auswahl */
.template-insert-mode{
  align-items:flex-start;
}
.template-insert-mode label{
  min-height:30px;
}

/* Kein Checkbox-/Radio-Feld darf durch mobile Textfeldregeln auf 46px Höhe wachsen. */
@media(max-width:767px){
  input[type="checkbox"],
  input[type="radio"]{
    width:20px!important;
    min-width:20px!important;
    max-width:20px!important;
    height:20px!important;
    min-height:20px!important;
    max-height:20px!important;
    flex-basis:20px!important;
    font-size:initial!important;
  }
  .mark-settings{grid-template-columns:1fr}
  .mark-settings .choice-row{min-height:46px}
  .pictogram-picker.settings-pictos{grid-template-columns:1fr!important}
  .picto-choice{min-height:72px}
  .site-grid{grid-template-columns:1fr!important}
}

/* Tablet: Auswahlkarten zweispaltig, ohne gequetschte Inhalte. */
@media(min-width:768px) and (max-width:1199px){
  .mark-settings{grid-template-columns:1fr}
  .pictogram-picker.settings-pictos{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Kleine Displays: keine Beschriftung darf aus der Auswahlkarte hinausgeschoben werden. */
@media(max-width:430px){
  .picto-choice{
    grid-template-columns:20px minmax(0,1fr)!important;
    padding:8px!important;
  }
  .picto-choice .safety-picto{
    display:grid;
    grid-template-columns:48px minmax(0,1fr);
    gap:7px;
  }
}

/* v2.4.1 – eindeutige Standard-Piktogrammverwaltung */
.default-picto-settings{margin-top:4px}
.default-picto-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px}
.default-picto-head>div{min-width:0}
.default-picto-head>div>label{font-weight:800;font-size:13px}
.default-picto-global-actions{margin:4px 0 8px}
.default-picto-group{border-top:1px solid #e4e9ed;padding-top:9px;margin-top:9px}
.default-picto-group:first-of-type{border-top:0}
.default-picto-note{margin-top:10px;padding:9px 10px;border-radius:8px;background:#f4f7f9;color:#5e6d77;font-size:10.5px;line-height:1.4}
@media(max-width:700px){
  .default-picto-head{flex-direction:column}
  .default-picto-global-actions{display:grid;grid-template-columns:1fr 1fr}
}
@media(max-width:430px){
  .default-picto-global-actions{grid-template-columns:1fr}
}

/* v2.4.2 – frei vergebbare Projektnummer */
.project-list-title>div{display:flex;align-items:baseline;gap:8px;min-width:0;flex-wrap:wrap}
.project-number-inline{font-size:10px;font-weight:700;color:#66747d}

/* v2.5.0 – Monatsrapporte */
.rapport-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:14px;align-items:start}
.rapport-months{position:sticky;top:112px}
.rapport-month-list{display:grid;gap:5px}
.rapport-month-btn{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;border:1px solid #d9e1e6;border-radius:8px;background:#fff;padding:9px 10px;text-align:left;color:#43545f;cursor:pointer}
.rapport-month-btn:hover{background:#f5f8fa}
.rapport-month-btn.active{background:#e8f0f6;border-color:#91aabd;color:#173f67;font-weight:750}
.rapport-month-btn b{display:grid;place-items:center;min-width:24px;height:24px;border-radius:999px;background:#eef2f4;font-size:10px}
.rapport-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-bottom:13px}
.rapport-kpis>div{border:1px solid #e0e6ea;border-radius:9px;background:#f8fafb;padding:9px 10px}
.rapport-kpis span{display:block;font-size:9.5px;color:#697781;margin-bottom:2px}
.rapport-kpis b{font-size:17px;color:#253843}
.rapport-table-wrap{width:100%;overflow:auto;-webkit-overflow-scrolling:touch}
.rapport-table{width:100%;min-width:940px;border-collapse:collapse;background:#fff}
.rapport-table th,.rapport-table td{border-bottom:1px solid #e4e9ec;padding:9px 10px;text-align:left;vertical-align:top;font-size:11px;line-height:1.35}
.rapport-table th{position:sticky;top:0;background:#f2f5f7;color:#53616b;font-size:9.5px;text-transform:uppercase;letter-spacing:.035em;z-index:1}
.rapport-table tbody tr:hover{background:#f8fafb}
.rapport-row-action{text-align:right!important;white-space:nowrap}
.rapport-empty-row td{text-align:center!important;padding:24px!important;color:#6a7780}
@media(max-width:1000px){
  .rapport-layout{grid-template-columns:1fr}
  .rapport-months{position:static}
  .rapport-month-list{grid-template-columns:repeat(3,minmax(0,1fr))}
  .rapport-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:767px){
  .rapport-month-list{grid-template-columns:1fr 1fr}
  .rapport-kpis{grid-template-columns:1fr 1fr}
  .rapport-table{min-width:0;display:block}
  .rapport-table thead{display:none}
  .rapport-table tbody{display:grid;gap:8px}
  .rapport-table tr{display:block;border:1px solid #dce3e8;border-radius:10px;padding:9px 10px;background:#fff}
  .rapport-table td{display:grid;grid-template-columns:116px minmax(0,1fr);gap:8px;border:0;padding:3px 0;font-size:11px}
  .rapport-table td::before{content:attr(data-label);font-size:9.5px;font-weight:800;text-transform:uppercase;color:#74818a}
  .rapport-table .rapport-row-action{display:block;text-align:left!important;padding-top:8px}
  .rapport-table .rapport-row-action::before{display:none}
  .rapport-table .rapport-row-action .btn{width:100%}
  .rapport-empty-row td{display:block!important}
  .rapport-empty-row td::before{display:none}
}
@media(max-width:430px){
  .rapport-month-list,.rapport-kpis{grid-template-columns:1fr}
  .rapport-table td{grid-template-columns:1fr}
}

/* v2.6.0 – Auftragsverwaltung + Rapport-Einnahmen */
.order-list{display:grid;gap:8px}
.order-card{display:flex;align-items:center;gap:12px;border:1px solid #dce3e8;border-radius:11px;background:#fff;padding:12px 13px;cursor:pointer}
.order-card:hover,.order-card:focus{border-color:#aab9c4;box-shadow:0 3px 12px rgba(20,40,55,.07);outline:none}
.order-main{flex:1;min-width:0}
.order-title{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.order-title>div{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.order-title b{font-size:13px}.order-title>div span,.order-date{font-size:10.5px;color:#67757e}
.order-meta,.order-prices{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:5px;font-size:10.5px;color:#66747d}
.order-prices{margin-top:7px}.order-prices span{padding:4px 7px;border-radius:7px;background:#f2f5f7}.order-prices b{color:#2b424f}
.money-cell{white-space:nowrap;text-align:right!important}
.price-note{font-size:9.5px;color:#6d7880;white-space:normal}
.rapport-revenue-total{display:flex;align-items:center;justify-content:flex-end;gap:18px;margin-top:12px;padding:13px 14px;border-top:2px solid #8fa0ab;background:#f5f8fa;border-radius:0 0 9px 9px}
.rapport-revenue-total span{font-size:12px;font-weight:750;color:#52616b}
.rapport-revenue-total b{font-size:19px;color:#173f67}
@media(max-width:767px){
  .order-card{align-items:stretch;flex-direction:column}
  .order-card>.btn{width:100%}
  .order-title{flex-direction:column}
  .order-meta,.order-prices{display:grid;grid-template-columns:1fr}
  .money-cell{text-align:left!important}
  .rapport-revenue-total{justify-content:space-between}
}

/* v2.7.1 – Mitnutzerrechte und Rapporte in der Auftragsverwaltung */
.order-rapports-panel{margin-top:14px}
.order-rapport-months{display:flex;gap:6px;overflow:auto;padding-bottom:6px;margin-bottom:12px;scrollbar-width:thin}
.order-rapport-months button{flex:0 0 auto;display:flex;align-items:center;gap:8px;min-height:38px;border:1px solid #d7e0e6;border-radius:8px;background:#fff;padding:7px 10px;color:#52626d;cursor:pointer}
.order-rapport-months button.active{background:#e7eff5;border-color:#91aabd;color:#173f67;font-weight:750}
.order-rapport-months button b{display:grid;place-items:center;min-width:22px;height:22px;border-radius:999px;background:#eef2f4;font-size:9.5px}
.rapport-inline-head{margin-top:4px}
.member-rights-panel{margin-top:14px}
.member-permission-card{border:1px solid #dbe3e8;border-radius:11px;padding:12px;margin-top:10px;background:#fbfcfd}
.member-permission-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid #e5eaed}
.member-permission-head>div{display:flex;flex-direction:column;gap:2px}.member-permission-head span{font-size:10.5px;color:#697781}
.permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 10px;margin-top:10px}
.permission-item{display:grid;grid-template-columns:20px minmax(0,1fr);gap:8px;align-items:flex-start;border:1px solid #e1e7eb;border-radius:8px;background:#fff;padding:9px;cursor:pointer}
.permission-item input{margin-top:1px}
.permission-item span{display:flex;flex-direction:column;gap:2px}.permission-item b{font-size:11.5px}.permission-item small{font-size:9.8px;line-height:1.3;color:#6c7982}
.permission-actions{margin-top:10px;padding-top:10px;border-top:1px solid #e5eaed}
@media(max-width:800px){.permission-grid{grid-template-columns:1fr}.permission-actions{display:grid;grid-template-columns:1fr 1fr}}
@media(max-width:520px){.permission-actions{grid-template-columns:1fr}.member-permission-head{flex-direction:column}}

/* v2.8.1 – E-Mail-Verwaltung Hauptnutzer / Mitnutzer */
.account-email-edit{display:grid;grid-template-columns:minmax(260px,520px) auto;gap:8px;align-items:end;margin:12px 0 6px}
.member-email-edit{display:grid;grid-template-columns:minmax(220px,420px) auto;gap:7px;align-items:center;margin-top:7px}
.member-email-edit input{min-height:38px;border:1px solid #ccd6dd;border-radius:8px;padding:7px 9px;font:inherit;min-width:0}
.member-account-row{align-items:center}
.member-account-actions{flex:none}
@media(max-width:767px){
  .account-email-edit,.member-email-edit{grid-template-columns:1fr}
  .account-email-edit .btn,.member-email-edit .btn{width:100%}
  .member-account-row{align-items:stretch}
  .member-account-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
}
@media(max-width:430px){.member-account-actions{grid-template-columns:1fr}}

/* v2.8.2 – Benutzername Hauptnutzer / Mitnutzer */
.account-profile-edit{display:grid;grid-template-columns:minmax(260px,520px) auto;gap:8px;align-items:end;margin:12px 0 6px}
.member-profile-edit{display:grid;grid-template-columns:minmax(180px,1fr) auto minmax(220px,1.35fr) auto;gap:7px;align-items:center;margin-top:7px}
.member-profile-edit input{min-height:38px;border:1px solid #ccd6dd;border-radius:8px;padding:7px 9px;font:inherit;min-width:0}
@media(max-width:900px){.member-profile-edit{grid-template-columns:1fr auto}}
@media(max-width:767px){.account-profile-edit,.member-profile-edit{grid-template-columns:1fr}.account-profile-edit .btn,.member-profile-edit .btn{width:100%}}

/* v2.9.0 – eindeutige HiDrive-Synchronisation, tägliche Datensicherung, sofortiges Einstellungs-Autosave */
.backup-box{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px;padding:12px;border:1px solid #d8e1e7;border-radius:10px;background:#fafcfd}
.backup-box>div{min-width:0}
.settings-info-panel .hint{max-width:900px;line-height:1.55}
#settingsSaveStatus{white-space:nowrap}
@media(max-width:680px){.backup-box{align-items:stretch;flex-direction:column}.backup-box .btn{width:100%}}

/* v2.9.1 – explizite Standardfestlegung für SiGe-Plan-Piktogramme */
.default-picto-savebar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;padding:14px;border:1px solid #d8e1e7;border-radius:10px;background:#fafcfd}
.default-picto-savebar>div{min-width:0}
@media(max-width:680px){.default-picto-savebar{align-items:stretch;flex-direction:column}.default-picto-savebar .btn{width:100%}}

/* v2.9.2 – Projektstatus Aktiv / Unterlage / Abgeschlossen */
.project-state.underlay{border-style:solid}

/* v2.9.3 – einheitliche Kontaktauswahl über das Adressbuch */
.contact-select-field{min-width:0}
.contact-select-button{width:100%;min-height:48px;border:1px solid #cbd6dd;border-radius:9px;background:#fff;padding:8px 10px;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;color:inherit;cursor:pointer}
.contact-select-button:hover{border-color:#9eafb9;background:#f8fafb}
.contact-select-button.selected{border-color:#9aadb9}
.contact-select-main{display:flex;flex-direction:column;gap:2px;min-width:0}
.contact-select-main b{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.contact-select-main small{font-size:10px;color:#6b7881;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.contact-select-action{flex:none;font-size:10px;font-weight:750;color:#315d78}
.contact-picker-overlay{position:fixed;inset:0;z-index:5000;background:rgba(18,29,37,.46);display:grid;place-items:center;padding:16px}
.contact-picker-dialog{width:min(760px,100%);max-height:min(820px,calc(100vh - 32px));display:flex;flex-direction:column;background:#fff;border-radius:14px;box-shadow:0 18px 60px rgba(15,28,37,.28);overflow:hidden}
.contact-picker-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:15px 16px;border-bottom:1px solid #e0e6ea}
.contact-picker-head h2{margin:0;font-size:17px}.contact-picker-head p{margin:3px 0 0;color:#6c7982;font-size:11px}
.contact-picker-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px 16px;border-bottom:1px solid #e7ecef;background:#fafbfc}
.contact-picker-tools input{min-height:42px;border:1px solid #cbd6dd;border-radius:8px;padding:8px 10px;font:inherit}
.contact-picker-list{overflow:auto;padding:8px;display:grid;gap:5px}
.contact-picker-row{width:100%;display:grid;grid-template-columns:38px minmax(0,1fr) 26px;align-items:center;gap:10px;border:1px solid transparent;border-radius:9px;background:#fff;padding:9px 10px;text-align:left;color:inherit;cursor:pointer}
.contact-picker-row:hover{background:#f5f8fa;border-color:#e0e6ea}
.contact-picker-row.selected{background:#eaf1f5;border-color:#a9bbc6}
.contact-picker-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e7edf1;font-size:12px;font-weight:800;color:#435967}
.contact-picker-content,.contact-picker-row>span:nth-child(2){display:flex;flex-direction:column;gap:2px;min-width:0}
.contact-picker-content b{font-size:12px}.contact-picker-content small,.contact-picker-row>span:nth-child(2) small{font-size:10px;color:#687680;overflow-wrap:anywhere}
.contact-picker-check{font-size:16px;font-weight:900;text-align:center}
.contact-picker-empty{padding:24px;text-align:center;color:#6d7981}
.contact-picker-new{overflow:auto;padding:15px 16px}
.contact-picker-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid #e2e8ec;background:#fafbfc}
@media(max-width:600px){
  .contact-picker-overlay{padding:0;place-items:stretch}
  .contact-picker-dialog{width:100%;height:100%;max-height:none;border-radius:0}
  .contact-picker-tools{grid-template-columns:1fr}
  .contact-picker-tools .btn{width:100%}
  .contact-picker-row{grid-template-columns:36px minmax(0,1fr) 24px}
  .contact-picker-foot{display:grid;grid-template-columns:1fr}
  .contact-picker-foot .btn{width:100%}
  .contact-select-button{min-height:52px}
}

/* v2.9.4 – Kontaktbearbeitung und Ansprechpartner direkt in der Auswahl */
.contact-picker-row{grid-template-columns:minmax(0,1fr) auto;padding:5px}
.contact-picker-select{appearance:none;border:0;background:transparent;color:inherit;width:100%;display:grid;grid-template-columns:38px minmax(0,1fr) 26px;align-items:center;gap:10px;padding:5px;text-align:left;cursor:pointer;min-width:0}
.contact-picker-edit{align-self:center;margin-right:5px}
.contact-picker-editor .contact-picker-new{display:grid;gap:16px}
.scp-person-section{border-top:1px solid #e2e8ec;padding-top:13px}
.scp-person-section h3{margin:0;font-size:14px}
.scp-person-list{display:grid;gap:9px;margin-top:8px}
.scp-person-card{position:relative;border:1px solid #dce4e9;border-radius:10px;background:#fafcfd;padding:12px}
.scp-person-number{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#e7edf1;color:#435967;font-size:10px;font-weight:800;margin-bottom:8px}
.scp-person-card>.btn{margin-top:8px}
#singleContactSaveButton:disabled{opacity:.62;cursor:wait}
@media(max-width:600px){
  .contact-picker-row{grid-template-columns:1fr}
  .contact-picker-edit{width:100%;margin:0}
  .contact-picker-select{grid-template-columns:36px minmax(0,1fr) 24px}
}

/* v3.0.0 – Projektanlage aus Auftrag und Auditfortschritt */
.audit-progress{display:inline-flex;align-items:baseline;gap:3px;padding:2px 6px;border-radius:6px;background:#f0f4f6;font-size:10px}
.audit-progress.over{font-weight:800}
.audit-kpi{display:inline-flex;align-items:baseline;gap:3px}
.readonly-value{min-height:38px;display:flex;align-items:center;padding:8px 9px;border:1px solid #dde4e8;border-radius:8px;background:#f6f8f9;color:#52616b}

/* v3.0.3 – automatische Arbeitsschutzbehörde in Projektstammdaten */
.project-authority-field .authority-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.project-authority-summary{display:flex;flex-direction:column;gap:2px;margin-top:7px;padding:9px 10px;border:1px solid #dde4e8;border-radius:8px;background:#f8fafb}
.project-authority-summary b{font-size:11.5px}.project-authority-summary span{font-size:10.5px;color:#66757e}
@media(max-width:680px){.project-authority-field .authority-row{grid-template-columns:1fr}.project-authority-field .authority-row .btn{width:100%}}

/* v3.0.4 – interaktive Deutschlandkarte Arbeitsschutzbehörden */
.authority-map-overlay{position:fixed;inset:0;z-index:5200;background:rgba(17,28,36,.48);display:grid;place-items:center;padding:16px}
.authority-map-dialog{width:min(1040px,100%);max-height:calc(100vh - 32px);display:flex;flex-direction:column;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 20px 70px rgba(12,27,38,.3)}
.authority-map-body{display:grid;grid-template-columns:minmax(360px,.95fr) minmax(360px,1.05fr);min-height:520px;overflow:auto}
.authority-map-left{padding:16px;border-right:1px solid #e1e7eb;background:#f8fafb}
.authority-map-right{padding:16px}
.osh-map{display:grid;grid-template-columns:repeat(4,minmax(65px,1fr));grid-template-rows:repeat(6,66px);gap:6px;max-width:500px;margin:0 auto}
.osh-map-empty{pointer-events:none}
.osh-state{border:1px solid #bdcbd4;border-radius:9px;background:#fff;color:#425864;padding:5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer;transition:.12s ease;min-width:0}
.osh-state:hover{transform:translateY(-1px);border-color:#829aa9;box-shadow:0 3px 10px rgba(25,50,65,.09)}
.osh-state.active{background:#e5eef4;border-color:#587d94;color:#173f67;box-shadow:inset 0 0 0 1px #587d94}
.osh-state b{font-size:13px}.osh-state span{font-size:8.5px;line-height:1.08;text-align:center;overflow-wrap:anywhere}
.osh-map-legend{font-size:10px;line-height:1.45;color:#697780;margin:12px auto 0;max-width:500px}
.osh-map-links{display:flex;flex-wrap:wrap;gap:7px;margin:12px auto 0;max-width:500px}
.osh-map-placeholder{height:100%;min-height:350px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#72808a;text-align:center}
.osh-map-detail h3{margin:1px 0 0;font-size:20px}
.osh-official-card{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #d8e2e7;border-radius:10px;background:#f8fafb;padding:12px;margin-top:12px}
.osh-official-card>div{display:flex;flex-direction:column;gap:3px;min-width:0}.osh-official-card b{font-size:12px}.osh-official-card span{font-size:10px;color:#6a7881}
.osh-stored-authorities{margin-top:16px}.osh-stored-authorities h4{font-size:12px;margin:0 0 7px}
.osh-stored-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid #e4e9ec}
.osh-stored-row>div{display:flex;flex-direction:column;gap:2px;min-width:0}.osh-stored-row b{font-size:11.5px}.osh-stored-row small{font-size:9.5px;color:#6d7981;overflow-wrap:anywhere}
.osh-map-note{margin-top:14px;padding:11px;border-radius:9px;background:#f5f7f8;color:#65747d;font-size:10.5px;line-height:1.5}
.project-authority-field .authority-row{grid-template-columns:minmax(0,1fr) auto auto}
@media(max-width:820px){
  .authority-map-body{grid-template-columns:1fr}
  .authority-map-left{border-right:0;border-bottom:1px solid #e1e7eb}
  .authority-map-dialog{max-height:calc(100vh - 16px)}
}
@media(max-width:600px){
  .authority-map-overlay{padding:0;place-items:stretch}
  .authority-map-dialog{width:100%;max-height:none;height:100%;border-radius:0}
  .authority-map-body{display:block}
  .osh-map{grid-template-columns:repeat(4,minmax(54px,1fr));grid-template-rows:repeat(6,62px)}
  .osh-state span{font-size:7.8px}
  .osh-official-card{align-items:stretch;flex-direction:column}
  .osh-official-card .btn,.osh-map-links .btn{width:100%}
  .osh-map-links{display:grid;grid-template-columns:1fr}
  .project-authority-field .authority-row{grid-template-columns:1fr}
}

/* v3.1.0 – vollständige Behördenbasis / PLZ-Gemeinde-Kreis-Zuordnung */
.authority-db-note{display:block;margin-top:7px;font-size:9.5px;font-weight:700;color:#526a79}
.osh-map-detail-head p{margin:3px 0 0;font-size:10px;color:#687780}
.osh-authority-actions{display:flex;align-items:center;gap:5px;flex:none}
.osh-stored-authorities{max-height:430px;overflow:auto;padding-right:3px}
@media(max-width:600px){.osh-stored-row{align-items:stretch;flex-direction:column}.osh-authority-actions{display:grid;grid-template-columns:1fr 1fr}.osh-authority-actions .btn{width:100%}}

/* v3.2.0 – Silent Background Sync */
#syncStatus.syncing{opacity:.72}
#syncStatus.error{opacity:.9}

/* v3.2.5 – konsequentes unauffälliges Local-First-Autosave */
.autosave-inline{font-size:10px;color:#6b7881;white-space:nowrap;margin-right:auto}
.autosave-inline.error{font-weight:700}
.autosave-note{font-size:10px;color:#687680;padding:7px 0}

/* v3.2.6 – optionale automatische Wetterdaten im Begehungsbericht */
.weather-panel{border:1px solid #dbe4e9;border-radius:10px;background:#f8fafb;padding:11px}
.weather-toggle{display:flex;gap:9px;align-items:flex-start;cursor:pointer}.weather-toggle input{margin-top:3px;flex:none}
.weather-toggle span{display:flex;flex-direction:column;gap:2px}.weather-toggle b{font-size:11.5px}.weather-toggle small{font-size:9.5px;color:#6b7881}
.weather-current{margin-top:10px;border-top:1px solid #e1e7eb;padding-top:10px}.weather-main{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.weather-main b{font-size:12px}.weather-main strong{font-size:18px}.weather-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:8px}
.weather-grid span{font-size:9.5px;padding:6px;border-radius:7px;background:#fff;border:1px solid #e3e8eb}.weather-grid b{display:block;margin-top:2px;font-size:10.5px}
.weather-meta,.weather-loading{font-size:9px;color:#687780;margin:8px 0}@media(max-width:620px){.weather-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.weather-main{align-items:flex-start}}

/* v3.2.7 – professionelle Berichtsvorschau, identische PDF-Seiten */
.report-recipient-summary + div:has(.report-doc-pages){background:#edf1f3!important;border:0!important;padding:16px!important}
@media(max-width:860px){
  .report-recipient-summary + div:has(.report-doc-pages){padding:6px!important;background:#f1f4f6!important}
}

/* v3.2.8 – Bericht Logo-/Seitenfluss-Korrektur */
#s_lwidth{max-width:160px}

/* v3.2.9 – aktivierbare Berichtsinhalte */
.report-section-selector{border:1px solid #dbe4e9;border-radius:10px;background:#f8fafb;padding:11px}
.report-section-selector-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.report-section-selector-head>div:first-child{display:flex;flex-direction:column;gap:2px}
.report-section-selector-head b{font-size:11.5px}.report-section-selector-head span{font-size:9.5px;color:#687780}
.report-section-tools{display:flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.report-section-count{white-space:nowrap}
.report-section-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}
.report-section-option{display:flex;align-items:flex-start;gap:8px;padding:9px;border:1px solid #dce4e8;border-radius:8px;background:#fff;cursor:pointer}
.report-section-option.active{background:#f2f6f8;border-color:#b9cbd6}
.report-section-option input{margin-top:2px;flex:none}
.report-section-option span{display:flex;flex-direction:column;gap:2px}
.report-section-option b{font-size:10.5px;color:#2c414e}.report-section-option small{font-size:8.8px;line-height:1.3;color:#71808a}
@media(max-width:620px){.report-section-selector-head{flex-direction:column}.report-section-tools{justify-content:flex-start}.report-section-options{grid-template-columns:1fr}}

/* v3.2.11 – Berichtsauswahl sichtbar + modernere Berichtsbearbeitung */
.report-content-panel{border:1px solid #ccd9e1;background:linear-gradient(135deg,#f7fafc,#fff);box-shadow:0 4px 16px rgba(31,55,70,.06)}
.report-content-title{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px}
.report-content-title h2{margin:2px 0 3px;font-size:18px;letter-spacing:-.02em}
.report-content-title p{margin:0;color:#687780;font-size:11px}
.report-content-eyebrow{font-size:9px;font-weight:800;letter-spacing:.12em;color:#607987}
.report-content-arrow{display:grid;place-items:center;width:30px;height:30px;border-radius:999px;background:#263f52;color:#fff;font-size:16px;flex:none}
.report-section-selector{background:#fff;border-color:#dce5ea}
.report-section-options{grid-template-columns:repeat(3,minmax(0,1fr))}
.report-section-option{min-height:66px;transition:border-color .15s,box-shadow .15s,transform .15s}
.report-section-option:hover{border-color:#aebfc9;box-shadow:0 3px 10px rgba(30,50,62,.07)}
.report-section-option.active{background:#f1f6f8;border-color:#91a9b7;box-shadow:inset 3px 0 0 #263f52}
@media(max-width:900px){.report-section-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.report-section-options{grid-template-columns:1fr}.report-content-title h2{font-size:16px}}

/* v3.2.12 – zehn Berichtsvorlagen */
.report-template-gallery{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-top:9px}
.report-template-card{border:1px solid #dce4e8;border-radius:8px;padding:9px;background:#fff;min-height:62px}
.report-template-card b{display:block;font-size:10px;color:#263f52;margin-bottom:3px}
.report-template-card span{font-size:8.5px;line-height:1.3;color:#71808a}
@media(max-width:1050px){.report-template-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.report-template-gallery{grid-template-columns:1fr 1fr}}

/* v3.2.13 – sichere Einstellungen + Live-Vorschau der Berichtsvorlagen */
.report-template-card{appearance:none;text-align:left;font:inherit;color:inherit;cursor:pointer;width:100%}
.report-template-card.selected{border-color:#718b9a;box-shadow:inset 0 0 0 2px #263f52,0 3px 12px rgba(31,55,70,.08);background:#f4f8fa}
.report-template-card.selected:after{content:"Ausgewählt";display:inline-flex;margin-top:7px;padding:2px 6px;border-radius:999px;background:#263f52;color:#fff;font-size:8px;font-weight:750}
.report-template-preview{margin-top:12px;border-top:1px solid #dfe6ea;padding-top:12px}
.report-template-preview:before{content:"Vorschau der ausgewählten Berichtsvorlage";display:block;font-size:10px;font-weight:750;color:#425966;margin-bottom:8px}
.report-template-preview-shell{height:480px;overflow:hidden;border:1px solid #d9e2e7;border-radius:10px;background:#e9eef1;padding:10px;display:flex;justify-content:center}
.report-template-preview-scale{width:794px;height:1123px;transform:scale(.39);transform-origin:top center;flex:none}
.report-template-mini-page{box-shadow:0 10px 28px rgba(25,42,53,.18)!important;pointer-events:none}
@media(max-width:700px){.report-template-preview-shell{height:390px}.report-template-preview-scale{transform:scale(.31)}}

/* v3.2.14 – deutlich sichtbare Standardtextauswahl im Begehungsbericht */
.field-label-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.text-template-trigger.prominent{display:inline-flex;align-items:center;gap:6px;border:1px solid #aebfc9;background:#f3f7f9;color:#263f52;border-radius:7px;padding:6px 9px;font-size:9.5px;font-weight:750;cursor:pointer}
.text-template-trigger.prominent:hover{background:#eaf1f4;border-color:#829aa8}
.text-template-trigger-icon{display:grid;place-items:center;width:19px;height:19px;border-radius:5px;background:#263f52;color:#fff;font-size:9px;font-weight:800}
.text-template-field-hint{display:block;margin-top:4px;font-size:8.8px;color:#74828b}
.text-template-applied{outline:2px solid rgba(65,103,124,.24);outline-offset:2px;transition:outline .2s}
.report-text-choice-panel{border:1px solid #cbd9e1;background:linear-gradient(135deg,#f7fafc,#fff)}
.report-text-choice-head h2{margin:2px 0 4px;font-size:18px;letter-spacing:-.02em}
.report-text-choice-head p{margin:0;color:#667782;font-size:10.5px;line-height:1.4}
.report-text-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.report-text-choice{appearance:none;width:100%;display:flex;align-items:flex-start;gap:9px;text-align:left;border:1px solid #d8e2e7;border-radius:9px;padding:11px;background:#fff;color:#263f52;cursor:pointer;font:inherit}
.report-text-choice:not(.info):hover{border-color:#98acb8;box-shadow:0 3px 10px rgba(29,49,61,.07)}
.report-text-choice.info{cursor:default;background:#fafcfd}
.report-text-choice.manage{background:#f2f6f8}
.report-text-choice-icon{display:grid;place-items:center;width:26px;height:26px;border-radius:7px;background:#263f52;color:#fff;font-size:11px;font-weight:800;flex:none}
.report-text-choice span:nth-child(2){display:flex;flex-direction:column;gap:3px;min-width:0}
.report-text-choice b{font-size:10.5px}.report-text-choice small{font-size:9px;line-height:1.35;color:#71808a}
.report-text-choice-arrow{margin-left:auto;font-size:22px;line-height:1;color:#71808a}
@media(max-width:650px){.report-text-choice-grid{grid-template-columns:1fr}.field-label-row{align-items:flex-start}.text-template-trigger.prominent{width:100%;justify-content:center}}

/* v3.2.15 – eigener Berichtstab für Standardtextauswahl */
.report-texts-workspace{border:1px solid #cbd9e1;background:linear-gradient(145deg,#f8fbfc,#fff)}
.report-texts-head{align-items:flex-start}
.report-texts-head h2{margin:2px 0 4px;font-size:19px;letter-spacing:-.02em}
.report-text-primary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;border:1px solid #c9d8e0;border-radius:10px;background:#f1f6f8;margin:14px 0}
.report-text-primary>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.report-text-primary b{font-size:12px;color:#263f52}
.report-text-primary small{font-size:9.5px;line-height:1.4;color:#687984;white-space:normal}
.report-texts-section{margin-top:18px}
.report-texts-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.report-texts-section-title h3{margin:0;font-size:13px;color:#263f52}
.report-texts-section-title span{font-size:9px;color:#71808a;background:#eef3f6;border-radius:999px;padding:3px 7px}
.report-text-target-card{border:1px solid #dce4e8;border-radius:10px;background:#fff;padding:11px;margin-bottom:8px}
.report-text-target-head{display:flex;align-items:flex-start;gap:8px}
.report-text-target-head>div{display:flex;flex-direction:column;gap:2px}
.report-text-target-head b{font-size:10.5px;color:#293f4d}.report-text-target-head small{font-size:8.8px;color:#73818a}
.report-text-target-no{display:grid;place-items:center;min-width:25px;height:25px;border-radius:6px;background:#263f52;color:#fff;font-size:9px;font-weight:800}
.report-text-target-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}
.report-text-target-preview{margin-top:7px;padding:7px 8px;border-radius:6px;background:#f7f9fa;font-size:9px;line-height:1.4;color:#5d6f7a}
.report-text-target-preview b{color:#354d5b}
@media(max-width:650px){
  .report-text-primary{align-items:stretch;flex-direction:column}
  .report-text-primary .btn,.report-text-target-actions .btn{width:100%}
  .report-text-target-actions{flex-direction:column}
}

/* v3.2.16 – Standardtextauswahl direkt sichtbar im Tab Texte */
.report-texts-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.report-template-count{font-size:9px;color:#637681;background:#eef3f6;border-radius:999px;padding:4px 8px}
.report-text-primary.direct{display:block}
.report-text-primary-title{display:flex;flex-direction:column;gap:2px;margin-bottom:9px}
.report-text-primary-title b{font-size:12px;color:#263f52}.report-text-primary-title small{font-size:9px;color:#71808a}
.report-text-target-card.direct{padding:13px}
.report-text-direct-select{margin-top:10px;padding:9px;border:1px solid #d8e2e7;border-radius:8px;background:#fbfcfd}
.report-text-direct-select>label{display:block;font-size:9px;font-weight:800;color:#4c626f;margin-bottom:5px;text-transform:uppercase;letter-spacing:.04em}
.report-text-direct-controls{display:grid;grid-template-columns:minmax(200px,1fr) auto auto;gap:6px;align-items:center}
.report-text-direct-controls select{width:100%;min-width:0}
.report-text-no-templates{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:13px 0;padding:12px;border:1px solid #d8e1e6;border-radius:9px;background:#fff8ed}
.report-text-no-templates b{font-size:10.5px}.report-text-no-templates span{font-size:9px;color:#6e7c84;flex:1;min-width:180px}
@media(max-width:720px){
  .report-texts-head-actions{justify-content:flex-start}
  .report-text-direct-controls{grid-template-columns:1fr 1fr}
  .report-text-direct-controls select{grid-column:1/-1}
  .report-text-direct-controls .btn{width:100%}
}

/* v3.2.17 – eindeutige Trennung Texte / Vorschau */
#reportTabContent[data-report-section="texts"]{background:transparent}
#reportTabContent[data-report-section="texts"] .report-texts-workspace{outline:2px solid rgba(38,63,82,.06)}
#reportTabContent[data-report-section="preview"] .report-preview-panel{background:#f4f7f9}
.tabs2 button[data-report-tab="texts"].active:after{content:" · Auswahl"}
.tabs2 button[data-report-tab="preview"].active:after{content:" · Ausgabe"}

/* v3.2.18 – echte, differenzierte Berichtsvorlagen-Vorschau */
.report-template-preview-shell{position:relative;height:500px;overflow:hidden;border:1px solid #d6e0e6;border-radius:12px;background:#e7ecef;padding:42px 12px 12px;display:flex;justify-content:center}
.report-template-preview-caption{position:absolute;left:12px;right:12px;top:10px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.report-template-preview-caption b{font-size:11px;color:#263f52}
.report-template-preview-caption span{font-size:8.8px;color:#6e7e88}
.report-template-preview-scale{width:794px;height:1123px;transform:scale(.39);transform-origin:top center;flex:none}
.report-template-preview .report-doc-page{margin:0}
.report-template-card[data-template-style="modern-clean"]{background:linear-gradient(135deg,#f5f9fb,#fff)}
.report-template-card[data-template-style="executive"]{background:#233744;color:#fff;border-color:#233744}
.report-template-card[data-template-style="executive"] b,.report-template-card[data-template-style="executive"] span{color:#fff}
.report-template-card[data-template-style="technical"]{background-image:linear-gradient(rgba(50,75,90,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(50,75,90,.08) 1px,transparent 1px);background-size:12px 12px;border-radius:2px}
.report-template-card[data-template-style="minimal"]{background:#fff;border-width:0 0 1px;border-radius:0}
.report-template-card[data-template-style="classic"]{font-family:Georgia,"Times New Roman",serif;border-radius:0;border-top:3px double #303a40;border-bottom:3px double #303a40}
.report-template-card[data-template-style="architect"]{background:#fff;border-radius:0;border-left:1px solid #263f52}
.report-template-card[data-template-style="architect"] b{font-size:12px;font-weight:500}
.report-template-card[data-template-style="compact"]{padding:6px;min-height:50px;border-radius:4px}
.report-template-card[data-template-style="corporate"]{background:linear-gradient(90deg,#eaf0f3 0 8px,#fff 8px);border-left:3px solid #263f52}
.report-template-card[data-template-style="site"]{border:2px solid #263f52;border-radius:0;background:#fff}
.report-template-card[data-template-style="site"] b{text-transform:uppercase;letter-spacing:.05em}
.report-template-card[data-template-style="premium"]{background:#fbfaf7;border-color:#d9d0c4}
.report-template-card[data-template-style="premium"] b{font-weight:500;color:#756b5c}
@media(max-width:700px){
  .report-template-preview-shell{height:405px}
  .report-template-preview-scale{transform:scale(.31)}
  .report-template-preview-caption{align-items:flex-start;flex-direction:column;gap:2px}
}

/* v3.2.19 – robuste Projektstatus-Tabs */
.project-filter{position:relative;z-index:2}
.project-filter button{cursor:pointer;pointer-events:auto;user-select:none;-webkit-user-select:none}
.project-filter button.active{position:relative}
.project-filter button.active:after{content:"";position:absolute;left:8px;right:8px;bottom:2px;height:2px;border-radius:2px;background:currentColor;opacity:.7}

/* v3.2.20 – robuste Begehungsbericht-Tabs */
.report-editor-tabs{
  position:relative;
  z-index:20;
  pointer-events:auto;
}
.report-editor-tabs button[data-report-tab]{
  position:relative;
  z-index:21;
  pointer-events:auto!important;
  cursor:pointer!important;
  touch-action:manipulation;
  -webkit-tap-highlight-color:rgba(38,63,82,.12);
}
.report-editor-tabs button[data-report-tab]:active{
  transform:translateY(1px);
}
.report-editor-tabs button[data-report-tab].active{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);
}

/* v3.2.21 – Tabwechsel ohne Gesamtrendering */
.report-editor-tabs{isolation:isolate;z-index:50!important}
#reportTabContent{position:relative;z-index:1}
.report-editor-tabs button[data-report-tab]{z-index:51!important}


/* ==========================================================================
   Design-Refresh v3.3 – modernes, professionelles und übersichtliches UI
   Additive Schicht: definiert Design-Tokens neu (wirkt über var()) und
   überschreibt gezielt die Kernflächen. Klassennamen bleiben unverändert,
   sodass keine App-Logik betroffen ist.
   ========================================================================== */
:root{
  --bg:#eef2f7;
  --bg-2:#e6ecf3;
  --panel:#ffffff;
  --ink:#132433;
  --ink-soft:#33475a;
  --muted:#5f7183;
  --line:#e3e9f0;
  --line-strong:#d3dce5;
  --brand:#164067;
  --brand2:#1d5488;
  --brand-ink:#0f2c47;
  --accent:#2f74c0;
  --accent-soft:#eaf2fb;
  --danger:#b3382b;
  --danger-soft:#fbecea;
  --ok:#1c7a53;
  --ok-soft:#e7f5ee;
  --warn:#9a6a12;
  --warn-soft:#fdf2df;
  --r-sm:9px;
  --r:13px;
  --r-lg:18px;
  --shadow-xs:0 1px 2px rgba(17,38,58,.06);
  --shadow-sm:0 2px 8px rgba(17,38,58,.07),0 1px 2px rgba(17,38,58,.05);
  --shadow-md:0 8px 24px rgba(17,38,58,.10),0 2px 6px rgba(17,38,58,.06);
  --shadow-lg:0 20px 48px rgba(15,32,52,.18);
  --focus:0 0 0 3px rgba(47,116,192,.32);
}
html,body{
  background:linear-gradient(180deg,var(--bg) 0%,var(--bg-2) 100%);
  background-attachment:fixed;
  color:var(--ink);
  font-family:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  letter-spacing:.002em;
}

/* ---------- Kopfzeile ---------- */
header{
  height:66px;
  background:linear-gradient(120deg,#123454 0%,#164067 52%,#1c5183 100%);
  color:#fff;
  box-shadow:0 1px 0 rgba(255,255,255,.06) inset,0 6px 18px rgba(13,32,52,.20);
  border-bottom:1px solid rgba(255,255,255,.06);
  padding:8px max(18px,env(safe-area-inset-left));
}
.brand{gap:12px}
.brand img{
  display:block;width:40px;height:40px;border-radius:10px;
  background:#fff;padding:3px;box-shadow:0 2px 6px rgba(0,0,0,.18);
}
.brand b{font-size:17px;font-weight:750;letter-spacing:-.01em}
.brand small{font-size:11.5px;opacity:.72;letter-spacing:.01em;margin-top:1px}
.head-actions{gap:10px}
.iconbtn{
  width:40px;height:40px;background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);color:#fff;font-size:20px;
  border-radius:10px;transition:background .15s ease,transform .1s ease;
}
.iconbtn:hover{background:rgba(255,255,255,.22)}
.iconbtn:active{transform:scale(.94)}
#accountStatus{opacity:.9;font-weight:500}
#syncStatus{
  font-size:11px;font-weight:600;letter-spacing:.02em;
  padding:4px 10px;border-radius:999px;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.14);
}
#syncStatus.offline{background:rgba(255,196,120,.22);border-color:rgba(255,196,120,.4)}

/* ---------- Navigation ---------- */
nav{
  gap:4px;padding:8px max(12px,env(safe-area-inset-left));
  background:rgba(255,255,255,.9);
  backdrop-filter:saturate(1.4) blur(8px);
  -webkit-backdrop-filter:saturate(1.4) blur(8px);
  border-bottom:1px solid var(--line);
  box-shadow:0 4px 14px rgba(17,38,58,.05);
  top:66px;
}
nav button{
  padding:9px 15px;border-radius:10px;color:#4a5b6b;font-weight:600;
  font-size:13.5px;letter-spacing:.005em;
  transition:background .15s ease,color .15s ease;
}
nav button:hover{background:#eef3f8;color:var(--brand)}
nav button.active{
  background:var(--brand);color:#fff;
  box-shadow:0 4px 12px rgba(22,64,103,.28);
}

/* ---------- Flächen / Panels / Karten ---------- */
main{max-width:1460px;padding:22px 20px 96px}
.panel{
  border:1px solid var(--line);border-radius:var(--r);
  box-shadow:var(--shadow-sm);padding:20px 22px;margin:0 0 18px;
}
.panel h2{font-size:18px;font-weight:700;letter-spacing:-.01em}
.panel h3{font-size:15px;font-weight:700}
.card,.rowitem{border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow-xs)}

/* ---------- Seitentitel / Section-Head ---------- */
.page-hero{margin-bottom:20px;padding:2px}
.page-hero h1{font-size:30px;font-weight:780;letter-spacing:-.025em;color:var(--brand-ink)}
.page-hero p{font-size:14px;line-height:1.5}
.eyebrow{
  display:inline-block;text-transform:uppercase;letter-spacing:.11em;
  font-size:10.5px;font-weight:800;color:var(--accent);
  padding:3px 9px;border-radius:999px;background:var(--accent-soft);margin-bottom:8px;
}
.sectionhead h1{font-size:26px;font-weight:760;letter-spacing:-.02em;color:var(--brand-ink)}
.sectionhead h2{font-size:18px;font-weight:720}
.hint,.meta{font-size:13px;line-height:1.5}

/* ---------- Buttons ---------- */
.btn{
  border-radius:10px;padding:10px 16px;font-weight:650;font-size:13.5px;
  letter-spacing:.006em;line-height:1.15;
  transition:background .15s ease,box-shadow .15s ease,transform .08s ease,border-color .15s ease;
  box-shadow:var(--shadow-xs);
}
.btn:active{transform:translateY(1px)}
.btn{background:var(--brand);box-shadow:0 3px 10px rgba(22,64,103,.22)}
.btn:hover{background:var(--brand2);box-shadow:0 5px 16px rgba(22,64,103,.28)}
.btn.secondary{background:#fff;color:var(--ink-soft);border:1px solid var(--line-strong);box-shadow:var(--shadow-xs)}
.btn.secondary:hover{background:#f4f7fb;border-color:#bccbd9}
.btn.danger{background:var(--danger-soft);color:var(--danger);border:1px solid #eec4bf}
.btn.danger:hover{background:#f7ddd8}
.btn.ok{background:var(--ok-soft);color:var(--ok);border:1px solid #bfe3d0}
.btn.ok:hover{background:#dcefe4}
.btn.warn{background:var(--warn-soft);color:var(--warn);border:1px solid #ecd3a3}
.btn.warn:hover{background:#f7e8c8}
.btn.small{padding:6px 11px;font-size:12px}
.btn.tiny{padding:5px 10px;font-size:11px}
:focus-visible{outline:none;box-shadow:var(--focus);border-radius:8px}
.btn:focus-visible,.iconbtn:focus-visible,nav button:focus-visible{box-shadow:var(--focus)}

/* ---------- Formularfelder ---------- */
.formgrid{gap:15px}
.field label{font-size:12.5px;font-weight:700;color:var(--ink-soft);letter-spacing:.01em}
.field input,.field select,.field textarea{
  border:1px solid var(--line-strong);border-radius:10px;background:#fff;
  padding:10px 12px;font-size:14px;color:var(--ink);
  transition:border-color .15s ease,box-shadow .15s ease;
  min-height:42px;
}
.field textarea{min-height:100px;line-height:1.5}
.field input:hover,.field select:hover,.field textarea:hover{border-color:#b9c8d6}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none;border-color:var(--accent);box-shadow:var(--focus);
}
.field input::placeholder,.field textarea::placeholder{color:#9aa8b4}

/* ---------- KPI-Karten ---------- */
.card{
  padding:18px 18px 16px;position:relative;overflow:hidden;
  transition:box-shadow .18s ease,transform .12s ease,border-color .18s ease;
}
.dashboard-kpis .card{background:linear-gradient(180deg,#fff 0%,#fbfcfe 100%)}
.dashboard-kpis .card::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:4px;
  background:linear-gradient(180deg,var(--accent),var(--brand));
  opacity:.85;
}
.dashboard-kpis .card:hover{
  box-shadow:var(--shadow-md);transform:translateY(-2px);border-color:#d0dce8;
}
.card span{font-size:12.5px;font-weight:600;color:var(--muted);letter-spacing:.01em}
.big{
  font-size:34px;font-weight:800;color:var(--brand-ink);
  font-variant-numeric:tabular-nums;letter-spacing:-.02em;margin-top:6px;line-height:1;
}

/* ---------- Badges ---------- */
.badge{padding:4px 10px;font-size:11px;font-weight:700;letter-spacing:.02em;background:#eef2f6;color:#526270}
.badge.open{background:var(--warn-soft);color:#8a5512}
.badge.done{background:var(--ok-soft);color:#1c6b45}
.badge.overdue{background:var(--danger-soft);color:#98291f}

/* ---------- Listen / Rows ---------- */
.rowitem{padding:14px 16px;transition:box-shadow .15s ease,border-color .15s ease}
.rowitem:hover{border-color:#cdd9e4;box-shadow:var(--shadow-sm)}
.title{font-weight:700}
.kpi span{background:#eff4f9;border:1px solid #e2eaf1;border-radius:9px;font-size:12.5px;font-weight:600;color:var(--ink-soft)}

/* ---------- Projektliste / Filter ---------- */
.project-filter button{
  border:1px solid var(--line-strong);background:#fff;color:#4b5c6b;
  padding:8px 14px;font-weight:650;font-size:13px;
  transition:background .15s ease,color .15s ease,border-color .15s ease;
}
.project-filter button:hover{background:#f1f5f9;border-color:#c4d1dd}
.project-filter button.active{background:var(--brand);border-color:var(--brand);box-shadow:0 3px 10px rgba(22,64,103,.24)}
.project-list-card{border-radius:var(--r);padding:14px 16px;box-shadow:var(--shadow-xs);transition:box-shadow .16s ease,border-color .16s ease,transform .1s ease}
.project-list-card:hover,.project-list-card:focus{border-color:#c3d1de;box-shadow:var(--shadow-md);transform:translateY(-1px)}
.project-list-title b{font-size:14.5px;font-weight:720}
.project-state{font-size:10px;background:var(--ok-soft);color:#2b6a45}
.project-state.completed{background:#eef1f4;color:#5f6d78}
.project-list-address{font-size:12.5px;color:var(--muted)}

/* ---------- Dashboard-Suche ---------- */
.dashboard-search input{border:1px solid var(--line-strong);border-radius:11px;min-height:46px;font-size:14px}
.dashboard-search input:focus{outline:none;border-color:var(--accent);box-shadow:var(--focus)}
.dashboard-search-result{border-radius:11px;transition:background .13s ease,border-color .13s ease}
.dashboard-search-result:hover{background:var(--accent-soft);border-color:#cbdef2}
.dashboard-search-result b{font-size:13.5px}
.dashboard-search-result .search-type{color:var(--accent)}

/* ---------- Empty-States ---------- */
.empty,.empty-state{
  border:1px dashed #cdd8e2;border-radius:var(--r);background:#fbfcfe;padding:30px 18px;
}
.empty-state b{font-size:14px;color:var(--ink-soft)}
.empty-state span{font-size:12.5px}

/* ---------- Tabs (Unternavigation) ---------- */
.tabs2 button{border:1px solid var(--line-strong);background:#fff;border-radius:9px;padding:8px 13px;font-weight:600;color:#4a5b6b}
.tabs2 button:hover{background:#f2f6fa}
.tabs2 button.active{background:var(--brand);border-color:var(--brand);color:#fff}

/* ---------- Toolbar / Autosave ---------- */
.autosave-inline,.autosave-note{color:var(--ok)}
.statusline{background:#eff4f9;border:1px solid #e2eaf1;border-radius:10px;color:var(--ink-soft)}

/* ---------- Sticky-Aktionen ---------- */
.sticky-actions{border-radius:var(--r);box-shadow:var(--shadow-md);background:rgba(255,255,255,.94)}

/* ---------- Toast ---------- */
#toast{
  background:linear-gradient(120deg,#16324e,#1d5488);
  border-radius:12px;padding:12px 18px;font-weight:600;font-size:13.5px;
  box-shadow:var(--shadow-lg);bottom:28px;
}

/* ---------- Tabellen / Matrix ---------- */
.matrix th{background:#eef3f8;font-weight:700;color:var(--ink-soft)}
.matrix th,.matrix td{border-color:var(--line)}

/* ---------- Auth / Login ---------- */
.auth-card{box-shadow:var(--shadow-lg);border-radius:var(--r-lg);padding:26px 26px 24px}
.auth-tabs button.active{background:var(--brand);color:#fff;box-shadow:0 3px 10px rgba(22,64,103,.24)}
.auth-card h1,.auth-card h2{color:var(--brand-ink);letter-spacing:-.01em}

/* ---------- Modale Dialoge ---------- */
.contact-modal,.ba-dialog{border-radius:var(--r-lg);box-shadow:var(--shadow-lg)}
.contact-modal-row:hover{border-color:#c3d1de;background:#f6f9fc}

/* ---------- Responsive Feinschliff ---------- */
@media(max-width:767px){
  main{padding:16px 14px 84px}
  nav{top:66px;padding:8px 10px}
  nav button{padding:10px 13px;font-size:14px}
  .page-hero h1{font-size:24px}
  .sectionhead h1{font-size:22px}
  .big{font-size:30px}
}
@media(max-width:520px){
  header{padding:8px 12px}
  .brand{gap:9px}
  .brand img{width:36px;height:36px}
  .brand b{font-size:15.5px}
  .head-actions{gap:7px}
  #syncStatus{font-size:10px;padding:3px 7px}
  .iconbtn{width:38px;height:38px;font-size:18px}
}
@media(max-width:430px){
  main{padding:14px 11px 84px}
  .panel{padding:16px 15px}
  .page-hero h1{font-size:22px}
}

/* ---------- Reduzierte Bewegung ---------- */
@media(prefers-reduced-motion:reduce){
  *{transition:none!important}
}


/* v3.4.1 – Mitnutzer-Verwaltung in „Team & Speicher" (anklickbare Karte) */
.member-open{width:100%;text-align:left;font:inherit;color:inherit;background:var(--panel);cursor:pointer;justify-content:space-between;gap:14px}
.member-open:hover,.member-open:focus-visible{border-color:#c3d1de;box-shadow:var(--shadow-md);transform:translateY(-1px);outline:none}
.member-open .title{font-size:15px;font-weight:720}
.member-open .member-open-hint{flex:none;font-size:12.5px;font-weight:700;color:var(--accent);white-space:nowrap}


/* v3.5.0 – Passwort vergessen / Zurücksetzen */
.auth-links{margin-top:12px;text-align:center}
.linklike{border:0;background:none;color:var(--accent);font:inherit;font-weight:650;cursor:pointer;padding:6px 8px;border-radius:8px}
.linklike:hover{text-decoration:underline}
.linklike:focus-visible{outline:none;box-shadow:var(--focus)}
.auth-note{padding:11px 13px;border-radius:10px;background:var(--ok-soft);color:#155e3f;border:1px solid #bfe0cd;margin:10px 0;font-size:13.5px;line-height:1.45}
