/* Gewerkpilot: Kopfzeile und einklappbare Navigation. */
:root{--workspace-green:#48ad2b;--workspace-side:#343a3d;--workspace-height:64px;--sidebar-width:250px}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
body{padding-top:var(--workspace-height);padding-left:var(--sidebar-width)}
body>header{position:fixed;inset:0 0 auto;z-index:100;box-sizing:border-box;height:var(--workspace-height);display:flex;align-items:center;gap:14px;padding:0 20px;background:var(--workspace-green);color:#fff;border:0;border-radius:0;box-shadow:none;overflow:visible}
header #firmenname{margin:0 auto 0 0;align-self:center;justify-self:auto;color:#fff;font-size:23px;font-weight:650;letter-spacing:-.4px;white-space:nowrap}
header .header-status{display:flex;flex-direction:row;align-items:center;gap:0;margin:0;align-self:center;text-align:inherit;min-width:0}
header #heute,header #ichInfo,#mobileMenuToggle,#sidebarCollapse,.sidebar-brand{display:none!important}
.workspace-icon-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:42px;height:42px;padding:8px;color:#fff;background:transparent;border:0;border-radius:5px;cursor:pointer}
.workspace-icon-button:hover,.workspace-icon-button[aria-expanded=true]{background:#ffffff20}
.workspace-icon-button svg,.workspace-search>svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#workspaceAppsToggle rect{fill:currentColor;stroke:none}
.workspace-search{position:relative;width:min(330px,30vw);color:#fff}
.workspace-search input{width:100%;height:36px;margin:0;padding:7px 40px 7px 12px;border:1px solid #ffffff99;border-radius:4px;background:transparent;color:#fff;font-size:14px}
.workspace-search input::placeholder{color:#ffffffe0}
.workspace-search>svg{position:absolute;right:9px;top:7px;width:21px;height:21px;pointer-events:none}
.workspace-search input:focus{outline:2px solid #fff;outline-offset:2px;border-color:#fff;box-shadow:none}
.workspace-launcher,.workspace-profile{position:relative;flex:0 0 auto}
header .dashboard-quickcreate{z-index:auto}
header .header-actions .dashboard-quickcreate-button.btn{display:flex;gap:20px;align-items:center;justify-content:center;height:42px;min-height:42px;padding:8px 15px;border-radius:5px;background:#208837;border-color:#208837;box-shadow:none;color:white}
.workspace-caret{font-size:16px}
.workspace-avatar{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:43px;height:43px;border:0;border-radius:50%;background:#7c7d27;color:#fff;font:500 19px Arial,Helvetica,sans-serif;cursor:pointer}
.workspace-avatar:hover{box-shadow:0 0 0 3px #ffffff55}
.workspace-popover,header .dashboard-quick-menu{position:absolute;top:calc(100% + 13px);right:0;width:310px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 90px);overflow:auto;box-sizing:border-box;padding:10px;border:1px solid #dadfe2;border-radius:9px;background:#fff;color:#252a30;box-shadow:0 12px 32px #0003;text-align:left;font-size:16px}
.workspace-popover[hidden],header .dashboard-quick-menu[hidden],#mainNavigation [hidden]{display:none!important}
.workspace-popover button,header .dashboard-quick-menu button{display:flex;align-items:center;gap:14px;width:100%;min-height:44px;margin:0;padding:10px 12px;border:0;border-radius:4px;background:#fff;color:#292e34;text-align:left;font:inherit;cursor:pointer}
.workspace-popover button:hover,header .dashboard-quick-menu button:hover{background:#f1f8ed}
#workspaceProfileMenu{width:340px;padding:12px}
.workspace-profile-heading{display:flex;align-items:center;gap:12px;padding:8px 4px 22px;border-bottom:1px solid #dfe3e6}
.workspace-profile-heading strong{flex:1;overflow-wrap:anywhere;font-size:18px}
#workspaceProfileClose{align-self:flex-start;width:32px;min-height:32px;justify-content:center;padding:0;font-size:24px}
.workspace-profile-links{padding:14px 0}
.workspace-profile-links svg,.workspace-logout svg{width:23px;height:23px;flex:0 0 23px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}
#workspaceProfileMenu .workspace-logout{color:#d92737;border-top:1px solid #dfe3e6;border-radius:0;padding-top:18px}
#workspaceApps{width:350px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
#workspaceApps button{flex-direction:column;justify-content:center;gap:8px;font-size:12px;text-align:center;padding:12px 4px;min-height:82px}
#workspaceApps svg{width:25px;height:25px;fill:none;stroke:var(--workspace-green);stroke-width:1.6}
#workspaceSearchResults{left:0;right:auto;width:max(100%,360px);padding:6px}
#workspaceSearchResults button{display:block;font-size:14px}
#workspaceSearchResults small{display:block;color:#69737c;margin-top:3px}
#workspaceSearchResults p{padding:10px;margin:0;font-size:14px}
#mainNavigation.tabs-t{inset:var(--workspace-height) auto 0 0;height:calc(100dvh - var(--workspace-height));width:var(--sidebar-width);padding:12px 0 24px;gap:2px;background:var(--workspace-side);color:#fff;border:0;border-radius:0;box-shadow:none;z-index:80;overflow-x:hidden}
#mainNavigation.tabs-t button[data-tab],#mainNavigation.tabs-t #kiOpen{display:flex;align-items:center;gap:13px;width:100%;min-height:43px;padding:10px 18px;border:0;border-radius:0;background:transparent;color:#eceeef;font-size:14px;font-weight:400;text-align:left;white-space:nowrap}
#mainNavigation.tabs-t button[data-tab]:hover,#mainNavigation.tabs-t #kiOpen:hover{background:#ffffff12;color:white}
#mainNavigation.tabs-t button[data-tab].active{background:#287d22;color:white;box-shadow:inset 3px 0 #a9dc91}
#mainNavigation .menu-line-icon,#mainNavigation .sidebar-icon{width:20px;height:20px;flex:0 0 20px;stroke:currentColor}
#mainNavigation .menu-icon-accent{stroke:#a8d7a4}
#mainNavigation .project-subnav{margin:0 0 5px 27px;padding:0;border-left:1px solid #657075;gap:0}
#mainNavigation.tabs-t .project-subnav button{min-height:35px;font-size:12px;padding:8px 10px}
#companyNavigation.company-navigation{display:contents!important}
#mainNavigation #companyOffersGroup{display:block;position:relative;margin:0;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
#mainNavigation #companyOffersGroup[hidden]{display:none!important}
#companyOffersGroup>button[data-tab]{padding-right:44px!important}
#companyOffersToggle{position:absolute;top:2px;right:7px;width:34px!important;min-height:38px!important;padding:7px!important;color:white;background:transparent;border:0;font-size:18px}
#mainNavigation #aufmassSubnav{display:none!important;position:static;width:auto;padding:0 0 0 27px;background:transparent;border:0;border-radius:0;box-shadow:none}
#mainNavigation #companyOffersGroup.expanded #aufmassSubnav{display:block!important}
.workspace-dialog{width:min(600px,94vw);max-height:85dvh;padding:0;border:1px solid #dce1e4;border-radius:12px;background:#fff;color:#20242a}
.workspace-dialog form,#workspaceActivityList{padding:22px}
.workspace-dialog input{width:100%;box-sizing:border-box;margin:8px 0}
.workspace-activity-row{padding:12px 0;border-bottom:1px solid #e6eaed}
.workspace-activity-row small{display:block;color:#68747d;margin-top:5px}
@media(min-width:901px){body.sidebar-collapsed{--sidebar-width:64px}body.sidebar-collapsed .company-nav-label{display:none}body.sidebar-collapsed #companyOffersToggle{display:none}body.sidebar-collapsed #mainNavigation .project-subnav,body.sidebar-collapsed #mainNavigation #aufmassSubnav{display:none!important}body.sidebar-collapsed #mainNavigation.tabs-t button[data-tab],body.sidebar-collapsed #mainNavigation.tabs-t #kiOpen{justify-content:center;padding:12px!important}body.sidebar-collapsed #companyOffersGroup>button[data-tab]{padding-right:12px!important}}
@media(max-width:900px){body{padding-left:0}body>header{gap:8px;padding:0 12px}header #firmenname{font-size:21px}#mainNavigation.tabs-t{width:min(280px,85vw);padding-top:16px}.sidebar-heading{display:none!important}.workspace-search{width:min(250px,27vw)}body.mobile-menu-open #menuBackdrop{top:var(--workspace-height);height:calc(100dvh - var(--workspace-height))}}
@media(max-width:600px){:root{--workspace-height:58px}body>header{gap:4px;padding:0 8px}header #firmenname{font-size:19px}.workspace-icon-button{width:35px;height:38px;padding:7px}.workspace-avatar{width:36px;height:36px;font-size:16px}header .header-actions .dashboard-quickcreate-button.btn{height:36px;min-height:36px;padding:7px 10px;gap:8px}.workspace-search{position:static;width:35px;flex:0 0 35px}.workspace-search input{position:absolute;top:calc(100% + 7px);left:12px;width:calc(100vw - 24px);height:42px;background:#fff;color:#222;border-color:#9daab4;visibility:hidden;pointer-events:none}.workspace-search:focus-within input{visibility:visible;pointer-events:auto}.workspace-search input::placeholder{color:#69747c}.workspace-search>svg{position:static;display:block;margin:7px;pointer-events:auto;cursor:pointer}.workspace-search #workspaceSearchResults{position:fixed;top:116px;left:12px;width:calc(100vw - 24px);max-width:calc(100vw - 24px)}.workspace-popover,header .dashboard-quick-menu{position:fixed;top:66px;right:10px;max-height:calc(100dvh - 80px)}#workspaceApps{width:330px}header .dashboard-quick-menu{width:270px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
@media print{body{padding:0!important}body>header,#mainNavigation,.workspace-popover{display:none!important}}

.workspace-popover [hidden]{display:none!important}
#mainNavigation.tabs-t .submenu-toggle{color:#eceeef;border-radius:0;margin-right:5px}
@media(min-width:901px){body.sidebar-collapsed #mainNavigation .submenu-heading{flex-wrap:nowrap}body.sidebar-collapsed #mainNavigation .submenu-toggle{display:none!important}}

/* Platz für die jederzeit sichtbare Uhr unterhalb der Menüeinträge. */
#mainNavigation.tabs-t{padding-bottom:90px}
#workspaceSidebarClock{position:fixed;left:0;bottom:0;z-index:81;box-sizing:border-box;width:var(--sidebar-width);height:76px;padding:12px 18px;background:var(--workspace-side);border-top:1px solid #ffffff24;color:#eef1f3;display:flex;flex-direction:column;justify-content:center;gap:3px;pointer-events:none}
#workspaceClockDate{font-size:12px;color:#c6cdd1}
#workspaceClockTime{font-size:19px;font-weight:600;letter-spacing:.6px;font-variant-numeric:tabular-nums}
@media(min-width:901px){body.sidebar-collapsed #workspaceSidebarClock{padding:10px 3px;text-align:center}body.sidebar-collapsed #workspaceClockDate{font-size:10px}body.sidebar-collapsed #workspaceClockTime{font-size:11px;letter-spacing:0}}
@media(max-width:900px){#workspaceSidebarClock{width:100%}}
@media print{#workspaceSidebarClock{display:none!important}}

#login .login-logo{display:block;width:min(400px,100%);height:auto;max-height:150px;object-fit:contain;margin:0 auto 20px}
#login .login-contact{display:flex;justify-content:center;margin:20px 0 0}
#login .login-contact a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;min-height:44px;font-size:14px}
@media(max-width:600px){#login .login-logo{width:min(310px,95%);height:auto;max-height:110px;margin-bottom:16px}#login .box>h2:first-of-type{font-size:20px}}

/* Vollständiges Markenlogo statt Text, mit heller Fläche für den grünen Symbolteil. */
header #firmenname{display:flex;align-items:center;min-width:0;line-height:1}
header #firmenname .workspace-brand-logo{display:block;width:174px;height:44px;max-width:100%;object-fit:contain;box-sizing:border-box;padding:5px 8px;background:#fff;border-radius:5px}
@media(max-width:600px){header #firmenname .workspace-brand-logo{width:112px;height:38px;padding:4px 6px}}
@media(max-width:380px){header #firmenname .workspace-brand-logo{width:88px;height:34px;padding:4px}}
