:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#e9f0f8;background:#06111f;--bg:#06111f;--panel:#0b1b2e;--panel2:#102842;--line:#28445f;--muted:#9db0c3;--text:#f4f8fc;--accent:#ecf4fb;--accentText:#08203a;--warn:#ffd98a;--danger:#ffc2c2;--ok:#bfe8ce}*{box-sizing:border-box}body{margin:0;background:linear-gradient(180deg,#071522,#06111f 420px);min-height:100vh;color:var(--text)}a{color:inherit}.shell{max-width:1200px;margin:auto;padding:18px 16px 90px}.top{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}.brand-wrap{display:flex;align-items:center;gap:12px;min-width:0}.brand-logo{width:54px;height:54px;object-fit:contain;background:#fff;border-radius:12px;padding:5px}.brand{font-weight:900;font-size:20px;letter-spacing:.02em}.muted{color:var(--muted)}.small{font-size:13px}.notice{background:#2a2414;border:1px solid #735f24;color:#ffe8aa;border-radius:12px;padding:11px 14px;margin-bottom:14px}.card{background:rgba(11,27,46,.96);border:1px solid var(--line);border-radius:16px;padding:16px}.card.soft{background:var(--panel2)}.grid{display:grid;gap:12px}.grid2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid4{grid-template-columns:repeat(4,minmax(0,1fr))}.metric{font-size:29px;font-weight:900;margin-top:3px}.section-title{display:flex;align-items:end;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}.section-title h1,.section-title h2{margin:0}.nav{display:flex;gap:7px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border-radius:11px;background:#122943;border:1px solid #36526c;text-decoration:none;color:var(--text);font:inherit;cursor:pointer}.btn:hover{background:#17334f}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accentText);font-weight:800}.btn.danger{border-color:#7e4545;background:#301b1f}.btn[disabled]{opacity:.45;cursor:not-allowed}.list{display:grid;gap:9px}.row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.project{display:block;text-decoration:none}.project:hover{border-color:#5a7590}.tag{display:inline-flex;align-items:center;min-height:26px;border:1px solid var(--line);border-radius:999px;padding:3px 9px;font-size:12px;color:#dce9f5}.tag.ok{background:#143022;color:var(--ok)}.tag.warn{background:#342b16;color:var(--warn)}input,select,textarea{width:100%;padding:12px;border-radius:10px;border:1px solid #3d5872;background:#071522;color:var(--text);font-size:16px}input[type=checkbox]{width:auto}label{display:grid;gap:6px}.form{display:grid;gap:13px}.form p{margin:0}.form .helptext{font-size:12px;color:var(--muted)}.errorlist{color:var(--danger);margin:4px 0}.checkbox-list>div,.form ul{list-style:none;padding:0;margin:0;display:flex;gap:8px;flex-wrap:wrap}.form ul li label{display:flex;grid-template-columns:auto 1fr;align-items:center;gap:7px;border:1px solid var(--line);padding:8px 10px;border-radius:10px}.mobile-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.message{border-radius:12px;padding:11px 13px;margin:8px 0}.message.success{background:#123021;color:#c8efd5;border:1px solid #2d6844}.message.error{background:#35191d;color:#ffd1d1;border:1px solid #79404a}.message.warning{background:#352b15;color:#ffe6a8;border:1px solid #7d6729}.table-wrap{overflow-x:auto}.table{width:100%;border-collapse:collapse;min-width:700px}.table th,.table td{text-align:left;padding:10px;border-bottom:1px solid var(--line);vertical-align:top}.table th{font-size:12px;color:var(--muted);text-transform:uppercase}.timeline{display:grid;gap:8px}.timeline-item{display:grid;grid-template-columns:92px 1fr auto;gap:12px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:12px}.big-state{font-size:26px;font-weight:900}.login-shell{max-width:440px;margin:7vh auto;padding:16px}.login-logo{display:block;width:120px;max-height:90px;object-fit:contain;margin:0 auto 18px}.footer-note{margin-top:22px;color:var(--muted);font-size:12px}.bottom-nav{display:none}.kpi-label{font-size:12px;color:var(--muted);text-transform:uppercase}.skills{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.assignment-card{border-left:4px solid #8daac4}.status-active{color:var(--ok)}
@media(max-width:850px){.grid4,.grid3,.grid2{grid-template-columns:1fr}.mobile-actions{grid-template-columns:1fr}.shell{padding-bottom:90px}.top .nav{display:none}.bottom-nav{position:fixed;z-index:20;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#071522;border-top:1px solid var(--line);padding:6px max(6px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))}.bottom-nav a{min-height:50px;display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;font-size:12px;border-radius:8px}.timeline-item{grid-template-columns:70px 1fr}.timeline-item>:last-child{grid-column:2}.brand-logo{width:46px;height:46px}}
.progress{height:10px;background:#071522;border:1px solid var(--line);border-radius:999px;overflow:hidden;margin:10px 0}.progress span{display:block;height:100%;background:var(--accent)}.status-draft{background:#1d2a36}.status-submitted,.status-recorded{background:#342b16;color:var(--warn)}.status-approved{background:#143022;color:var(--ok)}.status-rejected{background:#35191d;color:var(--danger)}.report-text{line-height:1.55}.filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto auto;gap:10px;align-items:end}.filter-grid p{margin:0}.check-inline{display:flex;grid-template-columns:auto 1fr;align-items:center;gap:8px}@media(max-width:850px){.filter-grid{grid-template-columns:1fr}.table{min-width:900px}}
.status-signed{background:#143022;color:var(--ok);border-color:#2d6844}
.tag.danger{background:#35191d;color:var(--danger);border-color:#79404a}.status-pending{color:var(--warn)}.status-approved{color:var(--ok)}.status-rejected,.status-blocked{color:var(--danger)}.status-not_required{color:var(--muted)}

.resource-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}.resource-panels{align-items:start}.resource-picker h2{margin:2px 0}.resource-picker .selected-count{font-size:13px;color:var(--muted);font-weight:500}.resource-search{margin:10px 0}.picker-actions{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px}.multi-list{max-height:410px;overflow:auto;padding-right:3px}.multi-list>div{display:grid!important;gap:7px!important}.multi-list label{display:flex!important;grid-template-columns:auto 1fr;align-items:center;gap:9px;border:1px solid var(--line);background:#071522;padding:10px;border-radius:10px;cursor:pointer}.multi-list label:has(input:checked){border-color:#8daac4;background:#102842}.multi-list input[type=checkbox]{width:20px;height:20px;flex:0 0 auto}.sticky-save{position:sticky;bottom:10px;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding:12px 14px;background:#102842;border:1px solid #45627d;border-radius:14px;box-shadow:0 10px 28px rgba(0,0,0,.28)}@media(max-width:850px){.resource-summary{grid-template-columns:1fr}.resource-panels{grid-template-columns:1fr}.multi-list{max-height:310px}.sticky-save{position:static;align-items:stretch;flex-direction:column}}

/* V2.1 Wochenplanung */
.week-toolbar form{width:100%}.week-board-wrap{overflow-x:auto;padding-bottom:4px}.week-board{display:grid;grid-template-columns:repeat(7,minmax(210px,1fr));gap:10px;min-width:1540px}.week-day{background:rgba(11,27,46,.78);border:1px solid var(--line);border-radius:15px;overflow:hidden;min-width:0}.week-day.is-today{border-color:#8daac4}.week-day-head{padding:12px;border-bottom:1px solid var(--line);background:#102842;display:flex;align-items:center;gap:7px;flex-wrap:wrap}.week-day-head .kpi-label{width:100%}.week-day-body{padding:9px;display:grid;gap:8px}.week-plan-card{background:#071522;border:1px solid #2f4c67;border-radius:12px;padding:11px;min-width:0}.week-plan-card.legacy{border-style:dashed}.week-project-link{text-decoration:none;display:inline-block;margin-top:2px}.week-project-link:hover{text-decoration:underline}.week-resources{display:grid;gap:8px;margin-top:9px}.week-empty{padding:18px 8px;text-align:center;color:var(--muted);font-size:13px}.btn.compact{min-height:34px;padding:6px 9px;font-size:12px}.week-plan-card .skills{gap:4px}.week-plan-card .tag{font-size:11px;padding:2px 7px;min-height:23px}
@media(max-width:850px){.week-board-wrap{overflow:visible}.week-board{grid-template-columns:1fr;min-width:0}.week-day{width:100%}.bottom-nav{grid-template-columns:repeat(5,1fr)}.bottom-nav a{font-size:11px;padding:0 2px}}

/* V2.2 vereinfachte Mitarbeiter-/Vorarbeiter-Oberfläche */
.simple-hero{border-color:#4a6a85;background:#102842}.simple-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}.simple-action{display:flex;min-height:150px;flex-direction:column;justify-content:center;align-items:flex-start;gap:7px;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--panel);text-decoration:none}.simple-action:hover{border-color:#6d8aa5;background:#102842}.simple-action.primary-action{background:#eaf2f9;color:#0b2744;border-color:#eaf2f9}.simple-action small{font-size:12px;line-height:1.35;opacity:.78}.simple-icon{font-size:28px}.checklist-card{border-color:#45627d}.checklist-list{display:grid;gap:8px;margin-top:12px}.checklist-item{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:11px;background:#071522}.checklist-item.done{border-color:#2d6844;background:#0d281c}.checklist-item.open{border-color:#735f24;background:#2a2414}.checkmark{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:900;background:#17334f}.checklist-item.done .checkmark{background:#1e5034;color:#c8efd5}.checklist-item.open .checkmark{background:#6a541c;color:#ffe8aa}.check-main{min-width:0}.check-actions{display:flex;gap:6px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.check-actions form{margin:0}.simple-rule-list{display:grid;gap:7px;color:var(--muted);font-size:13px}
@media(max-width:850px){.simple-actions{grid-template-columns:1fr}.simple-action{min-height:112px}.checklist-item{grid-template-columns:38px 1fr}.check-actions{grid-column:2;justify-content:flex-start}.check-actions .btn{min-height:40px}.checklist-card .progress{margin-bottom:12px}}

/* V4.6 Urlaubsplanung */
.vacation-inbox{border-color:#735f24}.vacation-request-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.vacation-request-card{display:grid;gap:4px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#071522;text-decoration:none}.vacation-request-card:hover{border-color:#6d8aa5;background:#102842}.vacation-search{display:flex;gap:8px;align-items:center;min-width:min(100%,520px)}.vacation-search input{min-width:220px}.vacation-legend{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:6px 0 13px}.vac-dot{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:5px;vertical-align:-1px;border:1px solid #45627d}.vac-dot.approved{background:#1d7549}.vac-dot.pending{background:#8b6a18}.vac-dot.cancel{background:#945a1d}.vacation-grid-wrap{overflow:auto;max-height:68vh;border:1px solid var(--line);border-radius:12px}.vacation-grid{border-collapse:separate;border-spacing:0;min-width:max(1150px,100%);width:max-content;background:#071522}.vacation-grid th,.vacation-grid td{border-right:1px solid #20384f;border-bottom:1px solid #20384f}.vacation-grid thead th{position:sticky;top:0;z-index:5;background:#102842}.vacation-person-head,.vacation-person{position:sticky;left:0;z-index:4;min-width:190px;max-width:190px;text-align:left;padding:9px 10px;background:#0b1b2e!important}.vacation-person-head{z-index:7!important}.vacation-person small{display:block;color:var(--muted);font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vac-day-head{width:38px;min-width:38px;text-align:center;padding:6px 2px;height:61px}.vac-day-head span,.vac-day-head small{display:block;font-size:10px;color:var(--muted);font-weight:500}.vac-day-head strong{display:block;font-size:15px;margin:2px 0}.vac-day-head.today{box-shadow:inset 0 3px 0 #8daac4}.vac-day-head.weekend,.vac-cell.weekend{background:#0b1723}.vac-cell{width:38px;min-width:38px;height:38px;text-align:center;padding:0;background:#071522}.vac-cell a{display:flex;width:100%;height:100%;align-items:center;justify-content:center;text-decoration:none;font-weight:900}.vac-cell.vac-approved{background:#16482f}.vac-cell.vac-approved a{color:#c8efd5}.vac-cell.vac-pending{background:#4d3f16}.vac-cell.vac-pending a{color:#ffe8aa}.vac-cell.vac-cancellation_requested{background:#5a3417}.vac-cell.vac-cancellation_requested a{color:#ffd59e}.vac-cell.weekend.vac-approved,.vac-cell.weekend.vac-pending,.vac-cell.weekend.vac-cancellation_requested{opacity:.65}.vacation-form-grid{align-items:start}.status-cancellation_requested{color:#f0b35d}.status-withdrawn,.status-cancelled{color:var(--muted)}
@media(max-width:850px){.vacation-request-cards{grid-template-columns:1fr}.vacation-search{width:100%;display:grid;grid-template-columns:1fr auto auto}.vacation-search input{min-width:0}.vacation-grid-wrap{max-height:64vh}.vacation-person-head,.vacation-person{min-width:145px;max-width:145px}.bottom-nav{grid-template-columns:repeat(auto-fit,minmax(50px,1fr))}.bottom-nav a{font-size:10px}}
.vac-cell .vac-mark{display:flex;width:100%;height:100%;align-items:center;justify-content:center;font-weight:900;color:inherit}

/* =========================================================
   V4.7 FINAL UI / UX POLISH
   Einheitliche Navigation, Touch-Bedienung und Lesbarkeit
   ========================================================= */
:root{
  --bg:#06111f;
  --panel:#0b1b2e;
  --panel2:#102842;
  --panel3:#142f4d;
  --line:#2d4b67;
  --line-strong:#456783;
  --muted:#9fb4c8;
  --text:#f4f8fc;
  --accent:#edf5fb;
  --accentText:#08203a;
  --warn:#ffe3a2;
  --danger:#ffd0d0;
  --ok:#c9efd7;
  --radius-sm:10px;
  --radius:14px;
  --radius-lg:18px;
  --shadow:0 12px 32px rgba(0,0,0,.16);
  --shadow-soft:0 6px 20px rgba(0,0,0,.11);
}
html{scroll-behavior:smooth}
body{font-size:15px;line-height:1.45;background:radial-gradient(circle at 50% -140px,#102c47 0,#071522 360px,#06111f 720px);background-attachment:fixed}
button,input,select,textarea{font-family:inherit}
a,button,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid rgba(207,230,249,.75);outline-offset:2px}
.skip-link{position:fixed;left:12px;top:12px;z-index:1000;transform:translateY(-160%);background:#fff;color:#092039;padding:9px 12px;border-radius:9px;text-decoration:none;font-weight:800}.skip-link:focus{transform:none}
.shell{max-width:1320px;padding:18px 18px 104px}
.page-content{display:block}
.app-header{padding:2px 0 14px;margin-bottom:12px;border-bottom:1px solid rgba(69,103,131,.38)}
.brand-wrap{text-decoration:none}.brand-copy{min-width:0}.brand span{font-weight:650;color:#c5d5e4}.brand-logo{box-shadow:0 4px 14px rgba(0,0,0,.18)}
.header-right{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:1;min-width:0}.user-chip{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:7px 10px;border:1px solid rgba(69,103,131,.6);background:rgba(11,27,46,.7);border-radius:999px;color:#dce8f3;font-size:12px;white-space:nowrap}.user-dot{width:8px;height:8px;border-radius:50%;background:#67c58a;box-shadow:0 0 0 3px rgba(103,197,138,.12)}
.desktop-nav{align-items:center;justify-content:flex-end}.desktop-logout{margin:0}.btn{gap:7px;font-weight:650;transition:background .14s ease,border-color .14s ease,transform .14s ease,box-shadow .14s ease}.btn:hover{border-color:#557795;transform:translateY(-1px);box-shadow:var(--shadow-soft)}.btn:active{transform:translateY(0)}.btn.primary{box-shadow:0 5px 18px rgba(230,241,250,.08)}.btn.danger{color:#ffd9d9}.btn.active{border-color:#89aac4;background:#173956}.btn.primary.active{box-shadow:0 0 0 2px rgba(237,245,251,.18)}.btn.icon-only{width:44px;padding:0;font-size:18px}.btn.compact{border-radius:9px}
.nav-more{position:relative}.nav-more>summary{list-style:none}.nav-more>summary::-webkit-details-marker{display:none}.nav-more>summary::after{content:'⌄';font-size:11px;margin-left:2px}.nav-more[open]>summary{background:#173956;border-color:#557795}.nav-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:80;display:grid;min-width:230px;padding:7px;border:1px solid var(--line-strong);border-radius:13px;background:#0b1b2e;box-shadow:0 18px 44px rgba(0,0,0,.34)}.nav-menu.wide{grid-template-columns:repeat(2,minmax(180px,1fr));min-width:410px}.nav-menu a{display:block;padding:10px 11px;border-radius:9px;text-decoration:none;color:#edf5fb}.nav-menu a:hover{background:#173956}
.compact-notice{margin:0 0 12px;padding:0;overflow:hidden;background:#201d13;border-color:#5f5225}.compact-notice summary{display:flex;align-items:center;gap:8px;min-height:42px;padding:9px 12px;cursor:pointer;list-style:none}.compact-notice summary::-webkit-details-marker{display:none}.compact-notice summary .muted{margin-left:auto;color:#d9c990}.notice-dot{width:9px;height:9px;border-radius:50%;background:#e8c35e;box-shadow:0 0 0 3px rgba(232,195,94,.12)}.notice-body{padding:0 12px 11px;color:#ffe8aa;font-size:13px;line-height:1.5;border-top:1px solid rgba(115,95,36,.45);padding-top:10px}
.page-tools{position:sticky;top:8px;z-index:35;display:flex;align-items:center;gap:7px;width:max-content;max-width:100%;margin:0 0 12px;padding:5px;border:1px solid rgba(69,103,131,.65);border-radius:13px;background:rgba(7,21,34,.88);backdrop-filter:blur(12px);box-shadow:0 8px 24px rgba(0,0,0,.16)}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border:1px solid #385872;border-radius:10px;background:#102842;color:#f3f7fb;text-decoration:none;font-size:19px;font-weight:850;cursor:pointer}.icon-btn:hover{background:#183a59;border-color:#5e7f9b}.icon-btn.subtle{background:transparent}.page-tools-label{font-size:12px;color:var(--muted);font-weight:650}.page-tools-spacer{display:none}
.section-title{align-items:flex-start;margin-bottom:14px}.section-title>div:first-child{min-width:0}.section-title h1{font-size:clamp(24px,3vw,34px);line-height:1.12;letter-spacing:-.02em}.section-title h2{font-size:clamp(19px,2.3vw,24px);line-height:1.2}.section-title .muted.small:first-child,.kpi-label{letter-spacing:.065em;font-weight:750}.section-title>.nav{justify-content:flex-end}
.card{border-color:rgba(69,103,131,.62);box-shadow:var(--shadow-soft);border-radius:var(--radius-lg);padding:17px}.card.soft{box-shadow:none;border-color:rgba(69,103,131,.42)}a.card.project{transition:transform .14s ease,border-color .14s ease,background .14s ease}a.card.project:hover{transform:translateY(-2px);background:#102842;box-shadow:var(--shadow)}
.metric{letter-spacing:-.035em}.grid{gap:13px}.list{gap:10px}.row{gap:10px}.nav{gap:8px}
.tag{font-weight:650;border-color:#3b5b76;background:rgba(7,21,34,.55)}.tag.ok{border-color:#34724c}.tag.warn{border-color:#7e6725}.tag.danger{border-color:#814650}
input,select,textarea{min-height:46px;border-color:#3c5c77;border-radius:11px;background:#071522;transition:border-color .14s ease,box-shadow .14s ease,background .14s ease}textarea{min-height:110px;resize:vertical}input:hover,select:hover,textarea:hover{border-color:#567997}input:focus,select:focus,textarea:focus{border-color:#8aabc6;box-shadow:0 0 0 3px rgba(138,171,198,.13);background:#091a2a;outline:none}input[type=checkbox],input[type=radio]{min-height:auto;accent-color:#dcebf6}.form{gap:15px}.form p{display:grid;gap:6px}.form p>label,.form>label{font-weight:650;color:#dce8f2}.form .helptext{line-height:1.45}.form button[type=submit].primary{min-height:48px}.errorlist{padding-left:0;list-style:none;font-size:13px}
.table-wrap{border:1px solid rgba(69,103,131,.52);border-radius:13px;background:#081827}.table{background:#081827}.table th,.table td{padding:11px 12px}.table thead th{position:sticky;top:0;z-index:2;background:#102842;color:#b8cada}.table tbody tr:nth-child(even){background:rgba(16,40,66,.24)}.table tbody tr:hover{background:rgba(25,57,87,.35)}
.message{border-radius:13px;padding:12px 14px;box-shadow:var(--shadow-soft)}.message:before{display:inline-block;margin-right:7px;font-weight:900}.message.success:before{content:'✓'}.message.error:before{content:'!'}.message.warning:before{content:'!'}
details>summary{cursor:pointer}details.card>summary,.card details>summary{padding:4px 0}.footer-note{text-align:center;padding:8px 0 0;opacity:.8}
.simple-action{min-height:136px;box-shadow:var(--shadow-soft);transition:transform .14s ease,border-color .14s ease,background .14s ease}.simple-action:hover{transform:translateY(-2px)}.simple-icon{line-height:1}.assignment-card{border-left-width:3px}
.sticky-save{border-radius:15px;backdrop-filter:blur(10px)}
.week-day,.week-plan-card,.vacation-grid-wrap{box-shadow:var(--shadow-soft)}.week-day-head{background:linear-gradient(180deg,#13304d,#102842)}.vacation-grid thead th{box-shadow:0 2px 0 rgba(69,103,131,.45)}

/* Mobile bottom navigation and "Mehr" drawer */
.mobile-menu,.mobile-menu-backdrop{display:none}
.bottom-nav button{font:inherit;color:inherit}
@media(max-width:850px){
  body{font-size:14px}.shell{padding:10px 10px calc(88px + env(safe-area-inset-bottom))}.app-header{padding:2px 2px 10px;margin-bottom:9px}.brand-logo{width:43px;height:43px;border-radius:10px}.brand{font-size:16px;white-space:nowrap}.brand span{display:none}.brand-copy .small{font-size:11px}.header-right{display:none}.compact-notice{margin-bottom:9px}.compact-notice summary{min-height:38px;padding:7px 10px}.compact-notice summary .muted{display:none}.notice-body{font-size:12px}.page-tools{top:6px;margin-bottom:10px;padding:4px;border-radius:12px}.page-tools-label{display:none}.icon-btn{width:36px;height:36px}.section-title{gap:9px;margin-bottom:11px}.section-title h1{font-size:25px}.section-title h2{font-size:20px}.section-title>.nav{width:100%;justify-content:flex-start}.section-title>.nav .btn{flex:1 1 auto}.card{padding:13px;border-radius:14px}.card.soft{padding:12px}.grid{gap:10px}.list{gap:8px}.btn{min-height:44px;padding:9px 12px}.btn.compact{min-height:38px;padding:7px 9px}.mobile-actions{gap:8px}.mobile-actions .btn{min-height:48px}.simple-actions{gap:9px}.simple-action{min-height:98px;padding:14px;display:grid;grid-template-columns:38px 1fr;align-items:center;justify-content:initial}.simple-action .simple-icon{grid-row:1 / span 2;font-size:25px}.simple-action strong,.simple-action small{grid-column:2}.simple-action small{margin-top:-3px}.table-wrap{margin-left:-3px;margin-right:-3px}.table th,.table td{padding:9px 10px}.footer-note{font-size:10px;margin-top:17px;padding-bottom:4px}.sticky-save{position:sticky;bottom:74px;padding:10px;margin-left:-2px;margin-right:-2px}.resource-picker .picker-actions .btn{flex:1 1 auto}
  .bottom-nav{z-index:90;grid-template-columns:repeat(5,1fr);gap:2px;padding:5px max(5px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left));background:rgba(5,17,29,.96);backdrop-filter:blur(14px);box-shadow:0 -8px 26px rgba(0,0,0,.24)}.bottom-nav a,.bottom-nav button{display:flex;flex-direction:column;gap:2px;align-items:center;justify-content:center;min-width:0;min-height:54px;padding:4px 2px;border:0;border-radius:10px;background:transparent;text-decoration:none;cursor:pointer}.bottom-nav a>span,.bottom-nav button>span{font-size:18px;line-height:1}.bottom-nav small{display:block;max-width:100%;font-size:10px;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bottom-nav a.active{background:#173956;color:#fff}.bottom-nav button[aria-expanded=true]{background:#173956}
  .mobile-menu-backdrop{position:fixed;display:block;inset:0;z-index:94;background:rgba(0,0,0,.5);backdrop-filter:blur(2px)}.mobile-menu-backdrop[hidden]{display:none}.mobile-menu{position:fixed;display:flex;z-index:95;left:8px;right:8px;bottom:calc(74px + env(safe-area-inset-bottom));max-height:min(68vh,620px);flex-direction:column;padding:12px;border:1px solid #476985;border-radius:18px;background:#0b1b2e;box-shadow:0 24px 70px rgba(0,0,0,.5);transform:translateY(calc(100% + 100px));opacity:0;visibility:hidden;transition:transform .2s ease,opacity .2s ease,visibility .2s}.mobile-menu.open{transform:none;opacity:1;visibility:visible}.mobile-menu-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 2px 10px;border-bottom:1px solid var(--line)}.mobile-menu-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;overflow:auto;padding:10px 1px}.mobile-menu-links a{display:flex;align-items:center;min-height:48px;padding:10px;border:1px solid #365671;border-radius:11px;background:#102842;text-decoration:none;font-weight:650}.mobile-menu-links a:active{background:#193d5d}.mobile-logout{margin:4px 1px 1px}.mobile-logout .btn{width:100%}.menu-open{overflow:hidden}
}
@media(max-width:480px){.mobile-menu-links{grid-template-columns:1fr}.brand-wrap{gap:8px}.brand-logo{width:40px;height:40px}.section-title>.nav .btn{width:100%}.vacation-search{grid-template-columns:1fr}.vacation-search .btn{width:100%}.row>.nav{width:100%}.row>.nav .btn{flex:1 1 auto}}
@media(min-width:851px){.page-tools{position:relative;top:auto}.desktop-nav{display:flex}.bottom-nav{display:none!important}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{.top,.compact-notice,.page-tools,.bottom-nav,.mobile-menu,.mobile-menu-backdrop,.footer-note{display:none!important}.shell{max-width:none;padding:0}.card{box-shadow:none}}
.login-card{padding:24px}.login-title{text-align:center;margin-bottom:14px}.login-title p{margin:5px 0 0}.login-intro{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 16px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:#102842;color:#dce8f2;font-size:13px}.login-form .btn{width:100%;min-height:50px}.login-foot{text-align:center;margin-top:16px}.login-logo{filter:drop-shadow(0 8px 18px rgba(0,0,0,.18))}@media(max-width:520px){.login-shell{margin:3vh auto;padding:10px}.login-card{padding:18px 14px}}

/* V4.8 – kategorisierte Werkstatt-/Bestandsansichten */
.inventory-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) auto auto;gap:9px;align-items:end;margin:10px 0 12px}.inventory-search{display:grid;gap:6px}.inventory-groups{display:grid;gap:9px}.inventory-group,.inventory-subgroup{border:1px solid rgba(69,103,131,.58);border-radius:13px;background:#081827;overflow:hidden}.inventory-group>summary,.inventory-subgroup>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;padding:10px 12px;list-style:none;cursor:pointer}.inventory-group>summary::-webkit-details-marker,.inventory-subgroup>summary::-webkit-details-marker{display:none}.inventory-group>summary:before,.inventory-subgroup>summary:before{content:'›';width:20px;flex:0 0 20px;font-size:21px;font-weight:900;color:#9db6cb;transition:transform .14s ease}.inventory-group[open]>summary:before,.inventory-subgroup[open]>summary:before{transform:rotate(90deg)}.inventory-group>summary>span:first-of-type,.inventory-subgroup>summary>strong{min-width:0}.inventory-group>summary>span:first-of-type{display:grid;gap:2px;flex:1}.inventory-group>summary:hover,.inventory-subgroup>summary:hover{background:#102842}.inventory-group-body{display:grid;gap:8px;padding:9px;border-top:1px solid rgba(69,103,131,.4)}.inventory-subgroup{background:#0b1b2e}.inventory-subgroup>summary{min-height:44px;padding:9px 11px}.inventory-subgroup>summary .muted{margin-left:auto}.inventory-cards{display:grid;gap:7px;padding:0 9px 9px}.inventory-item{display:grid;grid-template-columns:minmax(190px,1.5fr) minmax(360px,2fr) auto;gap:12px;align-items:center;padding:11px;border:1px solid rgba(69,103,131,.42);border-radius:11px;background:#071522}.inventory-item-main{min-width:0}.inventory-item-main strong{display:block;overflow-wrap:anywhere}.inventory-numbers{display:grid;grid-template-columns:repeat(4,minmax(72px,1fr));gap:7px}.inventory-numbers>span{display:grid;gap:3px;padding:7px 8px;border-radius:9px;background:#102842}.inventory-numbers small{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.inventory-numbers strong{font-size:13px}.compact-group>summary{min-height:45px}
@media(max-width:850px){.inventory-toolbar{grid-template-columns:1fr 1fr}.inventory-toolbar .inventory-search{grid-column:1/-1}.inventory-item{grid-template-columns:1fr}.inventory-numbers{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-item>.btn{width:100%}.inventory-group>summary,.inventory-subgroup>summary{align-items:flex-start}.inventory-group>summary>.nav{width:auto}.inventory-group>summary>.nav .tag{flex:none}}
@media(max-width:480px){.inventory-toolbar{grid-template-columns:1fr}.inventory-toolbar .inventory-search{grid-column:auto}.inventory-numbers{grid-template-columns:1fr 1fr}}

/* V5.1 – Login-Schnellstart & mobile Kilometererfassung */
.entry-shell{max-width:900px;margin:4vh auto 0}.entry-heading{text-align:center;margin-bottom:22px}.entry-heading h1{margin:4px 0 5px;font-size:34px}.entry-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.entry-action{position:relative;display:grid;grid-template-columns:58px 1fr 28px;gap:14px;align-items:center;min-height:170px;padding:22px;border:1px solid #456783;border-radius:18px;background:linear-gradient(145deg,#102842,#0a1b2c);box-shadow:var(--shadow-soft);text-decoration:none;transition:transform .15s ease,border-color .15s ease,background .15s ease}.entry-action:hover{transform:translateY(-2px);border-color:#83a5c1;background:linear-gradient(145deg,#153553,#0d2135)}.entry-action.mileage{border-color:#537c66}.entry-action.running{border-color:#85b396;background:linear-gradient(145deg,#15362a,#0b221b)}.entry-action.blocked{opacity:.58;pointer-events:none}.entry-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:15px;background:#173956;font-size:30px}.entry-action.mileage .entry-icon{background:#1b4434}.entry-action strong{display:block;font-size:20px;line-height:1.2}.entry-action small{display:block;margin-top:7px;color:var(--muted);line-height:1.45}.entry-arrow{font-size:34px;color:#9db6cb}.entry-status{max-width:620px;margin:16px auto 0}.quick-km-card{max-width:720px;margin:0 auto}.quick-km-vehicle{display:flex;align-items:center;gap:14px;margin-bottom:18px}.vehicle-symbol{display:grid;place-items:center;width:58px;height:58px;border-radius:15px;background:#173956;font-size:29px}.quick-km-vehicle h2{margin:2px 0;font-size:27px}.quick-km-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:18px}.quick-km-facts>div{display:grid;gap:4px;padding:12px;border-radius:11px;background:#102842}.quick-km-facts small{color:var(--muted)}.quick-km-facts strong{font-size:16px}.quick-km-form{gap:13px}.km-main-field,.km-select-field{display:grid;gap:7px}.km-main-field label,.km-select-field label{font-weight:750}.km-main-field input{min-height:68px;font-size:26px;font-weight:800;text-align:center;letter-spacing:.02em}.km-select-field select{min-height:56px;font-size:17px;font-weight:700}.quick-km-submit{width:100%;min-height:60px;font-size:17px;font-weight:800}.quick-km-form details>summary{min-height:42px;display:flex;align-items:center;font-weight:700}
@media(max-width:700px){.entry-shell{margin-top:1vh}.entry-heading h1{font-size:28px}.entry-actions{grid-template-columns:1fr}.entry-action{min-height:116px;padding:16px;grid-template-columns:48px 1fr 22px}.entry-icon{width:48px;height:48px;font-size:24px}.entry-action strong{font-size:18px}.entry-action small{margin-top:4px}.quick-km-card{padding:15px}.quick-km-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-km-submit{min-height:64px}.km-main-field input{min-height:72px;font-size:29px}}

.entry-logout{text-align:center;margin:18px 0 0}.entry-logout .btn{min-width:130px}

/* V5.1 – vereinfachtes Büro und rollenbegrenzter Offline-Modus */
.office-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.office-shortcut{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:14px;align-items:center;min-height:126px;padding:18px;border:1px solid #456783;border-radius:16px;background:linear-gradient(145deg,#102842,#0a1b2c);text-decoration:none;box-shadow:var(--shadow-soft)}.office-shortcut:hover{border-color:#83a5c1;background:linear-gradient(145deg,#153553,#0d2135)}.office-shortcut.primary-office{border-color:#5b876d}.office-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:14px;background:#173956;font-size:27px}.primary-office .office-icon{background:#1b4434}.office-shortcut strong{display:block;font-size:19px}.office-shortcut small{display:block;margin-top:6px;color:var(--muted);line-height:1.4}.office-metric{display:grid;place-items:center;min-width:42px;height:42px;padding:0 9px;border-radius:21px;background:#173956;font-weight:850}.office-arrow{font-size:34px;color:#9db6cb}.offline-status{display:flex;align-items:center;gap:8px;width:max-content;max-width:100%;margin:0 0 10px;padding:7px 11px;border:1px solid rgba(73,133,102,.72);border-radius:999px;background:rgba(20,63,43,.7);font-size:12px;font-weight:700;cursor:pointer}.offline-dot{width:9px;height:9px;border-radius:50%;background:#6ecb8d;box-shadow:0 0 0 3px rgba(110,203,141,.12)}.offline-status.is-offline{border-color:#9a7942;background:rgba(74,52,16,.72)}.offline-status.is-offline .offline-dot{background:#e3b353;box-shadow:0 0 0 3px rgba(227,179,83,.12)}.offline-status.has-pending:not(.is-offline){border-color:#6085a3;background:rgba(18,53,80,.78)}.offline-status.needs-review{border-color:#aa704e;background:rgba(91,45,22,.8)}.offline-count{display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:rgba(255,255,255,.14);font-size:11px}.offline-fallback{max-width:620px;margin:7vh auto;padding:28px}.offline-fallback h1{margin:8px 0}.offline-flash{animation:offline-in .18s ease-out}@keyframes offline-in{from{transform:translateY(-5px);opacity:.5}to{transform:none;opacity:1}}@media(max-width:700px){.office-shortcuts{grid-template-columns:1fr}.office-shortcut{min-height:108px;padding:14px;grid-template-columns:46px minmax(0,1fr) auto}.office-icon{width:46px;height:46px;font-size:23px}.office-shortcut strong{font-size:17px}.offline-status{width:100%;border-radius:12px;justify-content:center}}

/* V5.2 – Büro als eigenständiges, reduziertes Dokumentenportal */
body[data-role="office"] .shell{max-width:1240px}
body[data-role="office"] .desktop-nav .btn{min-height:40px;padding:8px 11px;font-size:13px}
.office-portal,.office-list-page{display:grid;gap:16px}
.office-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:23px 25px;border:1px solid rgba(84,119,148,.7);border-radius:20px;background:linear-gradient(135deg,#102c47 0,#0b1f34 64%,#0a1929 100%);box-shadow:var(--shadow)}
.office-hero h1,.office-page-head h1{margin:3px 0 6px;font-size:clamp(27px,3.3vw,40px);line-height:1.08;letter-spacing:-.03em}.office-hero p,.office-page-head p{max-width:780px;margin:0;color:#b6c8d7;line-height:1.55}
.office-eyebrow{font-size:11px;font-weight:850;letter-spacing:.11em;color:#91aec5;text-transform:uppercase}
.office-all-button{flex:0 0 auto;white-space:nowrap}
.office-primary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.office-doc-card{position:relative;display:grid;grid-template-columns:52px minmax(0,1fr);grid-template-rows:auto auto;column-gap:14px;row-gap:14px;min-height:185px;padding:20px;border:1px solid rgba(69,103,131,.78);border-radius:18px;background:linear-gradient(160deg,#102842 0,#0a1b2c 75%);box-shadow:var(--shadow-soft);text-decoration:none;overflow:hidden;transition:transform .14s ease,border-color .14s ease,background .14s ease}
.office-doc-card:hover{transform:translateY(-2px);border-color:#7898b2;background:linear-gradient(160deg,#153552 0,#0d2134 75%)}
.office-doc-icon{display:grid;place-items:center;width:52px;height:52px;border:1px solid #456983;border-radius:14px;background:#173956;color:#eef6fc;font-size:15px;font-weight:900;letter-spacing:.05em}.office-doc-icon.small-icon{width:44px;height:44px;border-radius:12px;font-size:13px}
.office-doc-copy{min-width:0}.office-doc-copy strong{display:block;font-size:20px;line-height:1.2}.office-doc-copy small{display:block;margin-top:7px;color:#a9bdcc;line-height:1.48}
.office-doc-meta{display:flex;align-items:baseline;gap:7px;grid-column:1/3;padding-top:12px;border-top:1px solid rgba(69,103,131,.42)}.office-doc-meta b{font-size:24px;line-height:1}.office-doc-meta small{color:var(--muted)}
.office-doc-arrow{position:absolute;right:18px;bottom:17px;font-size:23px;color:#9eb8ca}
.office-recent-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.office-recent-card{min-width:0}.office-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.office-card-head h2{margin:3px 0 0;font-size:21px}
.office-document-list{display:grid;gap:8px}.office-document-list-large{gap:10px}.office-document-row{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;padding:11px 12px;border:1px solid rgba(69,103,131,.44);border-radius:12px;background:#091928}.office-document-list-large>.office-document-row{padding:14px 15px;background:#0b1b2e}
.office-document-main{display:grid;gap:3px;min-width:0}.office-document-main strong{overflow-wrap:anywhere}.office-document-main small{color:var(--muted);line-height:1.35}.office-download-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap;flex:0 0 auto}.office-empty{padding:17px;border:1px dashed rgba(69,103,131,.55);border-radius:12px;color:var(--muted);text-align:center;background:rgba(7,21,34,.38)}
.office-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:4px 1px}.office-page-head>.btn{flex:0 0 auto}
.office-filter-bar{display:grid;grid-template-columns:minmax(240px,1.5fr) repeat(2,minmax(150px,.65fr)) auto auto;gap:10px;align-items:end;padding:14px}.office-filter-bar label{font-size:12px;font-weight:750;color:#c4d5e2}.office-filter-bar input,.office-filter-bar select{margin-top:5px}.office-filter-compact{grid-template-columns:minmax(300px,1fr) auto auto}.office-time-filter{grid-template-columns:repeat(5,minmax(135px,1fr)) auto auto}.office-time-filter p{margin:0;display:grid;gap:5px}.office-time-filter p label{font-size:12px;font-weight:750;color:#c4d5e2}
.office-download-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;border:1px solid #587b98;border-radius:16px;background:linear-gradient(120deg,#11314d,#0d2439);box-shadow:var(--shadow-soft)}.office-download-banner>div{display:flex;align-items:center;gap:13px;min-width:0}.office-download-banner strong{display:block;font-size:18px}.office-download-banner small{display:block;margin-top:3px;color:var(--muted)}.office-pdf-main{min-width:180px}.office-timesheet-table{padding:0;overflow:hidden}.office-timesheet-table .office-card-head{padding:15px 16px 0}.office-timesheet-table .table-wrap{border:0;border-radius:0}.office-table{min-width:760px}
.office-center-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.office-center-card{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:13px;align-items:center;padding:15px;border:1px solid rgba(69,103,131,.68);border-radius:15px;background:#0b1f34;text-decoration:none}.office-center-card:hover{border-color:#7696b0;background:#102842}.office-center-card strong{display:block}.office-center-card small{display:block;margin-top:3px;color:var(--muted)}.office-center-card>span:last-child{font-size:22px;color:#9eb8ca}
@media(max-width:1050px){.office-primary-grid{grid-template-columns:1fr}.office-doc-card{min-height:128px;grid-template-columns:52px minmax(0,1fr) auto;grid-template-rows:auto}.office-doc-meta{grid-column:auto;padding:0 32px 0 12px;border-top:0;border-left:1px solid rgba(69,103,131,.42);display:grid;gap:2px}.office-doc-meta b{font-size:21px}.office-doc-arrow{right:15px;bottom:auto;top:50%;transform:translateY(-50%)}.office-time-filter{grid-template-columns:repeat(3,minmax(140px,1fr))}.office-center-grid{grid-template-columns:1fr}}
@media(max-width:850px){body[data-role="office"] .shell{padding-left:11px;padding-right:11px}.office-portal,.office-list-page{gap:11px}.office-hero{align-items:flex-start;flex-direction:column;padding:18px;border-radius:16px}.office-hero h1,.office-page-head h1{font-size:27px}.office-all-button{width:100%}.office-primary-grid,.office-recent-grid{grid-template-columns:1fr}.office-doc-card{min-height:118px;padding:15px;grid-template-columns:46px minmax(0,1fr);grid-template-rows:auto auto;column-gap:11px}.office-doc-icon{width:46px;height:46px;border-radius:12px}.office-doc-copy strong{font-size:18px}.office-doc-copy small{font-size:12px;margin-top:4px}.office-doc-meta{grid-column:1/3;display:flex;padding:9px 0 0;border-left:0;border-top:1px solid rgba(69,103,131,.42)}.office-doc-meta b{font-size:19px}.office-doc-arrow{top:auto;bottom:12px;right:14px;transform:none}.office-page-head{align-items:flex-start;flex-direction:column}.office-page-head>.btn{width:100%}.office-filter-bar,.office-filter-compact,.office-time-filter{grid-template-columns:1fr}.office-filter-bar .btn{width:100%}.office-download-banner{align-items:stretch;flex-direction:column}.office-pdf-main{width:100%;min-width:0}.office-document-row{align-items:stretch;flex-direction:column}.office-download-actions{justify-content:stretch}.office-download-actions .btn{flex:1 1 auto}.office-card-head{align-items:flex-start}.office-card-head .btn{flex:0 0 auto}.office-timesheet-table{margin-left:0;margin-right:0}}
@media(max-width:480px){.office-card-head{flex-direction:column}.office-card-head .btn{width:100%}.office-download-actions{display:grid;grid-template-columns:1fr}.office-download-actions .btn{width:100%}}
@media(min-width:851px){body[data-role="office"] .desktop-nav{flex-wrap:nowrap}body[data-role="office"] .desktop-logout{flex:0 0 auto}}
body[data-role="office"] .header-right{flex-wrap:nowrap}
body[data-role="office"] .desktop-nav{flex-wrap:nowrap;white-space:nowrap}

/* V5.3 – professioneller Büro-Schnellzugriff, Downloadstatus und Fahrtenbücher */
.office-home{display:grid;gap:18px}
.office-home-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:8px 2px 2px}
.office-home-head h1{margin:4px 0 0;font-size:clamp(29px,3.5vw,42px);letter-spacing:-.035em}
.office-status-strip{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.office-status-pill{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:7px 12px;border:1px solid #34546e;border-radius:999px;background:#0b1c2d;font-size:12px;color:#c5d5e1}
.office-status-pill b{font-size:15px;color:#fff}.office-status-pill.ok{border-color:#315f4a;background:#0e2a20}.office-status-pill.warn{border-color:#6a5930;background:#2a2414}
.office-shortcut-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.office-shortcut-tile{position:relative;display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:16px;min-height:164px;padding:23px;border:1px solid #365975;border-radius:19px;background:linear-gradient(145deg,#112f4b 0%,#0b2035 68%,#091a2a 100%);box-shadow:0 15px 34px rgba(0,0,0,.2);text-decoration:none;overflow:hidden;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.office-shortcut-tile:after{content:"→";position:absolute;right:20px;bottom:14px;color:#8ea9bd;font-size:25px;font-weight:700}
.office-shortcut-tile:hover{transform:translateY(-2px);border-color:#7da1bd;box-shadow:0 18px 38px rgba(0,0,0,.28)}
.office-shortcut-tile.wide{grid-column:span 2}
.office-shortcut-icon{display:grid;place-items:center;width:64px;height:64px;border:1px solid #527894;border-radius:17px;background:#173c5d;font-size:18px;font-weight:950;letter-spacing:.08em}
.office-shortcut-title{font-size:22px;font-weight:850;line-height:1.15}.office-shortcut-count{align-self:start;min-width:42px;height:42px;display:grid;place-items:center;padding:0 10px;border-radius:21px;background:#173956;border:1px solid #416783;font-size:16px;font-weight:850}
.office-home-note{display:flex;align-items:flex-start;gap:12px;padding:15px 17px;border:1px solid #6a5930;border-radius:15px;background:#211d13}.office-home-note.success{border-color:#315f4a;background:#0e261d}.office-home-note-dot{width:10px;height:10px;margin-top:5px;border-radius:50%;background:#e3b353;box-shadow:0 0 0 4px rgba(227,179,83,.12)}.office-home-note.success .office-home-note-dot{background:#6ecb8d;box-shadow:0 0 0 4px rgba(110,203,141,.12)}.office-home-note strong,.office-home-note small{display:block}.office-home-note small{margin-top:4px;color:var(--muted);line-height:1.4}
.download-state{display:inline-flex;align-items:center;min-height:34px;padding:6px 10px;border-radius:999px;border:1px solid #405b72;font-size:12px;font-weight:800;white-space:nowrap}.download-state.downloaded{background:#0f2e22;border-color:#35684e;color:#bfe8ce}.download-state.updated{background:#342b16;border-color:#80692c;color:#ffe09a}.download-state.open{background:#102b43;border-color:#476d8a;color:#d6e9f7}.download-state.not-ready{background:#171f28;border-color:#3a4857;color:#9fb0be}
.office-vehicle-filter{grid-template-columns:minmax(240px,1.3fr) minmax(170px,.75fr) minmax(160px,.7fr) auto auto}
.office-report-preview{display:grid;gap:14px}.office-report-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.office-report-kpis>div{padding:13px 14px;border:1px solid rgba(69,103,131,.55);border-radius:13px;background:#091928}.office-report-kpis b,.office-report-kpis small{display:block}.office-report-kpis b{font-size:23px}.office-report-kpis small{margin-top:2px;color:var(--muted);font-size:12px}.office-filename-preview{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.office-filename-preview strong{color:#d9e8f4}
.office-absence-filter{grid-template-columns:minmax(260px,1.3fr) minmax(160px,.7fr) minmax(160px,.7fr) auto auto}.office-absence-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.office-absence-grid>.card{min-width:0}
body[data-role="office"] .desktop-nav{gap:5px}body[data-role="office"] .desktop-nav .btn{padding-left:9px;padding-right:9px}
@media(max-width:1050px){.office-shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.office-shortcut-tile.wide{grid-column:span 1}.office-absence-grid{grid-template-columns:1fr}.office-vehicle-filter,.office-absence-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.office-vehicle-filter .btn,.office-absence-filter .btn{width:100%}}
@media(max-width:850px){.office-home{gap:12px}.office-home-head{align-items:flex-start;flex-direction:column}.office-status-strip{justify-content:flex-start}.office-shortcut-grid{grid-template-columns:1fr}.office-shortcut-tile,.office-shortcut-tile.wide{grid-column:auto;min-height:112px;padding:16px;grid-template-columns:52px minmax(0,1fr) auto}.office-shortcut-icon{width:52px;height:52px;border-radius:14px;font-size:15px}.office-shortcut-title{font-size:18px}.office-shortcut-count{min-width:36px;height:36px;font-size:14px}.office-shortcut-tile:after{display:none}.office-report-kpis{grid-template-columns:1fr}.office-vehicle-filter,.office-absence-filter{grid-template-columns:1fr}}


/* V5.6 – professionelle Shortcut-Icons, Projektvormerkungen und kategorisierte Werkstattfristen */
.office-shortcut-icon svg,.workshop-shortcut-icon svg,.workshop-due-category-icon svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.office-shortcut-copy{display:block;min-width:0}.office-shortcut-copy small{display:block;margin-top:6px;color:var(--muted);font-size:12px;line-height:1.35}.office-shortcut-tile.is-timesheet .office-shortcut-icon{background:#173f62}.office-shortcut-tile.is-daily .office-shortcut-icon{background:#263f61}.office-shortcut-tile.is-service .office-shortcut-icon{background:#1d4b42}.office-shortcut-tile.is-vehicle .office-shortcut-icon{background:#37405b}.office-shortcut-tile.is-absence .office-shortcut-icon{background:#4b3d28}

.workshop-shortcut-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 14px}.workshop-shortcut{position:relative;display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:14px;min-height:118px;padding:17px;border:1px solid #365975;border-radius:17px;background:linear-gradient(145deg,#102b46,#0a1d31);text-decoration:none;box-shadow:0 12px 28px rgba(0,0,0,.16);transition:transform .15s ease,border-color .15s ease,background .15s ease}.workshop-shortcut:hover{transform:translateY(-2px);border-color:#789bb6;background:linear-gradient(145deg,#153652,#0d243b)}.workshop-shortcut-icon{display:grid;place-items:center;width:58px;height:58px;border:1px solid #4e748f;border-radius:15px;background:#173b5a;color:#eaf4fb}.workshop-shortcut-copy{min-width:0}.workshop-shortcut-copy strong{display:block;font-size:17px;line-height:1.2}.workshop-shortcut-copy small{display:block;margin-top:5px;color:var(--muted);font-size:12px;line-height:1.35}.workshop-shortcut-metric{display:grid;place-items:center;min-width:38px;height:38px;padding:0 9px;border:1px solid #416783;border-radius:20px;background:#153550;font-size:14px;font-weight:900}.workshop-shortcut-metric.warn{border-color:#80692c;background:#342b16;color:#ffe09a}.workshop-shortcut-metric.danger{border-color:#79404a;background:#35191d;color:#ffd1d1}.workshop-shortcut.is-checkout .workshop-shortcut-icon{background:#213e5b}.workshop-shortcut.is-booking .workshop-shortcut-icon{background:#224b42}.workshop-shortcut.is-material .workshop-shortcut-icon{background:#3a4228}.workshop-shortcut.is-device .workshop-shortcut-icon{background:#343d58}.workshop-shortcut.is-vehicle .workshop-shortcut-icon{background:#263f61}.workshop-shortcut.is-reservation .workshop-shortcut-icon{background:#3b345f}.workshop-shortcut.is-due .workshop-shortcut-icon{background:#4a3824}

.workshop-due-section{scroll-margin-top:16px}.workshop-due-head{align-items:flex-start}.workshop-due-summary{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.workshop-due-groups{display:grid;gap:10px}.workshop-due-group{border:1px solid #35536d;border-radius:14px;background:#091928;overflow:hidden}.workshop-due-group>summary{display:grid;grid-template-columns:48px minmax(0,1fr) auto 22px;align-items:center;gap:12px;min-height:76px;padding:13px 15px;cursor:pointer;list-style:none;background:#0d2237}.workshop-due-group>summary::-webkit-details-marker{display:none}.workshop-due-group[open]>summary{border-bottom:1px solid #2b4962}.workshop-due-category-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:13px;border:1px solid #456984;background:#153550;color:#e7f1f8}.workshop-due-category-icon.vehicle_inspection{background:#243e5c}.workshop-due-category-icon.vehicle_service{background:#2b4148}.workshop-due-category-icon.device_inspection{background:#214b43}.workshop-due-category-icon.device_maintenance{background:#493b27}.workshop-due-category-icon svg{width:27px;height:27px}.workshop-due-category-copy{min-width:0}.workshop-due-category-copy strong,.workshop-due-category-copy small{display:block}.workshop-due-category-copy strong{font-size:16px}.workshop-due-category-copy small{margin-top:4px;color:var(--muted);font-size:12px;line-height:1.35}.workshop-due-category-status{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.workshop-due-category-status>b{display:grid;place-items:center;min-width:34px;height:34px;padding:0 8px;border-radius:18px;border:1px solid #45657f;background:#112d46}.due-mini{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border-radius:999px;border:1px solid #38556d;font-size:10px;font-weight:800;white-space:nowrap}.due-mini.danger{background:#35191d;border-color:#79404a;color:#ffd1d1}.due-mini.warn{background:#342b16;border-color:#80692c;color:#ffe09a}.due-mini.ok{background:#143022;border-color:#2d6844;color:#c8efd5}.workshop-due-chevron{font-size:20px;color:#8ea9bd;transition:transform .15s ease}.workshop-due-group[open] .workshop-due-chevron{transform:rotate(180deg)}.workshop-due-group-body{display:grid;gap:8px;padding:10px}.workshop-due-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:12px 13px;border:1px solid #2e4a62;border-radius:11px;background:#0b1b2e}.workshop-due-item.urgent{border-left:4px solid #a9575f}.workshop-due-item.missing{border-left:4px solid #a38139}.workshop-due-item-main{min-width:0}.workshop-due-item-main strong,.workshop-due-item-main small{display:block}.workshop-due-item-main small{margin-top:4px;color:var(--muted);font-size:12px}.workshop-due-empty{padding:13px;border:1px dashed #315f4a;border-radius:10px;background:#0e261d;color:#bfe8ce;font-size:12px}

@media(max-width:1050px){.workshop-shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workshop-due-group>summary{grid-template-columns:46px minmax(0,1fr) auto 20px}.workshop-due-category-status .due-mini{display:none}}
@media(max-width:850px){.office-shortcut-copy small{font-size:11px}.workshop-shortcut-grid{grid-template-columns:1fr}.workshop-shortcut{min-height:96px;padding:13px;grid-template-columns:50px minmax(0,1fr) auto}.workshop-shortcut-icon{width:50px;height:50px;border-radius:13px}.workshop-shortcut-icon svg{width:28px;height:28px}.workshop-due-summary{justify-content:flex-start}.workshop-due-group>summary{grid-template-columns:42px minmax(0,1fr) auto 18px;padding:11px}.workshop-due-category-icon{width:42px;height:42px}.workshop-due-category-copy small{display:none}.workshop-due-item{grid-template-columns:1fr}.workshop-due-item .tag{width:max-content}.workshop-due-item .btn{width:100%}}
