:root{color-scheme:light;--bg:#edf1f3;--surface:#fff;--raised:#f4f7f9;--line:#d7dfe3;--text:#24313b;--muted:#586873;--green:#527d0b;--bright:#81b914;--green-soft:#edf5e1;--shadow:0 4px 16px #16252f0b;--red:#b3261e;--orange:#956100;--sidebar:250px}
:root[data-theme=dark]{color-scheme:dark;--bg:#151c21;--surface:#1e272e;--raised:#28333c;--line:#35424c;--text:#f0f4f7;--muted:#b5c1cc;--green:#a4d441;--bright:#8dc51c;--green-soft:#2b3821;--shadow:0 4px 18px #0002;--red:#ff9d97;--orange:#f8c160}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:6px;padding:10px 16px;background:var(--green);color:#fff;font-weight:650;font-size:.875rem;cursor:pointer;text-decoration:none}:root[data-theme=dark] button,:root[data-theme=dark] .btn{color:#19210f}button:hover,.btn:hover{filter:brightness(.95);text-decoration:none}.light{background:var(--raised);border-color:var(--line);color:var(--text)!important}.danger{background:#b3261e;color:white!important}.small{padding:7px 11px;font-size:.875rem}.text-button{background:none;color:var(--green)!important;padding:6px;border:0}.danger-text{color:var(--red)!important}button:disabled{opacity:.5;cursor:default}:focus-visible{outline:3px solid var(--bright);outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:1.85rem;line-height:1.2;margin-bottom:0;font-weight:700;letter-spacing:-.035em}h2{font-size:1.125rem;line-height:1.4;margin-bottom:16px}h3{font-size:1rem;margin-top:24px}p{margin-bottom:16px}small{font-size:.8rem}.muted{color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:.1em;font-size:.75rem;color:var(--muted);display:block}.icon{width:21px;height:21px;flex:none;vertical-align:middle}.skip{position:fixed;top:-100px;left:16px;z-index:100;background:var(--surface);padding:12px}.skip:focus{top:12px}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:var(--surface);border-right:1px solid var(--line);z-index:50;display:flex;flex-direction:column;padding:24px 12px 18px;overflow-y:auto}.brand{display:flex;align-items:center;flex-direction:column;gap:14px;padding:0 10px 28px;color:var(--text)}.brand:hover{text-decoration:none}.brand strong{font-size:.875rem;font-weight:600}.logo-box{background:#fff;padding:10px;border-radius:5px;width:168px;height:88px;display:flex;align-items:center;justify-content:center}.logo-box img{width:100%;height:100%;object-fit:contain}.sidebar nav{display:flex;flex-direction:column;gap:6px}.nav-item{display:flex;align-items:center;gap:12px;position:relative;min-height:48px;padding:12px;border:1px solid transparent;border-radius:5px;color:var(--muted);font-size:.875rem;text-decoration:none;background:none;width:100%;text-align:left;justify-content:flex-start;font-weight:500}.nav-item .icon{width:20px;height:20px}.nav-item.active,.nav-item:hover{background:var(--raised);border-color:var(--line);color:var(--text);text-decoration:none}.nav-item.active:before{content:"";position:absolute;left:-13px;top:10px;bottom:10px;width:3px;background:var(--bright);border-radius:0 3px 3px 0}.nav-item.active .icon{color:var(--green)}.counter{margin-left:auto;border-radius:20px;background:var(--green);color:white;padding:1px 7px;font-size:.75rem}.sidebar-foot{margin-top:auto;padding:32px 12px 0;font-size:.8rem;color:var(--muted)}.sidebar-foot>span{border-left:2px solid var(--bright);padding-left:11px;display:block}.sidebar-foot small{display:block;margin:16px 0}.sidebar-foot form{margin-top:14px}.topbar{height:68px;margin-left:var(--sidebar);padding:0 30px;display:flex;align-items:center;justify-content:space-between;gap:16px}.top-actions{display:flex;align-items:center;gap:18px}.profile-link{display:flex;gap:9px;align-items:center;color:var(--text);font-size:.875rem}.avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;color:var(--green);background:var(--green-soft);font-weight:700}.icon-button{padding:6px;background:transparent;color:var(--muted)!important;border:0}.mobile-menu{display:none}.main{margin-left:var(--sidebar);padding:10px 30px 30px;max-width:1900px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}.page-heading .eyebrow{margin-bottom:6px}.intro{color:var(--muted);margin-bottom:24px}.card{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:22px;box-shadow:var(--shadow);margin-bottom:22px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:22px}.metric{margin:0;display:flex;align-items:center;gap:16px;padding:20px}.metric-icon{display:grid;place-items:center;width:46px;height:46px;background:var(--green-soft);color:var(--green);border-radius:10px}.metric-icon .icon{width:25px;height:25px}.metric .muted{font-size:.875rem;display:block}.metric strong{display:block;font-size:2rem;line-height:1.2;font-weight:700;color:var(--green);margin-top:4px}.progress-card{border-top:3px solid var(--bright)}.progress-card h2{font-size:1.45rem;margin:5px 0 12px}.split{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}progress{appearance:none;width:100%;height:9px;border:0;border-radius:20px;overflow:hidden;background:var(--line);color:var(--green);accent-color:var(--green);display:block}progress::-webkit-progress-bar{background:var(--line);border-radius:20px}progress::-webkit-progress-value{background:var(--bright);border-radius:20px}progress::-moz-progress-bar{background:var(--bright);border-radius:20px}.progress-card progress{margin:8px 0}.progress-card p{margin-top:16px;margin-bottom:0}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:22px;align-items:start}.section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.section-head h2{margin:0}.section-head .muted{font-size:.875rem}.checklist-row{display:flex;align-items:center;gap:14px;border:1px solid var(--line);padding:14px;margin-top:10px;border-radius:6px;color:var(--text)}.checklist-row:hover{background:var(--raised);text-decoration:none}.section-icon{display:grid;place-items:center;background:var(--raised);color:var(--green);border-radius:6px;width:36px;height:36px;flex:none}.grow{flex:1;min-width:0}.checklist-row strong{font-size:.875rem;display:block}.checklist-row small{display:block;color:var(--muted);margin-top:3px}.row-action{font-size:.875rem;color:var(--green)}.badge{display:inline-flex;align-items:center;justify-content:center;border-radius:5px;padding:4px 8px;background:var(--raised);color:var(--muted);font-size:.8rem;font-weight:600;white-space:nowrap}.badge.erledigt{background:var(--green-soft);color:var(--green)}.badge.rueckfrage{background:#ffe9e7;color:#aa2c24}.badge.in_pruefung{background:#fff3d9;color:#835700}.badge.eingereicht{background:#eef1f4;color:#414f5b}.badge.nicht_erforderlich{background:var(--raised);color:var(--muted)}:root[data-theme=dark] .badge.rueckfrage{background:#492a29;color:#ffb7b1}:root[data-theme=dark] .badge.in_pruefung{background:#483921;color:#ffce76}:root[data-theme=dark] .badge.eingereicht{background:#35424c;color:#e1eaf2}.message-preview{display:block;border-top:1px solid var(--line);padding:17px 0;color:var(--text)}.message-preview:hover{text-decoration:none}.message-preview strong{font-size:.875rem}.message-preview p{font-size:.875rem;margin:7px 0}.empty{text-align:center;padding:28px;color:var(--muted)}.empty .section-icon{margin:0 auto 14px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:.875rem}th,td{text-align:left;padding:14px 12px;border-bottom:1px solid var(--line);vertical-align:middle}th{background:var(--raised);font-size:.8rem;font-weight:650;color:var(--muted)}td small{display:block;margin-top:4px;color:var(--muted)}.customer-name{font-weight:650;color:var(--text)}.mini-progress{display:flex;align-items:center;gap:10px;min-width:150px}.mini-progress progress{width:100px;height:7px}.mini-progress strong{white-space:nowrap;color:var(--green);font-size:.8rem}.nowrap{white-space:nowrap}.filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:20px}.filters label{flex:1;min-width:150px;margin:0}.filters .checkbox{flex:none;font-size:.8rem}.filters button{margin-bottom:1px}.group-row th{padding-top:19px;color:var(--text)}.group-row .icon{margin-right:8px;color:var(--green)}label{display:block;font-size:.875rem;font-weight:550;margin-bottom:16px}input:not([type=checkbox]):not([type=radio]),select,textarea{width:100%;border:1px solid var(--line);border-radius:6px;padding:10px 12px;background:var(--surface);color:var(--text);margin-top:6px;font-size:1rem;min-height:44px}input[type=file]{font-size:.875rem!important;padding:10px;background:var(--raised)!important}textarea{min-height:110px;resize:vertical}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.span-all{grid-column:1/-1}.form-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;grid-column:1/-1;margin-top:12px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin:22px 0}.checkbox{display:flex;align-items:center;gap:10px;font-weight:400}.checkbox input{width:17px;height:17px;accent-color:var(--green);flex:none}fieldset{border:1px solid var(--line);border-radius:6px;padding:16px;margin:0 0 18px}legend{font-size:.875rem;padding:0 6px;font-weight:600}fieldset .checkbox:last-child{margin-bottom:0}.notice{background:var(--green-soft);border:1px solid var(--line);border-left:3px solid var(--bright);border-radius:6px;padding:14px 16px;margin-bottom:20px;font-size:.875rem}.notice p{margin:7px 0}.notice.error{background:#ffe9e7;color:#8a2019;border-color:#f2b9b4}.notice.question{background:#fff7e9;color:#66460e;border-color:#eab96e}:root[data-theme=dark] .notice.error{background:#492a29;color:#ffb7b1;border-color:#77504b}:root[data-theme=dark] .notice.question{background:#483921;color:#ffdc9f;border-color:#6b5430}.customer-caption{display:flex;align-items:center;gap:16px;margin-bottom:16px}.tabs{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid var(--line);margin:0 0 24px}.tabs a{padding:12px 15px;color:var(--muted);font-size:.875rem;border-bottom:2px solid transparent}.tabs a.active{border-color:var(--bright);color:var(--green);font-weight:650}.tabs a:hover{text-decoration:none;background:var(--raised)}.review-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr);gap:22px;align-items:start}.review-panel{position:sticky;top:20px}.breadcrumbs{display:flex;gap:10px;font-size:.875rem;color:var(--muted);margin-bottom:20px}.read-field p{margin:5px 0 18px;white-space:normal;overflow-wrap:anywhere}.read-field .muted{font-size:.875rem}.secret-box{background:var(--raised);border:1px solid var(--line);padding:25px;border-radius:6px;margin:20px 0}.secret-box .icon{color:var(--green);width:28px;height:28px}.subtle{background:var(--raised);border-radius:6px;padding:16px;margin:16px 0}.subtle p{margin:7px 0 0}.file-row,.user-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:14px 0}.file-row strong{font-size:.875rem;overflow-wrap:anywhere}.file-row small,.user-row small{display:block;color:var(--muted);margin-top:3px}.file-row form,.user-row form{margin:0}.inline-form{display:inline-flex}.upload-box{background:var(--raised);border:1px dashed var(--green);border-radius:6px;padding:20px;margin:18px 0}.upload-box .icon{color:var(--green);float:left;margin:3px 12px 0 0}.upload-box small{color:var(--muted)}.upload-box label{margin-bottom:8px}.repeatable{margin-bottom:20px}.repeatable table input{min-width:110px}.repeatable th,.repeatable td{padding:9px 8px}.repeatable>button{margin-top:10px}.password-note{margin-top:-8px;margin-bottom:16px}.messages-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:22px;align-items:start}.message-card{border:1px solid var(--line);border-radius:6px;padding:18px;margin:14px 0}.message-card>small{display:block;margin-top:8px}.message-card p{margin:12px 0 0;overflow-wrap:anywhere}.message-card.internal{background:var(--raised)}.message-card .badge{margin-top:10px}.narrow{max-width:900px}details{padding:18px 0;border-top:1px solid var(--line)}summary{cursor:pointer;font-size:.875rem;font-weight:650}details p{margin-top:14px}.secret-key{padding:16px;border:1px dashed var(--green);font-family:monospace;font-size:1rem;overflow-wrap:anywhere;margin:18px 0}.recovery-codes{display:grid;grid-template-columns:1fr 1fr;gap:10px}.recovery-codes code{background:var(--raised);padding:9px}.auth{width:min(480px,calc(100% - 32px));margin:55px auto}.auth-brand{display:flex;align-items:center;flex-direction:column;gap:18px;color:var(--text);margin-bottom:25px}.auth-brand img{width:180px;padding:10px;background:#fff;border-radius:6px}.auth-brand span{font-weight:600}.auth-card{padding:30px;border-top:3px solid var(--bright)}.auth-card h1{font-size:1.6rem;margin-bottom:16px}.auth-card p{color:var(--muted);font-size:.875rem}.auth-card button{width:100%;margin-top:6px}.text-link{font-size:.875rem;font-weight:600}.auth-card>.text-link{display:block;margin-top:20px}footer{display:flex;justify-content:space-between;gap:16px;font-size:.8rem;color:var(--muted);margin-top:30px;padding-top:20px;border-top:1px solid var(--line)}footer div{display:flex;gap:18px}footer a{color:var(--muted)}
@media(min-width:1600px){.main{padding-left:40px;padding-right:40px}}@media(max-width:1150px){:root{--sidebar:222px}.main{padding:10px 20px 25px}.topbar{padding:0 20px}.metrics{gap:12px}.metric{padding:16px;gap:10px}.dashboard-grid{grid-template-columns:1fr}.review-grid{grid-template-columns:minmax(0,1fr) 310px}.checklist-row{gap:10px}.row-action{display:none}.metric-icon{width:36px;height:36px}}
@media(max-width:900px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.review-grid,.messages-grid{grid-template-columns:1fr}.review-panel{position:static}.file-row{flex-wrap:wrap}.user-row{flex-wrap:wrap}.user-row .grow{flex-basis:100%}.topbar .eyebrow{font-size:.7rem}}
@media(max-width:700px){:root{--sidebar:250px}.sidebar{transform:translateX(-100%);transition:transform .15s}.sidebar.open{transform:translateX(0);box-shadow:0 0 0 100vmax #0005}.topbar{margin:0;padding:0 16px}.mobile-menu{display:inline-flex}.main{margin:0;padding:10px 16px 25px}.topbar>.eyebrow{display:none}.profile-link>span:last-child{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-heading{margin-bottom:20px}h1{font-size:1.6rem}.card{padding:17px}.form-grid{grid-template-columns:1fr}.metric{padding:14px;gap:10px}.metric strong{font-size:1.7rem}.metric .muted{font-size:.8rem}.metric-icon{width:34px;height:34px}.metrics{gap:10px}.checklist-row{flex-wrap:wrap}.checklist-row .badge{margin-left:50px}.checklist-row .grow{flex-basis:calc(100% - 50px)}.section-head{flex-wrap:wrap}.filters{display:grid;grid-template-columns:1fr;width:100%}.customer-caption{flex-wrap:wrap}.file-row .grow{flex-basis:calc(100% - 50px)}.breadcrumbs{flex-wrap:wrap}.recovery-codes{grid-template-columns:1fr}footer{flex-wrap:wrap}.tabs a{padding:10px;font-size:.8rem}}
.sidebar button.nav-item{color:var(--muted)!important}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.staff-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:-6px 0 20px}.staff-heading .intro{margin:0}.filter-actions{display:flex;gap:8px;align-items:end}.new-customer-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.75fr);gap:22px;align-items:start}.onboarding-info{position:sticky;top:18px}.onboarding-info>.section-icon{width:44px;height:44px;margin-bottom:16px}.onboarding-info ol{padding-left:20px;margin:0 0 22px}.onboarding-info li{margin:10px 0}.onboarding-info .subtle{margin-bottom:0}@media(max-width:900px){.new-customer-grid{grid-template-columns:1fr}.onboarding-info{position:static}}@media(max-width:700px){.staff-heading{align-items:stretch;flex-direction:column}.staff-heading .btn{align-self:flex-start}.filter-actions{align-items:stretch;flex-wrap:wrap}}
.customer-hero{padding:22px 24px;margin-bottom:0;border-top:3px solid var(--bright)}.customer-hero-main{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:28px;align-items:start}.customer-hero h2{margin:4px 0 18px;font-size:1.45rem}.customer-meta{display:flex;gap:28px;flex-wrap:wrap}.customer-meta>span{display:flex;align-items:center;gap:9px;min-width:160px}.customer-meta .icon{color:var(--green);flex:none}.customer-meta small{display:block;color:var(--muted);font-size:.72rem;margin-bottom:2px}.customer-meta strong,.customer-meta a{display:block;color:var(--text);font-size:.875rem}.customer-hero-status{text-align:right}.customer-hero-status>div{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap;margin-bottom:13px}.customer-hero-status>strong{display:block;color:var(--green);font-size:1.8rem;line-height:1}.customer-hero-status>small{display:block;margin:4px 0 10px}.customer-hero-status progress{margin-left:auto;max-width:220px}.customer-hero-foot{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);margin-top:20px;padding-top:13px;color:var(--muted);font-size:.8rem}.customer-hero-foot strong{color:var(--text)}.customer-hero+.tabs{margin-top:0}.tabs{background:var(--surface);padding-top:5px;position:sticky;top:64px;z-index:8}
@media(max-width:900px){.customer-hero-main{grid-template-columns:1fr}.customer-hero-status{text-align:left}.customer-hero-status>div{justify-content:flex-start}.customer-hero-status progress{margin-left:0}.tabs{position:static}}
@media(max-width:700px){.customer-hero{padding:18px}.customer-meta{display:grid;gap:13px}.customer-hero-foot{flex-direction:column;gap:6px}.customer-hero-status>strong{font-size:1.55rem}}

/* 1.3.0 - interne Checklistenuebersicht */
.checklist-overview{display:grid;gap:18px}.checklist-overview-head{margin-bottom:0}.checklist-section{padding:0;overflow:hidden}.checklist-section-head{display:flex;gap:16px;align-items:center;padding:20px 22px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,var(--surface),var(--raised))}.section-icon.large{width:44px;height:44px}.checklist-section h3{margin:0;font-size:1rem}.checklist-section-head p{margin:4px 0 8px;font-size:.82rem}.checklist-section-head progress{height:6px}.checklist-items{display:grid}.checklist-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;padding:17px 22px;border-bottom:1px solid var(--line);position:relative}.checklist-item:last-child{border-bottom:0}.checklist-item:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--line)}.checklist-item.status-erledigt:before{background:var(--bright)}.checklist-item.status-rueckfrage:before{background:#c95348}.checklist-item.status-in_pruefung:before{background:#d69a2d}.checklist-item.status-eingereicht:before{background:#778b9b}.checklist-item:hover{background:var(--raised)}.checklist-item-title{align-items:flex-start}.checklist-item-title strong{font-size:.9rem}.next-step{margin:5px 0 0;color:var(--muted);font-size:.82rem;line-height:1.4}.checklist-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;color:var(--muted);font-size:.76rem;margin-top:10px}.checklist-meta span{opacity:.55}.checklist-item-actions{display:flex;align-items:center}.inline-alert{display:inline-flex;align-items:center;gap:7px;border-radius:5px;padding:7px 9px;margin-top:10px;font-size:.78rem;font-weight:600}.inline-alert .icon{width:15px;height:15px}.inline-alert.question{background:#fff7e9;color:#76520d;border:1px solid #ebc27f}:root[data-theme=dark] .inline-alert.question{background:#483921;color:#ffdc9f;border-color:#6b5430}@media(max-width:700px){.checklist-section-head{padding:16px}.checklist-item{grid-template-columns:1fr;padding:15px 16px;gap:12px}.checklist-item-actions .btn{width:100%;justify-content:center}.checklist-item-title{gap:10px}.checklist-section-head .split{align-items:flex-start}.checklist-section-head .badge{margin-left:8px}}

/* 1.4.0 - interne Pruefseite */
.review-header{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;border-top:3px solid var(--bright)}
.review-header h2{margin:4px 0 8px}.review-header p{margin:0;max-width:820px}.review-header-status{display:flex;flex-direction:column;align-items:flex-end;gap:9px;max-width:300px;text-align:right}.review-header-status strong{font-size:.82rem;line-height:1.35;color:var(--muted)}
.review-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:14px 0 22px}.review-summary-item{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid var(--line);background:var(--surface);border-radius:6px}.review-summary-item>.icon{width:18px;height:18px;color:var(--green);flex:none}.review-summary-item small{display:block;color:var(--muted);font-size:.72rem}.review-summary-item strong{display:block;margin-top:2px;font-size:.82rem;overflow-wrap:anywhere}
.review-content>.section-head{margin-bottom:18px}.review-data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.review-data-grid .read-field{min-width:0}.review-block{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.review-block-title{display:flex;align-items:center;gap:10px;margin-bottom:12px}.review-block-title>.icon{width:20px;height:20px;color:var(--green)}.review-block-title small{display:block;color:var(--muted);font-weight:400;margin-top:2px}.review-block>p{margin:0;background:var(--raised);padding:14px;border-radius:6px}
.review-panel{padding:20px}.review-panel-head{display:flex;gap:12px;align-items:center;margin-bottom:18px}.review-panel-head .section-icon{width:38px;height:38px}.review-panel-head h2{margin:2px 0 0}.status-choice{padding:0;border:0;margin:0 0 18px}.status-choice legend{padding:0;margin-bottom:10px}.status-option{display:flex;align-items:center;gap:10px;padding:10px 11px;border:1px solid var(--line);border-radius:6px;margin:0 0 8px;background:var(--surface);cursor:pointer}.status-option:hover{background:var(--raised)}.status-option input{width:17px;height:17px;accent-color:var(--green);flex:none}.status-option span{display:block}.status-option strong,.status-option small{display:block}.status-option strong{font-size:.84rem}.status-option small{font-size:.72rem;color:var(--muted);margin-top:2px}.status-option:has(input:checked){border-color:var(--green);box-shadow:0 0 0 1px var(--green) inset;background:var(--green-soft)}
.review-message-box{border-top:1px solid var(--line);padding-top:16px}.review-message-box label{margin-bottom:12px}.visibility-toggle{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--line);border-radius:6px;background:var(--raised);cursor:pointer}.visibility-toggle input{margin-top:2px;width:17px;height:17px;accent-color:var(--green);flex:none}.visibility-toggle strong,.visibility-toggle small{display:block}.visibility-toggle strong{font-size:.82rem}.visibility-toggle small{font-size:.72rem;color:var(--muted);font-weight:400;line-height:1.35;margin-top:3px}.review-save{width:100%;justify-content:center;margin-top:12px}.review-help{margin-top:14px;padding:12px 13px;border-left:3px solid var(--green);background:var(--raised);font-size:.75rem}.review-help p{margin:4px 0 0;color:var(--muted);line-height:1.45}.review-thread{margin-top:22px}.review-thread .message-card{margin-bottom:10px}
@media(max-width:1150px){.review-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.review-data-grid{grid-template-columns:1fr}}
@media(max-width:700px){.review-header{flex-direction:column}.review-header-status{align-items:flex-start;text-align:left;max-width:none}.review-summary{grid-template-columns:1fr 1fr}.review-summary-item:last-child{grid-column:1/-1}.review-grid{grid-template-columns:1fr}.review-panel{position:static}.review-thread .section-head{align-items:flex-start}.review-thread .section-head .btn{width:100%;justify-content:center}}

/* 1.5.0 - gefuehrter Kundenbereich und Entwickler-Footer */
.next-step{display:flex;align-items:center;gap:18px;border-left:4px solid var(--bright);padding:20px 22px}.next-step h2{margin:3px 0 6px;font-size:1.25rem}.next-step p{margin:0;color:var(--muted);font-size:.9rem}.next-step-icon{width:48px;height:48px;display:grid;place-items:center;flex:none;border-radius:10px;background:var(--green-soft);color:var(--green)}.next-step-icon .icon{width:25px;height:25px}.next-step .button{white-space:nowrap}.question-step{border-left-color:#d08b1f}.question-step .next-step-icon{background:#fff3d9;color:#835700}.waiting-step{border-left-color:var(--line)}.done-step{border-left-color:var(--green)}.checklist-row.has-question{border-left:3px solid #d08b1f}.footer-credit strong{color:var(--green);font-weight:650}
:root[data-theme=dark] .question-step .next-step-icon{background:#483921;color:#ffce76}
@media(max-width:700px){.next-step{align-items:flex-start;flex-wrap:wrap}.next-step .grow{flex-basis:calc(100% - 70px)}.next-step .button{width:100%;text-align:center}.footer-credit{width:100%}}

/* 1.6.1 Profilmenü im TelefonieFrese-Stil und Profilbilder */
.profile-menu{position:relative}.profile-trigger{height:48px;border:1px solid var(--line);background:var(--surface);padding:5px 10px 5px 6px;border-radius:8px;cursor:pointer;box-shadow:0 1px 2px #00000008;transition:background .15s,border-color .15s,box-shadow .15s}.profile-trigger:hover,.profile-trigger[aria-expanded="true"]{background:var(--raised);border-color:color-mix(in srgb,var(--line) 70%,var(--green));box-shadow:0 3px 12px #00000010;text-decoration:none;filter:none}.profile-trigger>.avatar{width:34px;height:34px;border:2px solid var(--bright);box-shadow:0 0 0 1px var(--surface)}.profile-trigger-name{font-weight:650;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-trigger>.icon{width:15px;height:15px;color:var(--muted);transition:transform .15s}.profile-trigger[aria-expanded="true"]>.icon{transform:rotate(180deg)}.profile-dropdown{position:absolute;right:0;top:calc(100% + 9px);width:292px;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 16px 38px #111c2330;overflow:hidden;z-index:100;padding:0}.profile-dropdown[hidden]{display:none}.profile-dropdown-head{padding:15px 16px 14px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,var(--surface),color-mix(in srgb,var(--surface) 88%,var(--raised)))}.profile-dropdown-eyebrow{display:block;color:var(--green);font-size:.68rem;font-weight:750;letter-spacing:.09em;margin-bottom:4px}.profile-dropdown-head strong{display:block;font-size:.93rem;line-height:1.35}.profile-dropdown-head small{display:block;margin-top:2px;color:var(--muted);font-size:.76rem}.profile-dropdown-group{padding:7px 0}.profile-dropdown a,.profile-dropdown button{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:11px 16px;border:0;border-radius:0;background:transparent;color:var(--text)!important;font-size:.875rem;font-weight:500;text-align:left;text-decoration:none;transition:background .12s,color .12s}.profile-dropdown a:hover,.profile-dropdown button:hover{background:var(--raised);text-decoration:none;filter:none}.profile-dropdown .icon{width:18px;height:18px;color:var(--muted);transition:color .12s}.profile-dropdown a:hover .icon{color:var(--green)}.profile-dropdown-logout{margin:0!important;border-top:1px solid var(--line);padding:7px 0!important}.profile-dropdown-logout button{color:var(--text)!important}.profile-dropdown-logout button .icon{color:#e03a32!important}.profile-dropdown-logout button:hover .icon{color:#e03a32!important}:root[data-theme=dark] .profile-trigger{background:#202a31;border-color:#3a4852;box-shadow:0 1px 2px #0005}:root[data-theme=dark] .profile-trigger:hover,:root[data-theme=dark] .profile-trigger[aria-expanded="true"]{background:#27323a;border-color:#53616c}:root[data-theme=dark] .profile-dropdown{background:#202a31;border-color:#3a4852;box-shadow:0 18px 42px #0008}:root[data-theme=dark] .profile-dropdown-head{background:#202a31;border-color:#3a4852}:root[data-theme=dark] .profile-dropdown-group{background:#202a31}:root[data-theme=dark] .profile-dropdown a:hover,:root[data-theme=dark] .profile-dropdown button:hover{background:#28343d}:root[data-theme=dark] .profile-dropdown-logout{border-color:#3a4852}:root[data-theme=dark] .profile-dropdown-eyebrow{color:#a4d441}.avatar{overflow:hidden}.avatar-photo img{width:100%;height:100%;display:block;object-fit:cover}.avatar-large{width:48px;height:48px;flex:none}.avatar-profile{width:86px;height:86px;flex:none;font-size:1.6rem}.user-row-avatar{align-items:flex-start}.profile-avatar-head{display:flex;align-items:center;gap:18px;margin-bottom:22px}.profile-avatar-head h2{margin-bottom:5px}.profile-avatar-head p{margin:0}.avatar-upload-form{margin-top:10px}.avatar-rules{font-size:.8rem;line-height:1.5}.avatar-admin{margin-top:10px;padding:0;border:0}.avatar-admin summary{font-weight:600;color:var(--green)}.avatar-admin .avatar-upload-form{margin:10px 0}.avatar-admin .inline-form{margin-top:4px}.danger{color:#a3312a!important}.card hr{border:0;border-top:1px solid var(--line);margin:24px 0}
@media(max-width:700px){.profile-trigger>span:not(.avatar){display:none}.profile-dropdown{right:0}.user-row-avatar{flex-wrap:wrap}.user-row-avatar>.grow{flex-basis:calc(100% - 64px)}.profile-avatar-head{align-items:flex-start}}

/* 1.6.2 - Profilmenue wie TelefonieFrese: ruhiger Trigger, Rahmen nur bei Hover/geoeffnet */
.profile-trigger{
  background:transparent;
  border-color:transparent;
  box-shadow:none;
  color:var(--text)!important;
}
.profile-trigger:hover,
.profile-trigger[aria-expanded="true"]{
  background:var(--surface);
  border-color:var(--line);
  box-shadow:0 3px 12px #00000010;
}
.profile-trigger-name{color:var(--text)!important}
.profile-dropdown{border-radius:10px}
.profile-dropdown-head{background:var(--surface)}
.profile-dropdown a,.profile-dropdown button{font-weight:600}

:root[data-theme=dark] .profile-trigger{
  background:transparent;
  border-color:transparent;
  box-shadow:none;
  color:#f0f4f7!important;
}
:root[data-theme=dark] .profile-trigger-name{color:#f0f4f7!important}
:root[data-theme=dark] .profile-trigger>.icon{color:#b5c1cc}
:root[data-theme=dark] .profile-trigger:hover,
:root[data-theme=dark] .profile-trigger[aria-expanded="true"]{
  background:#202a31;
  border-color:#3a4852;
  box-shadow:0 3px 12px #0006;
}
:root[data-theme=dark] .profile-dropdown-head strong,
:root[data-theme=dark] .profile-dropdown a,
:root[data-theme=dark] .profile-dropdown button{color:#f0f4f7!important}

/* 1.6.3 - Profilmenue exakt kompakter TelefonieFrese-Stil */
.profile-dropdown{
  width:292px;
  border-radius:10px;
  overflow:hidden;
  padding:0;
}
.profile-dropdown-head{
  padding:12px 15px 11px;
  min-height:86px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.profile-dropdown-eyebrow{
  margin-bottom:3px;
  font-size:.64rem;
  line-height:1.2;
  letter-spacing:.08em;
}
.profile-dropdown-head strong{
  font-size:.86rem;
  line-height:1.25;
}
.profile-dropdown-head small{
  margin-top:2px;
  font-size:.72rem;
  line-height:1.25;
}
.profile-dropdown-group{
  padding:4px 0;
}
.profile-dropdown a,
.profile-dropdown button{
  min-height:40px;
  padding:8px 15px;
  gap:11px;
  font-size:.82rem;
  line-height:1.2;
  font-weight:500;
}
.profile-dropdown .icon{
  width:16px;
  height:16px;
}
.profile-dropdown-logout{
  margin:0!important;
  padding:4px 0!important;
}
.profile-dropdown-logout button{
  justify-content:flex-start;
}
.profile-trigger{
  min-width:0;
  height:44px;
  padding:4px 9px 4px 5px;
  border-radius:7px;
}
.profile-trigger>.avatar{
  width:32px;
  height:32px;
}
.profile-trigger-name{
  font-size:.82rem;
  font-weight:600;
}
.profile-trigger>.icon{
  width:14px;
  height:14px;
}
:root[data-theme=dark] .profile-dropdown{
  background:#202a31;
  border-color:#3a4852;
}
:root[data-theme=dark] .profile-dropdown-head,
:root[data-theme=dark] .profile-dropdown-group{
  background:#202a31;
}
:root[data-theme=dark] .profile-dropdown a,
:root[data-theme=dark] .profile-dropdown button,
:root[data-theme=dark] .profile-dropdown-head strong{
  color:#f4f7f9!important;
}
:root[data-theme=dark] .profile-dropdown-head small,
:root[data-theme=dark] .profile-dropdown .icon{
  color:#b5c1cc;
}
:root[data-theme=dark] .profile-dropdown a:hover,
:root[data-theme=dark] .profile-dropdown button:hover{
  background:#27323a;
}

.settings-list{display:grid;gap:0;margin-top:14px;border:1px solid var(--line);border-radius:10px;overflow:hidden}.settings-list>div{display:flex;justify-content:space-between;gap:20px;padding:14px 16px;background:var(--surface)}.settings-list>div+div{border-top:1px solid var(--line)}.settings-list strong{text-align:right}


/* 1.7.0 - einklappbare Checklisten, Benachrichtigungen, Verwaltung-Tab und Dashboard-Begrüßung */
.notification-button{position:relative;display:inline-grid;place-items:center;text-decoration:none}.notification-button:hover{text-decoration:none}.notification-badge{position:absolute;top:-4px;right:-5px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#c92f27;color:#fff;font-size:.64rem;font-weight:750;line-height:17px;text-align:center;box-shadow:0 0 0 2px var(--bg)}
.dashboard-greeting{margin:-4px 0 22px;padding:18px 22px;border:1px solid var(--line);border-left:3px solid var(--bright);border-radius:8px;background:linear-gradient(100deg,var(--surface),var(--green-soft));box-shadow:var(--shadow)}.dashboard-greeting>span{display:block;font-size:.76rem;color:var(--muted);margin-bottom:5px}.dashboard-greeting h2{font-size:1.7rem;line-height:1.2;margin:0 0 5px;letter-spacing:-.025em}.dashboard-greeting p{margin:0;color:var(--muted);font-size:.9rem}:root[data-theme=dark] .dashboard-greeting{background:linear-gradient(100deg,#1b252b,#203126)}
.checklist-section{padding:0;overflow:hidden}.checklist-collapse-trigger{display:flex;width:100%;align-items:center;gap:14px;padding:18px 20px;border:0;border-radius:0;background:transparent;color:var(--text)!important;text-align:left;box-shadow:none}.checklist-collapse-trigger:hover{background:var(--raised);filter:none}.checklist-section-title{display:block;font-size:1rem;font-weight:700;margin-bottom:2px}.checklist-section-subtitle{display:block;font-size:.8rem}.checklist-collapse-trigger progress{margin-top:9px}.collapse-chevron{display:grid;place-items:center;color:var(--muted);transition:transform .18s ease}.collapse-chevron .icon{width:17px;height:17px}.checklist-section.is-collapsed .collapse-chevron{transform:rotate(-90deg)}.checklist-items{padding:0 20px 18px}.checklist-items[hidden]{display:none}.checklist-section.is-collapsed .checklist-collapse-trigger{border-bottom:0}
.notifications-list{max-width:980px}.notification-row{display:flex;align-items:center;gap:14px;padding:14px 4px;border-top:1px solid var(--line);color:var(--text)}.notification-row:hover{background:var(--raised);text-decoration:none}.notification-row small{display:block;color:var(--muted);margin-top:2px}.notification-row p{margin:5px 0 0;color:var(--muted);font-size:.86rem}
.danger:not(.light){background:#b3261e!important;border-color:#962019!important;color:#fff!important}.danger:not(.light):hover{background:#9f211b!important;color:#fff!important}:root[data-theme=dark] .danger:not(.light){background:#c83d35!important;border-color:#df5b54!important;color:#fff!important}:root[data-theme=dark] .danger:not(.light):hover{background:#b9342d!important;color:#fff!important}.light.danger{background:var(--raised)!important;border-color:var(--line)!important;color:var(--red)!important}
@media(max-width:700px){.dashboard-greeting{padding:16px}.dashboard-greeting h2{font-size:1.35rem}.notification-row{align-items:flex-start}.notification-row .row-action{display:none}.checklist-collapse-trigger{padding:15px}.checklist-items{padding:0 15px 15px}}

/* Slack administration */
.slack-settings-form fieldset{margin-top:18px}.slack-enabled{padding:14px 16px;border:1px solid var(--line);border-radius:8px;background:var(--raised);align-items:flex-start}.slack-enabled span{display:grid;gap:2px}.slack-enabled small{color:var(--muted);font-weight:400}.slack-test-form{margin-top:18px}.slack-security{margin-top:22px}.slack-security p{margin:6px 0 0}.profile-dropdown a[href*="page=slack"] .icon{color:var(--muted)}.profile-dropdown a[href*="page=slack"]:hover .icon{color:var(--green)}

/* 1.9.0 - einklappbare Hauptnavigation und Profilmenue wie TelefonieFrese */
.sidebar,.topbar,.main{transition:width .18s ease,margin-left .18s ease,padding .18s ease}
.sidebar-brand-row{position:relative;display:flex;align-items:flex-start;min-height:122px}.sidebar-brand-row .brand{flex:1;min-width:0}.sidebar-collapse{position:absolute;right:4px;top:0;width:32px;height:32px;padding:5px;border:1px solid transparent;border-radius:5px;color:var(--muted)!important;z-index:2}.sidebar-collapse:hover{background:var(--raised);border-color:var(--line);filter:none}.sidebar-collapse .icon{width:18px;height:18px}.brand-logo-compact{display:none!important}
body.sidebar-collapsed .sidebar{width:72px;padding-left:8px;padding-right:8px;overflow-x:hidden}
body.sidebar-collapsed .topbar,body.sidebar-collapsed .main{margin-left:72px}
body.sidebar-collapsed .sidebar-brand-row{min-height:72px;justify-content:center}
body.sidebar-collapsed .sidebar .brand{padding:0;margin:0;gap:0}
body.sidebar-collapsed .sidebar .brand strong,body.sidebar-collapsed .sidebar .brand-logo-full,body.sidebar-collapsed .sidebar .nav-item>span:not(.counter),body.sidebar-collapsed .sidebar-foot{display:none!important}
body.sidebar-collapsed .sidebar .logo-box{width:44px;height:44px;padding:4px;border-radius:7px}
body.sidebar-collapsed .sidebar .brand-logo-compact{display:block!important;width:100%;height:100%;object-fit:contain}
body.sidebar-collapsed .sidebar-collapse{top:47px;right:20px;width:24px;height:24px;padding:3px;background:var(--surface);border-color:var(--line)}
body.sidebar-collapsed .sidebar-collapse .icon{transform:rotate(180deg);width:15px;height:15px}
body.sidebar-collapsed .sidebar nav{margin-top:6px;gap:7px}
body.sidebar-collapsed .sidebar .nav-item{width:48px;height:48px;min-height:48px;padding:0;justify-content:center;margin:0 auto;border-radius:6px}
body.sidebar-collapsed .sidebar .nav-item .icon{width:21px;height:21px}
body.sidebar-collapsed .sidebar .nav-item.active:before{left:-9px}
body.sidebar-collapsed .sidebar .counter{position:absolute;right:-4px;top:-5px;min-width:17px;height:17px;line-height:15px;padding:0 4px;font-size:.62rem;border:2px solid var(--surface)}
.profile-dropdown-label{display:flex;align-items:center;gap:11px;min-height:34px;padding:8px 15px 5px;color:var(--muted);font-size:.72rem;font-weight:650;letter-spacing:.02em;cursor:default;user-select:none;border-top:1px solid var(--line);margin-top:4px}.profile-dropdown-label .icon{width:14px;height:14px;color:var(--muted)}
.profile-dropdown-label+ a{padding-top:7px}
:root[data-theme=dark] .profile-dropdown-label{color:#aebac4;border-color:#3a4852}:root[data-theme=dark] .profile-dropdown-label .icon{color:#aebac4}
@media(max-width:980px){.sidebar-collapse{display:none!important}body.sidebar-collapsed .sidebar{width:var(--sidebar);padding:24px 12px 18px}body.sidebar-collapsed .topbar,body.sidebar-collapsed .main{margin-left:0}body.sidebar-collapsed .sidebar .brand strong,body.sidebar-collapsed .sidebar .nav-item>span:not(.counter),body.sidebar-collapsed .sidebar-foot{display:initial!important}body.sidebar-collapsed .sidebar .brand-logo-full{display:block!important}body.sidebar-collapsed .sidebar .brand-logo-compact{display:none!important}body.sidebar-collapsed .sidebar .logo-box{width:168px;height:88px;padding:10px}body.sidebar-collapsed .sidebar .nav-item{width:100%;height:auto;min-height:48px;padding:12px;justify-content:flex-start;margin:0}}

/* 1.9.1 - Sidebar-Geometrie wie TelefonieFrese */
.sidebar-brand-row{min-height:118px;display:flex;align-items:flex-start;position:relative;padding:0 2px}
.sidebar-brand-row .brand{align-items:flex-start;flex:0 0 auto;padding:0 0 22px 0;gap:10px}
.sidebar-brand-row .brand .logo-box{width:142px;height:70px;padding:7px}
.sidebar-brand-row .brand strong{font-size:.8rem;padding-left:6px}
.sidebar-brand-row .sidebar-collapse{top:8px;right:8px;width:30px;height:30px;padding:5px;background:transparent;border:1px solid transparent}
.sidebar-brand-row .sidebar-collapse:hover,.sidebar-brand-row .sidebar-collapse:focus-visible{background:var(--raised);border-color:var(--line)}
body.sidebar-collapsed .sidebar{width:78px;padding:14px 7px 18px}
body.sidebar-collapsed .topbar,body.sidebar-collapsed .main{margin-left:78px}
body.sidebar-collapsed .sidebar-brand-row{min-height:42px;height:42px;padding:0;display:flex;justify-content:center;align-items:flex-start}
body.sidebar-collapsed .sidebar .brand{display:none!important}
body.sidebar-collapsed .sidebar .logo-box,body.sidebar-collapsed .sidebar .brand-logo-full,body.sidebar-collapsed .sidebar .brand-logo-compact{display:none!important}
body.sidebar-collapsed .sidebar-collapse{position:static;display:grid;place-items:center;width:42px;height:36px;margin:0 auto;padding:7px;background:transparent;border:1px solid transparent;border-radius:6px}
body.sidebar-collapsed .sidebar-collapse:hover,body.sidebar-collapsed .sidebar-collapse:focus-visible{background:var(--raised);border-color:var(--line)}
body.sidebar-collapsed .sidebar-collapse .icon{transform:rotate(180deg);width:18px;height:18px}
body.sidebar-collapsed .sidebar nav{margin-top:8px;gap:7px}
body.sidebar-collapsed .sidebar .nav-item{width:50px;height:48px;min-height:48px}
@media(max-width:980px){
  .sidebar-brand-row{min-height:122px;padding:0}
  .sidebar-brand-row .brand{align-items:center;flex:1;padding:0 10px 28px;gap:14px}
  .sidebar-brand-row .brand .logo-box{width:168px;height:88px;padding:10px}
  .sidebar-brand-row .brand strong{font-size:.875rem;padding-left:0}
}

/* 1.9.2 TelefonieFrese sidebar toggle */
.sidebar-collapse .icon{transform:none!important}
body.sidebar-collapsed .sidebar-collapse .icon{transform:none!important;width:18px;height:18px}

/* 1.9.3 state-specific sidebar toggle icons */
.sidebar-collapse .sidebar-icon-expanded{display:inline-grid;place-items:center}
.sidebar-collapse .sidebar-icon-collapsed{display:none}
body.sidebar-collapsed .sidebar-collapse .sidebar-icon-expanded{display:none}
body.sidebar-collapsed .sidebar-collapse .sidebar-icon-collapsed{display:inline-grid;place-items:center}
.sidebar-collapse .sidebar-icon-expanded .icon,.sidebar-collapse .sidebar-icon-collapsed .icon{width:18px;height:18px;transform:none!important}
/* 1.9.5: Kundenvalidierung und neue Nachrichten */
.field-hint{display:block;margin-top:6px;color:var(--muted);font-size:.78rem;font-weight:400}
.message-preview.is-new,.message-card.is-new{border-left:3px solid var(--bright);background:var(--green-soft)}
.message-preview.is-new{padding-left:14px;padding-right:12px;border-radius:6px}
.message-card.is-new{padding-left:18px}
.message-preview-head,.message-author{display:flex;align-items:center;gap:9px}
.message-new-badge{background:var(--green)!important;color:#fff!important;font-size:.7rem;padding:2px 7px}
:root[data-theme=dark] .message-preview.is-new,:root[data-theme=dark] .message-card.is-new{background:rgba(129,185,20,.12)}

/* 1.9.8: E-Mail-Einstellungen */
.email-settings-form .email-preferences{margin-top:18px}
.email-preferences .checkbox{padding:8px 0;margin:0}
.email-preferences .checkbox+ .checkbox{border-top:1px solid var(--line)}
.email-admin{margin-top:10px;padding:0;border:0}
.email-admin summary{font-weight:600;color:var(--green)}
.email-admin .email-settings-form{margin-top:12px;padding:14px;background:var(--raised);border:1px solid var(--line);border-radius:6px}
.email-admin .email-preferences{background:var(--surface)}

/* 1.10.0: Globale Portal-Einstellungen */
.global-settings-form .settings-toggle{padding:10px 0;margin:0 0 12px}
.global-settings-form .settings-toggle span{display:flex;flex-direction:column;gap:3px}
.global-settings-form .settings-toggle small{color:var(--muted);font-weight:400}

/* 1.10.1: E-Mail-Versand */
.mail-transport-card .mail-mode-fields{margin-top:18px}
.mail-transport-card .mail-mode-fields[hidden]{display:none}
.mail-transport-card .mail-transport-actions{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin-top:18px}
.mail-transport-card .mail-test-form{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;flex:1 1 420px}
.mail-transport-card .mail-test-form label{flex:1 1 260px;margin:0}
.mail-transport-card .inline-form{margin:0}

/* 1.10.2: Konfigurationsseite */
.settings-config-page{display:flex;flex-direction:column;gap:22px}
.settings-config-page>.card{margin-bottom:0}
.config-overview-card{border-top:3px solid var(--bright)}
.config-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:18px}
.config-summary-item{display:flex;align-items:center;gap:12px;min-width:0;padding:14px;background:var(--raised);border:1px solid var(--line);border-radius:7px}
.config-summary-icon{width:38px;height:38px;border-radius:8px;display:grid;place-items:center;flex:none;background:var(--green-soft);color:var(--green)}
.config-summary-icon .icon{width:20px;height:20px}
.config-summary-item small{display:block;color:var(--muted);margin-bottom:3px}
.config-summary-item strong{display:block;font-size:.9rem;line-height:1.25;overflow-wrap:anywhere}
.config-summary-item span:not(.config-summary-icon){display:block;font-size:.75rem;color:var(--muted);margin-top:2px}
.settings-config-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:start}
.config-card{margin-bottom:0}
.config-card-head{display:flex;align-items:flex-start;gap:14px;margin-bottom:18px}
.config-card-head>div{min-width:0;flex:1}
.config-card-head h2{margin:1px 0 4px}
.config-card-head p{margin:0;color:var(--muted);font-size:.875rem}
.config-card-head>.badge{margin-left:auto}
.config-card-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:9px;background:var(--green-soft);color:var(--green);flex:none}
.config-card-icon .icon{width:22px;height:22px}
.config-automation-card,.config-webcron-card{grid-column:span 1}
.mail-transport-card{grid-column:1/-1}
.config-form{display:flex;flex-direction:column;gap:16px}
.config-option{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:18px;align-items:center;padding:14px 0;border-top:1px solid var(--line)}
.config-option:first-of-type{border-top:0}
.config-option .settings-toggle{margin:0;padding:0}
.config-option .settings-toggle span{display:flex;flex-direction:column;gap:3px}
.config-option .settings-toggle small{color:var(--muted);font-weight:400}
.config-number-field{margin:0}
.config-number-field>span{display:block;margin-bottom:6px;font-size:.8rem;color:var(--muted)}
.input-suffix{display:flex;align-items:stretch}
.input-suffix input{border-radius:6px 0 0 6px}
.input-suffix>span{display:flex;align-items:center;padding:0 11px;border:1px solid var(--line);border-left:0;background:var(--raised);border-radius:0 6px 6px 0;color:var(--muted);font-size:.8rem}
.config-card-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:16px;margin-top:2px;border-top:1px solid var(--line)}
.config-card-footer>.muted{font-size:.8rem;max-width:70%}
.config-main-fields{margin-bottom:4px}
.config-subsection{padding:16px;margin:0;border:1px solid var(--line);border-radius:7px;background:var(--raised)}
.config-subsection legend{padding:0 8px;font-weight:650;color:var(--text)}
.config-hint{margin-top:14px}
.config-hint p{margin-bottom:0}
.config-test-area{padding-top:16px;border-top:1px solid var(--line)}
.config-webcron-card label{margin-bottom:0}
@media(max-width:1250px){
  .config-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:980px){
  .settings-config-grid{grid-template-columns:1fr}
  .mail-transport-card{grid-column:auto}
  .config-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .config-summary-grid{grid-template-columns:1fr}
  .config-option{grid-template-columns:1fr}
  .config-card-footer{align-items:stretch;flex-direction:column}
  .config-card-footer>.muted{max-width:none}
  .config-card-footer button{width:100%}
  .config-card-head{flex-wrap:wrap}
  .config-card-head>.badge{margin-left:56px}
}

/* 1.10.3: KPI-Dashboard */
.dashboard-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin-bottom:22px}
.dashboard-kpi{margin:0;display:flex;align-items:flex-start;gap:14px;padding:18px;min-width:0}
.dashboard-kpi-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:11px;flex:none}
.dashboard-kpi-icon .icon{width:23px;height:23px}
.dashboard-kpi>div{min-width:0}
.dashboard-kpi-label{display:block;color:var(--muted);font-size:.8rem;font-weight:600;line-height:1.25}
.dashboard-kpi strong{display:block;font-size:1.9rem;line-height:1.1;margin:5px 0 4px;color:var(--text)}
.dashboard-kpi small{display:block;color:var(--muted);font-size:.72rem;line-height:1.3}
.kpi-customers .dashboard-kpi-icon{background:#e6efff;color:#2563eb}
.kpi-checklist .dashboard-kpi-icon{background:#e8f7ee;color:#169b55}
.kpi-questions .dashboard-kpi-icon{background:#fff2d9;color:#d97706}
.kpi-messages .dashboard-kpi-icon{background:#efe8ff;color:#7c3aed}
.kpi-files .dashboard-kpi-icon{background:#ddf6fb;color:#0891b2}
.kpi-invites .dashboard-kpi-icon{background:#ffe6ea;color:#e11d48}
:root[data-theme=dark] .kpi-customers .dashboard-kpi-icon{background:#1c3157;color:#8db6ff}
:root[data-theme=dark] .kpi-checklist .dashboard-kpi-icon{background:#183d2b;color:#6ee7a1}
:root[data-theme=dark] .kpi-questions .dashboard-kpi-icon{background:#49351a;color:#ffc96b}
:root[data-theme=dark] .kpi-messages .dashboard-kpi-icon{background:#342351;color:#c3a5ff}
:root[data-theme=dark] .kpi-files .dashboard-kpi-icon{background:#173b43;color:#70d8eb}
:root[data-theme=dark] .kpi-invites .dashboard-kpi-icon{background:#4b202b;color:#ff9daf}

.dashboard-analytics-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;margin-bottom:22px}
.dashboard-panel{margin:0}
.dashboard-panel .section-head{margin-bottom:18px}
.dashboard-panel .section-head .text-link{font-size:.8rem;white-space:nowrap}
.checklist-status-content{display:grid;grid-template-columns:190px minmax(0,1fr);gap:28px;align-items:center;min-height:210px}
.status-donut{width:160px;height:160px;display:grid;place-items:center;position:relative;margin:auto}
.status-donut-svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.status-donut-track,.status-donut-segment{fill:none;stroke-width:6}
.status-donut-track{stroke:var(--line)}
.status-donut-segment{stroke-linecap:butt}
.status-donut-done{stroke:#22a65a}
.status-donut-active{stroke:#f0a51a}
.status-donut-open{stroke:#e64c4c}
.status-donut>div{position:relative;z-index:1;text-align:center}
.status-donut strong{display:block;font-size:1.7rem;line-height:1.1}
.status-donut span{display:block;color:var(--muted);font-size:.78rem;margin-top:3px}
.status-legend{display:flex;flex-direction:column;gap:8px}
.status-legend>div{display:grid;grid-template-columns:12px minmax(0,1fr) auto 46px;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line)}
.status-legend>div:last-child{border-bottom:0}
.status-legend span:not(.legend-dot){font-size:.85rem}
.status-legend strong{font-size:.9rem}
.status-legend small{text-align:right;color:var(--muted)}
.legend-dot{width:10px;height:10px;border-radius:3px}
.legend-dot.done{background:#22a65a}.legend-dot.active{background:#f0a51a}.legend-dot.open{background:#e64c4c}

.stage-chart{display:grid;grid-template-columns:repeat(4,minmax(72px,1fr));gap:16px;align-items:end;height:220px;padding:12px 10px 0;border-bottom:1px solid var(--line)}
.stage-bar-wrap{height:100%;display:grid;grid-template-rows:20px minmax(0,1fr) 38px;align-items:end;text-align:center;min-width:0}
.stage-bar-wrap>strong{align-self:start;font-size:.85rem}
.stage-bar-track{height:100%;display:flex;align-items:flex-end;justify-content:center;border-left:1px solid transparent}
.stage-bar{display:block;width:min(54px,70%);min-height:8px;border-radius:5px 5px 0 0}
.stage-neu{background:#4d8cf5}.stage-in_bearbeitung{background:#22a65a}.stage-installation{background:#f0a51a}.stage-abgeschlossen{background:#6f7d89}
.stage-bar-wrap small{align-self:center;color:var(--muted);font-size:.74rem;line-height:1.15;overflow-wrap:anywhere}

.dashboard-content-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(340px,.85fr);gap:22px;align-items:start;margin-bottom:22px}
.dashboard-side-stack{display:flex;flex-direction:column;gap:22px}
.dashboard-feed-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-top:1px solid var(--line);color:var(--text)}
.dashboard-feed-row:first-of-type{border-top:0}
.dashboard-feed-row:hover{text-decoration:none;background:var(--raised);margin-left:-10px;margin-right:-10px;padding-left:10px;padding-right:10px;border-radius:6px}
.feed-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:9px;flex:none}
.feed-icon .icon{width:19px;height:19px}
.feed-clipboard{background:#e8f7ee;color:#169b55}.feed-message{background:#efe8ff;color:#7c3aed}.feed-file{background:#ddf6fb;color:#0891b2}
:root[data-theme=dark] .feed-clipboard{background:#183d2b;color:#6ee7a1}:root[data-theme=dark] .feed-message{background:#342351;color:#c3a5ff}:root[data-theme=dark] .feed-file{background:#173b43;color:#70d8eb}
.dashboard-feed-row strong{display:block;font-size:.84rem}
.dashboard-feed-row small{display:block;color:var(--muted);font-size:.75rem;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-feed-row time{color:var(--muted);font-size:.72rem;white-space:nowrap;margin-left:auto}
.dashboard-feed-row.compact{padding-top:11px;padding-bottom:11px}
.dashboard-feed-row.compact .feed-icon{width:32px;height:32px}
.dashboard-customer-shortcut{margin-bottom:22px}
.dashboard-customer-shortcut .section-head{margin-bottom:0}
.dashboard-customer-shortcut>.btn{margin-top:12px}

@media(max-width:1500px){
  .dashboard-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:1100px){
  .dashboard-analytics-grid,.dashboard-content-grid{grid-template-columns:1fr}
  .dashboard-content-grid{margin-bottom:22px}
}
@media(max-width:800px){
  .dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .checklist-status-content{grid-template-columns:1fr}
  .status-donut{width:145px;height:145px}
}
@media(max-width:520px){
  .dashboard-kpis{grid-template-columns:1fr}
  .dashboard-kpi{align-items:center}
  .stage-chart{gap:7px;height:190px}
  .stage-bar{width:min(42px,72%)}
  .dashboard-feed-row{align-items:flex-start}
  .dashboard-feed-row time{white-space:normal;text-align:right;max-width:90px}
}

/* 1.10.5: Dashboard-Sicht */
.dashboard-scope-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0 18px}
.radio-card{display:flex;align-items:flex-start;gap:12px;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--raised);cursor:pointer}
.radio-card input{margin-top:3px;accent-color:var(--green)}
.radio-card span{display:flex;flex-direction:column;gap:3px}
.radio-card strong{font-size:.9rem}
.radio-card small{color:var(--muted);font-weight:400}
.radio-card:has(input:checked){border-color:var(--bright);background:var(--green-soft)}
.dashboard-scope-note{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:-8px 0 14px}
.dashboard-scope-note .text-link{font-size:.8rem}
@media(max-width:640px){
  .dashboard-scope-options{grid-template-columns:1fr}
  .dashboard-scope-note{justify-content:flex-start}
}

/* 1.10.6: SystemEigentümer */
.user-title-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.badge.role-system_owner{background:#efe8ff;color:#6d28d9}
.badge.role-admin{background:#e6efff;color:#1d4ed8}
.badge.role-mitarbeiter{background:var(--green-soft);color:var(--green)}
.user-protected{align-items:flex-start}
.protected-user-note{display:flex;align-items:center;gap:9px;margin:10px 0 0;padding:10px 12px}
.protected-user-note .icon{width:17px;height:17px;flex:none;color:var(--muted)}
:root[data-theme=dark] .badge.role-system_owner{background:#342351;color:#c3a5ff}
:root[data-theme=dark] .badge.role-admin{background:#1c3157;color:#8db6ff}

/* 1.10.8: KPI-Karten auf Kundenübersicht */
.customer-stage-kpis .customer-stage-kpi{position:relative;overflow:hidden;background:var(--surface);border-color:var(--line)}
.customer-stage-kpis .customer-stage-kpi:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;opacity:.7}
.customer-stage-kpis .customer-stage-kpi .metric-icon{width:46px;height:46px;border-radius:10px}
.customer-stage-kpis .customer-stage-kpi .metric-icon .icon{width:25px;height:25px}
.customer-stage-kpis .customer-stage-kpi strong{font-size:2.15rem;line-height:1.05;margin-top:5px}
.customer-stage-kpis .customer-kpi-new .metric-icon{background:#e8f7ee;color:#22a65a}
.customer-stage-kpis .customer-kpi-new strong{color:#22a65a}
.customer-stage-kpis .customer-kpi-new:after{background:#22a65a}
.customer-stage-kpis .customer-kpi-progress .metric-icon{background:#fff2d9;color:#d99100}
.customer-stage-kpis .customer-kpi-progress strong{color:#d99100}
.customer-stage-kpis .customer-kpi-progress:after{background:#d99100}
.customer-stage-kpis .customer-kpi-installation .metric-icon{background:#e8edff;color:#5875e8}
.customer-stage-kpis .customer-kpi-installation strong{color:#5875e8}
.customer-stage-kpis .customer-kpi-installation:after{background:#5875e8}
.customer-stage-kpis .customer-kpi-complete .metric-icon{background:#e8f7ee;color:#22a65a}
.customer-stage-kpis .customer-kpi-complete strong{color:#22a65a}
.customer-stage-kpis .customer-kpi-complete:after{background:#22a65a}
.last-activity-action{margin-top:4px!important;color:var(--muted)!important;font-size:.76rem}
:root[data-theme=dark] .customer-stage-kpis .customer-kpi-new .metric-icon{background:#193d2b;color:#72e7a5}
:root[data-theme=dark] .customer-stage-kpis .customer-kpi-new strong{color:#9ed93a}
:root[data-theme=dark] .customer-stage-kpis .customer-kpi-progress .metric-icon{background:#463718;color:#ffca43}
:root[data-theme=dark] .customer-stage-kpis .customer-kpi-progress strong{color:#ffca43}
:root[data-theme=dark] .customer-stage-kpis .customer-kpi-installation .metric-icon{background:#222f59;color:#7d97ff}
:root[data-theme=dark] .customer-stage-kpis .customer-kpi-installation strong{color:#7d97ff}
:root[data-theme=dark] .customer-stage-kpis .customer-kpi-complete .metric-icon{background:#193d2b;color:#9ee83e}
:root[data-theme=dark] .customer-stage-kpis .customer-kpi-complete strong{color:#9ed93a}

/* 1.10.9: KPI-Karten und Statusfarben in der Kundenakte */
.customer-detail-kpis .customer-detail-kpi{position:relative;overflow:hidden;background:var(--surface);border-color:var(--line)}
.customer-detail-kpis .customer-detail-kpi:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;opacity:.7}
.customer-detail-kpis .customer-detail-kpi .metric-icon{width:46px;height:46px;border-radius:10px}
.customer-detail-kpis .customer-detail-kpi .metric-icon .icon{width:25px;height:25px}
.customer-detail-kpis .customer-detail-kpi strong{font-size:2.15rem;line-height:1.05;margin-top:5px}

.customer-detail-kpis .customer-detail-kpi-open .metric-icon{background:#e8f7ee;color:#22a65a}
.customer-detail-kpis .customer-detail-kpi-open strong{color:#22a65a}
.customer-detail-kpis .customer-detail-kpi-open:after{background:#22a65a}

.customer-detail-kpis .customer-detail-kpi-review .metric-icon{background:#fff2d9;color:#d99100}
.customer-detail-kpis .customer-detail-kpi-review strong{color:#d99100}
.customer-detail-kpis .customer-detail-kpi-review:after{background:#d99100}

.customer-detail-kpis .customer-detail-kpi-question .metric-icon{background:#e8edff;color:#5875e8}
.customer-detail-kpis .customer-detail-kpi-question strong{color:#5875e8}
.customer-detail-kpis .customer-detail-kpi-question:after{background:#5875e8}

.customer-detail-kpis .customer-detail-kpi-done .metric-icon{background:#e8f7ee;color:#22a65a}
.customer-detail-kpis .customer-detail-kpi-done strong{color:#22a65a}
.customer-detail-kpis .customer-detail-kpi-done:after{background:#22a65a}

.badge.offen{background:#e8f7ee;color:#16844a}
.badge.in_pruefung,.badge.eingereicht{background:#fff2d9;color:#946100}
.badge.rueckfrage{background:#e8edff;color:#4f63c9}
.badge.erledigt{background:#e8f7ee;color:#16844a}
.badge.nicht_erforderlich{background:var(--raised);color:var(--muted)}

:root[data-theme=dark] .customer-detail-kpis .customer-detail-kpi-open .metric-icon{background:#193d2b;color:#72e7a5}
:root[data-theme=dark] .customer-detail-kpis .customer-detail-kpi-open strong{color:#9ed93a}
:root[data-theme=dark] .customer-detail-kpis .customer-detail-kpi-review .metric-icon{background:#463718;color:#ffca43}
:root[data-theme=dark] .customer-detail-kpis .customer-detail-kpi-review strong{color:#ffca43}
:root[data-theme=dark] .customer-detail-kpis .customer-detail-kpi-question .metric-icon{background:#222f59;color:#8ca1ff}
:root[data-theme=dark] .customer-detail-kpis .customer-detail-kpi-question strong{color:#8ca1ff}
:root[data-theme=dark] .customer-detail-kpis .customer-detail-kpi-done .metric-icon{background:#193d2b;color:#9ee83e}
:root[data-theme=dark] .customer-detail-kpis .customer-detail-kpi-done strong{color:#9ed93a}

:root[data-theme=dark] .badge.offen{background:#193d2b;color:#8fe2ad}
:root[data-theme=dark] .badge.in_pruefung,:root[data-theme=dark] .badge.eingereicht{background:#463718;color:#ffd16a}
:root[data-theme=dark] .badge.rueckfrage{background:#222f59;color:#a7b6ff}
:root[data-theme=dark] .badge.erledigt{background:#193d2b;color:#9ee83e}
:root[data-theme=dark] .badge.nicht_erforderlich{background:var(--raised);color:var(--muted)}

/* 1.10.10: Zuständiger Benutzer im Kundenkopf */
.customer-assigned-meta{align-items:center!important}
.customer-assigned-avatar{width:34px;height:34px;flex:none;font-size:.78rem}
.customer-assigned-avatar.avatar-photo{box-shadow:0 0 0 1px var(--line)}

/* 1.10.11: Klickbare Breadcrumbs in der Review-Ansicht */
.breadcrumbs a{color:var(--green);font-weight:600}
.breadcrumbs a:hover{text-decoration:underline}
.breadcrumbs strong{color:var(--text)}
.checklist-section{scroll-margin-top:92px}

/* 1.10.12: Löschrecht und Gefahrenbereich */
.user-rights{margin-top:10px;padding:0;border:0}
.user-rights summary{font-weight:600;color:var(--green)}
.user-right-form{margin-top:10px;padding:12px 14px;border:1px solid var(--line);border-radius:7px;background:var(--raised)}
.user-right-form .checkbox{align-items:flex-start}
.user-right-form .checkbox span{display:flex;flex-direction:column;gap:3px}
.user-right-form .checkbox small{color:var(--muted);font-weight:400}
.user-right-summary{display:flex;align-items:center;gap:8px;margin-top:10px}
.user-right-summary .icon{width:14px;height:14px;margin-right:4px}
.portal-reset-card{grid-column:1/-1;border-color:#e7b7b3}
.portal-reset-card .danger-icon{background:#ffe9e7;color:#a3312a}
.portal-reset-form{max-width:620px}
.portal-reset-form .danger{margin-top:4px}
:root[data-theme=dark] .portal-reset-card{border-color:#6b4542}
:root[data-theme=dark] .portal-reset-card .danger-icon{background:#492a29;color:#ffb7b1}

/* 1.10.13: Kundenzuweisung und Rechteanzeige */
.assignment-form textarea{min-height:84px}
.assignment-right-hint{margin-top:18px}
.profile-rights-list{display:grid;gap:10px}
.profile-rights-list>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}
.profile-rights-list>div:last-child{border-bottom:0}
.profile-rights-list strong,.profile-rights-list small{display:block}
.profile-rights-list small{margin-top:3px;color:var(--muted);font-size:.8rem}
@media(max-width:700px){.profile-rights-list>div{align-items:flex-start;flex-direction:column}}

/* 1.10.14: Letzte Aktivität in Kundenliste verlinken */
.last-activity-action a{color:var(--green);font-weight:600;text-decoration:none}
.last-activity-action a:hover{text-decoration:underline}

/* 1.10.15: Dashboard-Sicht direkt umschalten */
.dashboard-scope-toggle{margin:0}
.dashboard-scope-toggle .badge{border:0;cursor:pointer;font:inherit}
.dashboard-scope-toggle .badge:hover{filter:brightness(.98);box-shadow:0 0 0 1px var(--line)}
.dashboard-refresh-form{max-width:360px}

/* 1.10.17: Einheitliches Profil-/Konfigurationslayout */
.settings-shell{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:22px;
  align-items:start;
  max-width:1500px;
}
.settings-local-nav{
  position:sticky;
  top:82px;
  margin:0;
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.settings-local-title{
  display:block;
  padding:8px 10px 10px;
  color:var(--muted);
  font-size:.72rem;
  font-weight:750;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.settings-local-nav a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:40px;
  padding:9px 10px;
  border-radius:7px;
  color:var(--text);
  font-size:.84rem;
  font-weight:600;
  text-decoration:none;
}
.settings-local-nav a:hover{
  background:var(--raised);
  color:var(--green);
}
.settings-local-nav a .icon{
  width:17px;
  height:17px;
  flex:none;
  color:var(--muted);
}
.settings-local-nav a:hover .icon{color:var(--green)}
.settings-local-divider{
  height:1px;
  margin:7px 5px;
  background:var(--line);
}
.settings-local-nav .danger-link{color:#a3312a}
.settings-local-nav .danger-link .icon{color:#a3312a}

.settings-main-column{
  min-width:0;
  width:100%;
}
.settings-section-card{
  margin-bottom:18px;
  scroll-margin-top:88px;
}
.settings-section-card>.section-head{
  margin-bottom:18px;
}
.settings-section-card>.section-head h2{
  margin:3px 0 4px;
}
.settings-section-card>.section-head .muted{
  display:block;
  font-size:.82rem;
}

.profile-account-grid{
  display:grid;
  grid-template-columns:minmax(260px,.9fr) minmax(360px,1.1fr);
  gap:28px;
  align-items:start;
}
.profile-identity{
  display:flex;
  align-items:center;
  gap:18px;
  min-width:0;
}
.profile-identity>div{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:5px;
  min-width:0;
}
.profile-identity strong{
  font-size:1rem;
}
.profile-identity>div>span:not(.badge){
  color:var(--muted);
  font-size:.84rem;
  overflow-wrap:anywhere;
}
.profile-photo-actions{
  padding-left:28px;
  border-left:1px solid var(--line);
}
.profile-photo-actions h3,
.profile-setting-block h3{
  margin:0 0 8px;
  font-size:.95rem;
}
.profile-password-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.profile-password-form .form-actions{
  margin-top:16px;
}
.profile-dashboard-grid{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);
  gap:28px;
}
.profile-setting-block+.profile-setting-block{
  padding-left:28px;
  border-left:1px solid var(--line);
}
.profile-setting-block .dashboard-scope-options{
  margin-top:12px;
}
.profile-setting-block .dashboard-refresh-form{
  max-width:none;
}
.profile-setting-block .dashboard-refresh-form label{
  margin-bottom:12px;
}

.system-settings-shell .settings-config-page{
  margin:0;
}
.settings-config-stack{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:18px!important;
}
.settings-config-stack>.config-card{
  grid-column:auto!important;
  margin:0;
}
.system-settings-shell .config-overview-card{
  margin-bottom:18px;
}
.system-settings-shell .portal-reset-card{
  grid-column:auto;
}

:root[data-theme=dark] .settings-local-nav .danger-link{color:#ffaaa4}
:root[data-theme=dark] .settings-local-nav .danger-link .icon{color:#ffaaa4}

@media(max-width:1050px){
  .settings-shell{grid-template-columns:1fr}
  .settings-local-nav{
    position:static;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    gap:5px;
  }
  .settings-local-title{width:100%;padding-bottom:5px}
  .settings-local-divider{width:1px;height:28px;margin:0 4px}
  .settings-local-nav a{min-height:36px}
}
@media(max-width:760px){
  .profile-account-grid,
  .profile-dashboard-grid,
  .profile-password-grid{grid-template-columns:1fr}
  .profile-photo-actions,
  .profile-setting-block+.profile-setting-block{
    padding-left:0;
    padding-top:20px;
    border-left:0;
    border-top:1px solid var(--line);
  }
}
@media(max-width:620px){
  .settings-local-nav{display:grid;grid-template-columns:1fr 1fr}
  .settings-local-title,.settings-local-divider{grid-column:1/-1}
  .settings-local-divider{width:100%;height:1px;margin:4px 0}
  .settings-local-nav a{min-width:0}
}

/* 1.10.18: Bereichsnavigation horizontal oberhalb des Inhalts */
.settings-shell{
  display:block;
  max-width:1500px;
}
.settings-top-nav{
  position:sticky;
  top:64px;
  z-index:8;
  margin:0 0 18px;
  padding:8px;
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:5px;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:thin;
}
.settings-top-nav .settings-local-title,
.settings-top-nav .settings-local-divider{
  display:none;
}
.settings-top-nav a{
  flex:0 0 auto;
  min-height:38px;
  padding:9px 13px;
  white-space:nowrap;
}
.settings-top-nav a.is-active{
  background:var(--green-soft);
  color:var(--green);
  box-shadow:inset 0 0 0 1px var(--line);
}
.settings-top-nav a.is-active .icon{
  color:var(--green);
}
.settings-top-nav .danger-link{
  margin-left:auto;
  background:#fff1ef;
  color:#a3312a;
}
.settings-top-nav .danger-link .icon{
  color:#a3312a;
}
.settings-main-column{
  width:100%;
}
.settings-section-card{
  scroll-margin-top:128px;
}
:root[data-theme=dark] .settings-top-nav .danger-link{
  background:#492a29;
  color:#ffaaa4;
}
:root[data-theme=dark] .settings-top-nav .danger-link .icon{
  color:#ffaaa4;
}
@media(max-width:1050px){
  .settings-top-nav{
    position:sticky;
    top:64px;
    flex-wrap:nowrap;
  }
  .settings-top-nav .danger-link{
    margin-left:0;
  }
}
@media(max-width:620px){
  .settings-top-nav{
    display:flex;
    grid-template-columns:none;
  }
}

/* 1.10.19: Vollständige interne Benutzerverwaltung */
.internal-user-admin{
  margin-top:12px;
  padding:0;
  border:0;
}
.internal-user-admin>summary{
  font-weight:650;
  color:var(--green);
}
.internal-user-edit-form{
  margin-top:12px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--raised);
}
.internal-user-edit-form .form-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin-bottom:12px;
}
.internal-user-delete{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--line);
}
.internal-user-delete-form{
  display:flex;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
}
.internal-user-delete-form label{
  min-width:280px;
  flex:1;
  margin:0;
}
@media(max-width:800px){
  .internal-user-edit-form .form-grid{grid-template-columns:1fr}
  .internal-user-delete-form{align-items:stretch;flex-direction:column}
  .internal-user-delete-form label{min-width:0;width:100%}
}


/* 1.10.22: Dateivorschau als Lightbox */
.file-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.file-preview-lightbox[hidden]{display:none!important}
.file-preview-lightbox{
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  place-items:center;
  padding:24px;
}
.file-preview-backdrop{
  position:absolute;
  inset:0;
  background:rgba(10,16,20,.78);
  backdrop-filter:blur(2px);
}
.file-preview-dialog{
  position:relative;
  z-index:1;
  width:min(1180px,calc(100vw - 48px));
  height:min(86vh,900px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
  box-shadow:0 28px 80px rgba(0,0,0,.32);
}
.file-preview-dialog>header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:16px 18px;
  border-bottom:1px solid var(--line);
}
.file-preview-dialog>header h2{margin:3px 0 0;font-size:1.05rem;overflow-wrap:anywhere}
.file-preview-head-actions{display:flex;align-items:center;gap:8px;flex:none}
.file-preview-body{
  flex:1;
  min-height:0;
  display:grid;
  place-items:center;
  overflow:auto;
  background:var(--raised);
}
.file-preview-frame{
  width:100%;
  height:100%;
  border:0;
  background:#fff;
}
.file-preview-image{
  display:block;
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  margin:auto;
  padding:18px;
}
body.file-preview-open{overflow:hidden}
@media(max-width:700px){
  .file-preview-lightbox{padding:8px}
  .file-preview-dialog{width:calc(100vw - 16px);height:calc(100vh - 16px);border-radius:9px}
  .file-preview-dialog>header{padding:12px;gap:10px}
  .file-preview-head-actions .btn{display:none}
  .file-row{align-items:flex-start}
}


/* 1.10.24: Serverseitige KI-Textoptimierung in page=review */
.text-optimizer-actions{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:34px;
  margin:-4px 0 12px;
}
.text-optimize-button{
  flex:none;
}
.text-optimize-button span{
  color:var(--green);
  font-size:1rem;
  line-height:1;
}
.text-optimize-button.is-busy span{
  display:inline-block;
  animation:text-optimizer-spin 1s linear infinite;
}
.text-optimizer-status{
  color:var(--muted);
  font-size:.75rem;
  line-height:1.35;
}
.text-optimizer-dialog{
  width:min(760px,calc(100vw - 32px));
  max-height:min(82vh,760px);
  padding:0;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--text);
}
.text-optimizer-dialog::backdrop{
  background:rgba(10,16,20,.72);
  backdrop-filter:blur(2px);
}
.text-optimizer-dialog-card{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
  box-shadow:0 24px 70px rgba(0,0,0,.32);
}
.text-optimizer-dialog-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding:18px 20px;
  border-bottom:1px solid var(--line);
}
.text-optimizer-dialog-head h3{
  margin:0 0 4px;
  font-size:1rem;
}
.text-optimizer-dialog-head p{
  margin:0;
  color:var(--muted);
  font-size:.78rem;
}
.text-optimizer-dialog-close{
  width:34px;
  height:34px;
  flex:none;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--raised);
  color:var(--text)!important;
  font-size:1.3rem;
}
.text-optimizer-preview{
  max-height:52vh;
  overflow:auto;
  margin:18px 20px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--raised);
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-size:.88rem;
  line-height:1.55;
}
.text-optimizer-dialog-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:0 20px 18px;
}
@keyframes text-optimizer-spin{to{transform:rotate(360deg)}}
@media(max-width:600px){
  .text-optimizer-actions{align-items:flex-start;flex-direction:column}
  .text-optimizer-dialog-actions{flex-direction:column-reverse}
  .text-optimizer-dialog-actions button{width:100%;justify-content:center}
}


/* 2FA / TOTP enrollment */
.totp-enroll-grid{
  display:grid;
  grid-template-columns:minmax(240px,280px) minmax(0,1fr);
  gap:24px;
  align-items:start;
  margin:20px 0;
}
.totp-qr-card,
.totp-manual-card{
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  background:var(--surface);
}
.totp-qr-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  text-align:center;
}
.totp-qr{
  width:252px;
  max-width:100%;
  min-height:252px;
  display:grid;
  place-items:center;
  padding:16px;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(15,23,42,.12);
  overflow:hidden;
}
.totp-qr canvas,
.totp-qr img{
  display:block;
  max-width:100%;
  width:220px;
  height:220px;
}
.totp-qr-error{
  color:#7f1d1d;
  font-size:.9rem;
  line-height:1.45;
}
.totp-manual-card .secret-key{
  margin:12px 0 16px;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.totp-details{
  margin:0;
  display:grid;
  gap:8px;
}
.totp-details>div{
  display:grid;
  grid-template-columns:90px minmax(0,1fr);
  gap:12px;
  align-items:baseline;
}
.totp-details dt{
  color:var(--muted);
  font-size:.86rem;
}
.totp-details dd{
  margin:0;
  font-weight:600;
  overflow-wrap:anywhere;
}
.totp-setup-form{
  max-width:520px;
}
@media (max-width:760px){
  .totp-enroll-grid{grid-template-columns:1fr}
  .totp-qr-card{justify-self:stretch}
}


/* 1.10.31 - Checklisten-Sprungpunkte in der Mitarbeiter-Sidebar */
.sidebar-customer-jumps{margin-top:10px;padding-top:12px;border-top:1px solid var(--line);display:grid;gap:6px}
.sidebar-customer-jumps-head{display:flex;gap:10px;align-items:flex-start;padding:7px 10px 9px;color:var(--text)}
.sidebar-customer-jumps-head>.icon{width:18px;height:18px;color:var(--green);margin-top:2px}
.sidebar-customer-jumps-head span:last-child{min-width:0}
.sidebar-customer-jumps-head small{display:block;color:var(--muted);font-size:.62rem;letter-spacing:.08em;margin-bottom:2px}
.sidebar-customer-jumps-head strong{display:block;font-size:.72rem;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:155px}
.sidebar-jump-group{display:grid;gap:1px}
.sidebar-jump-section,.sidebar-jump-item{display:flex;align-items:center;text-decoration:none;border-radius:5px;color:var(--muted)}
.sidebar-jump-section{gap:8px;padding:7px 9px;font-size:.75rem;font-weight:650}
.sidebar-jump-section>.icon{width:15px;height:15px;color:var(--green);flex:none}
.sidebar-jump-section:hover,.sidebar-jump-section.is-active{background:var(--raised);color:var(--text);text-decoration:none}
.sidebar-jump-items{display:grid;gap:1px;margin:0 0 4px 27px;border-left:1px solid var(--line);padding-left:7px}
.sidebar-jump-item{padding:5px 7px;font-size:.7rem;line-height:1.25}
.sidebar-jump-item:hover,.sidebar-jump-item.is-active{background:var(--green-soft);color:var(--green);text-decoration:none}
.checklist-section,.checklist-item{scroll-margin-top:94px}
body.sidebar-collapsed .sidebar-customer-jumps{display:none!important}
@media(max-width:980px){
  .sidebar-customer-jumps{margin-bottom:12px}
  .sidebar-customer-jumps-head strong{max-width:190px}
}


/* 1.10.34 - dezente Bearbeitungsstatus-Icons in der Checklisten-Sprungnavigation */
.sidebar-jump-section,.sidebar-jump-item{min-width:0}
.sidebar-jump-label{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis}
.sidebar-status-icon{display:inline-grid;place-items:center;width:14px;height:14px;min-width:14px;margin-left:6px;color:var(--muted);opacity:.72;transition:opacity .15s ease,color .15s ease}
.sidebar-status-icon .icon{width:12px!important;height:12px!important;stroke-width:1.8}
.sidebar-jump-section:hover .sidebar-status-icon,.sidebar-jump-item:hover .sidebar-status-icon,.sidebar-jump-section.is-active .sidebar-status-icon,.sidebar-jump-item.is-active .sidebar-status-icon{opacity:1}
.sidebar-status-icon.status-erledigt{color:#16844a;opacity:.9}
.sidebar-status-icon.status-in_pruefung{color:#a87818}
.sidebar-status-icon.status-rueckfrage{color:#b6534b;opacity:.88}
.sidebar-status-icon.status-eingereicht{color:#6a8392}
.sidebar-status-icon.status-nicht_erforderlich{color:#7a858b}
.sidebar-status-icon.status-offen{color:var(--muted);opacity:.48}
:root[data-theme=dark] .sidebar-status-icon.status-erledigt{color:#6fd49a}
:root[data-theme=dark] .sidebar-status-icon.status-in_pruefung{color:#e0b766}
:root[data-theme=dark] .sidebar-status-icon.status-rueckfrage{color:#e28780}
:root[data-theme=dark] .sidebar-status-icon.status-eingereicht{color:#93afbf}
:root[data-theme=dark] .sidebar-status-icon.status-nicht_erforderlich{color:#9aa6ac}


/* 1.10.35 - Status-Icons direkt in der internen Checkliste */
.checklist-status-wrap{display:inline-flex;align-items:center;gap:6px;flex:none}
.checklist-status-icon{display:inline-grid;place-items:center;width:15px;height:15px;min-width:15px;color:var(--muted);opacity:.72;transition:opacity .15s ease,color .15s ease}
.checklist-status-icon .icon{width:13px!important;height:13px!important;stroke-width:1.8}
.checklist-status-wrap:hover .checklist-status-icon{opacity:1}
.checklist-status-icon.status-erledigt{color:#16844a;opacity:.9}
.checklist-status-icon.status-in_pruefung{color:#a87818}
.checklist-status-icon.status-rueckfrage{color:#b6534b;opacity:.88}
.checklist-status-icon.status-eingereicht{color:#6a8392}
.checklist-status-icon.status-nicht_erforderlich{color:#7a858b}
.checklist-status-icon.status-offen{color:var(--muted);opacity:.48}
:root[data-theme=dark] .checklist-status-icon.status-erledigt{color:#6fd49a}
:root[data-theme=dark] .checklist-status-icon.status-in_pruefung{color:#e0b766}
:root[data-theme=dark] .checklist-status-icon.status-rueckfrage{color:#e28780}
:root[data-theme=dark] .checklist-status-icon.status-eingereicht{color:#93afbf}
:root[data-theme=dark] .checklist-status-icon.status-nicht_erforderlich{color:#9aa6ac}
@media(max-width:700px){.checklist-status-wrap{gap:5px}}


/* 1.10.36 - KPI-Icons an die Bearbeitungsstatus-Symbole angepasst */
.customer-detail-kpis .customer-detail-kpi .metric-icon{width:38px;height:38px;border-radius:8px;background:transparent;border:1px solid var(--line);box-shadow:none}
.customer-detail-kpis .customer-detail-kpi .metric-icon .icon{width:18px;height:18px;stroke-width:1.8}
.customer-detail-kpis .customer-detail-kpi-open .metric-icon{color:var(--muted);background:transparent;border-color:var(--line)}
.customer-detail-kpis .customer-detail-kpi-review .metric-icon{color:#a87818;background:transparent;border-color:rgba(168,120,24,.28)}
.customer-detail-kpis .customer-detail-kpi-question .metric-icon{color:#b6534b;background:transparent;border-color:rgba(182,83,75,.28)}
.customer-detail-kpis .customer-detail-kpi-done .metric-icon{color:#16844a;background:transparent;border-color:rgba(22,132,74,.28)}
.customer-detail-kpis .customer-detail-kpi-open strong{color:var(--text)}
.customer-detail-kpis .customer-detail-kpi-review strong{color:#a87818}
.customer-detail-kpis .customer-detail-kpi-question strong{color:#b6534b}
.customer-detail-kpis .customer-detail-kpi-done strong{color:#16844a}
.customer-detail-kpis .customer-detail-kpi-open:after{background:var(--line)}
.customer-detail-kpis .customer-detail-kpi-review:after{background:#a87818}
.customer-detail-kpis .customer-detail-kpi-question:after{background:#b6534b}
.customer-detail-kpis .customer-detail-kpi-done:after{background:#16844a}
:root[data-theme=dark] .customer-detail-kpis .customer-detail-kpi-open .metric-icon{color:var(--muted);background:transparent;border-color:var(--line)}
:root[data-theme=dark] .customer-detail-kpis .customer-detail-kpi-review .metric-icon{color:#e0b766;background:transparent;border-color:rgba(224,183,102,.3)}
:root[data-theme=dark] .customer-detail-kpis .customer-detail-kpi-question .metric-icon{color:#e28780;background:transparent;border-color:rgba(226,135,128,.3)}
:root[data-theme=dark] .customer-detail-kpis .customer-detail-kpi-done .metric-icon{color:#6fd49a;background:transparent;border-color:rgba(111,212,154,.3)}
:root[data-theme=dark] .customer-detail-kpis .customer-detail-kpi-open strong{color:var(--text)}
:root[data-theme=dark] .customer-detail-kpis .customer-detail-kpi-review strong{color:#e0b766}
:root[data-theme=dark] .customer-detail-kpis .customer-detail-kpi-question strong{color:#e28780}
:root[data-theme=dark] .customer-detail-kpis .customer-detail-kpi-done strong{color:#6fd49a}


/* 1.10.38 - Demo-Kundenzugang in der Verwaltung */
.demo-login-card{margin:18px 0;padding:16px 18px}
.demo-login-card .section-head{margin-bottom:12px}
.demo-login-card h3{margin:3px 0 0}
.demo-login-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:10px 0 12px}
.demo-login-grid>div{display:grid;gap:4px;padding:10px 12px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}
.demo-login-grid code{font-size:.9rem;word-break:break-all}
@media(max-width:700px){.demo-login-grid{grid-template-columns:1fr}}


/* 1.10.39 - Bearbeitungsstatus-Icons in der Kundensicht */
.customer-checklist-status{display:inline-flex;align-items:center;gap:6px;flex:none}
.nav-item .sidebar-status-icon{margin-left:auto}
.nav-item .sidebar-status-icon + .counter{margin-left:6px}
@media(max-width:700px){.customer-checklist-status{gap:5px}}


/* 1.10.40 - Statusfarben im Kundenmenü stabil + Status im eingeklappten Menü */
.nav-item .sidebar-status-icon .icon,
.nav-item:hover .sidebar-status-icon .icon,
.nav-item.active .sidebar-status-icon .icon{
  color:inherit!important;
}
.nav-item:hover .sidebar-status-icon,
.nav-item.active .sidebar-status-icon{
  color:inherit;
}
.nav-item:hover .sidebar-status-icon.status-erledigt,
.nav-item.active .sidebar-status-icon.status-erledigt{color:#16844a}
.nav-item:hover .sidebar-status-icon.status-in_pruefung,
.nav-item.active .sidebar-status-icon.status-in_pruefung{color:#a87818}
.nav-item:hover .sidebar-status-icon.status-rueckfrage,
.nav-item.active .sidebar-status-icon.status-rueckfrage{color:#b6534b}
.nav-item:hover .sidebar-status-icon.status-eingereicht,
.nav-item.active .sidebar-status-icon.status-eingereicht{color:#6a8392}
.nav-item:hover .sidebar-status-icon.status-nicht_erforderlich,
.nav-item.active .sidebar-status-icon.status-nicht_erforderlich{color:#7a858b}
.nav-item:hover .sidebar-status-icon.status-offen,
.nav-item.active .sidebar-status-icon.status-offen{color:var(--muted)}
:root[data-theme=dark] .nav-item:hover .sidebar-status-icon.status-erledigt,
:root[data-theme=dark] .nav-item.active .sidebar-status-icon.status-erledigt{color:#6fd49a}
:root[data-theme=dark] .nav-item:hover .sidebar-status-icon.status-in_pruefung,
:root[data-theme=dark] .nav-item.active .sidebar-status-icon.status-in_pruefung{color:#e0b766}
:root[data-theme=dark] .nav-item:hover .sidebar-status-icon.status-rueckfrage,
:root[data-theme=dark] .nav-item.active .sidebar-status-icon.status-rueckfrage{color:#e28780}
:root[data-theme=dark] .nav-item:hover .sidebar-status-icon.status-eingereicht,
:root[data-theme=dark] .nav-item.active .sidebar-status-icon.status-eingereicht{color:#93afbf}
:root[data-theme=dark] .nav-item:hover .sidebar-status-icon.status-nicht_erforderlich,
:root[data-theme=dark] .nav-item.active .sidebar-status-icon.status-nicht_erforderlich{color:#9aa6ac}

body.sidebar-collapsed .sidebar .nav-item>.sidebar-status-icon{
  display:inline-grid!important;
  position:absolute;
  right:5px;
  bottom:5px;
  width:13px;
  height:13px;
  min-width:13px;
  margin:0;
  padding:0;
  border-radius:50%;
  background:var(--surface);
  box-shadow:0 0 0 2px var(--surface);
  z-index:2;
}
body.sidebar-collapsed .sidebar .nav-item>.sidebar-status-icon .icon{
  width:11px!important;
  height:11px!important;
  stroke-width:2;
}
body.sidebar-collapsed .sidebar .nav-item.active>.sidebar-status-icon{
  background:var(--raised);
  box-shadow:0 0 0 2px var(--raised);
}
@media(max-width:980px){
  body.sidebar-collapsed .sidebar .nav-item>.sidebar-status-icon{
    position:static;
    margin-left:auto;
    width:14px;
    height:14px;
    min-width:14px;
    background:transparent;
    box-shadow:none;
  }
}


/* 1.10.41 - moderne, ruhige Pill-Badges */
.badge{
  gap:6px;
  min-height:24px;
  padding:3px 9px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--raised);
  color:var(--muted);
  font-size:.74rem;
  font-weight:650;
  line-height:1.2;
  letter-spacing:.005em;
  box-shadow:0 1px 1px rgba(20,35,30,.025);
}
.badge:not(.message-new-badge)::before{
  content:"";
  width:7px;
  height:7px;
  min-width:7px;
  border-radius:50%;
  background:currentColor;
  opacity:.82;
  box-shadow:0 0 0 2px rgba(127,127,127,.08);
}
.badge.offen{
  background:#f5f7f8;
  border-color:#d9e0e4;
  color:#68767f;
}
.badge.eingereicht{
  background:#eef6ff;
  border-color:#c9def7;
  color:#2f73b8;
}
.badge.in_pruefung{
  background:#fff8e8;
  border-color:#efd79b;
  color:#9a6a00;
}
.badge.rueckfrage{
  background:#fff1ee;
  border-color:#efc0b8;
  color:#b3473e;
}
.badge.erledigt{
  background:#edf9f1;
  border-color:#bfe3ca;
  color:#16844a;
}
.badge.nicht_erforderlich{
  background:#f4f6f7;
  border-color:#d9e0e4;
  color:#738087;
}

/* Rollen */
.badge.role-system_owner{
  background:#edf5ff;
  border-color:#bcd5f5;
  color:#2468bd;
}
.badge.role-admin{
  background:#f3efff;
  border-color:#d5c8f8;
  color:#7450c9;
}
.badge.role-mitarbeiter{
  background:#ecf8fa;
  border-color:#b7e1e7;
  color:#187f8e;
}
.badge.role-kunde{
  background:#edf9f1;
  border-color:#bfe3ca;
  color:#16844a;
}

/* Kundenstatus / Zugang / Demo */
.badge.demo{
  background:#fff0f6;
  border-color:#f3bfd2;
  color:#c23f76;
}
.badge.stage-neu{
  background:#eef6ff;
  border-color:#c9def7;
  color:#2f73b8;
}
.badge.stage-in_bearbeitung{
  background:#fff8e8;
  border-color:#efd79b;
  color:#9a6a00;
}
.badge.stage-installation{
  background:#f1f3ff;
  border-color:#ced3f4;
  color:#5b67b5;
}
.badge.stage-abgeschlossen{
  background:#edf9f1;
  border-color:#bfe3ca;
  color:#16844a;
}
.badge.access-active{
  background:#edf9f1;
  border-color:#bfe3ca;
  color:#16844a;
}
.badge.access-pending{
  background:#fff8e8;
  border-color:#efd79b;
  color:#9a6a00;
}
.badge.access-expired{
  background:#fff1ee;
  border-color:#efc0b8;
  color:#b3473e;
}
.badge.access-disabled,
.badge.access-inactive{
  background:#f4f6f7;
  border-color:#d9e0e4;
  color:#738087;
}

/* spezielle kompakte Badges ohne Statuspunkt */
.message-new-badge{
  min-height:20px;
  padding:2px 7px;
  border:0;
  border-radius:999px;
  box-shadow:none;
}

/* Dark Mode */
:root[data-theme=dark] .badge{
  background:#202a30;
  border-color:#39474f;
  color:#aebbc2;
  box-shadow:none;
}
:root[data-theme=dark] .badge.offen,
:root[data-theme=dark] .badge.nicht_erforderlich,
:root[data-theme=dark] .badge.access-disabled,
:root[data-theme=dark] .badge.access-inactive{
  background:#202a30;
  border-color:#3b4951;
  color:#a6b3ba;
}
:root[data-theme=dark] .badge.eingereicht,
:root[data-theme=dark] .badge.stage-neu,
:root[data-theme=dark] .badge.role-system_owner{
  background:#162b42;
  border-color:#28567f;
  color:#65b2ff;
}
:root[data-theme=dark] .badge.in_pruefung,
:root[data-theme=dark] .badge.stage-in_bearbeitung,
:root[data-theme=dark] .badge.access-pending{
  background:#342d19;
  border-color:#675820;
  color:#f2c253;
}
:root[data-theme=dark] .badge.stage-installation{
  background:#23263f;
  border-color:#444a78;
  color:#9ba4ff;
}
:root[data-theme=dark] .badge.rueckfrage,
:root[data-theme=dark] .badge.access-expired{
  background:#3a2321;
  border-color:#6c3b36;
  color:#ee8f86;
}
:root[data-theme=dark] .badge.erledigt,
:root[data-theme=dark] .badge.stage-abgeschlossen,
:root[data-theme=dark] .badge.access-active,
:root[data-theme=dark] .badge.role-kunde{
  background:#173426;
  border-color:#2f6548;
  color:#6fd49a;
}
:root[data-theme=dark] .badge.role-admin{
  background:#2a2240;
  border-color:#54447b;
  color:#b99cf3;
}
:root[data-theme=dark] .badge.role-mitarbeiter{
  background:#17343a;
  border-color:#2e6770;
  color:#67ccd8;
}
:root[data-theme=dark] .badge.demo{
  background:#3a1f2c;
  border-color:#713653;
  color:#ef83af;
}


/* 1.10.42 - Seitenanfang-Schaltfläche wie Referenz */
.scroll-top-button{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:70;
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  padding:0;
  border:1px solid rgba(255,255,255,.08);
  border-radius:3px;
  background:#233746;
  color:#fff!important;
  box-shadow:0 4px 14px rgba(10,24,31,.18);
  opacity:0;
  visibility:hidden;
  transform:translateY(6px);
  transition:opacity .16s ease,transform .16s ease,visibility .16s ease,background .16s ease;
}
.scroll-top-button.is-visible{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.scroll-top-button:hover,
.scroll-top-button:focus-visible{
  background:#1d303e;
  color:#fff!important;
  filter:none;
}
.scroll-top-chevron{
  display:grid;
  place-items:center;
  width:20px;
  height:20px;
  transform:rotate(180deg);
}
.scroll-top-chevron .icon{
  width:18px;
  height:18px;
  stroke-width:2.2;
}
body.sidebar-collapsed .scroll-top-button{right:22px}
@media(max-width:980px){
  .scroll-top-button{right:16px;bottom:16px;width:40px;height:40px}
}


/* 1.10.44 - Review-Navigation und moderne Statusauswahl */
.sidebar-jump-section.current-review-section{
  position:relative;
  background:var(--raised);
  color:var(--text);
}
.sidebar-jump-section.current-review-section::before{
  content:"";
  position:absolute;
  left:0;
  top:6px;
  bottom:6px;
  width:3px;
  border-radius:0 3px 3px 0;
  background:var(--bright);
}
.sidebar-jump-item.current-review-item{
  position:relative;
  background:var(--green-soft)!important;
  color:var(--green)!important;
  font-weight:700;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--green) 18%,transparent);
}
.sidebar-jump-item.current-review-item::before{
  content:"";
  position:absolute;
  left:-8px;
  top:4px;
  bottom:4px;
  width:3px;
  border-radius:3px;
  background:var(--bright);
}
:root[data-theme=dark] .sidebar-jump-item.current-review-item{
  background:rgba(129,185,20,.13)!important;
  box-shadow:inset 0 0 0 1px rgba(129,185,20,.22);
}

/* Prüfung: Statuskarten an Badge-Stil angepasst */
.review-panel{
  --review-status-accent:var(--line);
  border-left:3px solid var(--review-status-accent);
  transition:border-color .15s ease;
}
.review-panel:has(.status-option.status-offen input:checked){--review-status-accent:#7a858b}
.review-panel:has(.status-option.status-eingereicht input:checked){--review-status-accent:#2f73b8}
.review-panel:has(.status-option.status-in_pruefung input:checked){--review-status-accent:#d69a12}
.review-panel:has(.status-option.status-rueckfrage input:checked){--review-status-accent:#c65348}
.review-panel:has(.status-option.status-erledigt input:checked){--review-status-accent:#16844a}
.review-panel:has(.status-option.status-nicht_erforderlich input:checked){--review-status-accent:#7a858b}

.status-choice{display:grid;gap:8px}
.status-option{
  position:relative;
  gap:11px;
  padding:10px 12px 10px 13px;
  margin:0;
  border-radius:8px;
  background:var(--surface);
  overflow:hidden;
  transition:background .14s ease,border-color .14s ease,box-shadow .14s ease,transform .14s ease;
}
.status-option::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:3px;
  background:var(--line);
}
.status-option.status-offen::before{background:#7a858b}
.status-option.status-eingereicht::before{background:#2f73b8}
.status-option.status-in_pruefung::before{background:#d69a12}
.status-option.status-rueckfrage::before{background:#c65348}
.status-option.status-erledigt::before{background:#16844a}
.status-option.status-nicht_erforderlich::before{background:#7a858b}
.status-option:hover{transform:translateY(-1px);box-shadow:0 3px 10px rgba(18,34,42,.06)}
.status-option input{accent-color:var(--green)}
.status-option-copy{display:flex!important;align-items:center;justify-content:space-between;gap:10px;width:100%;min-width:0}
.status-option-copy .badge{flex:none}
.status-option-copy small{margin:0!important;text-align:right;line-height:1.3}
.status-option:has(input:checked){
  border-color:color-mix(in srgb,var(--review-status-accent) 52%,var(--line));
  box-shadow:0 0 0 1px color-mix(in srgb,var(--review-status-accent) 38%,transparent) inset;
  background:color-mix(in srgb,var(--review-status-accent) 7%,var(--surface));
}
.status-option:has(input:checked)::before{width:4px}
:root[data-theme=dark] .status-option:has(input:checked){
  background:color-mix(in srgb,var(--review-status-accent) 12%,var(--surface));
}
@media(max-width:700px){
  .status-option-copy{align-items:flex-start;flex-direction:column;gap:4px}
  .status-option-copy small{text-align:left}
}


/* 1.10.45 - dezente Checklisten-Ueberschrift im Kundenmenue */
.customer-nav-heading{
  display:flex;
  align-items:center;
  gap:8px;
  margin:8px 7px 1px;
  padding:8px 6px 5px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:.66rem;
  font-weight:700;
  letter-spacing:.085em;
  text-transform:uppercase;
  user-select:none;
}
.customer-nav-heading>span:first-child{
  display:grid;
  place-items:center;
  color:var(--green);
}
.customer-nav-heading .icon{
  width:13px;
  height:13px;
  stroke-width:1.8;
}
body.sidebar-collapsed .sidebar .customer-nav-heading{
  display:none!important;
}
@media(max-width:980px){
  body.sidebar-collapsed .sidebar .customer-nav-heading{
    display:flex!important;
  }
}


/* 1.10.48 - Nachrichtenzaehler in der Kundenakte */
.tabs a{display:inline-flex;align-items:center;gap:7px}
.tab-counter{
  display:inline-grid;
  place-items:center;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  background:var(--green);
  color:#fff;
  font-size:.68rem;
  font-weight:750;
  line-height:1;
}
.tabs a.active .tab-counter{
  box-shadow:0 0 0 2px var(--surface);
}
:root[data-theme=dark] .tab-counter{
  background:var(--bright);
  color:#17231a;
}


/* 1.10.49 - Bereichsakzent der Checkliste folgt der Badge-Farbe */
.checklist-section{
  position:relative;
}
.checklist-section::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:3px;
  z-index:3;
  background:var(--line);
}
.checklist-section.status-offen::before{background:#68767f}
.checklist-section.status-eingereicht::before{background:#2f73b8}
.checklist-section.status-in_pruefung::before{background:#9a6a00}
.checklist-section.status-rueckfrage::before{background:#b3473e}
.checklist-section.status-erledigt::before{background:#16844a}
.checklist-section.status-nicht_erforderlich::before{background:#738087}

:root[data-theme=dark] .checklist-section.status-offen::before{background:#a6b3ba}
:root[data-theme=dark] .checklist-section.status-eingereicht::before{background:#65b2ff}
:root[data-theme=dark] .checklist-section.status-in_pruefung::before{background:#f2c253}
:root[data-theme=dark] .checklist-section.status-rueckfrage::before{background:#ee8f86}
:root[data-theme=dark] .checklist-section.status-erledigt::before{background:#6fd49a}
:root[data-theme=dark] .checklist-section.status-nicht_erforderlich::before{background:#a6b3ba}


/* 1.10.50 - Checklistenakzente bereinigt und an Badge-Farben angeglichen */
.checklist-next-step{
  margin:5px 0 0;
  padding:0;
  border:0;
  display:block;
  color:var(--muted);
  font-size:.82rem;
  line-height:1.4;
}

/* Einzelne Checklistenpunkte verwenden exakt die Statusfarben der modernen Badges */
.checklist-item::before{background:#68767f}
.checklist-item.status-offen::before{background:#68767f}
.checklist-item.status-eingereicht::before{background:#2f73b8}
.checklist-item.status-in_pruefung::before{background:#9a6a00}
.checklist-item.status-rueckfrage::before{background:#b3473e}
.checklist-item.status-erledigt::before{background:#16844a}
.checklist-item.status-nicht_erforderlich::before{background:#738087}

:root[data-theme=dark] .checklist-item.status-offen::before{background:#a6b3ba}
:root[data-theme=dark] .checklist-item.status-eingereicht::before{background:#65b2ff}
:root[data-theme=dark] .checklist-item.status-in_pruefung::before{background:#f2c253}
:root[data-theme=dark] .checklist-item.status-rueckfrage::before{background:#ee8f86}
:root[data-theme=dark] .checklist-item.status-erledigt::before{background:#6fd49a}
:root[data-theme=dark] .checklist-item.status-nicht_erforderlich::before{background:#a6b3ba}


/* 1.10.53 - dynamische Filial-/Mitarbeiterfelder */
.repeatable select{min-width:150px;width:100%}
.repeatable input[data-employee-birthday]{min-width:120px}


/* 1.10.54 - Steuernummer-Pruefung / ELSTER-Umrechnung */
input[data-tax-number-elster][readonly]{
  background:var(--raised);
  color:var(--text);
  font-weight:650;
  letter-spacing:.04em;
}
input[data-tax-number]:invalid{
  border-color:#b3473e;
}


/* 1.10.55 - Unternehmensart / dynamische Unternehmensdaten */
.company-type-choice{
  border:0;
  padding:0;
  margin:0;
}
.company-type-choice legend{
  font-weight:650;
  margin-bottom:.55rem;
}
.company-type-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.75rem;
}
.company-type-option{
  display:flex;
  align-items:flex-start;
  gap:.7rem;
  padding:.9rem 1rem;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--raised);
  cursor:pointer;
  transition:border-color .15s ease,background .15s ease,box-shadow .15s ease;
}
.company-type-option:hover{
  border-color:var(--accent);
}
.company-type-option:has(input:checked){
  border-color:var(--accent);
  box-shadow:0 0 0 1px var(--accent);
}
.company-type-option input{
  margin-top:.22rem;
  flex:0 0 auto;
}
.company-type-option span{
  display:flex;
  flex-direction:column;
  gap:.2rem;
}
.company-type-option small{
  color:var(--muted);
  font-weight:400;
}
[data-company-field][hidden],
.is-company-hidden{
  display:none !important;
}
input[data-tax-id]:invalid,
input[data-person-birthday]:invalid{
  border-color:#b3473e;
}
@media (max-width:720px){
  .company-type-options{grid-template-columns:1fr}
}


/* 1.10.56 - Passwort anzeigen / zuständiger Mitarbeiter im Kundendashboard */
.field-block{
  display:flex;
  flex-direction:column;
  gap:.38rem;
}
.password-input-wrap{
  position:relative;
  display:flex;
  align-items:center;
}
.password-input-wrap input{
  width:100%;
  padding-right:2.9rem;
}
.password-toggle{
  position:absolute;
  right:.45rem;
  top:50%;
  transform:translateY(-50%);
  width:2rem;
  height:2rem;
  display:grid;
  place-items:center;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
}
.password-toggle:hover,
.password-toggle:focus-visible,
.password-toggle.is-visible{
  background:var(--raised);
  color:var(--text);
}
.password-toggle .icon{
  width:1.15rem;
  height:1.15rem;
}

.customer-contact-card{
  display:flex;
  align-items:center;
  gap:1rem;
  margin-bottom:1rem;
}
.customer-contact-icon{
  flex:0 0 auto;
}
.customer-contact-avatar{
  width:3.25rem;
  height:3.25rem;
  font-size:1.1rem;
}
.customer-contact-main{
  min-width:0;
  flex:1 1 auto;
}
.customer-contact-main h2{
  margin:.15rem 0 .5rem;
}
.customer-contact-meta{
  display:flex;
  flex-wrap:wrap;
  gap:.7rem 1.4rem;
}
.customer-contact-meta>span{
  display:flex;
  align-items:center;
  gap:.5rem;
  min-width:0;
}
.customer-contact-meta>span>span{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.customer-contact-meta small{
  color:var(--muted);
}
.customer-contact-meta a{
  overflow-wrap:anywhere;
}
.customer-contact-action{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:.45rem;
}
@media (max-width:760px){
  .customer-contact-card{
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .customer-contact-main{
    flex:1 1 calc(100% - 4.5rem);
  }
  .customer-contact-action{
    width:100%;
    justify-content:center;
  }
}


/* 1.10.57 - kompakte Ansprechpartner-Karte oben rechts */
.customer-dashboard-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) 310px;
  gap:1rem;
  align-items:start;
  margin-bottom:1rem;
}
.customer-dashboard-intro .intro{
  margin:0;
}
.customer-contact-card-compact{
  width:310px;
  min-height:118px;
  margin:0;
  padding:.9rem 1rem;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:.75rem;
}
.customer-contact-card-compact .customer-contact-top{
  display:flex;
  align-items:center;
  gap:.75rem;
}
.customer-contact-card-compact .customer-contact-avatar{
  width:2.65rem;
  height:2.65rem;
  font-size:.95rem;
}
.customer-contact-card-compact .customer-contact-main{
  display:flex;
  flex-direction:column;
  gap:.1rem;
}
.customer-contact-card-compact .eyebrow{
  font-size:.68rem;
  letter-spacing:.07em;
}
.customer-contact-name{
  display:block;
  font-size:.96rem;
  line-height:1.25;
}
.customer-contact-email{
  display:block;
  max-width:205px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:.82rem;
  color:var(--muted);
}
.customer-contact-message{
  display:inline-flex;
  align-items:center;
  gap:.38rem;
  width:max-content;
  font-size:.82rem;
  font-weight:650;
  text-decoration:none;
}
.customer-contact-message .icon{
  width:.95rem;
  height:.95rem;
}
@media (max-width:900px){
  .customer-dashboard-head{
    grid-template-columns:1fr;
  }
  .customer-contact-card-compact{
    width:100%;
  }
  .customer-contact-email{
    max-width:none;
  }
}


/* 1.10.58 - SMTP / Office 365 */
[data-mail-field][hidden],
.is-mail-hidden{
  display:none !important;
}


/* 1.10.59 - Microsoft 365 / Exchange Online */
.mail-provider-info{
  display:flex;
  flex-direction:column;
  gap:.2rem;
  padding:.8rem .9rem;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--raised);
}
.mail-provider-info small{
  color:var(--muted);
}


/* 1.10.60 - Antworten-Button bei OTEDV-Rückfragen */
.question-notice-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
}
.question-answer-button,
.next-step-actions .button,
.next-step-actions .btn{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
}
.next-step-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:.55rem;
  flex:0 0 auto;
}
@media (max-width:760px){
  .next-step-actions{
    width:100%;
    justify-content:flex-start;
  }
  .question-notice-head{
    align-items:flex-start;
  }
}


/* 1.10.61 - Hinweis für nur ausgewählte, noch nicht hochgeladene Dateien */
.upload-box.has-pending-upload{
  border-color:#d69a12;
  box-shadow:0 0 0 1px rgba(214,154,18,.18) inset;
}
.pending-upload-warning{
  width:100%;
  margin-top:.65rem;
  padding:.7rem .8rem;
  border:1px solid rgba(214,154,18,.35);
  border-radius:8px;
  background:rgba(214,154,18,.09);
  display:flex;
  flex-direction:column;
  gap:.18rem;
  font-size:.84rem;
}
.pending-upload-warning[hidden]{
  display:none!important;
}
.pending-upload-warning strong{
  color:#9a6700;
}
.pending-upload-warning span{
  color:var(--text);
}
:root[data-theme=dark] .pending-upload-warning strong{
  color:#f2bd52;
}


/* 1.10.67 - Mitarbeiter mit Profilbild in der Kundenliste */
.customer-list-assignee{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  min-width:0;
}
.customer-list-assignee-avatar{
  width:30px;
  height:30px;
  min-width:30px;
  font-size:.72rem;
}
.customer-list-assignee span:last-child{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}


/* 1.10.69 - Status-Badge mit kompaktem Popover */
.stage-popover-wrap{
  position:relative;
  display:inline-flex;
}
.stage-popover-trigger{
  border:0;
  font:inherit;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:.28rem;
  transition:transform .12s ease,box-shadow .12s ease;
}
.stage-popover-chevron{
  display:inline-grid;
  place-items:center;
  opacity:.7;
  transition:transform .15s ease,opacity .15s ease;
}
.stage-popover-chevron .icon{
  width:.72rem;
  height:.72rem;
  stroke-width:2;
}
.stage-popover-trigger[aria-expanded="true"] .stage-popover-chevron{
  transform:rotate(180deg);
  opacity:1;
}
.stage-popover-trigger:hover,
.stage-popover-trigger:focus-visible{
  transform:translateY(-1px);
  box-shadow:0 0 0 2px rgba(84,169,76,.16);
  outline:none;
}
.stage-popover-menu{
  position:absolute;
  z-index:40;
  top:calc(100% + .45rem);
  right:0;
  width:210px;
  padding:.55rem;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
  box-shadow:0 14px 34px rgba(15,23,42,.24);
}
.stage-popover-menu.is-body-layer{
  position:fixed;
  z-index:10000;
  right:auto;
  margin:0;
  background:var(--surface);
  opacity:1;
  isolation:isolate;
}
.stage-popover-menu[hidden]{
  display:none!important;
}
.stage-popover-title{
  display:block;
  padding:.2rem .35rem .45rem;
  color:var(--muted);
  font-size:.7rem;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.stage-popover-menu form{
  margin:0;
}
.stage-popover-option{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.6rem;
  padding:.4rem .35rem;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--text);
  cursor:pointer;
  text-align:left;
}
.stage-popover-option:hover,
.stage-popover-option:focus-visible{
  background:var(--raised);
  outline:none;
}
.stage-popover-option.is-current{
  background:transparent;
}
.stage-current-label{
  color:var(--muted);
  font-size:.68rem;
  font-weight:650;
  white-space:nowrap;
}
@media(max-width:700px){
  .stage-popover-menu{
    right:auto;
    left:0;
  }
}



/* 1.10.73 - Status-Badges im Kundenkopf unter Ansprechpartner */
.customer-hero-badges{
  margin-top:.75rem;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:.38rem;
}
.customer-hero-demo{
  display:flex;
}
.customer-hero-badge-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.45rem;
}
.customer-hero-status{
  align-items:flex-end;
}
@media(max-width:760px){
  .customer-hero-badges{
    margin-top:.65rem;
  }
  .customer-hero-status{
    align-items:flex-start;
  }
}


/* 1.10.76 - DMS-Projektexport */
.dms-export-card .notice{
  margin-bottom:1.15rem;
}
.dms-export-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.7rem;
  margin-bottom:1.35rem;
}
.dms-section-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.65rem;
}
.dms-section-export{
  display:flex;
  align-items:center;
  gap:.75rem;
  min-width:0;
  padding:.8rem .9rem;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--raised);
  color:var(--text);
  text-decoration:none;
}
.dms-section-export:hover{
  border-color:var(--bright);
  text-decoration:none;
}
.dms-section-export>span:nth-child(2){
  display:flex;
  flex-direction:column;
  min-width:0;
  flex:1;
}
.dms-section-export small{
  color:var(--muted);
}
.dms-section-export>.icon{
  width:1rem;
  height:1rem;
  color:var(--muted);
}
.dms-export-note{
  margin:1rem 0 0;
}
@media(max-width:760px){
  .dms-section-grid{grid-template-columns:1fr}
  .dms-export-actions .btn{width:100%}
}


/* 1.10.83 - Vereinbarter Installationstermin */
.customer-installation-card{
  display:flex;
  align-items:center;
  gap:1rem;
  border-left:5px solid var(--bright);
  background:linear-gradient(135deg,var(--raised),var(--surface));
}
.customer-installation-card h2{
  margin:.15rem 0 .2rem;
}
.customer-installation-card p{
  margin:0;
  color:var(--muted);
}
.customer-installation-icon{
  width:3rem;
  height:3rem;
  flex:0 0 3rem;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(129,185,20,.14);
  color:var(--bright);
}
.customer-installation-icon .icon{
  width:1.35rem;
  height:1.35rem;
}
.customer-installation-meta strong{
  white-space:nowrap;
}
.installation-dashboard-panel .dashboard-feed-row time{
  min-width:9rem;
  text-align:right;
}
.feed-installation{
  color:var(--bright);
  background:rgba(129,185,20,.12);
}
@media(max-width:760px){
  .customer-installation-card{
    align-items:flex-start;
  }
  .installation-dashboard-panel .dashboard-feed-row{
    align-items:flex-start;
  }
  .installation-dashboard-panel .dashboard-feed-row time{
    min-width:0;
    text-align:left;
  }
}


/* 1.10.85 - Installations- & Schulungszeitraum */
.installation-period-fields{
  margin:0;
  padding:1rem;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--raised);
}
.installation-period-fields legend{
  padding:0 .35rem;
  font-weight:700;
}
.installation-period-fields .form-grid{
  margin-top:.25rem;
}
.installation-period-fields .field-hint{
  display:block;
  margin-top:.35rem;
}


/* 1.10.87 - kundenspezifische Dokumente */
.tab-document-info,.document-info-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:.35rem;
  color:var(--bright);
  vertical-align:middle;
}
.tab-document-info .icon,.document-info-icon .icon{
  width:1rem;
  height:1rem;
}
.customer-document-upload{
  display:flex;
  gap:1rem;
  align-items:end;
  flex-wrap:wrap;
  margin:1rem 0 1.25rem;
  padding:1rem;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--raised);
}
.customer-document-upload label{
  flex:1 1 28rem;
}
.customer-document-list{
  display:grid;
  gap:.65rem;
}
.customer-document-row{
  display:flex;
  align-items:center;
  gap:.8rem;
  padding:.85rem 0;
  border-top:1px solid var(--line);
}
.customer-document-row:first-child{
  border-top:0;
}
.customer-document-row small{
  display:block;
  margin-top:.2rem;
  color:var(--muted);
}
@media(max-width:760px){
  .customer-document-row{
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .customer-document-row .file-actions{
    width:100%;
  }
}


/* 1.10.88 - PDF-Anhang an Kundennachrichten */
.message-document-upload{
  display:block;
  margin-top:1rem;
  padding:1rem;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--raised);
}
.message-document-upload input[type="file"]{
  display:block;
  width:100%;
  margin-top:.45rem;
}
.message-attachments{
  display:grid;
  gap:.55rem;
  margin-top:1rem;
}
.message-attachment{
  display:flex;
  align-items:center;
  gap:.75rem;
  padding:.7rem;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--raised);
}
.message-attachment small{
  display:block;
  margin-top:.15rem;
  color:var(--muted);
}
@media(max-width:760px){
  .message-attachment{
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .message-attachment .file-actions{
    width:100%;
  }
}
