/* WWS RE Leuchtet 2026 · v3.32.0 · Field Focus
   Nur Mitarbeiteransicht. Adminkarten und Backend unverändert. */
.worker-layout {
  --rel-surface:#ffffff;
  --rel-soft:#f4f6f9;
  --rel-text:#222b37;
  --rel-muted:#626d7b;
  --rel-line:#dfe4eb;
  --rel-accent:#bb233e;
}
html[data-theme="dark"] .worker-layout {
  --rel-surface:#1c2530;
  --rel-soft:#242e3b;
  --rel-text:#f5f7fa;
  --rel-muted:#b6c3d2;
  --rel-line:#3b4756;
  --rel-accent:#f6637d;
}
.worker-layout.staff-view-dashboard,
.worker-layout.staff-view-routes,
.worker-layout.staff-view-special,
.worker-layout.staff-view-documents,
.worker-layout.staff-view-search,
.worker-layout.staff-view-leaderboard { max-width:900px; }
/* One decision at a time on the start screen */
.rel-focus-home { border:1px solid var(--rel-line); background:var(--rel-surface); border-radius:20px; box-shadow:0 9px 25px #0000000d; padding:22px; color:var(--rel-text); margin-bottom:12px; }
.rel-focus-top {display:flex;justify-content:space-between;align-items:start;gap:12px;flex-wrap:wrap;}
.rel-focus-kicker {display:block; color:var(--rel-muted);font-size:11px;letter-spacing:.09em;font-weight:800;text-transform:uppercase;}
.rel-focus-top h1 {font-family:Manrope,system-ui,sans-serif;font-size:clamp(23px,4.5vw,34px);letter-spacing:-.04em;line-height:1.13;margin:9px 0 0;color:var(--rel-text);}
.rel-focus-state {font-size:11px;font-weight:850;border:1px solid var(--rel-line);border-radius:20px;padding:8px 10px;color:var(--rel-muted);background:var(--rel-soft);white-space:nowrap;}
.rel-focus-state.is-running {background:#e8f7ef;border-color:#9edbb9;color:#18744a;}
html[data-theme="dark"] .rel-focus-state.is-running {background:#143d31;color:#a9f6cf;border-color:#35785b;}
.rel-focus-main {padding:22px 0 16px;}
.rel-focus-main>small {display:block;color:var(--rel-muted);font-weight:850;letter-spacing:.12em;font-size:11px;}
.rel-focus-main h2 {margin:5px 0 17px;color:var(--rel-text);font:850 clamp(25px,5.6vw,39px)/1.13 Manrope,system-ui,sans-serif;letter-spacing:-.04em;overflow-wrap:anywhere;}
.rel-focus-cta {display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:59px;font-size:16px!important;padding:14px 20px!important;border-radius:13px!important;box-shadow:none!important;}
.rel-focus-cta span {font-size:25px;line-height:1;}
.rel-focus-progress {display:flex;justify-content:space-between;gap:12px;font-size:13px;font-weight:700;color:var(--rel-muted);}
.rel-focus-progress strong {color:var(--rel-text)}
.rel-focus-track {height:7px;background:var(--rel-soft);overflow:hidden;border-radius:999px;margin-top:9px;}
.rel-focus-track span {display:block;height:100%;border-radius:999px;background:#2f9d74;}
/* Mandatory priority remains visible, informational notices go in the drawer. */
.rel-briefing {background:var(--rel-surface);border:1px solid var(--rel-line);border-radius:20px;padding:19px 21px;color:var(--rel-text);}
.rel-briefing-title {display:flex;align-items:baseline;gap:12px;justify-content:space-between;margin:0 0 11px;}
.rel-briefing-title h2 {font:800 17px/1.3 Manrope,system-ui,sans-serif;margin:0;color:var(--rel-text);}
.rel-briefing-title>span {font-size:11px;color:var(--rel-muted);font-weight:750;white-space:nowrap;}
.rel-briefing-priority {padding:15px;margin:0 0 14px;border-radius:12px;border-left:4px solid #d4942f;background:#fff7e6;color:#543600;}
.rel-priority-red {background:#ffeef0;border-left-color:#d12544;color:#832139;}
html[data-theme="dark"] .rel-briefing-priority {background:#3f3320;color:#ffe8b5;}
html[data-theme="dark"] .rel-priority-red {background:#4a252e;color:#ffe2e7;}
.rel-briefing-priority>span {display:block;font-size:10px;letter-spacing:.07em;font-weight:900;margin:0 0 6px;}
.rel-briefing-priority strong{display:block;font-size:15px;line-height:1.35;}
.rel-briefing-priority p {margin:7px 0 0;line-height:1.5;font-size:13px;overflow-wrap:anywhere;}
.rel-briefing-priority .btn{margin-top:10px;}
.rel-briefing-task {display:flex;gap:12px;align-items:center;background:var(--rel-soft);padding:15px;border-radius:13px;border:1px solid var(--rel-line);}
.rel-briefing-time {min-width:70px;align-self:start;font:850 20px/1.2 Manrope,system-ui,sans-serif;color:var(--rel-text);font-variant-numeric:tabular-nums;}
.rel-briefing-time small{display:block;font-size:10px;color:var(--rel-muted);margin-top:2px;}
.rel-briefing-task>div:nth-child(2){flex:1;min-width:0;}
.rel-briefing-task strong {font-size:15px;line-height:1.35;color:var(--rel-text);display:block;overflow-wrap:anywhere;}
.rel-briefing-task p {font-size:12px;line-height:1.45;color:var(--rel-muted);margin:5px 0 0;}
.rel-briefing-task small {color:var(--rel-muted);font-size:11px;}
.rel-briefing-call{display:flex;align-items:center;justify-content:center;width:42px;min-width:42px;min-height:42px;border:1px solid var(--rel-line);border-radius:12px;background:var(--rel-surface);color:var(--rel-text);text-decoration:none;font-size:19px;}
.rel-briefing-link {width:100%;border:0;background:transparent;padding:12px 0 8px;display:flex;justify-content:space-between;gap:12px;cursor:pointer;font-size:13px;font-weight:800;color:var(--rel-accent);text-align:left;}
.rel-briefing-empty {color:var(--rel-muted);font-size:13px;margin:6px 0 0;}
.rel-briefing-details {margin-top:5px;border-top:1px solid var(--rel-line);}
.rel-briefing-details summary,.rel-route-utilities summary,.rel-map-settings summary,.rel-map-hint summary,.rel-location-photo summary {list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 2px;font-weight:750;font-size:13px;color:var(--rel-text);min-height:44px;}
.rel-briefing-details summary::-webkit-details-marker,.rel-route-utilities summary::-webkit-details-marker,.rel-map-settings summary::-webkit-details-marker,.rel-map-hint summary::-webkit-details-marker,.rel-location-photo summary::-webkit-details-marker{display:none;}
.rel-briefing-details summary::after,.rel-route-utilities summary::after{content:'⌄';font-size:17px;color:var(--rel-muted);margin-left:auto;}
.rel-briefing-details[open] summary::after,.rel-route-utilities[open] summary::after{transform:rotate(180deg);}
.rel-briefing-details summary b {background:var(--rel-soft);border-radius:99px;padding:3px 8px;font-size:11px;color:var(--rel-muted);}
.rel-briefing-details-body {padding:0 2px 10px;font-size:13px;line-height:1.5;color:var(--rel-muted);}
.rel-briefing-details-body article {padding:10px 0;border-top:1px solid var(--rel-line);}
.rel-briefing-details-body article strong {font-size:13px;color:var(--rel-text);}
.rel-briefing-details-body article p {margin:5px 0;overflow-wrap:anywhere;}
/* Route: one compact progress indicator, then the actual next action. */
.rel-route-progress {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 16px;margin:9px 0 15px;background:var(--rel-surface);color:var(--rel-text);border:1px solid var(--rel-line);border-radius:13px;}
.rel-route-progress>div {display:grid;gap:3px;min-width:0;}
.rel-route-progress strong{font-size:13px;overflow-wrap:anywhere;}
.rel-route-progress span {font-size:11px;color:var(--rel-muted);}
.rel-route-progress .rel-route-count {font-size:16px;font-weight:900;color:var(--rel-text);font-variant-numeric:tabular-nums;white-space:nowrap;}
.rel-route-utilities {background:var(--rel-surface);color:var(--rel-text);border:1px solid var(--rel-line);border-radius:13px;margin:10px 0;padding:0 14px;}
.rel-route-utilities .rel-voice-panel {border:0!important;box-shadow:none!important;margin:0!important;padding:0 0 13px!important;}
.rel-route-utilities .ops-problem-widget{margin-top:0;}
.rel-route-utilities .smart-route-search-trigger {margin:12px 0 17px;}
.staff-view-routes .staff-route-back {display:none;}
.staff-view-routes .stop-card {margin-top:8px;}
.staff-view-routes .staff-sync-line{margin:0 0 10px;}
.staff-view-routes .staff-sync-line .btn {font-size:12px!important;padding:9px 11px!important;}
.staff-view-routes .staff-journey-intro {padding:8px 0 10px;}
.staff-view-routes .staff-journey-intro .staff-journey-destination {margin:8px 0;border-radius:13px;}
.staff-view-routes .staff-journey-intro .staff-journey-destination strong{font-size:clamp(19px,4.5vw,29px);line-height:1.22;}
.staff-view-routes .rel-location-photo {margin:8px 0 0;background:var(--rel-soft);border:1px solid var(--rel-line);border-radius:12px;overflow:hidden;}
.staff-view-routes .rel-location-photo summary {padding:11px 13px;}
.staff-view-routes .rel-location-photo summary::after,.rel-map-settings summary::after,.rel-map-hint summary::after{content:'⌄';color:var(--rel-muted);margin-left:auto;}
.staff-view-routes .rel-location-photo[open] summary::after,.rel-map-settings[open] summary::after,.rel-map-hint[open] summary::after{transform:rotate(180deg);}
.staff-view-routes .rel-location-photo img{max-height:260px;min-height:0;}
.staff-view-routes .staff-map-panel {padding:14px;border-radius:13px;}
.staff-view-routes .staff-map-head h3{font-size:17px;}
.staff-view-routes .rel-map-settings {background:var(--rel-soft);border-radius:9px;padding:0 9px;margin-bottom:8px;}
.staff-view-routes .rel-map-settings summary{padding:9px 2px;font-size:12px;}
.staff-view-routes .staff-location-map{height:260px;min-height:260px;}
.staff-view-routes .rel-map-hint summary {padding:8px 2px;font-size:11px;min-height:36px;}
.staff-view-routes .rel-map-hint .staff-map-caption {margin:0 0 12px;line-height:1.5;}
.staff-view-routes .staff-map-key{font-size:11px;flex-wrap:wrap;gap:6px;}
.staff-view-routes .staff-journey-next {margin-top:10px;padding:14px;}
.staff-view-routes .staff-journey-next h3{margin:6px 0;}
.staff-view-routes .staff-journey-next>p{margin:8px 0 12px;}
.staff-view-routes .guided-check-progress{margin-bottom:9px;padding:15px;}
.staff-view-routes .guided-legend,.staff-view-routes .guided-instruction {display:none;}
.staff-view-routes .guided-object,.staff-view-routes .site-object-card{margin-top:9px;margin-bottom:9px;}
.staff-view-routes .guided-object-top .guided-object-kicker{font-size:10px;}
.staff-view-routes .site-object-meta{padding:10px 12px;}
.staff-view-routes .site-object-photo{max-height:190px;object-fit:contain;}
.staff-view-routes .guided-question {margin:9px 0;}
.staff-view-routes .guided-yes,.staff-view-routes .guided-no{min-height:58px;}
.staff-view-routes .guided-done {font-size:11px;}
.staff-view-routes .guided-finish {margin:14px 0 0;}
.staff-view-routes .remember{font-size:11px;line-height:1.5;margin:7px 0 5px;}
/* The navigation is a compact single row on phones, not a wall of tabs. */
.worker-layout .capture-nav {grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;padding:5px;border:1px solid var(--rel-line);border-radius:13px;background:var(--rel-soft);margin:7px 0 12px;}
.worker-layout .capture-nav button {padding:8px 3px;min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11px;line-height:1.14;border-radius:9px;color:var(--rel-muted);}
.worker-layout .capture-nav button .ops-nav-icon {font-size:17px;}
.worker-layout .capture-nav button.active {color:var(--rel-text);border:1px solid var(--rel-line);background:var(--rel-surface);box-shadow:none;}
.worker-layout .capture-nav .special-nav-count{font-size:9px;}
.worker-layout .welcome-mini {min-height:unset!important;padding:11px 13px!important;margin:0 0 7px!important;border-radius:12px!important;}
.worker-layout .welcome-mini h1 {font-size:19px!important;margin:4px 0!important;line-height:1.2!important;}
.worker-layout .welcome-mini .night-welcome-sub,.worker-layout .welcome-mini .night-live-pill,.worker-layout .welcome-mini .ops-holo-grid{display:none!important;}
@media(max-width:600px){
  .worker-layout.staff-view-dashboard,.worker-layout.staff-view-routes{padding:13px 12px 72px;}
  .rel-focus-home,.rel-briefing{padding:16px;border-radius:16px;}
  .rel-focus-top h1 {font-size:24px;}
  .rel-focus-main {padding:18px 0 13px;}
  .rel-focus-main h2 {font-size:26px;}
  .worker-layout .capture-nav button {font-size:10px;}
  .worker-layout .capture-nav .ops-nav-icon{font-size:19px;}
  .staff-view-routes .staff-location-map{height:240px;min-height:240px;}
  .staff-view-routes .stop-body {padding:14px;}
  .staff-view-routes .staff-map-panel {margin-inline:0;padding:11px;}
  .rel-briefing-task{padding:12px;gap:9px;}
  .rel-briefing-time{min-width:58px;font-size:18px;}
}
@media(prefers-reduced-motion:reduce){.rel-focus-home,.rel-briefing,.rel-briefing-task,.rel-route-progress{animation:none!important;transition:none!important;}}
