/* Verwaltung: edles Erscheinungsbild, Cockpit, Kunden, Auswertung */
:root {
  --bg: #0b0a09; --side: #0e0c0b; --card: #141211; --card-2: #1d1a18; --raise: #191614;
  --line: rgba(255,236,214,.07); --line-2: rgba(255,236,214,.13);
  --text: #f4efe8; --muted: #a39a90; --dim: #6f675f;
  --gold: #d4b483; --gold-2: #e9cfa3; --red: #d4a64a; --red-2: #e6c06e; --ok: #3fdc8a; --warn: #f2b33d;
  --r: 20px; --shadow: 0 1px 0 rgba(255,255,255,.035) inset, 0 24px 50px -30px rgba(0,0,0,.8);
}
body { background: radial-gradient(1200px 600px at 100% -10%, rgba(212,166,74,.09), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(212,180,131,.05), transparent 60%), var(--bg); background-attachment: fixed; font-size: 14px; letter-spacing: -.003em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: 30px; }
::selection { background: rgba(212,180,131,.35); }
* { scrollbar-width: thin; scrollbar-color: rgba(255,236,214,.14) transparent; }
.muted.sm, .sm.muted { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.r { text-align: right !important; }

/* Bedienelemente */
.btn { border-radius: 11px; border-color: var(--line-2); background: rgba(255,236,214,.035); transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; }
.btn:hover { background: rgba(255,236,214,.08); border-color: rgba(255,236,214,.2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, #e6c06e, #c99a3e); color: #1a1208; border-color: transparent; box-shadow: 0 8px 22px -10px rgba(212,166,74,.8), 0 1px 0 rgba(255,255,255,.18) inset; }
.btn.primary:hover { background: linear-gradient(180deg, #f0d08a, #d4a64a); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: rgba(255,236,214,.06); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], input[type=url], select, textarea { background: rgba(0,0,0,.35); border-color: var(--line-2); border-radius: 11px; }
input:focus, select:focus, textarea:focus { border-color: rgba(212,180,131,.7); box-shadow: 0 0 0 4px rgba(212,180,131,.12); }
.seg { background: rgba(0,0,0,.35); border-color: var(--line); border-radius: 12px; }
.seg button { border-radius: 9px; transition: background .15s, color .15s; display: inline-flex; align-items: center; gap: 6px; }
.seg button:hover { color: var(--text); }
.seg button.on { background: linear-gradient(180deg, #2a2522, #211d1b); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 4px 10px -4px rgba(0,0,0,.6); }
.seg button em { font-style: normal; font-size: 11px; color: var(--dim); font-weight: 600; }
.seg button.on em { color: var(--gold); }
.card { background: linear-gradient(180deg, var(--raise), var(--card)); border-color: var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; }
.kpi { background: linear-gradient(180deg, var(--raise), var(--card)); border-radius: 16px; box-shadow: var(--shadow); }
.kpi b { font-weight: 600; letter-spacing: -.02em; }
.cal-wrap { border-radius: var(--r); box-shadow: var(--shadow); background: var(--card); }
.cal-corner, .cal-staff, .cal-times { background: #151311; }
.modal { background: rgba(4,3,3,.66); backdrop-filter: blur(8px) saturate(1.2); }
.modal-box, .modal-head, .modal-foot { background: #171413; }
.modal-box { border-color: var(--line-2); border-radius: 22px; box-shadow: 0 40px 120px rgba(0,0,0,.75), 0 1px 0 rgba(255,255,255,.05) inset; }
.toast { background: rgba(30,26,24,.92); backdrop-filter: blur(10px); border-radius: 14px; }
.pill.done { background: rgba(212,180,131,.14); color: var(--gold); }
.table th { font: 600 10.5px/1 var(--sans); letter-spacing: .14em; color: var(--dim); }
.topbar h1 { font-size: 28px; }
.login { background: radial-gradient(700px 400px at 50% 0%, rgba(212,166,74,.2), transparent 70%), var(--bg); }
.login form { background: linear-gradient(180deg, var(--raise), var(--card)); border-radius: 24px; box-shadow: 0 40px 100px -40px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.05) inset; padding: 36px 32px; }

/* Grundgerüst */
.app { grid-template-columns: 248px 1fr; }
.side { overflow-y: auto; background: linear-gradient(180deg, #100e0d, #0c0b0a); border-right: 1px solid var(--line); padding: 22px 14px 18px; }
.side .brand { padding: 0 10px 22px; }
.side .brand img { width: 42px; height: 42px; filter: drop-shadow(0 6px 14px rgba(212,166,74,.35)); }
.side .brand b { font: 700 17px/1 var(--serif); letter-spacing: .16em; }
.side .brand small { color: var(--gold); letter-spacing: .24em; font-weight: 600; }
.side nav { gap: 1px; }
.nav-g { font: 600 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); padding: 18px 12px 8px; }
.nav-g:first-child { padding-top: 4px; }
.side nav button { position: relative; padding: 9px 12px; border-radius: 11px; font-weight: 500; font-size: 13.5px; transition: background .15s, color .15s; }
.side nav button span { flex: 1; }
.side nav button.active { background: linear-gradient(90deg, rgba(212,166,74,.16), rgba(212,166,74,.04)); color: #fff; }
.side nav button.active::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); box-shadow: 0 0 12px var(--red); }
.nav-n { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: rgba(212,180,131,.16); color: var(--gold); }
.side-today { margin: 18px 4px 14px; padding: 14px 14px 12px; border-radius: 16px; background: linear-gradient(160deg, rgba(212,166,74,.14), rgba(212,180,131,.05)); border: 1px solid rgba(212,166,74,.18); display: grid; gap: 2px; }
.side-today:empty { display: none; }
.st-l { font: 600 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.side-today b { font: 700 22px/1.1 var(--serif); letter-spacing: -.02em; }
.side-today small { color: var(--muted); font-size: 11.5px; }
.st-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 8px; }
.st-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #e6c06e, #d4b483); }
.side .foot { gap: 10px; }
.foot-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mainwrap { min-width: 0; display: flex; flex-direction: column; }
.hdr { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 14px 32px; background: rgba(11,10,9,.72); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); }
.hdr .sp, .mob-head .sp { flex: 1; }
.cmd-trigger { display: flex; align-items: center; gap: 10px; width: min(440px, 46vw); height: 40px; padding: 0 12px 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0,0,0,.3); color: var(--dim); cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.cmd-trigger:hover { border-color: rgba(212,180,131,.4); background: rgba(0,0,0,.45); color: var(--muted); }
.cmd-trigger svg { width: 16px; height: 16px; flex: none; }
.cmd-trigger span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
kbd { font: 600 11px/1 var(--sans); padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--muted); white-space: nowrap; }
.bell { position: relative; }
.bell .badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #1a1208; font: 700 10.5px/18px var(--sans); font-style: normal; text-align: center; box-shadow: 0 0 0 3px var(--bg); }
.me { display: flex; align-items: center; gap: 10px; padding-left: 12px; margin-left: 4px; border-left: 1px solid var(--line); }
.me-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 12.5px/1 var(--sans); color: #1a1209; background: linear-gradient(135deg, #f1d9ae, #b88c4f); box-shadow: 0 0 0 2px rgba(212,180,131,.25); }
.me b { display: block; font-size: 13px; line-height: 1.2; }
.me small { display: block; font-size: 11.5px; color: var(--muted); }
.main { padding: 28px 32px 70px; max-width: 1560px; width: 100%; }
.main.v-calendar, .main.v-list { max-width: none; }

/* Gemeinsame Bausteine */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ''; width: 18px; height: 1.5px; background: currentColor; opacity: .7; }
.dcard { background: linear-gradient(180deg, var(--raise), var(--card)); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px 22px; box-shadow: var(--shadow); min-width: 0; position: relative; }
.dcard.flush { padding: 6px 8px 8px; }
.dcard.mb { margin-bottom: 18px; }
.dc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; min-height: 30px; }
.dc-head h2 { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.page-h h1 { font-size: 34px; margin: 10px 0 6px; }
.page-h p { margin: 0; font-size: 13.5px; }
.page-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hbar { display: block; height: 6px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.hbar i { display: block; height: 100%; border-radius: 6px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.ld { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dl { display: inline-flex; align-items: center; gap: 4px; font: 700 11.5px/1 var(--sans); padding: 4px 7px; border-radius: 7px; white-space: nowrap; }
.dl.up { color: #6fe3a6; background: rgba(63,220,138,.1); }
.dl.down { color: #ff8f80; background: rgba(212,166,74,.12); }
.dl.flat { color: var(--muted); background: rgba(255,255,255,.05); }
.empty { color: var(--dim); }
.mini { width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); cursor: pointer; color: var(--muted); transition: all .15s; }
.mini svg { width: 15px; height: 15px; }
.mini.ok:hover { color: #6fe3a6; border-color: rgba(63,220,138,.5); background: rgba(63,220,138,.1); }
.mini.warn:hover { color: #ffb84d; border-color: rgba(242,179,61,.5); background: rgba(242,179,61,.1); }
.mini.wa { color: #4fd17c; }
.mini.wa:hover { background: rgba(37,211,102,.12); border-color: rgba(37,211,102,.45); }
.chip { height: 30px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font: 600 12.5px/1 var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; color: var(--text); transition: all .15s; }
.chip:hover { border-color: rgba(63,220,138,.55); background: rgba(63,220,138,.1); color: #9af0c2; }
.chip.ghost { display: inline-flex; align-items: center; color: var(--dim); cursor: default; border-style: dashed; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tip { position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none; background: rgba(24,21,19,.96); border: 1px solid var(--line-2); padding: 9px 12px; border-radius: 11px; font-size: 12.5px; line-height: 1.5; color: var(--muted); box-shadow: 0 16px 40px rgba(0,0,0,.6); opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; max-width: 260px; }
.tip b { color: var(--text); }
.tip.on { opacity: 1; transform: none; }
.c-av { flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: hsl(var(--h) 60% 82%); background: linear-gradient(140deg, hsl(var(--h) 28% 26%), hsl(var(--h) 22% 16%)); box-shadow: 0 0 0 1px hsl(var(--h) 30% 40% / .35) inset; letter-spacing: .02em; }

/* Skelett beim Laden */
.sk { border-radius: var(--r); background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.07), rgba(255,255,255,.03)); background-size: 200% 100%; animation: shim 1.3s linear infinite; min-height: 120px; border: 1px solid var(--line); }
.sk.h1 { height: 200px; margin-bottom: 18px; }
.sk.tall { min-height: 300px; }
.sk-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.sk-row.two { grid-template-columns: 1fr 1fr; }
.kp.sk { min-height: 116px; }
@keyframes shim { to { background-position: -200% 0; } }

/* Cockpit: Begrüssung */
.hero { display: grid; grid-template-columns: 1fr 360px; gap: 18px; margin-bottom: 18px; }
.hero-main { position: relative; overflow: hidden; border-radius: 24px; padding: 30px 32px 28px; border: 1px solid rgba(212,166,74,.2); background:
  radial-gradient(520px 260px at 100% 0%, rgba(212,166,74,.28), transparent 65%),
  radial-gradient(420px 240px at 0% 120%, rgba(212,180,131,.12), transparent 60%),
  linear-gradient(180deg, #1a1513, #120f0e); box-shadow: var(--shadow); }
.hero-main::after { content: ''; position: absolute; right: -40px; top: -40px; width: 260px; height: 260px; background: url(/img/logo-180.png) center/contain no-repeat; opacity: .05; filter: grayscale(1); pointer-events: none; }
.hero-main h1 { font-size: 40px; line-height: 1.05; margin: 14px 0 12px; letter-spacing: -.03em; }
.hero-p { margin: 0; max-width: 680px; font-size: 15.5px; line-height: 1.6; color: #cfc6bc; }
.hero-p b { color: var(--text); font-weight: 600; }
.qa { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; position: relative; z-index: 1; }
.qa-b { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 16px; border-radius: 13px; border: 1px solid var(--line-2); background: rgba(0,0,0,.28); backdrop-filter: blur(6px); color: var(--text); font-weight: 600; font-size: 13.5px; cursor: pointer; transition: all .15s; }
.qa-b:hover { background: rgba(255,236,214,.08); border-color: rgba(212,180,131,.4); transform: translateY(-1px); }
.qa-b svg { width: 16px; height: 16px; color: var(--gold); }
.qa-b.primary { background: linear-gradient(180deg, #e6c06e, #c99a3e); color: #1a1208; border-color: transparent; box-shadow: 0 10px 26px -10px rgba(212,166,74,.9), 0 1px 0 rgba(255,255,255,.18) inset; }
.qa-b.primary svg { color: #1a1208; }
.qa-b em { font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 99px; background: rgba(212,180,131,.16); color: var(--gold); }
.qa-b em.hot { background: rgba(212,166,74,.2); color: #ff9a8e; }
.hero-ring { border-radius: 24px; padding: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--raise), var(--card)); box-shadow: var(--shadow); display: flex; align-items: center; gap: 22px; }
.ring-w { position: relative; flex: none; }
.ring-v { transition: stroke-dasharray 1s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 0 8px rgba(212,166,74,.35)); }
.ring-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-c b { font: 700 38px/1 var(--serif); letter-spacing: -.04em; }
.ring-c b small { font-size: 18px; color: var(--muted); margin-left: 1px; }
.ring-c span { font-size: 11px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-top: 4px; }
.ring-leg { display: grid; gap: 12px; flex: 1; min-width: 0; }
.ring-leg div { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; font-size: 13px; }
.ring-leg i { width: 10px; height: 10px; border-radius: 3px; background: rgba(255,255,255,.12); }
.ring-leg span { color: var(--muted); }
.ring-leg b { font-variant-numeric: tabular-nums; }
.ring-leg .rl-d { display: block; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }

/* Kennzahlen */
.kpis4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.kpis6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 18px; }
.kp { position: relative; overflow: hidden; border-radius: 18px; padding: 18px 20px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--raise), var(--card)); box-shadow: var(--shadow); min-width: 0; }
.kp-l { display: block; font: 600 10.5px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.kp > b { display: block; font: 700 30px/1.1 var(--serif); letter-spacing: -.03em; margin: 12px 0 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpis6 .kp > b { font-size: 25px; }
.kp-f { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); flex-wrap: wrap; position: relative; z-index: 1; }
.kp.has-spark { padding-bottom: 18px; }
.kp .spark { position: absolute; right: 16px; top: 16px; width: 38%; height: 42px; opacity: .9; }
.kp.accent { cursor: pointer; border-color: rgba(212,180,131,.28); background: radial-gradient(260px 120px at 100% 0%, rgba(212,180,131,.14), transparent 70%), linear-gradient(180deg, var(--raise), var(--card)); transition: transform .15s, border-color .15s; }
.kp.accent:hover { transform: translateY(-2px); border-color: rgba(212,180,131,.5); }
.kp.accent > b { color: var(--gold-2); }

/* Live im Salon */
.sec-t { display: flex; align-items: baseline; gap: 14px; margin: 0 2px 14px; flex-wrap: wrap; }
.sec-t h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.sec-t .muted { font-size: 12.5px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(63,220,138,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(63,220,138,0); } 100% { box-shadow: 0 0 0 0 rgba(63,220,138,0); } }
.grid-live { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; margin-bottom: 18px; }
.live-salon { padding-bottom: 16px; background: radial-gradient(420px 160px at 0% 0%, color-mix(in srgb, var(--lc) 9%, transparent), transparent 70%), linear-gradient(180deg, var(--raise), var(--card)); }
.live-salon .dc-head h2 { font-size: 19px; }
.op { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 99px; background: rgba(255,255,255,.05); color: var(--muted); }
.op.open { color: #8ff0bd; background: rgba(63,220,138,.1); }
.op.open i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.op.soon { color: var(--gold); background: rgba(212,180,131,.1); }
.op.closed { color: var(--dim); }
.lm-list { display: grid; gap: 8px; }
.lm { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 15px; background: rgba(0,0,0,.22); border: 1px solid var(--line); transition: border-color .15s, background .15s; }
.lm[role=button] { cursor: pointer; }
.lm[role=button]:hover { border-color: rgba(212,180,131,.3); background: rgba(0,0,0,.32); }
.lm-av { position: relative; width: 46px; height: 46px; border-radius: 50%; overflow: visible; display: grid; place-items: center; font-weight: 700; color: var(--gold); background: #2a2420; }
.lm-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.lm-av i { position: absolute; right: -1px; bottom: -1px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #131110; background: var(--dim); }
.lm.busy .lm-av i { background: var(--red-2); box-shadow: 0 0 10px rgba(212,166,74,.8); }
.lm.free .lm-av i { background: var(--ok); }
.lm.pause .lm-av i, .lm.block .lm-av i { background: var(--warn); }
.lm.later .lm-av i { background: var(--gold); }
.lm.off { opacity: .55; }
.lm-tx { min-width: 0; display: grid; gap: 1px; }
.lm-tx b { font-size: 14px; }
.lm-st { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm.busy .lm-st { color: #ff9a8a; }
.lm.free .lm-st { color: #8ff0bd; }
.lm.pause .lm-st, .lm.block .lm-st { color: #f5c66b; }
.lm.later .lm-st { color: var(--gold); }
.lm-tx small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.07); margin-top: 6px; overflow: hidden; }
.lp i { display: block; height: 100%; background: linear-gradient(90deg, #e6c06e, #ffb199); border-radius: 4px; }
.lm-num { text-align: right; display: grid; justify-items: end; gap: 1px; }
.lm-num b { font: 700 20px/1 var(--serif); }
.lm-num small { font-size: 11px; color: var(--dim); }
.mini-u { width: 52px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: 5px; }
.mini-u i { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.ls-free { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ls-free .muted { font-size: 12px; white-space: nowrap; }
.ls-free .chips { flex: 1; }

/* Raster im Cockpit */
.grid-a { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
.grid-b { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.grid-c { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; margin-bottom: 16px; }
.chart-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: -4px 0 18px; flex-wrap: wrap; }
.chart-top .big { display: block; font: 700 28px/1.1 var(--serif); letter-spacing: -.03em; margin-bottom: 4px; }
.chart-top .muted { font-size: 12.5px; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.lg-ghost { background: rgba(255,236,214,.12); outline: 1px dashed rgba(255,236,214,.3); }

/* Säulendiagramm */
.bars { position: relative; padding: 0 0 22px 38px; }
.bars .gl { position: absolute; left: 38px; right: 0; border-top: 1px dashed rgba(255,236,214,.07); transform: translateY(-22px); }
.bars .gl span { position: absolute; right: calc(100% + 8px); top: -7px; font-size: 10.5px; color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bars-in { position: absolute; inset: 0 0 0 38px; display: flex; align-items: flex-end; gap: 3px; padding-bottom: 22px; }
.bar { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; outline: none; min-width: 0; }
.bar .stack { position: relative; width: 100%; max-width: 30px; display: flex; flex-direction: column-reverse; border-radius: 6px 6px 2px 2px; overflow: hidden; transition: filter .15s, transform .15s; animation: grow .7s cubic-bezier(.2,.8,.2,1) both; transform-origin: bottom; }
.bar .stack i { display: block; min-height: 1px; }
.bar .stack i + i { box-shadow: 0 -1px 0 rgba(0,0,0,.35) inset; }
.bar .ghost { position: absolute; bottom: 0; width: 100%; max-width: 30px; border-radius: 6px 6px 2px 2px; background: rgba(255,236,214,.07); border: 1px dashed rgba(255,236,214,.18); border-bottom: 0; }
.bar:hover .stack, .bar:focus .stack { filter: brightness(1.25); }
.bar:hover::before { content: ''; position: absolute; inset: 0 -1px 22px; background: rgba(255,236,214,.03); border-radius: 6px; }
.bar .bl { position: absolute; bottom: -20px; font-size: 10.5px; color: var(--dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
@keyframes grow { from { transform: scaleY(0); } }

/* Ranglisten */
.rank-list { display: grid; gap: 14px; }
.rk { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.rk-n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 700 12px/1 var(--sans); background: rgba(255,255,255,.05); color: var(--muted); }
.rk:first-child .rk-n { background: linear-gradient(135deg, #e6c06e, #d4b483); color: #1a1209; }
.rk-tx { display: grid; gap: 4px; min-width: 0; }
.rk-tx b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-tx > small { font-size: 12px; color: var(--muted); }
.rk-av { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #2a2420; color: var(--gold); font-weight: 700; box-shadow: 0 0 0 2px var(--c); }
.rk-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.rk-av em { position: absolute; top: -11px; left: 50%; width: 20px; height: 20px; margin-left: -10px; color: #f4c95d; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); transform: rotate(-12deg); }
.rk-av em svg { width: 100%; height: 100%; }

/* Heatmap */
.heat { display: grid; gap: 4px; align-items: center; }
.heat .hh { font-size: 10.5px; color: var(--dim); text-align: center; font-variant-numeric: tabular-nums; }
.heat .hw { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.heat i { display: block; aspect-ratio: 1.5; border-radius: 6px; background: rgba(255,236,214,.035); position: relative; overflow: hidden; transition: transform .12s; }
.heat i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #e6c06e, #d4b483); opacity: var(--a); }
.heat i:hover { transform: scale(1.12); z-index: 2; box-shadow: 0 0 0 2px rgba(255,255,255,.3); }
.heat-note { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 12.5px; color: var(--muted); }
.heat-note svg { width: 14px; height: 14px; color: var(--gold); flex: none; }
.heat-note b { color: var(--text); font-weight: 600; }

/* Agenda und Aktivität */
.ag { width: 100%; display: grid; grid-template-columns: 54px 3px 1fr auto; gap: 12px; align-items: center; padding: 10px 10px; border-radius: 13px; border: 1px solid transparent; background: transparent; text-align: left; cursor: pointer; color: inherit; transition: background .15s, border-color .15s; }
.ag:hover { background: rgba(255,255,255,.03); border-color: var(--line); }
.ag.live { background: linear-gradient(90deg, rgba(212,166,74,.12), transparent); border-color: rgba(212,166,74,.25); }
.ag-t b { display: block; font: 700 15px/1 var(--serif); font-variant-numeric: tabular-nums; }
.ag-t small { font-size: 11px; color: var(--dim); }
.ag-bar { width: 3px; height: 32px; border-radius: 3px; }
.ag-tx { min-width: 0; display: grid; gap: 2px; }
.ag-tx b { font-size: 13.5px; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-tx b em { font-style: normal; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; background: rgba(63,220,138,.1); color: #8ff0bd; }
.ag-tx small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-p { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.now-b { font: 700 10.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #1a1208; background: var(--red); padding: 5px 8px; border-radius: 6px; animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .6; } }
.more-l { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px dashed var(--line-2); border-radius: 12px; background: none; color: var(--muted); cursor: pointer; font-weight: 600; font-size: 12.5px; }
.more-l:hover { color: var(--text); border-color: rgba(212,180,131,.4); }
.ag-open-h { margin: 16px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ag-open { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; font-size: 13px; color: var(--muted); }
.ag-open b { color: var(--text); font-variant-numeric: tabular-nums; margin-right: 4px; }
.ag-act { display: flex; gap: 6px; }
.feed { display: grid; gap: 2px; }
.feed-i { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 9px 8px; border-radius: 12px; border: 0; background: none; text-align: left; color: inherit; cursor: pointer; font-size: 13px; transition: background .15s; }
.feed-i:hover { background: rgba(255,255,255,.035); }
.fi-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; }
.fi-ic svg { width: 16px; height: 16px; }
.feed-i.online .fi-ic { background: rgba(63,220,138,.1); color: #6fe3a6; }
.feed-i.salon .fi-ic { background: rgba(212,180,131,.12); color: var(--gold); }
.feed-i.cancel .fi-ic { background: rgba(212,166,74,.12); color: #ff8f80; }
.fi-tx { min-width: 0; color: var(--muted); }
.fi-tx b { color: var(--text); font-weight: 600; }
.fi-tx small { display: block; font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.fi-t { font-size: 11px; color: var(--dim); white-space: nowrap; }
.feed-i.unseen { background: rgba(212,166,74,.06); }
.feed-i.unseen .fi-t { color: var(--red-2); font-weight: 600; }
.foot-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.foot-stats div { background: var(--card); padding: 16px 20px; display: grid; gap: 3px; }
.foot-stats span { font: 600 10.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.foot-stats b { font: 700 19px/1.2 var(--serif); }
.foot-stats small { color: var(--muted); font-size: 12px; }
.demo-note { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 22px 0 0; font-size: 12px; color: var(--dim); }
.demo-note svg { width: 13px; height: 13px; color: var(--gold); }

/* Benachrichtigungen */
.bell-pop { position: fixed; z-index: 150; width: 400px; max-width: calc(100vw - 20px); max-height: min(560px, 80vh); display: flex; flex-direction: column; border-radius: 18px; background: rgba(23,20,19,.97); backdrop-filter: blur(14px); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0,0,0,.7); animation: mpop .18s ease both; }
.bell-pop header { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.bell-pop header .muted { font-size: 12px; }
.bp-list { overflow: auto; padding: 6px; }

/* Freie Zeiten teilen */
.share-prev { display: grid; place-items: center; padding: 20px; border-radius: 16px; background: repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 10px, transparent 10px 20px), #0f0d0c; border: 1px solid var(--line); }
.sp-card { width: 240px; aspect-ratio: 9/14; border-radius: 22px; padding: 22px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; background: radial-gradient(240px 200px at 50% 0%, rgba(212,166,74,.5), transparent 70%), linear-gradient(180deg, #1c1513, #0c0a09); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
.sp-card img { width: 64px; height: 64px; margin-bottom: 14px; }
.sp-k { font: 600 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.sp-card b { font: 700 28px/1.1 var(--serif); margin: 8px 0 16px; }
.sp-times { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.sp-times span { font: 700 13px/1 var(--sans); padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); font-variant-numeric: tabular-nums; }
.sp-card small { margin-top: auto; font-size: 11px; color: var(--muted); letter-spacing: .06em; }
a.btn svg { width: 16px; height: 16px; }

/* Tagesabschluss */
.close-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.close-sum div { padding: 14px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--line); display: grid; gap: 4px; }
.close-sum span { font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.close-sum b { font: 700 22px/1.1 var(--serif); }
.close-loc { display: grid; gap: 8px; margin-bottom: 16px; }
.close-loc div { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); }
.close-loc b { display: flex; align-items: center; gap: 8px; }
.close-loc span { font-weight: 700; font-variant-numeric: tabular-nums; }
.close-loc small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.close-staff { display: grid; gap: 6px; }
.close-staff div { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 6px 4px; }
.close-staff small { color: var(--muted); }
.close-staff b { font-variant-numeric: tabular-nums; }
.close-open { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(212,180,131,.08); border: 1px solid rgba(212,180,131,.22); font-size: 13px; color: #e5d3b5; }
.close-open svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--gold); }

/* Kunden */
.cu-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cu-bar .sp { flex: 1; }
.cu-bar input[type=search] { width: 260px; }
.cu-bar select { width: 180px; }
.ctable td, .stable td { padding: 12px 12px; }
.ctable th, .stable th { padding: 12px 12px; }
.cu { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cu b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.cu small { display: block; font-size: 12px; color: var(--dim); white-space: nowrap; }
.cu .av { border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #2a2420; color: var(--gold); font-weight: 700; flex: none; box-shadow: 0 0 0 2px var(--c); }
.cu .av img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.tier { display: inline-flex; align-items: center; gap: 5px; font: 600 11px/1 var(--sans); padding: 5px 8px; border-radius: 7px; margin: 0 4px 2px 0; white-space: nowrap; background: rgba(255,255,255,.05); color: var(--muted); }
.tier svg { width: 12px; height: 12px; }
.tier.vip { color: #f4d48a; background: linear-gradient(135deg, rgba(244,201,93,.18), rgba(212,180,131,.08)); box-shadow: 0 0 0 1px rgba(244,201,93,.25) inset; }
.tier.reg { color: var(--gold); background: rgba(212,180,131,.1); }
.tier.new { color: #8ff0bd; background: rgba(63,220,138,.1); }
.tier.due { color: #ffb199; background: rgba(212,166,74,.12); }
.tier.ns { color: #f5c66b; background: rgba(242,179,61,.1); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 7px; background: rgba(127,169,155,.14); color: #a9d4c6; margin: 0 4px 2px 0; }
.tag button { border: 0; background: none; color: inherit; padding: 0; width: 14px; height: 14px; display: grid; place-items: center; cursor: pointer; opacity: .7; }
.tag button svg { width: 10px; height: 10px; }
td small.nx { display: block; font-size: 11.5px; color: #8ff0bd; }
td small.muted { display: block; font-size: 11.5px; }
.list-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 8px; font-size: 12.5px; }
.due-hint { display: flex; gap: 10px; align-items: center; margin: 8px 8px 6px; padding: 12px 14px; border-radius: 13px; background: linear-gradient(90deg, rgba(212,166,74,.1), rgba(212,180,131,.06)); border: 1px solid rgba(212,166,74,.2); font-size: 13px; color: #ead8c6; }
.due-hint svg { width: 16px; height: 16px; color: var(--gold); flex: none; }

/* Kunden-Detail als Seitenpanel */
.drawer { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.dr-bg { position: absolute; inset: 0; background: rgba(4,3,3,.55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; }
.dr-box { position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%); overflow: auto; background: linear-gradient(180deg, #181513, #121010); border-left: 1px solid var(--line-2); box-shadow: -40px 0 100px rgba(0,0,0,.6); transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); padding: 24px 24px 40px; }
.drawer.on { pointer-events: auto; }
.drawer.on .dr-bg { opacity: 1; }
.drawer.on .dr-box { transform: none; }
.dr-h { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.dr-h h2 { font-size: 24px; margin-bottom: 6px; }
.dr-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 12px; }
.dr-act { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.dr-act .btn svg { width: 15px; height: 15px; }
.dr-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.dr-stats div { padding: 12px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--line); display: grid; gap: 3px; }
.dr-stats span { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.dr-stats b { font: 700 18px/1.15 var(--serif); white-space: nowrap; }
.dr-info { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin-bottom: 18px; }
.dr-info div { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.dr-info span { font-size: 11.5px; color: var(--dim); }
.dr-info b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.dr-months { display: flex; align-items: flex-end; gap: 6px; height: 74px; padding: 10px 12px 0; border-radius: 14px; background: rgba(0,0,0,.2); border: 1px solid var(--line); margin-bottom: 18px; }
.dr-months span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; padding-bottom: 6px; }
.dr-months i { display: block; width: 100%; max-width: 20px; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #d4b483, rgba(212,180,131,.4)); min-height: 4px; }
.dr-months small { font-size: 10px; color: var(--dim); }
.dr-note { padding: 16px; border-radius: 16px; background: rgba(212,180,131,.05); border: 1px solid rgba(212,180,131,.16); display: grid; gap: 10px; margin-bottom: 22px; }
.tagin { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 8px; min-height: 40px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(0,0,0,.35); }
.tagin input { flex: 1; min-width: 120px; border: 0 !important; background: none !important; box-shadow: none !important; height: 26px !important; padding: 0 4px !important; }
.dr-save { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.dr-sub { font-size: 15px; margin: 0 0 10px; display: flex; gap: 8px; align-items: baseline; }
.dr-hist { display: grid; gap: 6px; }
.hist { position: relative; overflow: hidden; display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 13px; border: 1px solid var(--line); background: rgba(0,0,0,.18); text-align: left; color: inherit; cursor: pointer; transition: border-color .15s; }
.hist:hover { border-color: rgba(212,180,131,.3); }
.hist.cancelled, .hist.noshow { opacity: .6; }
.h-d { text-align: center; display: grid; }
.h-d b { font: 700 18px/1 var(--serif); }
.h-d small { font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.h-tx { min-width: 0; display: grid; gap: 2px; }
.h-tx b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-tx small { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; }
.h-p { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; display: grid; gap: 4px; justify-items: end; font-size: 13px; }
.h-p .pill { font-size: 10px; padding: 2px 7px; }
.h-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.h-bar i { display: block; height: 100%; background: linear-gradient(90deg, rgba(212,180,131,.5), transparent); }

/* Auswertung */
.vbars { display: flex; align-items: flex-end; gap: 10px; height: 200px; padding-top: 22px; }
.vb { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; position: relative; }
.vb i { display: block; width: 100%; max-width: 46px; border-radius: 9px 9px 3px 3px; background: linear-gradient(180deg, rgba(212,180,131,.85), rgba(212,180,131,.25)); min-height: 3px; animation: grow .7s cubic-bezier(.2,.8,.2,1) both; transform-origin: bottom; transition: filter .15s; }
.vb i.best { background: linear-gradient(180deg, #e6c06e, #a87d2c); box-shadow: 0 10px 30px -10px rgba(212,166,74,.7); }
.vb:hover i { filter: brightness(1.2); }
.vb small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.vb-v { font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.vbars.hours { gap: 5px; }
.vbars.hours i { max-width: 30px; background: linear-gradient(180deg, #e6c06e, rgba(212,166,74,.25)); border-radius: 6px 6px 2px 2px; }
.donut-w { position: relative; width: 160px; height: 160px; margin: 4px auto 18px; }
.donut circle { transition: stroke-dasharray .8s; }
.donut-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-c b { font: 700 18px/1.1 var(--serif); }
.donut-c span { font-size: 11px; color: var(--muted); }
.leg-list { display: grid; gap: 8px; }
.leg-list div { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.leg-list div small { grid-column: 2 / -1; margin-top: -6px; font-size: 11.5px; }
.leg-list i { width: 10px; height: 10px; border-radius: 3px; }
.leg-list b { font-variant-numeric: tabular-nums; }
.u-cell { display: grid; grid-template-columns: 1fr 44px; gap: 10px; align-items: center; min-width: 140px; }
.u-cell b { font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }
.svc-rank { display: grid; gap: 12px; }
.sr { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr auto; gap: 14px; align-items: center; }
.sr-n b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-n small, .sr-v small { display: block; font-size: 11.5px; color: var(--dim); }
.sr-v { text-align: right; min-width: 74px; }
.sr-v b { font-variant-numeric: tabular-nums; font-size: 13px; }
.stack-cards { display: grid; gap: 16px; align-content: start; }
.lead { display: grid; gap: 12px; }
.lead div { display: grid; grid-template-columns: 150px 1fr 44px; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); }
.lead b { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.split { display: flex; height: 12px; border-radius: 8px; overflow: hidden; gap: 2px; margin: 4px 0 16px; }
.split i { display: block; }

/* Befehlspalette */
.cmd { position: fixed; inset: 0; z-index: 250; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgba(4,3,3,.6); backdrop-filter: blur(8px); animation: fade .15s ease both; }
@keyframes fade { from { opacity: 0; } }
.cmd-box { width: 100%; max-width: 620px; border-radius: 20px; background: rgba(23,20,19,.98); border: 1px solid var(--line-2); box-shadow: 0 40px 120px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.05) inset; overflow: hidden; animation: mpop .18s ease both; }
.cmd-in { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cmd-in svg { width: 19px; height: 19px; color: var(--gold); flex: none; }
.cmd-in input { flex: 1; height: 30px !important; border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; font-size: 16px; }
.cmd-list { max-height: 52vh; overflow: auto; padding: 8px; }
.cmd-g { font: 600 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); padding: 12px 10px 6px; }
.cmd-i { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 11px; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; font-size: 14px; }
.cmd-i.on { background: linear-gradient(90deg, rgba(212,166,74,.16), rgba(212,166,74,.04)); }
.ci-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.04); color: var(--muted); flex: none; }
.ci-ic svg { width: 16px; height: 16px; }
.cmd-i.on .ci-ic { color: var(--red-2); }
.ci-ic .c-av { width: 30px !important; height: 30px !important; }
.ci-tx { flex: 1; min-width: 0; }
.ci-tx small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd-foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--dim); }
.cmd-foot kbd { margin-right: 3px; }

/* Bildschirmgrössen */
@media (max-width: 1380px) {
  .kpis6 { grid-template-columns: repeat(3, 1fr); }
  .hero { grid-template-columns: 1fr 320px; }
}
@media (max-width: 1180px) {
  .grid-a, .grid-b, .grid-c { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-ring { justify-content: flex-start; }
  .kpis4 { grid-template-columns: repeat(2, 1fr); }
  .me { display: none; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { width: 270px; }
  .mob-head { background: rgba(14,12,11,.86); backdrop-filter: blur(14px); gap: 10px; }
  .hdr { position: static; padding: 0; border: 0; height: 0; overflow: visible; background: none; backdrop-filter: none; }
  .hdr > *:not(#hdrNew) { display: none; }
  #hdrNew { position: fixed; z-index: 45; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 18px; padding: 0; box-shadow: 0 16px 36px -10px rgba(212,166,74,.9); }
  #hdrNew span { display: none; }
  #hdrNew svg { width: 22px; height: 22px; }
  .main { padding: 18px 14px 90px; }
  .hero-main { padding: 24px 20px 22px; border-radius: 20px; }
  .hero-main h1 { font-size: 30px; }
  .hero-p { font-size: 14.5px; }
  .qa { gap: 8px; }
  .qa-b { height: 40px; padding: 0 13px; font-size: 13px; }
  .grid-live { grid-template-columns: 1fr; }
  .foot-stats { grid-template-columns: 1fr 1fr; }
  .page-h h1 { font-size: 28px; }
  .cu-bar input[type=search], .cu-bar select { width: 100%; flex: 1 1 160px; }
  .cu-bar .seg { overflow-x: auto; max-width: 100%; }
  .dcard { padding: 18px 16px; }
  .ctable th:nth-child(6), .ctable td:nth-child(6) { display: none; }
}
@media (max-width: 560px) {
  .kpis4 { gap: 10px; }
  .kpis6 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kp { padding: 14px 15px; border-radius: 16px; }
  .kp > b { font-size: 23px; margin: 10px 0 8px; }
  .kpis6 .kp > b { font-size: 21px; }
  .kp .spark { width: 70%; height: 40px; opacity: .55; }
  .kp-f span:not(.dl) { display: none; }
  .hero-ring { padding: 18px; gap: 16px; }
  .hero-ring .ring { width: 116px; height: 116px; }
  .ring-c b { font-size: 30px; }
  .qa-b span { font-size: 12.5px; }
  .lm { grid-template-columns: auto 1fr auto; gap: 10px; padding: 10px; }
  .lm-av { width: 40px; height: 40px; }
  .ls-free .btn { width: 100%; }
  .heat { gap: 3px; }
  .heat .hh:nth-child(even) { visibility: hidden; }
  .bars { padding-left: 30px; }
  .bars .gl { left: 30px; } .bars-in { left: 30px; gap: 2px; }
  .ctable th:nth-child(2), .ctable td:nth-child(2), .ctable th:nth-child(5), .ctable td:nth-child(5) { display: none; }
  .dr-stats { grid-template-columns: 1fr 1fr; }
  .dr-box { padding: 18px 16px 40px; }
  .lead div { grid-template-columns: 110px 1fr 40px; }
  .page-tools { width: 100%; }
  .page-tools .seg { overflow-x: auto; }
  .close-sum { grid-template-columns: 1fr 1fr 1fr; }
  .close-sum b { font-size: 17px; }
  .sr { grid-template-columns: 1fr auto; }
  .sr-b { grid-column: 1 / -1; grid-row: 2; }
}

/* Drucken (Auswertung und Tagesabschluss) */
@media print {
  body { background: #fff !important; color: #111; }
  .side, .hdr, .mob-head, .toast, .page-tools, .tip, #hdrNew { display: none !important; }
  .app { display: block; }
  .main { padding: 0; max-width: none; }
  .dcard, .kp, .card { background: #fff !important; border-color: #ddd !important; box-shadow: none !important; color: #111; break-inside: avoid; }
  .muted, .kp-l, .kp-f, .bars .gl span, .bar .bl { color: #555 !important; }
  body.print-modal .app { display: none; }
  body.print-modal .modal { position: static; background: none; backdrop-filter: none; padding: 0; }
  body.print-modal .modal-box { box-shadow: none; border: 0; max-height: none; background: #fff; color: #111; }
  body.print-modal .modal-head, body.print-modal .modal-foot { background: #fff; }
  body.print-modal .modal-foot, body.print-modal [data-x] { display: none; }
}

/* Avatar überall gleich */
.av { border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center; flex: none; background: #2a2420; color: var(--gold); font-weight: 700; font-size: 12px; box-shadow: 0 0 0 2px var(--c, var(--gold)); }
.av img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
@media (max-width: 560px) {
  .ring-c span { font-size: 9px; letter-spacing: .06em; }
  .qa { display: grid; grid-template-columns: 1fr 1fr; }
  .qa-b { justify-content: flex-start; padding: 0 12px; }
  .qa-b em { margin-left: auto; }
  .kp .spark { display: none; }
  .kp-l { font-size: 9.5px; letter-spacing: .12em; }
}
@media (max-width: 560px) {
  .ctable th:nth-child(3), .ctable td:nth-child(3) { display: none; }
  .ctable td, .ctable th { padding: 11px 8px; }
  .cu { gap: 10px; }
  .cu b { white-space: normal; }
}

/* Vorher und Nachher */
.tf-form { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: start; }
.tf-drops { display: grid; grid-template-columns: repeat(2, 170px); gap: 12px; }
.tf-drop { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; border: 1.5px dashed var(--line-2); background: rgba(0,0,0,.3); display: grid; place-items: center; text-align: center; cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s; }
.tf-drop:hover, .tf-drop.over { border-color: rgba(212,180,131,.6); background: rgba(212,180,131,.06); }
.tf-ph { display: grid; justify-items: center; gap: 6px; color: var(--muted); padding: 10px; }
.tf-ph svg { width: 30px; height: 30px; color: var(--gold); }
.tf-ph b { color: var(--text); font-size: 14px; }
.tf-ph small { font-size: 11.5px; line-height: 1.35; }
.tf-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tf-drop em { position: absolute; left: 10px; top: 10px; font-style: normal; font: 600 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 6px 9px; border-radius: 99px; background: rgba(12,11,10,.7); color: #fff; opacity: 0; }
.tf-drop[data-k=after] em { background: var(--red); }
.tf-drop.has { border-style: solid; border-color: var(--line); }
.tf-drop.has em { opacity: 1; }
.tf-drop.has .tf-ph { display: none; }
.tf-fields { display: grid; gap: 14px; align-content: start; max-width: 520px; }
.tf-fields .btn { justify-self: start; }
.tf-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.tf-empty { grid-column: 1 / -1; border: 1px dashed var(--line-2); border-radius: var(--r); }
.tf-card { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, var(--raise), var(--card)); box-shadow: var(--shadow); }
.tf-prev { position: relative; aspect-ratio: 4 / 5; display: grid; grid-template-columns: 1fr 1fr; }
.tf-prev img { width: 100%; height: 100%; object-fit: cover; }
.tf-prev img:first-child { object-position: 30% center; }
.tf-prev img:last-child { object-position: 70% center; }
.tf-prev::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.6); }
.tf-prev span { position: absolute; top: 10px; font: 600 9.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 6px 8px; border-radius: 99px; background: rgba(12,11,10,.7); color: #fff; }
.tf-prev .l { left: 10px; } .tf-prev .r { right: 10px; background: var(--red); }
.tf-body { padding: 14px; display: grid; gap: 10px; }
.tf-act { display: flex; gap: 6px; align-items: center; }
.tf-act .sp { flex: 1; }
@media (max-width: 760px) {
  .tf-form { grid-template-columns: 1fr; }
  .tf-drops { grid-template-columns: 1fr 1fr; }
  .tf-fields .btn { justify-self: stretch; }
}
