/* MEDIOS – klassischer KIS-Look (blau-graue Rahmen, Baum links, Kachel-Raumbelegung) */
:root {
  --title-1: #4f73b8;
  --title-2: #3a5c9f;
  --menu: #e6ebf5;
  --panel: #c9d5ec;
  --panel-head-1: #6f8fcb;
  --panel-head-2: #5576b4;
  --panel-head-text: #fff;
  --tree-bg: #dfe6f4;
  --select: #ffbf66;
  --select-soft: #ffe2b3;
  --work: #ecedf5;
  --board: #e4e2ef;
  --tile-head: #b7c4de;
  --free: #d3efce;
  --wait: #fbf6c4;
  --grid: #c3cbe0;
  --row-alt: #f4f6fb;
  --row-hover: #dce8fb;
  --text: #121a2a;
  --muted: #5b6478;
  --link: #1d5bc4;
  --danger: #d92525;
  --ok: #2c8a3c;
  font-family: Tahoma, Verdana, "Segoe UI", Geneva, sans-serif;
  font-size: 12px;
  color: var(--text);
}
* { box-sizing: border-box; }
html, body, #root { margin: 0; height: 100%; }
body { background: var(--work); overflow: hidden; }
.hidden { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--link); }
.muted { color: var(--muted); }
.err { color: var(--danger); min-height: 1.3em; }

/* ---------- Bedienelemente (klassisch) ---------- */
input, select, textarea {
  border: 1px solid #8e9bb8; background: #fff; padding: 3px 5px; border-radius: 0; outline: none; min-height: 22px;
}
input:focus, select:focus, textarea:focus { border-color: #2f62c4; box-shadow: inset 0 0 0 1px #2f62c4; }
textarea { resize: vertical; line-height: 1.45; }
.btn {
  border: 1px solid #8592b0; background: linear-gradient(#fdfdfe, #dfe4ef); padding: 4px 12px; cursor: pointer; min-height: 24px;
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; border-radius: 2px;
}
.btn:hover { background: linear-gradient(#fff, #cfdbf3); border-color: #4c74c2; }
.btn:active { background: #c4d2ee; }
.btn.primary { background: linear-gradient(#3e7be6, #1c5bc9); color: #fff; border-color: #17479e; }
.btn.primary:hover { background: linear-gradient(#5089ef, #2466d6); }
.btn.danger { color: var(--danger); }
.btn.discord { background: linear-gradient(#6b77f5, #5865f2); color: #fff; border-color: #4752c4; }
.btn.discord:hover { background: linear-gradient(#7984f7, #4f5bd9); }
.btn.block { width: 100%; justify-content: center; min-height: 30px; }
.or { text-align: center; color: var(--muted); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid #d5d9e3; }
.btn.sm { padding: 1px 7px; min-height: 20px; font-size: 11px; }
.btn:disabled { opacity: .5; cursor: default; }

/* ---------- Webseite / Portal ---------- */
.site { height: 100%; overflow-y: auto; background: linear-gradient(160deg, #142c5c 0%, #2c5199 55%, #3f74b8 100%) fixed; font-size: 14px; }
.site-nav { display: flex; align-items: center; gap: 16px; padding: 16px 36px; color: #fff; }
.site-nav .logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: bold; letter-spacing: 1px; }
.site-nav .spacer { flex: 1; }
.site-nav a { color: #fff; text-decoration: none; cursor: pointer; }
.logo-mark { width: 30px; height: 30px; display: grid; place-items: center; background: #fff; color: #2c5199; font-weight: bold; border-radius: 4px; font-size: 18px; }
.site-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 40px 36px 60px; max-width: 1160px; margin: 0 auto; align-items: start; }
.site-hero h1 { color: #fff; font-size: 38px; margin: 10px 0 14px; line-height: 1.15; font-family: "Segoe UI", Tahoma, sans-serif; }
.site-hero p.lead { color: #dce6fa; font-size: 16px; line-height: 1.6; max-width: 520px; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.feature { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); color: #fff; padding: 12px 14px; border-radius: 4px; }
.feature b { display: block; margin-bottom: 3px; }
.feature span { color: #cfdcf6; font-size: 12.5px; }
.auth-card { background: #fff; border: 1px solid #8592b0; box-shadow: 0 12px 40px rgba(10, 25, 60, .35); }
.auth-card .win-title { font-size: 13px; }
.auth-card form { padding: 20px 22px; display: grid; gap: 11px; }
.auth-card label { display: grid; gap: 4px; font-weight: bold; font-size: 12px; }
.auth-card input { min-height: 28px; font-size: 13px; }
.auth-tabs { display: flex; border-bottom: 1px solid #8592b0; background: var(--menu); }
.auth-tabs button { flex: 1; border: 0; background: none; padding: 9px; cursor: pointer; font-weight: bold; color: var(--muted); }
.auth-tabs button.active { background: #fff; color: var(--text); box-shadow: inset 0 3px 0 var(--title-1); }
.portal { max-width: 1060px; margin: 0 auto; padding: 10px 36px 60px; display: grid; gap: 18px; }
.portal h2 { color: #fff; margin: 6px 0 0; font-family: "Segoe UI", Tahoma, sans-serif; font-size: 26px; }
.portal-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.hosp-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #e0e4ee; }
.hosp-row:last-child { border-bottom: 0; }
.hosp-row b { font-size: 14px; }
.code { font-family: Consolas, "Courier New", monospace; background: #eef2fb; border: 1px solid #c6d1ea; padding: 1px 6px; letter-spacing: 1px; }

.hero-cta { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; color: #dce6fa; font-size: 13px; }
.demo-btn { background: linear-gradient(#ffd75e, #f5b700); border-color: #c08f00; color: #1c2a44; font-size: 16px; font-weight: bold; padding: 10px 22px; }
.demo-btn:hover { background: linear-gradient(#ffe48a, #ffc21a); }
.site-section { max-width: 1160px; margin: 0 auto; padding: 0 36px 60px; color: #fff; }
.site-section h2 { font-family: "Segoe UI", Tahoma, sans-serif; margin: 0 0 6px; }
.site-section p { color: #dce6fa; }
.addon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 14px; }
.addon-card { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.addon-card span { color: #cfdcf6; font-size: 12.5px; flex: 1; }
.addon-card em { font-style: normal; font-weight: bold; color: #ffd75e; }
td.ad { text-align: center; cursor: pointer; font-weight: bold; color: #8a92a6; }
td.ad:hover { outline: 2px solid #2f62c4; }
td.ad.on { background: #def3df !important; color: #1f6b2a; }
td.ad.trial { background: #fff1d6 !important; color: #8a4b00; font-size: 10px; }
td.ad.exp { background: #fde3e3 !important; color: #a11; }
.demo-strip { background: repeating-linear-gradient(45deg, #fff3c4, #fff3c4 12px, #ffe8a0 12px, #ffe8a0 24px); border-bottom: 1px solid #c8b56a; padding: 3px 10px; font-weight: bold; display: flex; gap: 12px; align-items: center; }

/* ---------- Fenster (Dialoge, Login) ---------- */
.win { background: #f3f4f8; border: 1px solid #3b5a99; box-shadow: 2px 4px 18px rgba(0, 0, 0, .35); }
.win-title { background: linear-gradient(var(--title-1), var(--title-2)); color: #fff; font-weight: bold; padding: 6px 10px; display: flex; align-items: center; gap: 8px; }
.win-title .x { margin-left: auto; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .15); color: #fff; width: 20px; height: 18px; line-height: 14px; cursor: pointer; padding: 0; }
.win-title .x:hover { background: #d9413a; }
.win-body { padding: 14px 16px; overflow-y: auto; }
.win-foot { padding: 8px 12px; border-top: 1px solid #c2c9da; background: #e5e8f0; display: flex; justify-content: flex-end; gap: 6px; }

.orbis-login { height: 100%; display: grid; place-items: center; background: #2f4f8f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 40L40 0' stroke='%23ffffff' stroke-opacity='.04'/%3E%3C/svg%3E"); }
.orbis-login .win { width: 440px; }
.login-banner { background: linear-gradient(120deg, #fff 0%, #e6edfa 100%); padding: 18px 20px; display: flex; gap: 14px; align-items: center; border-bottom: 1px solid #c2c9da; }
.login-banner .logo-mark { width: 46px; height: 46px; font-size: 24px; background: linear-gradient(135deg, #3a5c9f, #1f8fbf); color: #fff; }
.login-banner b { font-size: 20px; letter-spacing: 1px; color: #23417f; display: block; }
.login-banner small { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 110px 1fr; gap: 8px 10px; align-items: center; }
.form-grid label { text-align: right; color: #333; }
.form-grid input, .form-grid select { width: 100%; }
.station-list { border: 1px solid #8e9bb8; background: #fff; height: 230px; overflow-y: auto; }
.station-list div { padding: 5px 8px; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.station-list div:hover { background: var(--row-hover); }
.station-list div.sel { background: var(--select); }

/* ---------- Arbeitsplatz ---------- */
.ws { display: flex; flex-direction: column; height: 100%; }
.ws > .ws-body { flex: 1; min-height: 0; }
.ws-title { background: linear-gradient(var(--title-1), var(--title-2)); color: #fff; display: flex; align-items: center; gap: 10px; padding: 4px 10px; font-weight: bold; font-size: 13px; }
.ws-title .app-ico { width: 16px; height: 16px; border-radius: 50%; background: #e33; box-shadow: inset 0 0 0 3px #fff; }
.ws-title .right { margin-left: auto; font-weight: normal; display: flex; gap: 16px; align-items: center; }
.ws-title .close { border: 1px solid rgba(255, 255, 255, .5); background: #c73a32; color: #fff; padding: 0 8px; cursor: pointer; font-weight: bold; }
.ws-menu { background: var(--menu); border-bottom: 1px solid #b6c0d6; display: flex; padding: 0 4px; position: relative; z-index: 20; }
.ws-menu > div { position: relative; }
.ws-menu > div > span { display: inline-block; padding: 4px 10px; cursor: pointer; }
.ws-menu > div > span:hover, .ws-menu > div.open > span { background: #c7d6f3; }
.ws-menu .drop { position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid #7d8bab; box-shadow: 2px 3px 8px rgba(0, 0, 0, .2); display: none; padding: 2px 0; }
.ws-menu > div.open .drop { display: block; }
.ws-menu .drop div { padding: 5px 18px; cursor: pointer; }
.ws-menu .drop div:hover { background: #2f62c4; color: #fff; }
.ws-menu .drop hr { border: 0; border-top: 1px solid #d5d9e3; margin: 2px 0; }
.ws-toolbar { background: linear-gradient(#f4f6fb, #dde3ef); border-bottom: 1px solid #a9b4cc; display: flex; align-items: center; gap: 2px; padding: 3px 6px; }
.tb { border: 1px solid transparent; background: none; padding: 3px 6px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; border-radius: 2px; }
.tb:hover { border-color: #7f9ad0; background: linear-gradient(#fff, #d6e2f8); }
.tb svg { width: 20px; height: 20px; }
.tb-sep { width: 1px; height: 22px; background: #aab3c7; margin: 0 5px; }
.tb-search { display: flex; align-items: center; gap: 4px; margin-left: 8px; position: relative; }
.tb-search input { width: 230px; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.tb-right select { min-width: 200px; font-weight: bold; }
.search-pop { position: absolute; top: 100%; left: 0; width: 340px; background: #fff; border: 1px solid #7d8bab; box-shadow: 2px 3px 8px rgba(0, 0, 0, .2); z-index: 30; max-height: 320px; overflow-y: auto; }
.search-pop div { padding: 5px 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.search-pop div:hover { background: var(--row-hover); }

.ws-body { display: grid; grid-template-columns: 240px 1fr; min-height: 0; }
.side { background: var(--panel); border-right: 3px solid #9fb0d4; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.side-panel { display: flex; flex-direction: column; min-height: 0; }
.side-panel.grow { flex: 1; }
.panel-head { background: linear-gradient(var(--panel-head-1), var(--panel-head-2)); color: var(--panel-head-text); padding: 3px 8px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.tree { background: var(--tree-bg); overflow-y: auto; padding: 2px 0; }
.tree div { padding: 2px 8px 2px 6px; cursor: pointer; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree div:hover { background: #c7d6f3; }
.tree div.active { background: var(--select); font-weight: bold; }
.tree .folder { width: 13px; height: 11px; background: linear-gradient(#ffe48a, #f1c232); border: 1px solid #b38f17; flex: none; border-radius: 1px; }
.tree .doc { width: 10px; height: 13px; background: #fff; border: 1px solid #8a94aa; flex: none; }
.tree .bold { font-weight: bold; }
.tree .count { margin-left: auto; background: var(--danger); color: #fff; font-size: 10px; padding: 0 5px; border-radius: 7px; font-weight: bold; }
.tree .x { margin-left: auto; color: var(--muted); padding: 0 3px; }
.tree .x:hover { color: var(--danger); }
.tree div.sub { padding-left: 22px; font-size: 11.5px; }
.tree div.sub.head { color: #23417f; font-weight: bold; cursor: default; margin-top: 3px; }
.tree div.sub.head:hover { background: none; }
.tree div.sub2 { padding-left: 26px; font-size: 11.5px; }
.tree div.sub3 { padding-left: 40px; font-size: 11px; color: #4a556e; }
.tree div.cur { background: var(--select-soft); font-weight: bold; }
.tree .dot { width: 8px; height: 8px; border-radius: 50%; background: #b9c0cf; flex: none; }
.tree .dot.on { background: #2fa84f; }
.drugcat { border: 1px solid #a8b3cb; margin-bottom: 10px; background: #fff; }
.drugcat-head { display: flex; gap: 10px; align-items: center; padding: 5px 8px; background: linear-gradient(#f2f4f9, #dfe4ef); border-bottom: 1px solid #a8b3cb; flex-wrap: wrap; }
.drugcat-head input { width: 200px; }
.drugcat-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px 6px; border-bottom: 1px solid #e3e7f0; }
.drugcat-tabs button { border: 1px solid #c3cbe0; background: #f7f9fd; padding: 1px 8px; cursor: pointer; font-size: 11.5px; }
.drugcat-tabs button.on { background: #2f62c4; color: #fff; border-color: #2f62c4; }
.drugcat-list { max-height: 190px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.drug { padding: 4px 8px; border-bottom: 1px solid #eef0f5; border-right: 1px solid #eef0f5; cursor: pointer; }
.drug:hover { background: var(--row-hover); }
.drug.sel { background: var(--select); }
.drug span { display: block; color: var(--muted); font-size: 11px; }
.drug.risky { background: #fde3e3; }
.drug em { color: var(--danger); font-style: normal; font-weight: bold; font-size: 11px; }
.hist { display: flex; flex-direction: column; gap: 8px; }
.hcase { border: 1px solid #a8b3cb; background: #fff; }
.hcase.active { border-left: 4px solid #2fa84f; }
.hcase.focus { outline: 2px solid #2f62c4; }
.hc-head { display: flex; align-items: center; gap: 8px; padding: 5px 8px; background: linear-gradient(#f2f4f9, #dfe4ef); border-bottom: 1px solid #a8b3cb; flex-wrap: wrap; }
.hc-head .sp { flex: 1; }
.hc-head .dot { width: 9px; height: 9px; border-radius: 50%; background: #b9c0cf; }
.hc-head .dot.on { background: #2fa84f; }
.hc-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 16px; padding: 8px 10px; }
.hc-body small { display: block; color: var(--muted); font-size: 10.5px; text-transform: uppercase; }
.inscard { border-radius: 10px; padding: 12px 14px; color: #fff; background: linear-gradient(135deg, #2c6e49, #3fa36b); max-width: 340px; box-shadow: 0 3px 10px rgba(0,0,0,.2); font-family: "Segoe UI", Tahoma, sans-serif; }
.inscard.privat { background: linear-gradient(135deg, #1d2b47, #4467a8); }
.inscard.selbstzahler, .inscard.unversichert, .inscard.none { background: linear-gradient(135deg, #6b7280, #9ca3af); }
.inscard .ic-top { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; opacity: .85; }
.inscard .ic-name { font-size: 18px; font-weight: bold; margin: 10px 0 2px; }
.inscard .ic-row { display: flex; justify-content: space-between; font-family: Consolas, monospace; }
.inscard .ic-type { font-size: 11px; margin-top: 8px; opacity: .9; }
.bodymap { display: flex; gap: 10px; justify-content: center; }
.bview { display: flex; flex-direction: column; align-items: center; color: var(--muted); font-size: 11px; }
.bsvg { width: 120px; height: 252px; }
.bsvg.pick { cursor: crosshair; }
#alMap .bsvg { cursor: crosshair; }
.bfig > * { fill: #e9edf6; stroke: #7d8bab; stroke-width: 1.4; }
.bfig .spine { stroke-dasharray: 4 3; }
.bfig .navel { fill: #7d8bab; }
.bmark { cursor: pointer; }
.bmark circle { stroke: #fff; stroke-width: 2; }
.bmark text { fill: #fff; font-size: 10px; font-weight: bold; text-anchor: middle; pointer-events: none; }
.dev-dialog { display: grid; grid-template-columns: 270px 1fr; gap: 14px; align-items: start; }
.al-dev { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 10px; align-items: start; margin-bottom: 10px; }
.al-dev > .box:last-child { margin-bottom: 0 !important; }
.devno { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: bold; margin-right: 5px; vertical-align: middle; }
.emsbox { background: #fff8ec; }
.emsbox tr { cursor: grab; }
.emsbox tr.ems-eingetroffen td { background: #e3f5e4 !important; }
.emsbox tr:hover td { background: #ffe9c2 !important; }
.ems-head { padding: 6px 10px; background: #f7f9fd; display: flex; flex-direction: column; }
.ems-head span { color: var(--muted); }
.ctxmenu { position: fixed; z-index: 80; min-width: 210px; background: #fff; border: 1px solid #7d8bab; box-shadow: 3px 4px 12px rgba(0, 0, 0, .25); padding: 2px 0; font-size: 12px; }
.ctxmenu hr { border: 0; border-top: 1px solid #d5d9e3; margin: 2px 0; }
.ctx-head { padding: 4px 14px; background: linear-gradient(#e9eef8, #d3dcee); border-bottom: 1px solid #c3cbe0; margin: -2px 0 2px; }
.ctx-item { padding: 4px 26px 4px 14px; cursor: pointer; position: relative; white-space: nowrap; }
.ctx-item:hover { background: #2f62c4; color: #fff; }
.ctx-item .arr { position: absolute; right: 8px; }
.ctxmenu .sub { display: none; position: absolute; left: 100%; top: -3px; }
.ctxmenu.sub-left .sub { left: auto; right: 100%; }
.ctx-item.has-sub.open > .sub { display: block; color: var(--text); }
.ctx-item.has-sub.open { background: #2f62c4; color: #fff; }
.upsell { border: 2px dashed #c3cbe0; background: #f7f9fd; padding: 22px; text-align: center; }
.upsell b { font-size: 15px; }
.addon-admin { display: flex; flex-direction: column; border: 1px solid #a8b3cb; }
.addon-row { display: grid; grid-template-columns: 1fr 200px 130px 100px; gap: 10px; align-items: center; padding: 8px 10px; border-bottom: 1px solid #e3e7f0; }
.addon-row:last-child { border-bottom: 0; }
.addon-row.on { background: #f3fbf4; }
.addon-row span { display: block; color: var(--muted); font-size: 11.5px; }
.addon-row span.tag, .addon-row span.code, .addon-row span.ok-badge { display: inline-block; }
.addon-row .pr { font-weight: bold; color: #23417f; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.main-head { background: linear-gradient(var(--panel-head-1), var(--panel-head-2)); color: #fff; padding: 3px 10px; font-size: 12px; display: flex; gap: 8px; align-items: center; }
.main-body { flex: 1; overflow: auto; min-height: 0; background: var(--work); }
.page { padding: 12px 16px 30px; }
.page-title { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.page-title h2 { margin: 0 auto 0 0; font-size: 18px; font-family: "Segoe UI", Tahoma, sans-serif; font-weight: 600; }

/* ---------- Rahmen-Panels im Arbeitsbereich ---------- */
.box { background: #fff; border: 1px solid #a8b3cb; display: flex; flex-direction: column; min-height: 0; }
.box-head { background: linear-gradient(#f2f4f9, #dfe4ef); border-bottom: 1px solid #a8b3cb; padding: 4px 8px; display: flex; align-items: center; gap: 8px; font-weight: bold; }
.box-head .tools { margin-left: auto; display: flex; gap: 4px; font-weight: normal; }
.box-body { overflow: auto; min-height: 0; }
.box-body.pad { padding: 10px 12px; }
.empty { padding: 18px; text-align: center; color: var(--muted); }

/* ---------- Tabellen ---------- */
table.grid { width: 100%; border-collapse: collapse; background: #fff; }
table.grid th { background: linear-gradient(#fbfbfd, #e3e7f0); border: 1px solid var(--grid); border-top: 0; padding: 4px 6px; text-align: left; font-weight: normal; color: #333; position: sticky; top: 0; z-index: 1; white-space: nowrap; }
table.grid td { border: 1px solid #dde2ee; padding: 3px 6px; vertical-align: middle; }
table.grid tr:nth-child(even) td { background: var(--row-alt); }
table.grid tr.click { cursor: pointer; }
table.grid tr.click:hover td { background: var(--row-hover); }
table.grid tr.sel td { background: #a9c8f5 !important; }
td .sub { display: block; color: var(--muted); font-size: 11px; }
.dept { display: inline-block; padding: 0 6px; font-weight: bold; font-size: 11px; min-width: 38px; text-align: center; color: #fff; }
.dept.light { color: #222; }
.timecell { font-weight: bold; text-align: center; font-variant-numeric: tabular-nums; }
.ok-badge { display: inline-block; background: #3fae49; color: #fff; padding: 0 7px; border-radius: 9px; font-weight: bold; font-size: 11px; }
.tag { display: inline-block; padding: 0 6px; border: 1px solid #b6bfd3; background: #f1f3f8; font-size: 11px; }
.tag.red { background: #fde3e3; border-color: #e7a1a1; color: #a11; }
.tag.blue { background: #dfeafc; border-color: #9fbbea; color: #164a9c; }
.tag.green { background: #def3df; border-color: #93c999; color: #1f6b2a; }
.tag.orange { background: #fdebd2; border-color: #e5b77a; color: #8a4b00; }

/* ---------- Raumbelegung ---------- */
.leit { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 8px; padding: 8px; height: 100%; min-height: 0; }
.leit-left, .leit-right { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.board { background: var(--board); border: 1px solid #a8b3cb; flex: 1; overflow: auto; padding: 12px; min-height: 0; }
.rooms { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.room { width: 156px; background: var(--free); border: 1px solid #8f9ab3; box-shadow: 1px 1px 0 rgba(0, 0, 0, .12); }
.room.full { background: #f6f6fb; }
.room.drop-ok { outline: 3px solid #2f62c4; }
.room-head { background: var(--tile-head); text-align: center; font-weight: bold; padding: 2px 4px; border-bottom: 1px solid #8f9ab3; display: flex; justify-content: center; gap: 6px; position: relative; }
.room-head small { font-weight: normal; color: #4a556e; }
.room-head .edit { position: absolute; right: 3px; top: 1px; cursor: pointer; color: #4a556e; display: none; }
.room:hover .room-head .edit { display: inline; }
.room-free { height: 38px; display: grid; place-items: center; color: #5a8a55; font-size: 11px; }
.pcard { display: grid; grid-template-columns: 36px 1fr; gap: 0 5px; padding: 4px; border-bottom: 1px solid #a7b0c6; background: #fff; cursor: grab; position: relative; }
.pcard:last-child { border-bottom: 0; }
.pcard:hover { background: #eef4ff; }
.pcard.dragging { opacity: .4; }
.pcard .tri { width: 36px; height: 40px; background: var(--c); display: grid; place-items: center; border: 1px solid rgba(0, 0, 0, .25); }
.pcard .tri svg { width: 26px; height: 26px; fill: rgba(0, 0, 0, .55); }
.pcard .nm { font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .ag { color: #333; font-size: 11px; }
.pcard .tm { grid-column: 1 / -1; font-weight: bold; font-size: 13px; margin-top: 2px; }
.pcard .tm.late::before { content: "! "; color: var(--danger); }
.pcard .cp { grid-column: 1 / -1; font-size: 11px; color: #333; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pcard .dp { grid-column: 1 / -1; margin: 3px -4px -4px; text-align: center; font-weight: bold; font-size: 11px; color: #fff; padding: 1px 0; }
.pcard .xfer { display: inline-block; margin-top: 2px; background: #2f62c4; color: #fff; font-size: 10px; font-weight: bold; padding: 0 5px; }
.pcard .flag { position: absolute; right: 4px; top: 3px; color: var(--danger); font-weight: bold; }
.add-room { width: 156px; height: 74px; border: 2px dashed #8f9ab3; display: grid; place-items: center; color: #4a556e; cursor: pointer; background: rgba(255, 255, 255, .4); }
.add-room:hover { background: #fff; color: #2f62c4; border-color: #2f62c4; }
.lower { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px; height: clamp(190px, 32vh, 260px); flex: none; }
.lower .box-head { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lower > .box, .leit-left, .leit-right, .leit > * { min-width: 0; }
.lower > .box { overflow: hidden; }
.lower-stack { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; }
.lower-stack > .box { flex: 1; min-height: 0; overflow: hidden; }
.lower-stack .empty { padding: 8px; }
.lower .box-body { overflow: auto; }
.lower table.grid td, .emsbox table.grid td { padding: 3px 5px; }
@media (max-width: 1500px) {
  .room, .add-room { width: 138px; }
  .rooms { gap: 8px; }
  .board { padding: 8px; }
  .pcard .cp { -webkit-line-clamp: 1; }
  .leit { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}
.waitbox { background: var(--wait); }
.waitbox table.grid td, .waitbox table.grid tr:nth-child(even) td { background: transparent; }
.waitbox tr { cursor: grab; }
.waitbox tr:hover td { background: #f6eda0 !important; }
.dropzone.drop-ok { outline: 3px solid var(--danger); }
.blackboard { width: 100%; height: 100%; border: 0; resize: none; padding: 8px; background: #fffef3; }

/* ---------- Patientenakte ---------- */
.akte-head { background: linear-gradient(#fff8d6, #f6e9a8); border: 1px solid #c8b56a; padding: 6px 10px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.akte-head .nm { font-size: 15px; font-weight: bold; }
.akte-head .facts { display: flex; gap: 14px; flex-wrap: wrap; }
.akte-head .actions { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.allergy { background: var(--danger); color: #fff; font-weight: bold; padding: 1px 6px; }
.tabstrip { display: flex; gap: 1px; margin-top: 8px; border-bottom: 1px solid #8e9bb8; flex-wrap: wrap; }
.tabstrip button { border: 1px solid #a8b3cb; border-bottom: 0; background: linear-gradient(#f5f6fa, #dfe3ed); padding: 4px 12px; cursor: pointer; margin-bottom: -1px; }
.tabstrip button.active { background: #fff; font-weight: bold; border-color: #8e9bb8; position: relative; }
.tabpane { background: #fff; border: 1px solid #8e9bb8; border-top: 0; padding: 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
dl.facts { display: grid; grid-template-columns: 130px 1fr; gap: 4px 10px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; white-space: pre-wrap; }
.kind { display: inline-block; width: 26px; text-align: center; font-weight: bold; font-size: 10px; padding: 1px 0; color: #fff; background: #6a7ea8; }
.kind.diagnose { background: #c43b3b; }
.kind.medikation { background: #2f8a3c; }
.kind.vitals { background: #7a4fc9; }
.kind.behandlung { background: #c77a12; }
.kind.befund { background: #1f78b4; }
.pre { white-space: pre-wrap; }
.chart { width: 100%; height: 170px; background: #fff; border: 1px solid #dde2ee; }
.chart line { stroke: #e3e7f0; }
.chart text { fill: #666; font-size: 10px; }

/* ---------- Dokument ---------- */
.doc-edit { display: grid; grid-template-columns: 1fr 260px; gap: 10px; }
.doc-edit textarea { width: 100%; min-height: 470px; font-family: Consolas, "Courier New", monospace; font-size: 12.5px; }
.paper { background: #fff; max-width: 760px; margin: 0 auto; padding: 44px 52px; border: 1px solid #a8b3cb; box-shadow: 2px 2px 8px rgba(0, 0, 0, .15); font-family: Arial, sans-serif; font-size: 13px; }
.paper .lh { display: flex; justify-content: space-between; border-bottom: 2px solid #3a5c9f; padding-bottom: 8px; margin-bottom: 22px; }
.paper .lh b { font-size: 17px; color: #23417f; }
.paper h1 { font-size: 17px; margin: 0 0 4px; }
.paper .meta { color: #666; margin-bottom: 18px; }
.paper .body { white-space: pre-wrap; line-height: 1.6; }
.stamp { display: inline-block; border: 2px solid var(--ok); color: var(--ok); padding: 1px 8px; font-weight: bold; transform: rotate(-3deg); margin-top: 30px; }

/* ---------- Dialoge ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(20, 30, 60, .35); display: grid; place-items: center; z-index: 50; }
.modal-bg .win { width: min(560px, 94vw); max-height: 88vh; display: flex; flex-direction: column; }
.modal-bg .win.wide { width: min(820px, 96vw); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.fields label { display: grid; gap: 3px; color: #333; }
.fields label.full { grid-column: 1 / -1; }
.fields input, .fields select, .fields textarea { width: 100%; }
.picker { border: 1px solid #8e9bb8; background: #fff; max-height: 180px; overflow-y: auto; }
.picker div { padding: 4px 8px; cursor: pointer; display: flex; justify-content: space-between; }
.picker div:hover { background: var(--row-hover); }
.picker div.sel { background: var(--select); }
.keybox { font-family: Consolas, monospace; font-size: 13px; background: #fff; border: 1px solid #8e9bb8; padding: 8px; word-break: break-all; user-select: all; }

.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; z-index: 60; }
.toast { background: #fffbe1; border: 1px solid #b9a64a; padding: 8px 12px; box-shadow: 2px 3px 8px rgba(0, 0, 0, .2); max-width: 360px; }
.toast.error { background: #fde6e6; border-color: #d27b7b; color: #8f1111; }
.toast.ok { background: #e3f5e4; border-color: #84bf8a; }

/* ---------- Module ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 10px; }
.kpi { background: #fff; border: 1px solid #a8b3cb; border-top: 3px solid #5576b4; padding: 7px 10px; cursor: pointer; display: flex; flex-direction: column; }
.kpi:hover { background: #f3f7ff; }
.kpi.active { outline: 2px solid #2f62c4; }
.kpi small { color: var(--muted); font-size: 11px; }
.kpi b { font-size: 22px; font-family: "Segoe UI", Tahoma, sans-serif; line-height: 1.2; }
.kpi span { color: var(--muted); font-size: 11px; }
.kpi.warn { border-top-color: #f7861b; }
.kpi.neg { border-top-color: var(--danger); }
.kpi.neg b { color: var(--danger); }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 8px; align-items: start; }
table.grid.ov td { vertical-align: top; }
.hints .tag { margin: 0 2px 2px 0; }
.mini { padding: 5px 8px; border-bottom: 1px solid #e3e7f0; display: flex; flex-direction: column; }
.mini span { color: var(--muted); font-size: 11px; }
.mini.overdue b { color: var(--danger); }
.crit { color: var(--danger); font-weight: bold; }
td.crit { background: #fde3e3 !important; }
td.hi { background: #fff1d6 !important; font-weight: bold; }
.overdue { color: var(--danger); font-weight: bold; }
tr.done-row td { color: #8a92a6; }
.formbar { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.scorebox { background: #eef4ff; border: 1px solid #9fbbea; padding: 6px 10px; margin-bottom: 10px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px; }
.checks label { display: flex; gap: 6px; align-items: center; }
.meter { height: 10px; background: #e3e7f0; border: 1px solid #c3cbe0; }
.meter i { display: block; height: 100%; background: #5576b4; }
.triage-sq { display: inline-block; width: 10px; height: 10px; vertical-align: middle; }
.opplan { display: flex; gap: 0; overflow-x: auto; }
.op-times { width: 52px; flex: none; padding-top: 25px; color: var(--muted); font-size: 11px; }
.op-times div { border-top: 1px solid #e3e7f0; box-sizing: border-box; }
.op-col { flex: 1; min-width: 150px; border-left: 1px solid #c3cbe0; }
.op-head { background: linear-gradient(#f2f4f9, #dfe4ef); border-bottom: 1px solid #a8b3cb; padding: 4px; text-align: center; font-weight: bold; height: 25px; }
.op-body { position: relative; background: repeating-linear-gradient(#fff 0 55px, #e3e7f0 55px 56px); }
.op-block { position: absolute; left: 3px; right: 3px; background: #dfeafc; border: 1px solid #5576b4; border-left: 4px solid #2f62c4; padding: 2px 5px; overflow: hidden; cursor: pointer; font-size: 11px; display: flex; flex-direction: column; }
.op-block.laeuft { background: #fff1d6; border-left-color: #f7861b; }
.op-block.erledigt { background: #e3f5e4; border-left-color: #2fa84f; }
.op-block.notfall { border-left-color: var(--danger); }
.op-block span { color: #4a556e; }


/* ---------- Große Kurve ---------- */
.kurve-card { background: #fff; border: 1px solid #a8b3cb; }
.kurve-bar { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-bottom: 1px solid #a8b3cb; background: linear-gradient(#f2f4f9, #dfe4ef); flex-wrap: wrap; }
.kurve-bar .seg { display: inline-flex; border: 1px solid #8592b0; }
.kurve-bar .seg button { border: 0; border-right: 1px solid #8592b0; background: #fff; padding: 3px 10px; cursor: pointer; }
.kurve-bar .seg button:last-child { border-right: 0; }
.kurve-bar .seg button.on { background: #2f62c4; color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex: 1; }
.lg { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; }
.lg.chip { border: 1px solid #c3cbe0; background: #fff; padding: 1px 7px; cursor: pointer; user-select: none; }
.lg.chip.off { opacity: .4; text-decoration: line-through; }
.lg i { width: 12px; height: 4px; display: inline-block; }
.lg i.tri { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid #2f62c4; background: none; }
.lg i.dia { width: 9px; height: 9px; background: #e07b00; transform: rotate(45deg); }
.kurve-host { position: relative; overflow-x: auto; min-height: 200px; }
svg.kurve { display: block; font-family: Tahoma, Verdana, sans-serif; }
svg.kurve .pbg { fill: #f7f9fd; stroke: #c3cbe0; }
svg.kurve .g { stroke: #e3e7f0; }
svg.kurve .gday { stroke: #8f9ab3; stroke-dasharray: 4 3; }
svg.kurve .ax { fill: #5b6478; font-size: 10px; }
svg.kurve .ptitle { fill: #23417f; font-size: 11px; font-weight: bold; }
svg.kurve .nowline { stroke: #d92525; stroke-dasharray: 3 3; }
svg.kurve .cross { stroke: #2f62c4; stroke-width: 1; }
svg.kurve .mark { cursor: help; }
.ktip { position: absolute; background: #1d2b47; color: #fff; padding: 6px 9px; font-size: 11.5px; pointer-events: none; min-width: 170px; box-shadow: 2px 3px 8px rgba(0,0,0,.3); z-index: 5; }
.ktip div { display: flex; align-items: center; gap: 5px; }
.ktip span { width: 9px; height: 9px; display: inline-block; }
.ktip .muted { color: #b9c6e0; }

/* ---------- ZNA: Triage und Ersteinschätzung ---------- */
.zna { background: #fff; min-height: 100%; }
.ztitle { background: linear-gradient(#5b7fc0, #4467a8); color: #fff; padding: 4px 10px; font-weight: bold; display: flex; gap: 10px; align-items: center; }
.ztitle .right { margin-left: auto; font-weight: normal; font-family: Consolas, monospace; }
.ztabs { display: flex; align-items: center; gap: 1px; background: #dde5f4; border-bottom: 1px solid #8e9bb8; padding: 3px 6px 0; }
.ztabs > button { border: 1px solid #a8b3cb; border-bottom: 0; background: linear-gradient(#f5f6fa, #dfe3ed); padding: 4px 16px; cursor: pointer; font-style: italic; color: #5b6478; }
.ztabs > button.active { background: #fff; font-style: normal; font-weight: bold; color: #000; margin-bottom: -1px; }
.ztabs .sp { flex: 1; }
.ztabs .btn { margin: 0 0 3px 4px; }
.zform { padding: 8px 10px; }
.zgrid { display: grid; grid-template-columns: 150px minmax(0, 1fr) 190px minmax(0, 1fr); gap: 4px 10px; align-items: center; border-bottom: 1px solid #c3cbe0; padding-bottom: 8px; margin-bottom: 8px; }
.zgrid > span { color: #222; }
.zgrid input, .zgrid select { width: 100%; }
.zrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0; }
.zcols { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 10px; align-items: start; }
.zbox { border: 1px solid #a8b3cb; background: #fff; }
.zhead { background: linear-gradient(#e9eef8, #d3dcee); border-bottom: 1px solid #a8b3cb; padding: 3px 8px; font-weight: bold; }
.zstamm { display: grid; grid-template-columns: 120px 1fr; gap: 5px 8px; padding: 8px; align-items: center; }
.zstamm select, .zstamm input:not([type=radio]):not([type=checkbox]) { width: 100%; }
.zstamm select[data-z=isolation] { background: #fff3c4; }
label.rd { display: inline-flex; align-items: center; gap: 4px; margin-right: 12px; font-weight: normal; color: #222; }
label.rd input { min-height: auto; width: auto; }
.zq label.rd { display: flex; margin: 3px 0; }
.zsubtabs { display: flex; gap: 1px; background: #dde5f4; border-bottom: 1px solid #a8b3cb; padding: 2px 4px 0; }
.zsubtabs button { border: 1px solid #a8b3cb; border-bottom: 0; background: linear-gradient(#f5f6fa, #dfe3ed); padding: 3px 12px; cursor: pointer; }
.zsubtabs button.active { background: #fff; font-weight: bold; margin-bottom: -1px; }
.zsec { color: #5b6478; margin: 10px 0 4px; display: flex; align-items: center; gap: 8px; }
.zsec::after { content: ""; flex: 1; border-top: 1px solid #c3cbe0; }
.zq { padding-left: 8px; }
#zB.off, #zC.off, #zD.off { opacity: .4; pointer-events: none; }
.zresult { margin: 8px auto 6px; width: 260px; text-align: center; border: 1px solid #333; padding: 6px; font-size: 13px; }
.zresult b { font-size: 16px; margin-right: 6px; }
.okc { color: #1f6b2a; }
.zvitals { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 14px; margin: 6px 0; }
.zvitals label { display: flex; flex-direction: column; gap: 2px; border-bottom: 2px solid #c3cbe0; padding-bottom: 4px; }
.zvitals label span { font-weight: bold; }
.zvitals small { font-weight: normal; color: #5b6478; }

@media (max-width: 900px) {
  .dev-dialog, .al-dev { grid-template-columns: 1fr; }
  .zgrid { grid-template-columns: 120px 1fr; }
  .zcols { grid-template-columns: 1fr; }
  .ov-grid { grid-template-columns: 1fr; }
  .site-hero, .portal-grid, .leit, .two, .doc-edit { grid-template-columns: 1fr; }
  .ws-body { grid-template-columns: 1fr; }
  .side { display: none; }
}
@media print {
  body, .ws, .ws-body, .main, .main-body { overflow: visible !important; height: auto !important; display: block !important; }
  body * { visibility: hidden; }
  .paper, .paper *, .print-area, .print-area * { visibility: visible; }
  .print-area { position: absolute; left: 0; top: 0; width: 100%; }
  .print-area .btn, .print-area select, .print-area input { display: none; }
  .paper { position: absolute; left: 0; top: 0; border: 0; box-shadow: none; }
}

/* Logo (Bildmarke statt „M“) */
.logo-mark { background: url(/favicon.svg) center / cover no-repeat !important; color: transparent !important; font-size: 0 !important; border-radius: 22% !important; }
.ws-title .app-ico { background: url(/favicon.svg) center / cover no-repeat; border-radius: 22%; box-shadow: none; }

/* Rechtstexte */
.legal { max-width: 820px; margin: 0 auto 40px; background: #fff; color: #1d2433; padding: 30px 40px; border-radius: 6px; line-height: 1.6; }
.legal h1 { margin-top: 0; color: #14295a; }
.legal h2 { font-size: 16px; margin: 24px 0 6px; color: #14295a; }
.legal .box-legal { border: 1px solid #c9d3e6; background: #f5f8fd; padding: 4px 16px; border-radius: 4px; }
.legal-foot { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 18px; justify-content: center; padding: 6px; font-size: 12px; color: #c9d6ee; background: rgba(10, 22, 48, .55); z-index: 5; }
.legal-foot a { color: #fff; text-decoration: none; }
.legal-foot a:hover { text-decoration: underline; }
.legal-foot span { opacity: .7; }
.site { box-sizing: border-box; display: flex; flex-direction: column; }
.site > .site-footer { margin-top: auto; }
label.terms { display: flex !important; flex-direction: row !important; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.4; font-weight: normal; }
label.terms input { width: auto !important; min-height: auto !important; margin: 2px 0 0; flex: none; }
@media (max-width: 640px) { .legal { padding: 20px; margin: 0 10px 40px; } }

/* Datenschutz-Hinweis */
.privacy-banner { position: fixed; left: 50%; bottom: 44px; transform: translateX(-50%); width: min(880px, calc(100% - 24px)); z-index: 45;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 14px 18px; background: #fff; color: #1d2433; border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35); font-size: 13px; line-height: 1.5; border-top: 4px solid #2a6fb5; }
.privacy-banner > div:first-child { flex: 1; min-width: 260px; }
.privacy-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.legal-foot a[data-privacy] { cursor: pointer; }



/* ---------- Kopfzeile ---------- */
.site-nav { position: sticky; top: 0; z-index: 20; display: block; padding: 0; background: rgba(12, 24, 52, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-nav .nav-inner { max-width: 1160px; margin: 0 auto; padding: 12px 36px; display: flex; align-items: center; gap: 26px; }
.site-nav .logo { color: #fff; text-decoration: none; font-size: 18px; letter-spacing: 1.5px; }
.site-nav .logo-mark { width: 28px; height: 28px; }
.site-nav .nav-links { display: flex; gap: 22px; }
.site-nav .nav-links a, .site-nav .nav-right > a, .site-nav .nav-right > span { color: rgba(255, 255, 255, .82); font-weight: 500; font-size: 14px; transition: color .15s; }
.site-nav .nav-links a:hover, .site-nav .nav-right > a:hover { color: #fff; }
.site-nav .nav-right { display: flex; align-items: center; gap: 18px; }
.site-nav .nav-right > a[href="#/register"] { background: #fff; color: #14295a; padding: 7px 14px; border-radius: 6px; font-weight: 600; }
.site-nav .nav-right > a[href="#/register"]:hover { background: #e6eefc; color: #14295a; }
.site-nav .nav-discord { display: inline-flex; align-items: center; gap: 6px; background: #5865f2; color: #fff !important; padding: 7px 12px; border-radius: 6px; font-weight: 600; }
.site-nav .nav-discord:hover { background: #4752c4; }

/* ---------- Seitenfuß ---------- */
.site-footer { background: #0b1630; color: #b9c6e0; font-size: 13px; margin-top: 40px; }
.site-footer .foot-inner { max-width: 1160px; margin: 0 auto; padding: 44px 36px 28px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; margin: 4px 0 12px; }
.site-footer a { display: block; color: #b9c6e0; text-decoration: none; margin: 0 0 8px; cursor: pointer; }
.site-footer a:hover { color: #fff; }
.site-footer .foot-brand p { margin: 10px 0 16px; line-height: 1.5; max-width: 280px; }
.site-footer .foot-brand .logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: bold; font-size: 17px; letter-spacing: 1.5px; }
.site-footer .btn.discord { display: inline-flex; color: #fff; margin: 0; }
.site-footer .foot-bottom { max-width: 1160px; margin: 0 auto; padding: 16px 36px 22px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #7f8fb0; font-size: 12px; }

/* ---------- Support ---------- */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.support-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid #c9d3e6; border-radius: 8px; color: #1d2433; text-decoration: none; line-height: 1.5; }
.support-card:hover { border-color: #2a6fb5; background: #f5f8fd; }
.support-card .sc-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: bold; color: #14295a; }
.support-card em { color: #6a7790; font-style: normal; font-size: 12px; }

@media (max-width: 760px) {
  .site-nav .nav-inner { padding: 10px 16px; gap: 12px; }
  .site-nav .nav-links { display: none; }
  .site-nav .nav-right { gap: 10px; }
  .site-nav .nav-discord span { display: none; }
  .site-nav .nav-discord { padding: 7px 9px; }
  .site-nav .logo { font-size: 16px; letter-spacing: 1px; }
}
@media (max-width: 420px) {
  .site-nav .nav-right > a[href="#/"] { display: none; }
  .site-nav .nav-right > a[href="#/register"] { padding: 6px 10px; }
  .site-footer .foot-inner { grid-template-columns: 1fr 1fr; padding: 32px 16px 20px; }
  .site-footer .foot-brand { grid-column: 1 / -1; }
  .site-footer .foot-bottom { padding: 14px 16px 20px; }
  .support-grid { grid-template-columns: 1fr; }
}

/* Startbildschirm (Cockpit) */
.hub-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hub-head h2 { margin: 0 0 2px; }
.hub-duty { min-height: 38px; padding: 0 18px; font-size: 14px; }
.hub-duty small { opacity: .8; margin-left: 6px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.hub-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: #fff; border: 1px solid #c3cbdc; border-radius: 6px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.hub-tile:hover { border-color: #2a6fb5; box-shadow: 0 2px 10px rgba(42, 111, 181, .15); }
.hub-tile.primary { background: linear-gradient(135deg, #2a4e9c, #1c9cc6); color: #fff; border: 0; }
.hub-tile .hub-ico { font-size: 22px; }
.hub-tile b { font-size: 14px; }
.hub-tile span:last-child { font-size: 12px; color: #5d6a82; }
.hub-tile.primary span:last-child { color: #dce8fb; }

/* Startbereich (vor der Klinik) im ORBIS-Stil: eigenes Menü und eigener Navigationsbaum */
.ws .mode-label, .ws .mode-user { display: none; }
.ws.mode-admin .mode-label { display: inline; }
.ws.mode-admin .mode-user { display: inline; opacity: .9; }
.ws.mode-admin .clinic-label { display: none; }
.ws #menuStart, .ws aside.side-start { display: none; }
.ws.mode-admin #menuStart, .ws.mode-admin aside.side-start { display: flex; }
.ws.mode-admin #menu, .ws.mode-admin .ws-toolbar, .ws.mode-admin aside.side-clinic { display: none; }
.beta { font-size: 9px; letter-spacing: 1px; background: #f5a623; color: #14295a; padding: 1px 5px; border-radius: 3px; vertical-align: middle; }
.tag.beta-tag { background: #fff3d6; color: #8a5a00; border-color: #f5a623; }
