/* dlx365 CI — NotPASS-like Shell (single source of truth)
   Works with dlx365-ui.js which wraps pages into:
   .dlx-shell > .dlx-sidebar + .dlx-main (topbar + content)
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('/styles/apple-parallax.css');

:root{
  --dlx-bg:#f4f6f8;
  --dlx-surface:#ffffff;
  --dlx-text:#0f172a;
  --dlx-muted:#64748b;
  --dlx-border:#e2e8f0;

  --dlx-g900:#075e2c;
  --dlx-g800:#0a6b34;
  --dlx-g700:#0d7a3d;

  /* Accent color for links / focus. Theme classes override this. */
  --dlx-accent: var(--dlx-g700);
  /* RGB components for soft backgrounds */
  --dlx-accent-rgb: 13,122,61;

  --dlx-radius-xl:24px;
  --dlx-radius-lg:18px;
  --dlx-radius-md:14px;

  --dlx-shadow:0 18px 40px rgba(15,23,42,.10);
  --dlx-shadow-soft:0 10px 24px rgba(15,23,42,.08);

  --dlx-sidebar-w: 320px;
  --dlx-gap: 14px;

  /* UI sizing helpers (mobile safe-area friendly) */
  --dlx-topbar-h: 72px;
  --dlx-safe-top: env(safe-area-inset-top);
  --dlx-safe-bottom: env(safe-area-inset-bottom);
}

*{box-sizing:border-box}
html,body{height:100%}
html{ scrollbar-gutter: stable both-edges; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  background: radial-gradient(1200px 500px at 50% -10%, rgba(13,122,61,.14), transparent 55%),
              linear-gradient(180deg, #f7f8fa, var(--dlx-bg));
  color: var(--dlx-text);
  overflow-y: scroll;
}

/* ---------- OHS Modern Theme ---------- */
body.ohs-modern{
  --dlx-bg:#eef2f8;
  --dlx-border:#e6ebf5;
  --dlx-text:#1f2a44;
  --dlx-muted:#6b7a90;
  --dlx-accent:#2f66d3;
  --dlx-accent-rgb: 47,102,211;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background:
    linear-gradient(180deg, #f3f6fb 0%, #eef2f8 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.ohs-modern .dlx-page-head{
  background: #fff;
  border: 1px solid var(--dlx-border);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 14px 30px rgba(31,42,68,.08);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
body.ohs-modern .dlx-page-head > div:first-child{ flex: 1; min-width: 0; }
body.ohs-modern .dlx-page-head .ohs-row{ margin-left: auto; }
body.ohs-modern .dlx-surface{
  max-width: 1360px;
  width: 100%;
}
body.ohs-modern .dlx-divider{ margin: 18px 0 22px; }
body.ohs-modern .dlx-card h3{
  font-size: 18px;
  font-weight: 900;
}
body.ohs-modern .dlx-form input,
body.ohs-modern .dlx-form select,
body.ohs-modern .dlx-form textarea{
  height: 48px;
}
body.ohs-modern .dlx-form textarea{ min-height: 96px; height: auto; }
body.ohs-modern .dlx-flow .dlx-card{
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}
/* ============================================================
   OHS Design System - Alles aus einem Guss
   - Einheitliches Layout: Titel links, Aktionen rechts
   - Kacheln und Karten: gleiche Optik (Radius, Schatten, Rahmen)
   - Buttons/Links: einheitlich
============================================================ */
.ohs-dashboard{ max-width: 1200px; margin: 0 auto; padding: 14px; }
.ohs-section{
  background:#fff;
  border:1px solid var(--dlx-border);
  border-radius:20px;
  box-shadow:0 14px 30px rgba(31,42,68,.08);
  margin-bottom:20px;
  overflow:hidden;
}
.ohs-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 20px;
  border-bottom:1px solid var(--dlx-border);
  background:#f8fafc;
  flex-wrap:wrap;
}
.ohs-section-head h2,
.ohs-section-head h3{
  margin:0;
  font-size:18px;
  font-weight:900;
  color:var(--dlx-text);
}
.ohs-section-body{ padding:20px; }
.ohs-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.ohs-actions-left{ margin-right:auto; }
.ohs-actions-right{ margin-left:auto; }
.ohs-topbar{
  display:flex; flex-wrap: wrap; gap: 14px;
  align-items:center; justify-content:space-between;
  background:#f7f9fe; border:1px solid var(--dlx-border); border-radius: 22px;
  padding: 16px 18px; box-shadow: 0 14px 30px rgba(31,42,68,.08);
}
.ohs-greeting{ display:flex; gap:12px; align-items:center; }
.ohs-avatar{
  width:42px;height:42px;border-radius:14px;display:grid;place-items:center;
  background:#2f66d3;color:#fff;font-weight:900;
}
.ohs-sub{ font-size:12px; color: var(--dlx-muted); font-weight:800; }
.ohs-title{ font-size:20px; font-weight:900; }
.ohs-search{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.ohs-search input{
  min-width:220px; border-radius: 16px; background:#f3f6fb;
}
.ohs-controls{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.dlx-page-head .ohs-row,
.ohs-app-head .ohs-row,
.ohs-controls{
  align-items:center;
}
.dlx-page-head .btn,
.dlx-page-head .ohs-demo-badge,
.dlx-page-head .ohs-select,
.ohs-app-head .btn,
.ohs-app-head .ohs-demo-badge,
.ohs-app-head .ohs-select{
  min-height:48px;
}
.ohs-select{
  border:1px solid var(--dlx-border); border-radius: 16px; padding:10px 12px; font-weight:800; background:#f3f6fb;
}
.ohs-grid{ display:grid; grid-template-columns: 1.4fr .9fr; gap: 18px; margin-top: 18px; }
.ohs-main, .ohs-side{ display:flex; flex-direction:column; gap: 18px; }
.ohs-card{
  background:#fff;
  border:1px solid var(--dlx-border);
  border-radius:20px;
  box-shadow:0 14px 30px rgba(31,42,68,.08);
  margin-bottom:20px;
  overflow:hidden;
}
.ohs-card-head{
  padding:18px 20px;
  border-bottom:1px solid var(--dlx-border);
  background:#f8fafc;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.ohs-card-head h3{ margin:0; font-size:18px; font-weight:900; }
.ohs-card-body{ padding: 20px; }
.ohs-row{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.ohs-stack{ display:flex; flex-direction:column; gap:10px; }
.ohs-grid-2{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }

/* ---------- OHS App ---------- */
.ohs-app{ margin-top: 0; }
.ohs-app-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:#fff;
  border:1px solid var(--dlx-border);
  border-radius:20px;
  padding:18px 20px;
  box-shadow:0 14px 30px rgba(31,42,68,.08);
  margin-bottom:20px;
  flex-wrap:wrap;
}
.ohs-app-head h1{ margin:0; font-size:22px; font-weight:900; color:var(--dlx-text); }
.ohs-app-sub{ font-size:12px; font-weight:800; color: var(--dlx-muted); }
.ohs-app-meta{ font-size:12px; font-weight:700; color: var(--dlx-muted); }
.ohs-app-grid{
  display:grid; grid-template-columns: 1.4fr .9fr; gap: 18px; margin-top: 18px;
}
/* ---------- Feuerwehr-Style Dashboard (Outlook + M365) ---------- */
.ohs-fw-layout{
  display:flex;
  gap:0;
  min-height:calc(100vh - 100px);
}
.ohs-fw-sidebar{
  width:260px;
  flex-shrink:0;
  background:#f8fafc;
  border-right:1px solid var(--dlx-border);
  display:flex;
  flex-direction:column;
}
.ohs-fw-sidebar-head{
  padding:18px 16px;
  font-weight:900;
  font-size:16px;
  color:var(--dlx-text);
  border-bottom:1px solid var(--dlx-border);
}
.ohs-fw-nav{
  flex:1;
  padding:12px 0;
}
.ohs-fw-nav-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 18px;
  text-decoration:none;
  color:var(--dlx-text);
  font-weight:800;
  font-size:14px;
  border-left:4px solid transparent;
  transition:background .15s, border-color .15s;
}
.ohs-fw-nav-item:hover{ background:rgba(var(--dlx-accent-rgb), .08); }
.ohs-fw-nav-item.is-active{
  background:rgba(var(--dlx-accent-rgb), .12);
  color:var(--dlx-accent);
  border-left-color:var(--dlx-accent);
}
.ohs-fw-main{
  flex:1;
  padding:24px 28px;
  overflow-y:auto;
}
.ohs-fw-tiles{
  display:grid;
  grid-template-columns:repeat(5, minmax(0,1fr));
  gap:18px;
}
.ohs-fw-tile{
  background:#fff;
  border:1px solid var(--dlx-border);
  border-radius:20px;
  padding:20px 20px;
  display:flex;
  flex-direction:column;
  gap:12px;
  text-decoration:none;
  color:inherit;
  transition:box-shadow .2s, border-color .2s;
  min-height:140px;
  box-shadow:0 14px 30px rgba(31,42,68,.08);
}
.ohs-fw-tile:hover{
  box-shadow:0 18px 36px rgba(31,42,68,.12);
  border-color:rgba(var(--dlx-accent-rgb), .35);
}
.ohs-fw-tile-icon{
  width:44px;
  height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-size:20px;
  background:rgba(var(--dlx-accent-rgb), .12);
  color:var(--dlx-accent);
}
.ohs-fw-tile-icon.muted{ background:#f1f5f9; color:#64748b; }
.ohs-fw-tile-title{
  font-size:12px;
  font-weight:900;
  letter-spacing:.4px;
  color:var(--dlx-muted);
  text-transform:uppercase;
}
.ohs-fw-tile-value{
  font-size:22px;
  font-weight:900;
  color:var(--dlx-accent);
}
.ohs-fw-tile-value.muted{ color:var(--dlx-text); font-size:16px; }
.ohs-fw-tile-footer{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:13px;
  font-weight:800;
  color:var(--dlx-muted);
}
.ohs-fw-tile-footer .arrow{ color:var(--dlx-accent); }
.ohs-fw-termine{
  margin-top:24px;
  background:#fff;
  border:1px solid var(--dlx-border);
  border-radius:20px;
  padding:24px 28px;
  box-shadow:0 14px 30px rgba(31,42,68,.08);
}
.ohs-fw-termine h3{
  margin:0 0 18px;
  font-size:18px;
  font-weight:900;
}
.ohs-fw-termine-grid{
  display:flex;
  gap:32px;
  align-items:center;
  flex-wrap:wrap;
}
.ohs-fw-termine-item{
  display:flex;
  align-items:baseline;
  gap:8px;
}
.ohs-fw-termine-item .label{ font-weight:800; color:var(--dlx-muted); }
.ohs-fw-termine-item .value{ font-size:24px; font-weight:900; color:var(--dlx-accent); }
.ohs-fw-termine-link{
  margin-left:auto;
  font-weight:800;
  color:var(--dlx-accent);
  text-decoration:none;
}
.ohs-fw-termine-link:hover{ text-decoration:underline; }

@media (max-width: 1200px){ .ohs-fw-tiles{ grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 800px){
  .ohs-fw-layout{ flex-direction: column; }
  .ohs-fw-sidebar{ width: 100%; flex-direction: row; flex-wrap: wrap; }
  .ohs-fw-nav{ display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; }
  .ohs-fw-tiles{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px){ .ohs-fw-tiles{ grid-template-columns: 1fr; } }

.ohs-menu-layout{
  display:grid;
  grid-template-columns: 1fr 280px;
  gap: 18px;
  margin-top: 18px;
  align-items:start;
}
.ohs-menu-dashboard{
  display:grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
.ohs-menu-side{ position: sticky; top: 90px; }
.ohs-menu-card{
  border:1px solid #e6ebf5;
  border-radius:28px;
  padding:18px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
  box-shadow: 0 18px 34px rgba(31,42,68,.10);
  cursor:pointer;
  text-align:left;
  display:flex;
  flex-direction:column;
  gap:6px;
  text-decoration:none;
  color:inherit;
}
.ohs-menu-card:hover{ box-shadow: 0 22px 40px rgba(31,42,68,.14); }
.ohs-menu-card.is-active{
  background: linear-gradient(90deg, #2f66d3, #2a58c1);
  color:#fff;
}
.ohs-menu-title{ font-size:16px; font-weight:900; color:#2f66d3; }
.ohs-menu-sub{ font-size:12px; font-weight:800; color: rgba(47,102,211,.7); }
.ohs-menu-card.is-active .ohs-menu-sub{ color:#e2e8f0; }
.ohs-section.is-hidden{ display:none; }
.ohs-ai-summary{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  background:#edf2ff;
  border:1px solid #d6e1ff;
  color:#2a4b9b;
  font-weight:800;
  font-size:12px;
}
.ohs-ai-reco{
  margin-top:10px;
  padding:12px 12px;
  border-radius:12px;
  background:#f7f9fe;
  border:1px dashed rgba(140,158,198,.6);
  color:#1f2a44;
  font-weight:800;
  font-size:12px;
  white-space:pre-wrap;
  hyphens:none;
  overflow-wrap:normal;
}
.ohs-ai-layout{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
/* ---------- Workbench (einheitlich) ---------- */
.ohs-workbench-layout{
  display:grid;
  grid-template-columns: 300px minmax(0,1fr) 280px;
  gap:0;
  min-height:calc(100vh - 160px);
  background:var(--dlx-bg);
}
.ohs-wb-pane{
  background:var(--dlx-surface);
  border-right:1px solid var(--dlx-border);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.ohs-wb-pane:last-child{border-right:0}
.ohs-wb-pane-left{border-radius:var(--dlx-radius-md) 0 0 var(--dlx-radius-md)}
.ohs-wb-pane-right{border-radius:0 var(--dlx-radius-md) var(--dlx-radius-md) 0}
.ohs-wb-pane-head{
  padding:14px 18px;
  border-bottom:1px solid var(--dlx-border);
  font-weight:800;
  font-size:13px;
  color:var(--dlx-muted);
}
.ohs-wb-search{padding:14px 18px;border-bottom:1px solid var(--dlx-border)}
.ohs-wb-search input,
.ohs-wb-search-input{
  width:100%;
  padding:12px 14px 12px 42px;
  border:1px solid var(--dlx-border);
  border-radius:var(--dlx-radius-md);
  background:var(--dlx-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%236b7a90' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") 12px 50% no-repeat;
  font-weight:700;
}
.ohs-wb-list{flex:1;overflow-y:auto;padding:8px 0}
.ohs-wb-list-item{
  padding:12px 18px;
  cursor:pointer;
  font-weight:700;
  font-size:14px;
  border-left:3px solid transparent;
  transition:background .15s,border-color .15s;
}
.ohs-wb-list-item:hover{background:var(--dlx-bg)}
.ohs-wb-list-item.is-selected{
  background:rgba(var(--dlx-accent-rgb),.08);
  border-left-color:var(--dlx-accent);
  color:var(--dlx-accent);
}
.ohs-wb-list-footer{
  padding:12px 18px;
  border-top:1px solid var(--dlx-border);
  font-size:12px;
  color:var(--dlx-muted);
  font-weight:700;
}
.ohs-wb-toolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding:14px 18px;
  border-bottom:1px solid var(--dlx-border);
  background:var(--dlx-bg);
}
.ohs-wb-toolbar .btn{min-height:48px;padding:12px 18px;font-size:15px;border-radius:var(--dlx-radius-md)}
.ohs-wb-main-tabs{
  display:flex;
  gap:4px;
  padding:0 18px;
  border-bottom:1px solid var(--dlx-border);
  background:var(--dlx-surface);
}
.ohs-wb-main-tab{
  padding:14px 18px;
  font-weight:800;
  font-size:14px;
  color:var(--dlx-muted);
  cursor:pointer;
  border-bottom:3px solid transparent;
  margin-bottom:-1px;
}
.ohs-wb-main-tab:hover{color:var(--dlx-text)}
.ohs-wb-main-tab.is-active{color:var(--dlx-accent);border-bottom-color:var(--dlx-accent)}
.ohs-wb-sub-tabs{
  display:flex;
  gap:6px;
  padding:0 18px;
  border-bottom:1px solid var(--dlx-border);
  background:var(--dlx-bg);
  flex-wrap:wrap;
}
.ohs-wb-sub-tab{
  padding:10px 14px;
  font-weight:700;
  font-size:13px;
  color:var(--dlx-muted);
  cursor:pointer;
  border-radius:var(--dlx-radius-md);
}
.ohs-wb-sub-tab:hover{color:var(--dlx-text)}
.ohs-wb-sub-tab.is-active{color:var(--dlx-accent);background:rgba(var(--dlx-accent-rgb),.08)}
.ohs-wb-form{
  flex:1;
  overflow-y:auto;
  padding:20px 24px;
}
.ohs-wb-form-section{display:none}
.ohs-wb-form-section.is-visible{display:block}
.ohs-wb-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px 24px;
}
.ohs-wb-field label{
  display:block;
  font-weight:800;
  font-size:12px;
  color:var(--dlx-muted);
  margin-bottom:8px;
}
.ohs-wb-field input,.ohs-wb-field select,.ohs-wb-field textarea{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--dlx-border);
  border-radius:var(--dlx-radius-md);
  background:var(--dlx-surface);
  font-weight:700;
}
.ohs-wb-field textarea{min-height:90px;resize:vertical}
.ohs-wb-right-tabs{
  display:flex;
  gap:4px;
  padding:0 14px;
  border-bottom:1px solid var(--dlx-border);
}
.ohs-wb-right-tab{
  padding:10px 14px;
  font-weight:700;
  font-size:12px;
  color:var(--dlx-muted);
  cursor:pointer;
}
.ohs-wb-right-tab.is-active{color:var(--dlx-accent)}
.ohs-wb-right-body{flex:1;overflow-y:auto;padding:16px}
.ohs-wb-tree{font-size:13px;font-weight:700}
.ohs-wb-tree-item{
  padding:10px 0;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:8px;
  transition:color .15s;
}
.ohs-wb-tree-item:hover{color:var(--dlx-accent)}
.ohs-wb-tree-item .count{font-size:11px;color:var(--dlx-muted);margin-left:auto}
.ohs-wb-tree-children{margin-left:18px;border-left:1px solid var(--dlx-border);padding-left:14px}
.ohs-wb-wv-filters{display:flex;flex-direction:column;gap:12px;margin-bottom:16px}
.ohs-wb-wv-filters select,.ohs-wb-wv-filters input{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--dlx-border);
  border-radius:var(--dlx-radius-md);
  background:var(--dlx-surface);
  font-weight:700;
}
/* AI-Panel einheitlich */
.ohs-wb-ai-panel{
  margin-top:16px;
  padding:16px;
  border-radius:var(--dlx-radius-md);
  background:#edf2ff;
  border:1px solid #d6e1ff;
  font-weight:800;
  font-size:13px;
}
.ohs-wb-ai-panel .ai-badge{display:inline-flex;align-items:center;gap:6px;margin-bottom:10px;color:#2a4b9b;font-size:12px}
.ohs-wb-ai-panel .ai-content{color:#1f2a44;line-height:1.5}
.ohs-wb-ai-panel .btn{margin-top:10px}
.ohs-wb-row{padding:12px 0;border-bottom:1px solid var(--dlx-border);display:flex;align-items:center;justify-content:space-between;gap:12px}
.ohs-wb-row:last-child{border-bottom:0}
.ohs-wb-row a{color:var(--dlx-accent);text-decoration:none;font-weight:800}
.ohs-wb-row a:hover{text-decoration:underline}
@media (max-width:1200px){
  .ohs-workbench-layout{grid-template-columns:280px 1fr}
  .ohs-wb-pane-right{display:none}
}
@media (max-width:900px){
  .ohs-workbench-layout{grid-template-columns:1fr}
  .ohs-wb-pane-left{border-radius:var(--dlx-radius-md)}
}
.ohs-tabs{
  display:flex;
  gap:8px;
  background:#eef3ff;
  border:1px solid #d7e2ff;
  border-radius:999px;
  padding:4px;
}
.ohs-tab{
  border:0;
  background:transparent;
  padding:8px 14px;
  border-radius:999px;
  font-weight:900;
  color:#2a58c1;
  cursor:pointer;
}
.ohs-tab.is-active{
  background:#2f66d3;
  color:#fff;
  box-shadow: 0 10px 18px rgba(47,102,211,.25);
}
/* ---------- Outlook-style calendar grid ---------- */
.ohs-outlook-day,
.ohs-outlook-week{
  display:grid;
  margin-top:12px;
  border:1px solid var(--dlx-border);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  min-height:400px;
}
.ohs-outlook-day{
  grid-template-columns: 56px 1fr;
  grid-template-rows: 36px auto;
}
.ohs-outlook-week{
  grid-template-columns: 56px repeat(7, minmax(0,1fr));
  grid-template-rows: 36px auto;
}
.ohs-outlook-corner{
  background:#f1f5f9;
  border-right:1px solid var(--dlx-border);
  border-bottom:1px solid var(--dlx-border);
}
.ohs-outlook-time-col{
  background:#f8fafc;
  border-right:1px solid var(--dlx-border);
  display:flex;
  flex-direction:column;
}
.ohs-outlook-time-label{
  height:48px;
  padding:4px 8px 0 0;
  text-align:right;
  font-size:11px;
  font-weight:800;
  color:#64748b;
  border-bottom:1px solid #e2e8f0;
  box-sizing:border-box;
}
.ohs-outlook-day-head,
.ohs-outlook-week-head{
  background:#eef2ff;
  border-bottom:1px solid var(--dlx-border);
  padding:8px 10px;
  font-size:12px;
  font-weight:900;
  color:#2a4b9b;
  text-align:center;
}
.ohs-outlook-body{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:576px;
}
.ohs-outlook-body-week{
  display:grid;
  grid-template-columns: repeat(7, minmax(0,1fr));
  min-height:576px;
}
.ohs-outlook-day-col{
  position:relative;
  border-left:1px solid #e2e8f0;
  min-height:576px;
}
.ohs-outlook-day-col:first-child{ border-left:0; }
.ohs-outlook-time-rows{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  pointer-events:none;
}
.ohs-outlook-time-row{
  flex:1;
  min-height:48px;
  border-bottom:1px solid #f1f5f9;
}
.ohs-outlook-slots-area{
  position:absolute;
  inset:0;
  pointer-events:auto;
}
.ohs-outlook-slot{
  position:absolute;
  left:4px;
  right:4px;
  padding:4px 8px;
  border-radius:8px;
  font-size:11px;
  font-weight:800;
  overflow:hidden;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(31,42,68,.12);
  border:1px solid rgba(255,255,255,.5);
}
.ohs-outlook-slot:nth-child(5n+1){ background:#dbeafe; color:#1e40af; }
.ohs-outlook-slot:nth-child(5n+2){ background:#dcfce7; color:#166534; }
.ohs-outlook-slot:nth-child(5n+3){ background:#fef3c7; color:#92400e; }
.ohs-outlook-slot:nth-child(5n+4){ background:#fce7f3; color:#9d174d; }
.ohs-outlook-slot:nth-child(5n+5){ background:#e0e7ff; color:#3730a3; }
.ohs-outlook-slot-title{ font-weight:900; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ohs-outlook-slot-meta{ font-size:10px; opacity:.9; margin-top:2px; }
.ohs-outlook-nav{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
}
.ohs-outlook-nav .btn{ min-height:48px; padding:12px 18px; font-size:15px; }

.ohs-day-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:10px;
}
.ohs-day-row{
  display:grid;
  grid-template-columns: 90px 1.4fr 1fr 120px;
  gap:10px;
  align-items:center;
  padding:12px 14px;
  border:1px solid rgba(226,232,240,.8);
  border-radius:14px;
  background:#ffffff;
  font-weight:800;
}
.ohs-empty-state{
  padding:12px 14px;
  border:1px dashed rgba(226,232,240,.9);
  border-radius:14px;
  color: var(--dlx-muted);
  font-weight:800;
}
.ohs-popup{
  position:fixed;
  inset:0;
  background: rgba(15,23,42,.35);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}
.ohs-popup.show{ display:flex; }
.ohs-popup-card{
  width:min(720px, 92vw);
  max-height:80vh;
  background:#fff;
  border-radius:18px;
  padding:16px;
  box-shadow: 0 18px 40px rgba(15,23,42,.2);
  display:flex;
  flex-direction:column;
  gap:12px;
}
.ohs-popup-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.ohs-popup-title{ margin:0; font-size:18px; font-weight:900; }
.ohs-popup-body{
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.ohs-popup-tabs{
  display:flex;
  gap:6px;
  background:#eef3ff;
  border:1px solid #d7e2ff;
  border-radius:999px;
  padding:4px;
}
.ohs-popup-content{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.ohs-popup-headline{
  font-weight:900;
  color:#2a58c1;
  margin-top:8px;
}
.ohs-popup-row{
  padding:10px 12px;
  border:1px solid rgba(226,232,240,.8);
  border-radius:12px;
  background:#f8fafc;
  font-weight:800;
}
.ohs-admin-table{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.ohs-admin-row{
  display:grid;
  grid-template-columns: 1.2fr 1.2fr 1.4fr 0.8fr 0.7fr 0.8fr;
  gap:10px;
  align-items:center;
  background:#ffffff;
  border:1px solid rgba(226,232,240,.8);
  border-radius:14px;
  padding:10px;
}
.ohs-admin-row input, .ohs-admin-row select{ width:100%; }
.ohs-route-box{
  margin-top:12px;
  padding:12px;
  border:1px solid rgba(226,232,240,.9);
  border-radius:14px;
  background:#ffffff;
  display:grid;
  gap:6px;
  font-weight:800;
}
.ohs-input-with-mic{
  position:relative;
  display:flex;
  align-items:center;
}
.ohs-input-with-mic input{
  padding-right:48px;
}
.ohs-input-with-mic textarea{
  padding-right:48px;
}
.ohs-mic{
  position:absolute;
  right:6px;
  top:6px;
  height:36px;
  width:36px;
  border-radius:999px;
  border:1px solid #d7e2ff;
  background:#eef3ff;
  color:#2a58c1;
  font-weight:900;
  cursor:pointer;
}
.ohs-mic.is-listening{
  background:#2f66d3;
  color:#fff;
  box-shadow: 0 10px 18px rgba(47,102,211,.25);
}
.ohs-ti-box{
  margin-top:12px;
  padding:12px;
  border:1px dashed rgba(140,158,198,.6);
  border-radius:14px;
  background:#f7f9fe;
  color:#1f2a44;
  font-weight:800;
}
.ohs-panel{
  background:#ffffff; border:1px solid var(--dlx-border); border-radius:22px; box-shadow: 0 14px 30px rgba(31,42,68,.08);
}
.ohs-panel-head{
  padding:16px 18px; border-bottom:1px solid rgba(226,232,240,.6);
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.ohs-panel-body{ padding:16px 18px; }
.ohs-panel-actions{ display:flex; gap:10px; align-items:center; }
.ohs-side-stack{ display:flex; flex-direction:column; gap: 18px; }
.ohs-filters{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.ohs-inline-form{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.ohs-table-wrap{ width:100%; }
.ohs-table{
  display:flex; flex-direction:column; gap:8px;
}
.ohs-table-row{
  display:grid; grid-template-columns: 2fr 1.2fr 1fr 1fr; gap:10px;
  padding:12px 14px; border:1px solid rgba(226,232,240,.7); border-radius:16px;
  background:#f3f6fb;
}
.ohs-table-head{
  background:#fff; border-style:dashed; font-size:12px; font-weight:900; color:#475569;
}
.ohs-table-cell{ font-size:13px; font-weight:700; color:#0f172a; }
.ohs-status{
  display:inline-flex; align-items:center; justify-content:center; padding:4px 10px;
  border-radius:999px; font-size:11px; font-weight:900;
  background:#e2e8f0; color:#334155;
}
.ohs-status.booked{ background:#dbeafe; color:#1e40af; }
.ohs-status.completed{ background:#dcfce7; color:#166534; }
.ohs-status.cancelled{ background:#fee2e2; color:#991b1b; }
.ohs-status.no_show{ background:#fde68a; color:#92400e; }
.ohs-list{ margin-top:10px; display:flex; flex-direction:column; gap:8px; }
.ohs-list-row{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:10px 12px; border:1px solid rgba(226,232,240,.7); border-radius:14px; background:#f8fafc;
}
.ohs-demo-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:12px 18px;
  border-radius:999px;
  font-size:15px;
  font-weight:900;
  background:#dcfce7;
  color:#166534;
  border:1px solid #bbf7d0;
  hyphens:none;
  white-space:nowrap;
}
.ohs-list-meta{ font-size:12px; color:#64748b; font-weight:700; }
.ohs-calendar{ margin-top:10px; }
.ohs-week-grid{
  display:grid;
  grid-template-columns: 140px repeat(7, minmax(140px, 1fr));
  gap:10px;
  margin-top:10px;
  min-width: 980px;
}
.ohs-week-scroll{
  width:100%;
  overflow-x:auto;
  padding-bottom:6px;
}
.ohs-week-head{
  display:contents;
}
.ohs-week-head > div{
  background:#f1f5ff;
  border:1px solid #d7e2ff;
  border-radius:12px;
  padding:10px 12px;
  font-weight:900;
  font-size:12px;
  color:#2a4b9b;
}
.ohs-week-row{
  display:contents;
}
.ohs-week-label{
  background:#ffffff;
  border:1px solid rgba(226,232,240,.8);
  border-radius:12px;
  padding:10px 12px;
  font-weight:900;
}
.ohs-week-cell{
  min-height:72px;
  background:#f8fafc;
  border:1px solid rgba(226,232,240,.8);
  border-radius:12px;
  padding:8px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.ohs-week-cell .ohs-empty{
  color: var(--dlx-muted);
  font-weight:800;
  font-size:12px;
}
.ohs-week-hint{
  font-size:12px;
  font-weight:800;
  color: var(--dlx-muted);
  margin-bottom:8px;
}
.ohs-slot-chip{
  background:#ffffff;
  border:1px solid #d7e2ff;
  border-radius:10px;
  padding:6px 8px;
  font-size:11px;
  font-weight:900;
  color:#1f2a44;
  box-shadow: 0 10px 18px rgba(31,42,68,.08);
}
.ohs-reco-card{
  border:1px solid rgba(226,232,240,.8);
  border-radius:16px;
  padding:12px;
  background:#ffffff;
  box-shadow: 0 12px 24px rgba(31,42,68,.08);
}
.ohs-reco-title{
  font-weight:900;
  font-size:13px;
  color:#2a58c1;
  margin-bottom:8px;
}
.ohs-reco-list{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.ohs-accordion{
  margin-top: 18px; padding:12px 0;
}
.ohs-accordion > summary{
  cursor:pointer; font-weight:900; font-size:14px; color:#0f172a;
  padding:10px 12px; border-radius:12px; background:#f1f5f9;
  border:1px solid rgba(226,232,240,.8);
}

@media (max-width: 980px){
  .ohs-grid{ grid-template-columns: 1fr; }
  .ohs-app-grid{ grid-template-columns: 1fr; }
  .ohs-menu-dashboard{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ohs-menu-layout{ grid-template-columns: 1fr; }
  .ohs-menu-side{ position: static; }
}
@media (max-width: 560px){
  .ohs-menu-dashboard{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .ohs-topbar{ padding: 12px 14px; }
  .ohs-title{ font-size:18px; }
  .ohs-grid-2{ grid-template-columns: 1fr; }
}
body.ohs-modern .dlx-sidebar{
  background: linear-gradient(180deg, #0b4b8a, #0a3f78);
}
body.ohs-modern .dlx-sidebar,
body.ohs-modern .dlx-sidebar a,
body.ohs-modern .dlx-nav-item{
  color:#eef3ff;
}
body.ohs-modern .dlx-nav-section{
  color:#c9d8f5;
  opacity:1;
}
body.ohs-modern .dlx-burger{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
  color:#ffffff;
}
body.ohs-modern .dlx-nav-item:hover{
  background: rgba(255,255,255,.12);
}
body.ohs-modern .dlx-nav-item.active{
  background: rgba(255,255,255,.18);
  color:#ffffff;
}
body.ohs-modern .dlx-topbar{
  background: linear-gradient(90deg, #0b4b8a, #0a3f78);
  box-shadow: 0 14px 30px rgba(2,20,40,.25);
}
body.ohs-modern .dlx-card{
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(31,42,68,.08);
  border: 1px solid var(--dlx-border);
  background: #fff;
  overflow: hidden;
}
body.ohs-modern .bg-badge{
  background: rgba(13,122,61,.08);
  border-color: rgba(13,122,61,.2);
}
body.ohs-modern .btn, body.ohs-modern button{
  border-radius: 999px;
  background: linear-gradient(180deg, #2f66d3, #2a58c1);
  color:#fff;
  box-shadow: 0 14px 28px rgba(47,102,211,.22);
}
body.ohs-modern input, body.ohs-modern select, body.ohs-modern textarea{
  border-radius: 16px;
  background: #f3f6fb;
  border-color: rgba(230,235,245,.95);
}

/* ==========================
   THEME: BG (blue) – activated after "DEMO starten"
   - touch-friendly, high-contrast
   - keeps existing classnames
========================== */
body.theme-bg{
  --dlx-g900:#00315e;
  --dlx-g800:#00407a;
  --dlx-g700:#005aa3;
  --dlx-accent:#005aa3;
  --dlx-accent-rgb: 0,90,163;

  background: radial-gradient(1200px 500px at 50% -10%, rgba(0,90,163,.16), transparent 55%),
              linear-gradient(180deg, #f7f8fa, var(--dlx-bg));
}

/* ---------- Shell ---------- */
.dlx-shell{ min-height:100vh; display:flex; }
.dlx-sidebar{
  width: var(--dlx-sidebar-w);
  background: #f7f9fe;
  color:#2b3b55;
  border-right: 1px solid var(--dlx-border);
  padding:18px 16px;
  position: sticky;
  top:0;
  height:100vh;
}
.dlx-main{ flex:1; min-width:0; display:flex; flex-direction:column; }

.dlx-side-top{
  display:flex; align-items:center; gap:12px;
  padding:6px 6px 18px;
}
.dlx-burger{
  width:44px;height:44px;
  border-radius:14px;
  border:1px solid var(--dlx-border);
  background: #ffffff;
  color:#2b3b55;
  font-size:18px; font-weight:900;
  cursor:pointer;
}
.dlx-brand{display:flex;align-items:center;gap:10px}
.dlx-badge{
  display:inline-flex; align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background: #eef3ff;
  border:1px solid #d7e2ff;
  font-weight:900; letter-spacing:.3px;
  color:#2f66d3;
}
.dlx-brand-name{font-weight:800;opacity:.95}

.dlx-nav-section{
  margin:18px 10px 10px;
  font-weight:900;
  opacity:.85;
  letter-spacing:.6px;
  font-size: 12px;
}
.dlx-nav{display:flex;flex-direction:column;gap:10px}
.dlx-nav-item{
  text-decoration:none;
  color:#2b3b55;
  padding:14px 14px;
  border-radius:18px;
  opacity:.92;
  transition: all .15s ease;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.dlx-nav-item:hover{background: #eef3ff;opacity:1}

/* ---------- Content cards / grids ---------- */
.dlx-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 920px){
  .dlx-grid{ grid-template-columns: 1fr; }
}
.dlx-card{
  background: var(--dlx-surface);
  border: 1px solid var(--dlx-border);
  border-radius: var(--dlx-radius-lg);
  box-shadow: var(--dlx-shadow-soft);
  padding: 18px;
  min-width: 0;
}
.dlx-card h3{ margin: 0 0 10px 0; font-size: 18px; font-weight: 800; }
.dlx-list{
  margin: 0;
  padding-left: 18px;
  color: var(--dlx-text);
  line-height: 1.5;
}
.dlx-list li{ margin: 6px 0; }
.dlx-note{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(13,122,61,.08);
  border: 1px solid rgba(13,122,61,.18);
  font-weight: 700;
}
.dlx-flow{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 920px){
  .dlx-flow{ grid-template-columns: 1fr; }
}
.dlx-flow-title{
  font-weight: 900;
  margin-bottom: 8px;
}

/* ---------- Compliance board ---------- */
.dlx-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid var(--dlx-border);
  background: rgba(15,23,42,.04);
}
.dlx-status.ok{
  color:#166534;
  background: rgba(34,197,94,.14);
  border-color: rgba(34,197,94,.35);
}
.dlx-status.warn{
  color:#92400e;
  background: rgba(245,158,11,.16);
  border-color: rgba(245,158,11,.35);
}
.dlx-status.todo{
  color:#1e293b;
  background: rgba(148,163,184,.22);
  border-color: rgba(148,163,184,.45);
}
.dlx-board{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 920px){
  .dlx-board{ grid-template-columns: 1fr; }
}
.dlx-board-item{
  border: 1px solid var(--dlx-border);
  border-radius: 14px;
  padding: 12px 14px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  background: #fff;
}
.dlx-board-item h4{ margin:0 0 6px 0; font-size: 15px; font-weight: 800; }
.dlx-board-item p{ margin:0; color: var(--dlx-muted); font-weight: 600; }

/* ---------- Simple forms/list boxes ---------- */
.dlx-form{ display:flex; flex-direction:column; gap:10px; }
.dlx-form input, .dlx-form textarea{
  width:100%;
  border:1px solid var(--dlx-border);
  border-radius:12px;
  padding:10px 12px;
  font-weight:600;
  min-width: 0;
}
.dlx-form textarea{ min-height: 90px; resize: vertical; }
.dlx-list-box{
  margin-top:12px;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--dlx-border);
  background:#fff;
  font-weight:600;
  color: var(--dlx-muted);
}

.ohs-canvas-wrap{
  border:1px dashed var(--dlx-border);
  border-radius:12px;
  padding:10px;
  background:#fff;
}
.ohs-canvas-wrap canvas{
  width:100%;
  height:140px;
  border:1px solid var(--dlx-border);
  border-radius:10px;
  background:#fafbff;
  touch-action: none;
}

.ohs-hint{
  font-size:12px;
  color:#8a94a6;
  font-weight:600;
}

.ohs-toast{
  position: fixed;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 9999;
}
.ohs-toast.ohs-toast-show{
  opacity: 1;
  transform: translateY(0);
}

.ohs-warn-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:6px;
  width:18px;
  height:18px;
  border-radius:999px;
  background:#f59e0b;
  color:#fff;
  font-weight:900;
  font-size:12px;
}

.ohs-ok-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  border-radius:999px;
  background:#22c55e;
  color:#fff;
  font-weight:900;
  font-size:12px;
}
.dlx-nav-item.active{
  background: #e6eeff;
  box-shadow: inset 0 0 0 1px #d3e0ff;
  opacity:1;
}
.dlx-nav-item small{opacity:.85}

/* ---------- Topbar ---------- */
.dlx-topbar{
  /* Safe-area aware topbar (iPhone notch + PWA) */
  height:auto;
  min-height: calc(var(--dlx-topbar-h) + var(--dlx-safe-top));
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0b4a8b;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: var(--dlx-safe-top) 18px 0;
  box-shadow: 0 10px 24px rgba(31,42,68,.08);
}
.dlx-topbar-title{
  color:#ffffff;
  font-weight:900;
  font-size:20px;
  letter-spacing:.2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.dlx-topbar-right{display:flex;align-items:center;gap:12px;color:#e8f0ff}
.dlx-chip{
  background: rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.25);
  padding:8px 12px;
  border-radius:999px;
  font-size:14px;
}
.dlx-user{
  width:38px;height:38px;
  border-radius:999px;
  display:grid;place-items:center;
  background: rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.25);
  font-weight:900;
}

/* ---------- Content ---------- */
.dlx-content{
  padding: clamp(14px, 3vw, 22px);
  padding-bottom: calc(clamp(14px, 3vw, 22px) + var(--dlx-safe-bottom));
}
.dlx-surface{
  background: var(--dlx-surface);
  border:1px solid rgba(226,232,240,.9);
  border-radius: var(--dlx-radius-xl);
  box-shadow: var(--dlx-shadow);
  padding: clamp(16px, 3vw, 26px);
  max-width: 1100px;
}
.dlx-page-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap: 18px;
  margin-bottom: 18px;
}
.dlx-page-head h1{
  margin:0;
  font-size: 30px;
  font-weight: 950;
  letter-spacing:.2px;
}
.dlx-page-head p{
  margin:6px 0 0;
  color: var(--dlx-muted);
  font-weight: 800;
}
.dlx-divider{
  height:1px;
  background: var(--dlx-border);
  margin: 12px 0 18px;
}

/* ---------- Tiles (Menu) ---------- */
.dlx-tiles{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}
.dlx-tile{
  background: #ffffff;
  border: 1px solid var(--dlx-border);
  border-radius: var(--dlx-radius-lg);
  box-shadow: 0 14px 28px rgba(31,42,68,.08);
  padding: 18px 20px;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap: 12px;
  min-height: 140px;
  height: 100%;
}
.dlx-tile .btn,
.dlx-tile button{
  align-self: stretch;
}
.dlx-tile > div{ min-width:0; }
.dlx-tile h3{margin:0 0 4px; font-size:18px; font-weight:950;}
.dlx-tile p{
  margin:0;
  color: var(--dlx-muted);
  font-weight:800;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.dlx-tile .btn, .dlx-tile button{white-space:nowrap}

/* ---------- Forms ---------- */
label{display:block;margin:12px 0 6px;font-weight:900}
input,select,textarea{
  width:100%;
  border:1px solid #cbd5e1;
  border-radius:14px;
  padding:12px 14px;
  font-size:16px;
  outline:none;
  transition: box-shadow .15s ease, border-color .15s ease;
  background:#fff;
  color: var(--dlx-text);
}
input:focus,select:focus,textarea:focus{
  border-color: rgba(13,122,61,.65);
  box-shadow: 0 0 0 4px rgba(13,122,61,.18);
}

/* Buttons - einheitliche Größe für Apple/Android Usability (48px touch-target) */
button, input[type="submit"], .btn{
  border:0;
  cursor:pointer;
  border-radius:999px;
  min-height:48px;
  padding:12px 18px;
  font-weight:900;
  font-size:15px;
  background: linear-gradient(180deg, var(--dlx-g800), var(--dlx-g900));
  color:#eafff0;
  box-shadow: 0 12px 22px rgba(7,94,44,.22);
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  hyphens:none;
  white-space:nowrap;
  word-break:keep-all;
  overflow-wrap:normal;
}
.btn-soft{
  background:#eef3ff;
  color:#2a4b9b;
  border:1px solid #d7e2ff;
  box-shadow:none;
}
.btn-soft:hover{ background:#e2ecff; }
.btn-soft:active{ background:#d6e4ff; }
.btn-ghost{
  background:transparent;
  color:#2a4b9b;
  border:1px solid #d7e2ff;
  box-shadow:none;
}
.dlx-topbar .btn-ghost{
  color:#ffffff;
  border:1px solid rgba(255,255,255,.45);
}
.btn-sm{
  min-height:48px;
  padding:12px 18px;
  font-size:15px;
}
.btn-primary{
  background: linear-gradient(180deg, #2f66d3, #2a58c1);
  color:#fff;
  box-shadow: 0 16px 30px rgba(47,102,211,.22);
}

/* =========================================================
   BG "Chips" / Vorschlags-Buttons (glove friendly)
   Problem: Some pages create many <button class="bg-chip">. Depending on
   load order, the default <button> style can make chip text hard to read.
   This global style forces high contrast + wrap-friendly labels.
========================================================= */
button.bg-chip{
  appearance:none;
  border: 2px solid rgba(255,255,255,.18) !important;
  background: linear-gradient(180deg, var(--dlx-g800), var(--dlx-g900)) !important;
  color: #fff !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.22);
  border-radius: 999px;
  min-height: 60px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.15;
  white-space: normal;          /* allow wrapping */
  text-align: center;
  box-shadow: 0 14px 26px rgba(15,23,42,.14);
  -webkit-tap-highlight-color: transparent;
}
button.bg-chip:hover{ filter: brightness(1.06); }
button.bg-chip:active{ transform: scale(.98); }
button.bg-chip:focus-visible{
  outline: 4px solid rgba(var(--dlx-accent-rgb), .22);
  outline-offset: 2px;
}
button.bg-chip.is-active{
  box-shadow: 0 0 0 6px rgba(255,255,255,.20), 0 16px 28px rgba(15,23,42,.16);
}

@media (max-width: 560px){
  button.bg-chip{ width: 100%; justify-content: center; }
}
button:hover, .btn:hover{ filter: brightness(1.02); }
button:active, .btn:active{ transform: translateY(1px); }

/* OHS: Alle Buttons einheitlich 48px - überschreibt lokale Overrides */
body.ohs-modern button,
body.ohs-modern .btn,
body.ohs-app button,
body.ohs-app .btn,
body.ohs-modern a.btn,
body.ohs-app a.btn{
  min-height:48px !important;
  padding:12px 18px !important;
  font-size:15px !important;
  white-space:nowrap !important;
  word-break:keep-all !important;
  hyphens:none !important;
}

/* Scrollbars (usable on Windows + consistent in WebKit) */
*{
  scrollbar-width: thin;
  scrollbar-color: rgba(47,102,211,.45) rgba(47,102,211,.08);
}
*::-webkit-scrollbar{ width: 10px; height: 10px; }
*::-webkit-scrollbar-track{ background: rgba(47,102,211,.08); border-radius: 999px; }
*::-webkit-scrollbar-thumb{
  background: rgba(47,102,211,.45);
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.6);
}
*::-webkit-scrollbar-thumb:hover{ background: rgba(47,102,211,.65); }

/* ---------- Modal (fade + popup) ---------- */
.dlx-modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.35);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.dlx-modal-backdrop.show{ display:flex; }
.dlx-modal{
  width: min(520px, 92vw);
  background:#fff;
  border-radius:24px;
  border:1px solid var(--dlx-border);
  box-shadow: 0 24px 60px rgba(31,42,68,.22);
  padding: 20px;
  animation: dlx-pop .18s ease-out;
}
.dlx-modal-form{
  margin-top: 12px;
  max-height: 50vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dlx-modal-form label{ font-weight: 800; font-size: 13px; }
.dlx-modal-form input,
.dlx-modal-form textarea,
.dlx-modal-form select{
  width: 100%;
  border: 1px solid var(--dlx-border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #f3f6fb;
}
.dlx-modal h3{ margin:0 0 8px; font-size:18px; font-weight:900; }
.dlx-modal p{ margin:0; color: var(--dlx-muted); font-weight:700; }
.dlx-modal-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:16px;
}
@keyframes dlx-pop{
  from{ transform: translateY(6px) scale(.98); opacity:.6; }
  to{ transform: translateY(0) scale(1); opacity:1; }
}

.buttons,.actions,.form-actions{
  display:flex;
  gap: var(--dlx-gap);
  justify-content:flex-end;
  flex-wrap:wrap;
  margin-top:18px;
}

/* ---------- Auth (Login/Register): NO sidebar ---------- */
body.dlx-auth .dlx-sidebar{ display:none; }
body.dlx-auth .dlx-main{ width:100%; }

.dlx-auth-box{
  width: min(720px, 100%);
  margin: 26px auto 0;
  background: var(--dlx-surface);
  border:1px solid rgba(226,232,240,.9);
  border-radius: var(--dlx-radius-xl);
  box-shadow: var(--dlx-shadow);
  padding: 26px;
}

.dlx-auth-providers{ display:grid; gap: 10px; margin-bottom: 14px; }
.dlx-provider{
  background:#fff;
  border: 1px solid var(--dlx-border);
  border-radius: 16px;
  padding: 12px 14px;
  text-decoration:none;
  color: var(--dlx-text);
  box-shadow: var(--dlx-shadow-soft);
  font-weight: 900;
}
.dlx-provider:hover{ box-shadow: 0 14px 30px rgba(15,23,42,.10); }

.dlx-or{
  display:flex; align-items:center; gap: 12px;
  color: var(--dlx-muted);
  font-weight: 900;
  margin: 12px 0 14px;
}
.dlx-or::before, .dlx-or::after{
  content:"";
  height: 1px;
  background: var(--dlx-border);
  flex: 1;
}

/* ---------- Tables (basic) ---------- */
table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--dlx-border);
  border-radius: 16px;
  overflow:hidden;
}
th,td{ padding: 12px 12px; border-bottom: 1px solid var(--dlx-border); vertical-align:top; }
th{ text-align:left; color: var(--dlx-muted); font-weight: 950; font-size: 13px; letter-spacing:.2px; }
tr:last-child td{ border-bottom: 0; }

/* ---------- Calendar Grid ---------- */
.dlx-cal-grid{ display:grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.dlx-cal-head{
  font-weight:900;
  font-size:12px;
  color:#2a4b9b;
  padding:8px 10px;
  border-radius:12px;
  background:#edf2ff;
  border:1px solid #d6e1ff;
  text-align:center;
}
.dlx-cal-day{
  border:1px solid var(--dlx-border);
  border-radius: 16px;
  padding: 10px;
  min-height: 120px;
  background:#fff;
  box-shadow: 0 10px 20px rgba(31,42,68,.06);
}
.dlx-cal-day.is-empty{
  background:#f5f7fb;
  border-style:dashed;
  box-shadow:none;
}
.dlx-cal-day h4{ margin:0 0 6px 0; font-size:12px; font-weight:900; color: var(--dlx-muted); }
.dlx-cal-count{
  font-size:11px;
  font-weight:800;
  color:#6b7a90;
}
.dlx-cal-slot{
  margin:6px 0;
  padding:6px 8px;
  border-radius:12px;
  border:1px solid #d7e2ff;
  background: #eef3ff;
  font-weight:800;
  font-size:12px;
  color:#2b3b55;
  cursor:grab;
}
.dlx-cal-slot:active{ cursor:grabbing; }
.dlx-cal-day.drop-target{ outline:2px dashed rgba(var(--dlx-accent-rgb), .6); outline-offset:2px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  :root{ --dlx-sidebar-w: 280px; }
  .dlx-surface{ max-width: 100%; }
}
@media (max-width: 780px){
  .dlx-sidebar{ display:none; }
  body.dlx-nav-open .dlx-sidebar{
    display:block;
    position:fixed;
    z-index:9999;
    left:0; top:0;
  }
  .dlx-tiles{ grid-template-columns: 1fr; }
}

/* =========================================================
   Auth — NotPASS-like (2-column) for login.html
   Targets: body.dlx-auth-page
   Adds missing classes used by your new login HTML.
   Does NOT change existing app shell pages.
========================================================= */

body.dlx-auth-page{
  background: radial-gradient(1200px 500px at 50% -10%, rgba(13,122,61,.14), transparent 55%),
              linear-gradient(180deg, #f7f8fa, var(--dlx-bg));
}

/* If the shell injector is accidentally loaded on auth pages, hide it safely */
body.dlx-auth-page .dlx-shell{ display:block; }
body.dlx-auth-page .dlx-sidebar{ display:none !important; }
body.dlx-auth-page .dlx-main{ width:100% !important; }
body.dlx-auth-page .dlx-topbar{ display:none !important; }

.dlx-auth-topbar{
  height:72px;
  display:flex;
  align-items:center;
  padding:0 18px;
  background: linear-gradient(90deg, var(--dlx-g900), var(--dlx-g800));
  box-shadow: 0 10px 24px rgba(7,94,44,.18);
}
.dlx-auth-brand{display:flex;align-items:center;gap:10px;color:#eafff0}
.dlx-pill{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  font-weight:900;
  letter-spacing:.3px;
}
.dlx-appname{font-weight:800;opacity:.95}

.dlx-auth-wrap{ padding:34px 22px; }
.dlx-auth-grid{
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:26px;
  align-items:start;
}

.dlx-auth-card{
  background: var(--dlx-surface);
  border:1px solid rgba(226,232,240,.9);
  border-radius: 26px;
  box-shadow: var(--dlx-shadow);
  padding:26px;
}

.dlx-auth-info-head{display:flex;align-items:center;gap:14px;margin-bottom:10px}
.dlx-auth-icon{
  width:44px;height:44px;
  border-radius:14px;
  display:grid;place-items:center;
  background:#e9f6ee;
  border:1px solid rgba(13,122,61,.22);
  color:#0b5b2b;
  font-weight:900;
}

.dlx-auth-product{font-size:28px;font-weight:950;letter-spacing:.2px}
.dlx-auth-title{font-size:22px;font-weight:950;letter-spacing:.2px}
.dlx-auth-subtitle{color:var(--dlx-muted);font-weight:800}
.dlx-auth-text{color:#334155;line-height:1.55;margin:14px 0}
.dlx-auth-bullets{margin:0;padding-left:18px;color:#334155;line-height:1.8;font-weight:700}

.dlx-auth-illustration{
  margin-top:18px;
  border-radius: 18px;
  border:1px solid rgba(226,232,240,.9);
  overflow:hidden;
  background: linear-gradient(135deg, rgba(0,196,154,.25), rgba(37,99,235,.25));
  height: 240px;
  display:grid;
  place-items:center;
}
.dlx-illus-placeholder{color:#0f172a;font-weight:950;opacity:.65}

/* Provider buttons (new classes) */
.dlx-provider-list{display:grid;gap:10px;margin:14px 0}
.dlx-provider-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 16px;
  min-height: 56px;
  border-radius:18px;
  background:#fff;
  color: var(--dlx-text);
  border:1px solid var(--dlx-border);
  box-shadow: var(--dlx-shadow-soft);
  font-weight: 700;
  text-decoration:none;
}
.dlx-provider-btn:hover{ box-shadow: 0 14px 30px rgba(15,23,42,.10); }

/* Backward-compat: make old provider class look identical */
.dlx-provider{ display:block; }

.dlx-demo-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px 14px;
  border-radius:16px;
  background: linear-gradient(180deg, var(--dlx-g700), var(--dlx-g900));
  color:#fff;
  text-decoration:none;
  font-weight:950;
  box-shadow: 0 12px 22px rgba(15,23,42,.18);
}

body.theme-bg .dlx-demo-btn{ box-shadow: 0 12px 22px rgba(0,64,122,.22); }

.dlx-auth-divider{
  display:flex;
  align-items:center;
  gap:12px;
  color: var(--dlx-muted);
  font-weight:950;
  margin: 16px 0 12px;
}
.dlx-auth-divider::before,.dlx-auth-divider::after{
  content:"";
  height:1px;
  background: var(--dlx-border);
  flex:1;
}
.dlx-auth-divider span{white-space:nowrap}

/* Password row */
.dlx-password-row{display:flex;gap:10px;align-items:center}
.dlx-eye{
  width:46px;height:46px;
  border-radius:14px;
  border:1px solid var(--dlx-border);
  background:#fff;
  cursor:pointer;
}

.dlx-auth-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:10px 0 14px;
  gap:12px;
}
.dlx-check{display:flex;align-items:center;gap:10px;color:#334155;font-weight:800}
.dlx-link{color:var(--dlx-accent);font-weight:800;text-decoration:none}
.dlx-link:hover{text-decoration:underline}

.dlx-primary-btn{
  width:100%;
  border:0;
  border-radius:16px;
  padding:14px 14px;
  background: linear-gradient(180deg, var(--dlx-g800), var(--dlx-g900));
  color:#eafff0;
  font-weight:850;
  cursor:pointer;
  box-shadow: 0 12px 22px rgba(7,94,44,.22);
}

/* When BG theme is active, tune button shadow to blue */
body.theme-bg .dlx-primary-btn{ box-shadow: 0 12px 22px rgba(0,64,122,.22); }

.dlx-auth-foot{margin-top:14px;color:var(--dlx-muted);font-weight:800}

@media (max-width: 980px){
  .dlx-auth-grid{ grid-template-columns: 1fr; }
}


/* ==========================
   FIXPACK v2 (NotPASS parity)
   - keep wizard steps working even without styles/styles.css
   - allow multicolor provider SVGs
   - normalize font weights (less "fat")
========================== */

/* Provider icons: don't force fill; keep brand colors */
.dlx-provider-ic{
  width:22px; height:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.dlx-provider-ic svg{ display:block; }

/* Wizard essentials (so next/prev works even if old styles.css removed) */
.wizard-container{
  max-width: 1100px;
  margin: 0 auto;
}
.wizard-step{ display:none; }
.wizard-step.active{ display:block; }

/* Normalize heavy weights across shell + auth */
.dlx-page-head h1,
.dlx-auth-product,
.dlx-auth-title,
.dlx-provider-btn,
.dlx-demo-btn,
.dlx-primary-btn,
.dlx-tile h3,
th,
.dlx-topbar-title,
.dlx-nav-item,
.dlx-badge{
  font-weight: 700 !important;
}

/* Buttons inside wizard stay visible and spaced */
.wizard-container .buttons,
.wizard-container .actions,
.wizard-container .form-actions{
  display:flex !important;
  gap: var(--dlx-gap) !important;
  justify-content:flex-end !important;
  flex-wrap:wrap !important;
  margin-top:18px !important;
}


/* ---------- BG Unfallanzeige (U1000) ---------- */
.bg-surface{max-width: 1100px}
.bg-grid{display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px;}
.bg-grid-3{display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px;}
.bg-full{grid-column: 1 / -1;}
.bg-inline{display:flex; gap: 12px; align-items:center; flex-wrap:wrap;}
.bg-inline > *{margin:0}
.bg-hint{font-size: 12px; color: var(--dlx-muted); font-weight: 700; margin-top: 6px;}
.bg-section{padding: 14px 0; border-top: 1px dashed rgba(226,232,240,.9);}
.bg-section:first-of-type{border-top:0}
.bg-section h3{margin:0 0 10px; font-size: 16px; font-weight: 950;}
.bg-actions{display:flex; gap: 12px; flex-wrap: wrap; align-items:center; justify-content:flex-end; margin-top: 14px;}
.bg-actions .dlx-primary-btn{padding: 12px 16px}
.bg-mini-btn{
  border: 2px solid rgba(15,23,42,.35);
  background: #ffffff;
  color: rgba(15,23,42,.95);
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 900;
  cursor: pointer;
  text-shadow: none;
  box-shadow: 0 8px 18px rgba(15,23,42,.08);
}
.bg-mini-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(var(--dlx-accent-rgb), .60);
  background: #f8fafc;
  color: rgba(15,23,42,1);
  box-shadow: 0 10px 22px rgba(15,23,42,.10);
}
.bg-badge{display:inline-flex; align-items:center; gap:8px; padding: 8px 10px; border-radius: 999px; border:1px solid var(--dlx-border); background: rgba(15,23,42,.03); font-weight: 900}
.bg-link{font-weight: 900}
.bg-danger{border-color: rgba(239,68,68,.35)!important; background: rgba(239,68,68,.06)!important}

/* ==========================
   MOBILE / RESPONSIVE FIXPACK v3
   - prevents overlapping buttons on narrow screens
   - improves iPhone notch/home-indicator handling
   - adds basic "cards" grid used by legacy pages
========================== */

/* Headings should wrap instead of colliding */
.dlx-page-head{ flex-wrap: wrap; align-items: flex-end; }
.dlx-page-head > *{ min-width: 240px; }

/* Better viewport behavior on mobile browsers */
.dlx-shell{ min-height: 100dvh; }
.dlx-sidebar{ height: 100dvh; }

/* Menu tiles: stack content + CTA on phones */
@media (max-width: 560px){
  :root{ --dlx-topbar-h: 64px; }

  .dlx-topbar{ padding: var(--dlx-safe-top) 12px 0; }
  .dlx-topbar-title{ font-size: 18px; }
  .dlx-chip{ display:none; }
  .dlx-user{ width:34px; height:34px; }

  .dlx-surface{ border-radius: 18px; }
  .dlx-tile{ flex-direction: column; align-items: stretch; }
  .dlx-tile .btn, .dlx-tile button{ width: 100%; white-space: normal; }
}

@media (max-width: 720px){
  .dlx-page-head{
    flex-direction: column;
    align-items: stretch;
  }
  .dlx-page-head .bg-actions,
  .dlx-page-head .bg-actions .btn,
  .dlx-page-head .bg-actions button{
    width: 100%;
  }
  .dlx-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 680px){
  .dlx-board-item{
    flex-direction: column;
    align-items: flex-start;
  }
  .dlx-board-item .dlx-status{
    margin-top: 8px;
  }
}

@media (max-width: 420px){
  .dlx-user{ display:none; }
}

/* Legacy pages (uprofil/infos) use these class names */
.container{ max-width: 1100px; margin: 0 auto; }
.cards{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}
@media (max-width: 920px){
  .cards{ grid-template-columns: 1fr; }
}

.card{
  background:#fff;
  border:1px solid var(--dlx-border);
  border-radius: var(--dlx-radius-lg);
  box-shadow: var(--dlx-shadow-soft);
  padding: 18px;
}
.card h3{ margin:0 0 12px 0; font-size: 18px; font-weight: 700; }

/* Profile action buttons: no side-by-side collision */
.card .edit-btn,
.card .save-btn{
  width:100%;
  margin-top: 10px;
}
@media (min-width: 680px){
  .card .edit-btn,
  .card .save-btn{ width:auto; }
}

.uprofil-button{
  display:flex;
  justify-content:center;
  margin-top: 18px;
}

/* ============================================================
   Apple theme — neutrale Flächen, Blau nur für Links / wenige Akzente
   ============================================================ */
body.apple-theme,
body.apple-theme.theme-bg,
body.apple-theme.ohs-modern,
body.apple-theme.theme-bg.ohs-modern,
body.apple-theme.bg-unfall {
  /* Primär-Buttons: weiches Mittelgrau (weder Schwarz noch Blau-Fläche) */
  --dlx-g900: #545458;
  --dlx-g800: #6e6e73;
  --dlx-g700: #8e8e93;
  /* Systemblau nur für Links, Badges mit Link-Charakter */
  --dlx-accent: #0077ed;
  --dlx-accent-rgb: 0, 119, 237;
  /* Schatten / Flächen ohne Blau-Stich */
  --dlx-ui-rgb: 55, 55, 57;
  --dlx-bg: #f5f5f7;
  --dlx-surface: #ffffff;
  --dlx-text: #1d1d1f;
  --dlx-muted: #6e6e73;
  --dlx-border: rgba(0, 0, 0, 0.09);
}

body.apple-theme .dlx-content {
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
  padding-top: max(10px, env(safe-area-inset-top));
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
  body.apple-theme .dlx-content {
    padding: clamp(14px, 3vw, 22px);
    padding-left: max(clamp(14px, 3vw, 22px), env(safe-area-inset-left));
    padding-right: max(clamp(14px, 3vw, 22px), env(safe-area-inset-right));
    padding-top: max(clamp(14px, 3vw, 22px), env(safe-area-inset-top));
    padding-bottom: calc(clamp(14px, 3vw, 22px) + env(safe-area-inset-bottom));
  }
}

body.apple-theme .dlx-surface {
  max-width: 100%;
}

@media (min-width: 900px) {
  body.apple-theme .dlx-surface {
    max-width: min(1100px, 100%);
  }
}

/* Primär-Buttons / CTAs — neutrales Ink, Schatten ohne Blau */
body.apple-theme button:not(.dlx-burger):not(.dlx-eye):not(.dlx-modal-cancel):not(.btn-soft):not(.btn-ghost):not(.bg-step):not(.bg-nav-btn),
body.apple-theme .btn:not(.btn-soft):not(.btn-ghost),
body.apple-theme a.btn:not(.btn-soft):not(.btn-ghost),
body.apple-theme .dlx-primary-btn,
body.apple-theme .dlx-demo-btn {
  background: linear-gradient(180deg, var(--dlx-g800), var(--dlx-g900)) !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

body.apple-theme .btn-primary {
  background: linear-gradient(180deg, var(--dlx-g800), var(--dlx-g900)) !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22) !important;
}

body.apple-theme.ohs-modern button:not(.btn-soft):not(.btn-ghost):not(.bg-step):not(.bg-nav-btn),
body.apple-theme.ohs-modern .btn:not(.btn-soft):not(.btn-ghost),
body.apple-theme.ohs-modern a.btn:not(.btn-soft):not(.btn-ghost),
body.apple-theme.ohs-app button:not(.btn-soft):not(.btn-ghost):not(.bg-step):not(.bg-nav-btn),
body.apple-theme.ohs-app .btn:not(.btn-soft):not(.btn-ghost),
body.apple-theme.ohs-app a.btn:not(.btn-soft):not(.btn-ghost) {
  background: linear-gradient(180deg, var(--dlx-g800), var(--dlx-g900)) !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

body.apple-theme input:focus,
body.apple-theme select:focus,
body.apple-theme textarea:focus {
  border-color: rgba(0, 0, 0, 0.28) !important;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06) !important;
}

body.apple-theme.dlx-auth-page .dlx-auth-topbar {
  background: rgba(22, 22, 23, 0.92) !important;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

body.apple-theme .dlx-auth-brand {
  color: #f5f5f7 !important;
}

body.apple-theme .dlx-auth-icon {
  background: rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: var(--dlx-text) !important;
}

/* OHS-Flächen an die gemeinsame Kante/Schatten angleichen */
body.apple-theme .ohs-section,
body.apple-theme .ohs-card {
  border-color: var(--dlx-border);
}

body.apple-theme .ohs-modern .dlx-page-head {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--dlx-border);
}

body.apple-theme {
  scrollbar-color: rgba(var(--dlx-ui-rgb), 0.35) rgba(var(--dlx-ui-rgb), 0.08);
}
body.apple-theme *::-webkit-scrollbar-thumb {
  background: rgba(var(--dlx-ui-rgb), 0.35);
}
body.apple-theme *::-webkit-scrollbar-track {
  background: rgba(var(--dlx-ui-rgb), 0.08);
}

/* ========== Apple UI Refinement (kompakte Buttons & Typo) — muss zuletzt stehen ========== */
body.apple-theme {
  --apx-btn-h: 40px;
  --apx-btn-pad-x: 18px;
  --apx-btn-pad-y: 8px;
  --apx-btn-fs: 14px;
  --apx-btn-fw: 600;
  --apx-chip-h: 32px;
  --apx-input-fs: 15px;
  --apx-input-pad-y: 10px;
  --apx-input-pad-x: 14px;
  --apx-shadow-btn: 0 2px 6px rgba(0, 0, 0, 0.06),
    0 4px 14px rgba(0, 0, 0, 0.1);
}

body.apple-theme button:not(.dlx-burger):not(.dlx-eye):not(.ohs-mic):not(.dlx-modal-cancel):not(.bg-step):not(.bg-nav-btn),
body.apple-theme .btn,
body.apple-theme a.btn,
body.apple-theme input[type="submit"],
body.apple-theme .dlx-primary-btn,
body.apple-theme .dlx-demo-btn,
body.apple-theme .adm-btn {
  min-height: var(--apx-btn-h) !important;
  padding: var(--apx-btn-pad-y) var(--apx-btn-pad-x) !important;
  font-size: var(--apx-btn-fs) !important;
  font-weight: var(--apx-btn-fw) !important;
  letter-spacing: -0.02em !important;
  line-height: 1.25 !important;
  box-shadow: var(--apx-shadow-btn) !important;
  border-radius: 980px !important;
  -webkit-font-smoothing: antialiased;
}

body.apple-theme .btn-sm,
body.apple-theme button.btn-sm {
  min-height: 36px !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

body.apple-theme .btn-primary {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
}

body.apple-theme.ohs-modern button:not(.btn-soft):not(.btn-ghost):not(.bg-step):not(.bg-nav-btn),
body.apple-theme.ohs-modern .btn:not(.btn-soft):not(.btn-ghost),
body.apple-theme.ohs-modern a.btn:not(.btn-soft):not(.btn-ghost),
body.apple-theme.ohs-app button:not(.btn-soft):not(.btn-ghost):not(.bg-step):not(.bg-nav-btn),
body.apple-theme.ohs-app .btn:not(.btn-soft):not(.btn-ghost),
body.apple-theme.ohs-app a.btn:not(.btn-soft):not(.btn-ghost) {
  min-height: var(--apx-btn-h) !important;
  padding: var(--apx-btn-pad-y) var(--apx-btn-pad-x) !important;
  font-size: var(--apx-btn-fs) !important;
  font-weight: var(--apx-btn-fw) !important;
  white-space: normal !important;
}

body.apple-theme .ohs-wb-toolbar .btn,
body.apple-theme .ohs-outlook-nav .btn {
  min-height: var(--apx-btn-h) !important;
  padding: var(--apx-btn-pad-y) 14px !important;
  font-size: 13px !important;
}

body.apple-theme button.bg-chip {
  min-height: var(--apx-chip-h) !important;
  max-width: 100%;
  padding: 6px 12px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.015em !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  background: linear-gradient(180deg, var(--dlx-g800), var(--dlx-g900)) !important;
  border-width: 1px !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  text-shadow: none !important;
}

body.apple-theme .dlx-modal-actions .btn,
body.apple-theme .dlx-modal-actions button {
  min-height: 38px !important;
  padding: 8px 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

body.apple-theme .dlx-provider-btn {
  min-height: 46px !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  border-radius: 14px !important;
}

body.apple-theme .dlx-primary-btn {
  min-height: 46px !important;
  padding: 12px 20px !important;
}

body.apple-theme .dlx-burger {
  min-width: 44px !important;
  min-height: 44px !important;
  width: 44px !important;
  height: 44px !important;
}

body.apple-theme .dlx-eye,
body.apple-theme .ohs-mic {
  min-height: 40px !important;
  min-width: 40px !important;
}

body.apple-theme label,
body.apple-theme .dlx-modal-form label {
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: -0.01em !important;
  color: rgba(29, 29, 31, 0.85) !important;
}

body.apple-theme th,
body.apple-theme .dlx-table th {
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  color: #6e6e73 !important;
}

body.apple-theme .dlx-nav-item,
body.apple-theme .dlx-badge,
body.apple-theme .bg-badge {
  font-weight: 600 !important;
}

body.apple-theme .dlx-topbar-title {
  font-size: 17px !important;
  font-weight: 600 !important;
}

body.apple-theme .dlx-auth-product,
body.apple-theme .dlx-auth-title {
  font-weight: 600 !important;
}

body.apple-theme .bg-section h3,
body.apple-theme .bg-hint {
  font-weight: 600 !important;
}

body.apple-theme .bg-mini-btn {
  font-weight: 600 !important;
  min-height: 40px !important;
  padding: 8px 14px !important;
  font-size: 14px !important;
}

body.apple-theme .dlx-tile .btn,
body.apple-theme .dlx-tile a.btn {
  min-height: 40px !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}

body.apple-theme .dlx-tile {
  min-height: 120px !important;
}

@media (min-width: 720px) {
  body.apple-theme .dlx-tile {
    min-height: 138px !important;
  }
}

body.apple-theme input:not([type="checkbox"]):not([type="radio"]),
body.apple-theme select,
body.apple-theme textarea {
  font-size: var(--apx-input-fs) !important;
  font-weight: 450 !important;
  padding: var(--apx-input-pad-y) var(--apx-input-pad-x) !important;
  border-radius: 12px !important;
}

body.apple-theme .adm-input,
body.apple-theme .adm-select {
  min-height: 44px !important;
  font-weight: 500 !important;
  font-size: 15px !important;
}

body.apple-theme.bg-unfall .bg-top-btn {
  min-height: 44px !important;
  padding: 10px 16px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-width: 1px !important;
  border-radius: 14px !important;
}

body.apple-theme.bg-unfall .adm-btn {
  min-height: 44px !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
}

body.apple-theme.ohs-app .ohs-tab {
  font-weight: 600 !important;
  padding: 6px 12px !important;
  font-size: 13px !important;
}

body.apple-theme .ohs-section,
body.apple-theme .ohs-card {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05) !important;
}

body.apple-theme .ohs-app-head h1 {
  font-weight: 600 !important;
  font-size: clamp(20px, 4vw, 24px) !important;
}

/* FIXPACK: Überschriften nicht ultrafett */
body.apple-theme .dlx-page-head h1,
body.apple-theme .dlx-tile h3,
body.apple-theme .dlx-provider-btn,
body.apple-theme .dlx-demo-btn,
body.apple-theme .dlx-primary-btn,
body.apple-theme .dlx-nav-item,
body.apple-theme .dlx-badge {
  font-weight: 600 !important;
}

/* Einheitliches Akzent-Blau (Fire365 / health365 AC smart@work) für OHS-/dlx365-Shell */
body.ohs-modern {
  --dlx-accent: #2563eb !important;
  --dlx-accent-rgb: 37, 99, 235 !important;
}