:root{
  --schnoor-primary:var(--erp-brand-primary,#0879c9);
  --schnoor-accent:var(--erp-brand-accent,#ef7d00);
  --schnoor-navigation:var(--erp-brand-navigation,#14324a);
  --schnoor-page:var(--erp-brand-page,#f2f5f7);
  --radius-panel:8px;
}
.theme-customer-schnoor{--erp-color-action:var(--schnoor-primary);--erp-color-accent:var(--schnoor-accent);--erp-color-navigation:var(--schnoor-navigation);--erp-color-page:var(--schnoor-page);--blue:var(--schnoor-primary);--cyan:var(--schnoor-accent);--navy:var(--schnoor-navigation);--paper:var(--schnoor-page)}
.theme-customer-schnoor .app-header-navigation{background:var(--schnoor-navigation)}
.theme-customer-schnoor .header-nav-link.active::after,.theme-customer-schnoor .header-nav-group.active>summary::after{background:var(--schnoor-accent)}
.theme-customer-schnoor .button.primary{background:var(--schnoor-primary);border-color:var(--schnoor-primary)}
.theme-customer-schnoor .button.primary:hover{filter:brightness(.9)}
.theme-customer-schnoor .section-kicker,.theme-customer-schnoor .page-kicker{color:var(--schnoor-primary)}
.theme-customer-schnoor .user-avatar{background:color-mix(in srgb,var(--schnoor-primary) 24%,var(--schnoor-navigation));color:#fff}
.schnoor-template-notice{border-color:color-mix(in srgb,var(--schnoor-primary) 32%,transparent);background:linear-gradient(135deg,color-mix(in srgb,var(--schnoor-primary) 8%,transparent),color-mix(in srgb,var(--schnoor-accent) 6%,transparent))}
.app-brand strong{letter-spacing:.01em}
.schnoor-branding-editor{display:grid;grid-template-columns:minmax(300px,1.2fr) minmax(280px,1fr);gap:18px;margin-bottom:15px}.schnoor-branding-preview{border:1px solid var(--line);background:var(--preview-page);min-height:165px}.schnoor-branding-preview-header{height:58px;display:flex;align-items:center;gap:20px;background:var(--preview-navigation);color:#fff;padding:0 18px}.schnoor-branding-preview-header img{width:auto;max-width:145px;height:40px;object-fit:contain}.schnoor-branding-preview-header strong{font-size:15px}.schnoor-branding-preview-header span{margin-left:auto;font-size:7px;color:#b9c5cc}.schnoor-branding-preview-page{display:flex;align-items:center;gap:10px;margin:18px;background:#fff;padding:18px}.schnoor-branding-preview-page i{display:block;width:6px;height:38px;background:var(--preview-accent)}.schnoor-branding-preview-page strong{font-size:10px}.schnoor-branding-preview-page button{margin-left:auto;border:0;background:var(--preview-primary);color:#fff;padding:10px 14px;font-size:8px;font-weight:800}.schnoor-branding-editor input[type=color]{width:100%;min-height:42px;padding:4px;cursor:pointer}
@media(max-width:850px){.schnoor-branding-editor{grid-template-columns:1fr}}

/* Schnoor 1.0 · konkrete Nachtfarbwelt auf dem neutralen Base-Vertrag. */
html[data-color-resolved="night"] .theme-customer-schnoor{
  --erp-color-text:#e9eff3;--erp-color-page:#0c151c;--erp-color-surface:#14222c;--erp-color-border:#2b3e4a;--erp-color-muted:#93a4ae;
  --paper:#0c151c;--panel:#14222c;--line:#2b3e4a;--ink:#e9eff3;--muted:#93a4ae;--cyan:var(--schnoor-accent);--blue:#55a8e0;--cyan-soft:#173543;
  background:#0c151c;color:#e9eff3;
}
html[data-color-resolved="night"] .theme-customer-schnoor .app-topbar{background:rgba(16,28,36,.97);border-color:#2b3e4a}
html[data-color-resolved="night"] .theme-customer-schnoor :is(.panel,.stat-card,.alert,.archive-panel,.storage-banner,.calendar-cell,.event-strip>div,.app-dialog>form,.header-nav-dropdown,.header-account>div,.invoice-paper){background:#14222c;border-color:#2b3e4a;color:#e9eff3}
html[data-color-resolved="night"] .theme-customer-schnoor :is(input,select,textarea,.button:not(.primary),.header-account>div a,.header-account>div button){background:#0d1921;border-color:#334955;color:#e9eff3}
html[data-color-resolved="night"] .theme-customer-schnoor :is(.data-head,.calendar-weekday){background:#182a35;color:#9eafb8}
html[data-color-resolved="night"] .theme-customer-schnoor :is(.data-row:hover,.header-nav-dropdown>a:hover,.header-nav-dropdown>a.active,.header-account>div a:hover,.header-account>div button:hover){background:#1a2d38}
html[data-color-resolved="night"] .theme-customer-schnoor :is(.readonly-grid>div,.choice-row,.invoice-line,.ticket-billing-summary>div,.recurring-facts span,.invoice-service-note,.employee-access-box){background:#101d25;border-color:#2b3e4a}
html[data-color-resolved="night"] .theme-customer-schnoor :is(.list-row,.task-list>div,.business-list article,.simple-list>a,.timeline-list article,.milestone,.ticket-entry-list article,.data-head,.data-row){border-color:#283b46}
html[data-color-resolved="night"] .theme-customer-schnoor :is(.header-nav-dropdown b,.badge,.migration-list code){background:#223743;color:#c2cdd3}
html[data-color-resolved="night"] .theme-customer-schnoor .calendar-cell.outside{background:#101a21;color:#71838e}
html[data-color-resolved="night"] .theme-customer-schnoor .danger-zone{background:#28191c;border-color:#6c343b}
html[data-color-resolved="night"] .theme-customer-schnoor .alert.warning{background:#2a2317;border-color:#68532f;color:#f4dfb9}
html[data-color-resolved="night"] .theme-customer-schnoor .security-callout{background:#2a2317;border-color:#68532f}
html[data-color-resolved="night"] .theme-customer-schnoor .schnoor-branding-preview-page{background:#14222c}
html[data-color-resolved="night"] .login-body .login-form-panel{background:#101b23}
html[data-color-resolved="night"] .login-body .login-form input{background:#0b151c;border-color:#30434f;color:#e9eff3}
html[data-color-resolved="night"] .login-body .login-appearance-toggle{background:#14222c;border-color:#354955;color:#e9eff3}

/* Lenovo 11 Zoll und vergleichbare Touch-Tablets: CSS-Viewport statt Herstellerkennung. */
@media (pointer:coarse) and (min-width:700px) and (max-width:1450px){
  .theme-customer-schnoor{font-size:16px;--erp-control-height:46px}
  .theme-customer-schnoor .app-header-navigation{min-height:74px;padding:0 24px;grid-template-columns:auto auto 1fr}
  .theme-customer-schnoor .header-brand{min-height:74px}.theme-customer-schnoor .header-brand .brand-logo{height:46px;max-width:165px}
  .theme-customer-schnoor .header-menu-toggle{display:block;align-self:center;color:#fff;margin:0 14px 0 0;min-width:46px;min-height:46px}
  .theme-customer-schnoor .header-nav{position:absolute;display:none;left:0;right:0;top:100%;background:var(--schnoor-navigation);padding:10px 24px 22px;box-shadow:0 20px 35px rgba(5,18,27,.25);flex-direction:column;align-items:stretch;max-height:72vh;overflow:auto}
  .theme-customer-schnoor .app-header-navigation.open .header-nav{display:flex}
  .theme-customer-schnoor .header-nav-link,.theme-customer-schnoor .header-nav-group>summary{min-height:50px;padding:0 15px;font-size:13px}
  .theme-customer-schnoor .header-nav-link.active::after,.theme-customer-schnoor .header-nav-group.active>summary::after{left:0;right:auto;top:9px;bottom:9px;width:4px;height:auto}
  .theme-customer-schnoor .header-nav-group{display:block}.theme-customer-schnoor .header-nav-dropdown{position:static;width:auto;box-shadow:none;margin:0 8px 10px}.theme-customer-schnoor .header-nav-dropdown>a{min-height:50px}
  .theme-customer-schnoor .header-account{justify-self:end}.theme-customer-schnoor .header-account>summary{min-height:74px}
  .theme-customer-schnoor.navigation-layout-header .app-topbar{top:74px;height:68px;padding:0 24px}.theme-customer-schnoor.navigation-layout-header .global-test-banner{top:142px}.theme-customer-schnoor.navigation-layout-header .flash-stack{top:158px}
  .theme-customer-schnoor .page-content{padding:28px 24px 72px}.theme-customer-schnoor .page-heading{margin-bottom:23px}.theme-customer-schnoor .page-heading h2{font-size:31px}
  .theme-customer-schnoor :is(.button,input,select,textarea){min-height:46px}.theme-customer-schnoor .button.tiny{min-height:42px;padding:9px 12px;font-size:8px}.theme-customer-schnoor .appearance-toggle{min-width:72px;height:44px}
  .theme-customer-schnoor .panel{padding:23px}.theme-customer-schnoor .table-panel{padding:0}.theme-customer-schnoor .data-head,.theme-customer-schnoor .data-row{min-width:720px;padding-left:16px;padding-right:16px}.theme-customer-schnoor .data-row{min-height:72px;font-size:10px}
  .theme-customer-schnoor .app-dialog{max-height:92vh}.theme-customer-schnoor .app-dialog>form{padding:28px;max-height:88vh;overflow:auto}.theme-customer-schnoor .choice-row{padding:15px}.theme-customer-schnoor .choice-row input{width:22px;height:22px}
  .theme-customer-schnoor .calendar-cell{min-height:122px}.theme-customer-schnoor .calendar-chip{min-height:31px;padding:7px}.theme-customer-schnoor .row-actions{gap:9px}
}
@media (pointer:coarse) and (min-width:700px) and (max-width:900px){
  .theme-customer-schnoor .header-account>summary>span:last-child{display:none}.theme-customer-schnoor .page-content{padding-left:18px;padding-right:18px}.theme-customer-schnoor .stat-grid,.theme-customer-schnoor .dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-customer-schnoor .dashboard-grid .span-3{grid-column:span 2}.theme-customer-schnoor .form-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}
}
