/* Dashboard shell. Existing module styles remain independent. */
:root{--navy:#11283e;--red:#c8102e;--ink:#12283f;--muted:#65748a;--line:#e2e7ee;--surface:#f5f7fa;--sidebar:258px}
html,body{margin:0;min-height:100%;background:var(--surface);color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:15px;line-height:1.5;background-image:none}
body *{box-sizing:border-box}
a,a:link,a:active{color:#b70e29}a:hover{font-weight:inherit;color:#940b20}a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #4288d5;outline-offset:3px}
div#page{min-width:0;width:auto;max-width:none;margin:0 0 0 var(--sidebar);border:0;border-radius:0;box-shadow:none;overflow:visible;min-height:100vh;display:flex;flex-direction:column}
#header{position:fixed;inset:0 auto 0 0;width:var(--sidebar);height:100dvh;background:var(--navy);color:white;z-index:110;display:flex;flex-direction:column;overflow-y:auto}
#title{background:none;min-height:110px;height:auto;padding:28px 20px 24px;display:flex;align-items:center;gap:13px;flex-shrink:0}
#title #wappen{position:static;float:none;margin:0;width:45px;height:52px;flex-shrink:0;background-position:center}
#title .brand-copy{position:static;left:auto;top:auto;font-size:17px;font-style:normal;color:#fff;text-shadow:none;line-height:1.3;font-weight:700;letter-spacing:.2px}
#title .brand-copy small{display:block;color:#b9c8d7;font-size:13px;font-weight:400;margin-top:5px;letter-spacing:0}
#feuerwehr,#audi{display:none}
#menue{background:none;height:auto;padding:0 14px 24px}
#menu{float:none;background:none;padding:0;margin:0;width:100%;list-style:none}
#menu li{float:none;padding:0;margin:4px 0;position:relative;line-height:1.4}
#menu a,#menu .nav-group{float:none;display:flex;align-items:center;gap:12px;width:100%;min-height:45px;height:auto;padding:11px 14px;color:#c9d4e0;background:none;border:0;border-radius:7px;text-transform:none;text-shadow:none;font:400 14px/1.5 Arial,Helvetica,sans-serif;text-decoration:none;text-align:left;cursor:pointer}
#menu a:hover,#menu .nav-group:hover,#menu li:hover>a{color:white;background:#203c55;font-weight:400}
#menu a[aria-current=page]{background:var(--red);color:white;font-weight:700}
#menu .nav-icon{width:20px;text-align:center;font-size:17px;flex-shrink:0}
#menu .nav-arrow{margin-left:auto;font-size:11px;transition:transform .15s}
#menu .nav-group[aria-expanded=true] .nav-arrow{transform:rotate(90deg)}
#menu ul,#menu ul ul{position:static;top:auto;left:auto;display:block;background:none;box-shadow:none;border-radius:0;padding:0 0 0 16px;margin:4px 0;list-style:none}
#menu ul a{width:100%;white-space:normal;line-height:1.4;padding:9px 12px;font-size:13px;min-height:38px}
#menu ul li{box-shadow:none;border:0}#menu ul a:after{display:none!important}#menu ul a:hover{background:#203c55}
.nav-ready #menu ul{display:none}.nav-ready #menu li.nav-open>ul{display:block}
#menu .nav-logout{border-top:1px solid #385066;border-radius:0;margin-top:18px;padding-top:18px}
.workspace-bar{min-height:76px;padding:17px 32px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:18px;background:#fff}
.workspace-location{color:var(--muted);font-size:14px}.workspace-location strong{color:var(--ink);font-weight:600}.workspace-location span{margin:0 12px;color:#b1bac5}
.workspace-account{margin-left:auto;display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px}.account-avatar{width:38px;height:38px;display:grid;place-items:center;background:#edf0f5;border-radius:50%;color:var(--ink)}
.mobile-nav-toggle,.mobile-nav-close,.nav-backdrop{display:none}.skip-link{position:fixed;top:-100px;left:280px;background:white;padding:12px;z-index:500}.skip-link:focus{top:10px}
div#content{background:var(--surface);min-height:0;padding:32px;flex:1;overflow:auto;position:relative;min-width:0}
div#footer{height:auto;display:flex;justify-content:space-between;gap:20px;padding:18px 32px;border-top:1px solid var(--line);background:white;font:12px/1.5 Arial,Helvetica,sans-serif;color:var(--muted)}
#footer a{color:var(--muted)}#error{margin:18px 32px 0;padding:14px 18px;border:1px solid #f1bcc5;border-left:4px solid var(--red);border-radius:8px;background:#fff5f6;color:#97132a;text-align:left}
.dashboard{max-width:1600px;margin:auto}.dashboard-welcome{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px}.dashboard-welcome h1{font-size:32px;letter-spacing:-1px;line-height:1.2;margin:5px 0 10px;font-weight:700}.dashboard-welcome p{margin:0;color:var(--muted);font-size:16px}.dashboard-welcome .eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;color:#8b5160}.dashboard-today{font-size:13px;color:var(--muted);white-space:nowrap}.dashboard-today i{margin-right:7px}
.dashboard-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:26px}.stat-card{display:flex;align-items:center;gap:16px;background:white;padding:22px;border:1px solid var(--line);border-radius:10px;min-width:0}.stat-card p{font-size:13px;margin:0 0 4px;color:var(--muted)}.stat-card strong{display:block;font-size:28px;line-height:1.2;letter-spacing:-.5px}.stat-card .stat-label{font-size:19px;letter-spacing:-.3px}.stat-card small{display:block;font-size:12px;color:var(--muted);margin-top:7px}.stat-icon{width:48px;height:48px;background:#fcecef;color:var(--red);border-radius:50%;display:grid;place-items:center;font-size:21px;flex-shrink:0}.stat-icon.neutral{background:#eef1f6;color:var(--navy)}.stat-link,.stat-link:link{color:var(--ink)}.stat-link:hover{border-color:#cbb0b7;background:#fffafb;color:var(--ink)}.stat-link strong{color:var(--red)}
.dashboard-columns{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);gap:22px}.dashboard-main,.dashboard-aside{display:flex;flex-direction:column;gap:22px;min-width:0}.dashboard-card{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:19px 22px;border-bottom:1px solid var(--line)}.card-heading h2{font-size:16px;margin:0;line-height:1.4;letter-spacing:-.2px}.card-heading h2 i{margin-right:10px}.card-heading>a{font-size:12px;white-space:nowrap}.card-heading>a span{margin-left:8px}
.next-duty{display:flex;align-items:flex-start;gap:22px;padding:26px 22px 30px}.date-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--red);color:white;width:76px;min-height:92px;border-radius:7px;flex-shrink:0}.date-tile strong{font-size:34px;line-height:1.1}.date-tile span{font-size:12px;text-transform:uppercase;margin-top:5px}.next-duty h3{font-size:20px;letter-spacing:-.4px;margin:10px 0 15px;line-height:1.4;overflow-wrap:anywhere}.next-duty p{color:var(--muted);font-size:13px;margin:8px 0}.next-duty p i{width:18px;margin-right:4px}.dashboard-badge{display:inline-block;background:#f2f4f8;color:#5f6b7a;font-size:10px;padding:4px 8px;border-radius:4px}.next-duty-details{min-width:0}
.upcoming-list{padding:0 20px}.upcoming-duty{display:flex;gap:15px;align-items:center;padding:17px 0;border-bottom:1px solid var(--line)}.upcoming-duty:last-child{border-bottom:0}.date-tile.small{width:48px;min-height:58px;background:#f2f4f8;color:var(--ink);border-radius:6px}.date-tile.small strong{font-size:21px}.date-tile.small span{font-size:10px;margin-top:1px}.upcoming-duty h3{font-size:13px;line-height:1.4;margin:0 0 4px;overflow-wrap:anywhere}.upcoming-duty p{font-size:12px;color:var(--muted);margin:0}
.news-list{padding:0 22px}.dashboard-news{display:flex;gap:16px;padding:22px 0;border-bottom:1px solid var(--line)}.dashboard-news:last-child{border:0}.news-icon{width:39px;height:39px;flex-shrink:0;display:grid;place-items:center;background:#fcecef;color:var(--red);border-radius:50%;font-size:17px}.dashboard-news h3{font-size:15px;line-height:1.5;margin:0 0 3px}.dashboard-news small{font-size:11px;color:var(--muted)}.dashboard-news p{font-size:13px;color:var(--muted);line-height:1.65;margin:8px 0 0;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.dashboard-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:18px}.dashboard-shortcuts a{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:6px;padding:14px 12px;color:var(--ink);font-size:12px;min-width:0}.dashboard-shortcuts a i{font-size:17px}.dashboard-shortcuts a span:last-child{margin-left:auto}.dashboard-shortcuts a:hover{border-color:#c8102e;background:#fff8f9}.calendar-card{padding:23px;background:#edf2f7}.calendar-card>i{font-size:25px}.calendar-card h2{font-size:16px;margin:13px 0 8px}.calendar-card p{font-size:13px;color:var(--muted);margin:0 0 14px}.calendar-card a{font-size:13px;font-weight:600}.dashboard-empty{padding:36px 25px;text-align:center}.dashboard-empty>i{font-size:30px;color:#9aa7b7}.dashboard-empty h3{font-size:17px;margin:15px 0 8px}.dashboard-empty p,.dashboard-note{color:var(--muted);font-size:13px}.dashboard-note{padding:10px 0}.dashboard-intro{padding:24px}.dashboard-intro h3{font-size:19px;margin:0 0 10px}.dashboard-intro p{font-size:14px;color:var(--muted);margin:0 0 22px;max-width:500px}.dashboard-button{display:inline-flex;align-items:center;gap:22px;background:var(--red);color:white!important;border-radius:6px;padding:10px 15px;font-size:13px}.dashboard-button:hover{background:#a30d26}
/* Keep legacy forms and wide planning tables usable within the new shell. */
body:not(.is-home) #content>fieldset{border:1px solid var(--line);border-radius:8px;background:white;padding:18px;margin-bottom:20px}body:not(.is-home) #content input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=image]):not([type=color]),body:not(.is-home) #content select,body:not(.is-home) #content textarea{font:inherit;max-width:100%;padding:7px 9px;border:1px solid #bbc5d1;border-radius:4px}body:not(.is-home) #content input[type=submit]{cursor:pointer;background:#edf1f6;color:var(--ink)}
body.is-login div#page{margin:0}body.is-login #header,body.is-login .workspace-bar{display:none}body.is-login #content{min-height:calc(100vh - 60px);display:grid;place-items:center}body.is-login #logindiv{position:static;transform:none;padding:34px;max-width:100%;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 35px #14283e0d}
@media(min-width:1600px){div#content{padding:40px 48px}.workspace-bar{padding-left:48px;padding-right:48px}}
@media(max-width:1200px){:root{--sidebar:228px}#title{padding-left:16px;padding-right:12px}#title .brand-copy{font-size:15px}div#content{padding:25px}.dashboard-columns{grid-template-columns:minmax(0,1.25fr) minmax(280px,1fr)}.dashboard-stats{gap:12px}.stat-card{padding:17px 14px;gap:12px}.stat-icon{width:38px;height:38px;font-size:18px}.stat-card .stat-label{font-size:16px}.card-heading{padding:17px}.card-heading h2{font-size:14px}.card-heading>a{font-size:11px}.next-duty{padding:23px 17px;gap:15px}.dashboard-today{font-size:12px}}
@media(max-width:1000px){.dashboard-columns{grid-template-columns:1fr}.dashboard-welcome{align-items:flex-start;flex-direction:column;gap:12px}.dashboard-aside{display:grid;grid-template-columns:1fr 1fr;align-items:start}.calendar-card{grid-column:1/-1}.dashboard-stats{grid-template-columns:1fr}.stat-card{padding:16px}.stat-card strong{font-size:23px}.dashboard-shortcuts{grid-template-columns:1fr}.stat-card .stat-label{font-size:18px}}
@media(max-width:760px){div#page{margin-left:0}#header{position:relative;inset:auto;width:100%;height:auto;max-height:none}#title{min-height:85px;padding:18px 22px}#menue{padding-bottom:14px}.nav-ready #header{position:fixed;inset:0 auto 0 0;width:280px;height:100dvh;transform:translateX(-100%);transition:transform .18s ease}.nav-ready.nav-visible #header{transform:translateX(0)}.mobile-nav-toggle{display:inline-flex;justify-content:center;align-items:center;flex-shrink:0;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);width:40px;height:40px;cursor:pointer;font-size:18px}.mobile-nav-close{display:block;align-self:flex-end;background:none;border:0;color:white;font:24px Arial;padding:10px 18px;cursor:pointer}.nav-ready.nav-visible .nav-backdrop{display:block;position:fixed;inset:0;background:#07152399;z-index:109;border:0;border-radius:0;width:100%;height:100%}.nav-visible{overflow:hidden}.workspace-bar{min-height:68px;padding:12px 18px;gap:13px}.workspace-location{font-size:12px}.workspace-location span{margin:0 7px}.workspace-account .account-label{display:none}.account-avatar{width:32px;height:32px}.skip-link{left:15px}div#content{padding:23px 18px}.dashboard-welcome h1{font-size:28px}.dashboard-welcome p{font-size:14px}.dashboard-welcome{margin-bottom:22px}.dashboard-stats{gap:10px;margin-bottom:20px}.dashboard-columns,.dashboard-main,.dashboard-aside{gap:18px}.dashboard-aside{display:flex}.dashboard-shortcuts{grid-template-columns:1fr 1fr}.card-heading{padding:16px;flex-wrap:wrap;gap:8px}.next-duty{gap:14px;padding:22px 16px}.date-tile{width:58px;min-height:77px}.date-tile strong{font-size:29px}.next-duty h3{font-size:17px}.next-duty p{font-size:12px}.news-list{padding:0 16px}.dashboard-news{gap:12px}.dashboard-shortcuts a{padding:13px 10px;font-size:12px}div#footer{padding:16px 18px;font-size:11px;flex-wrap:wrap;gap:6px}#error{margin:14px 18px 0}.dashboard-card{border-radius:8px}}
.profile-card{max-width:780px}.profile-details{padding:0 24px;margin:0}.profile-details>div{display:grid;grid-template-columns:140px 1fr;gap:18px;padding:19px 0;border-bottom:1px solid var(--line)}.profile-details>div:last-child{border:0}.profile-details dt{color:var(--muted);font-size:13px}.profile-details dd{margin:0;overflow-wrap:anywhere}
@media(max-width:450px){.profile-details>div{grid-template-columns:1fr;gap:4px}}
body:not(.nav-ready) .mobile-nav-toggle,body:not(.nav-ready) .mobile-nav-close{display:none}
@media(prefers-reduced-motion:reduce){#header,.nav-arrow{transition:none!important}}
@media print{#header,.workspace-bar,.nav-backdrop,.skip-link{display:none!important}div#page{margin:0}div#content{padding:0;overflow:visible}.dashboard-columns{display:block}.dashboard-card{break-inside:avoid;margin-bottom:16px}.dashboard-stats{grid-template-columns:repeat(3,1fr)}}

/* Navigation opens exclusively through the click state set by dashboard.js. */
.nav-ready #menu li:not(.nav-open)>ul,.nav-ready #menu li:not(.nav-open):hover>ul{display:none}.nav-ready #menu li.nav-open>ul{display:block}

/* Reset legacy mobile body padding to prevent viewport overflow. */html,body{box-sizing:border-box;padding:0;width:auto}
