/* latin-ext */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/BodoniModa-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/BodoniModa-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/BodoniModa-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/BodoniModa-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Figtree-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Figtree-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/Figtree-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/Figtree-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/Figtree-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/Figtree-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/Figtree-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/Figtree-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/Figtree-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/Figtree-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Layout: App-Rahmen mit fester Kopfleiste; Kundenportal als zentrierte Einzelspalte,
   Mitarbeiterbereich als Arbeitsfläche mit Tabs (Desktop oben, Smartphone unten). */
:root {
  --bg: #F7F6F3; --surface: #FFFFFF; --surface-2: #F1EFEA; --ink: #121314; --anth: #2A2D32; --muted: #686B71;
  --line: #E3E0D9; --line-strong: #CFCAC0;
  --gold: #A27C3A; --gold-strong: #86652B; --gold-soft: #F3ECDD; --on-gold: #FFFFFF;
  --free: #17804A; --free-bg: #E3F3E9; --free-line: #9ED3B3;
  --warn: #B45309; --warn-bg: #FCEFD9; --crit: #B42318; --crit-bg: #FBE4E1; --ok: #17804A; --ok-bg: #E3F3E9;
  --s1: #0E9488; --s2: #8B5CF6; --s3: #B7791F; --s0: #6B7280;
  --wa: #128C7E; --wa-bg: #E9E3DA; --wa-out: #D9FDD3; --wa-in: #FFFFFF;
  --shadow: 0 1px 2px rgba(20, 20, 18, .06), 0 8px 24px -12px rgba(20, 20, 18, .18);
  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 14px; --r-sm: 9px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0F1012; --surface: #18191C; --surface-2: #202226; --ink: #F3F1EC; --anth: #D9D7D2; --muted: #9C9EA4;
  --line: #2A2C31; --line-strong: #3A3D43;
  --gold: #D2AE6B; --gold-strong: #E2C28A; --gold-soft: #2A2419; --on-gold: #17130B;
  --free: #4CC27D; --free-bg: #13291C; --free-line: #2C6B45;
  --warn: #F0A24B; --warn-bg: #33240F; --crit: #F2796C; --crit-bg: #3A1715; --ok: #4CC27D; --ok-bg: #13291C;
  --s1: #1AA596; --s2: #9378F0; --s3: #BE8022; --s0: #8B8F97;
  --wa: #25D366; --wa-bg: #0B141A; --wa-out: #005C4B; --wa-in: #202C33;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #0F1012; --surface: #18191C; --surface-2: #202226; --ink: #F3F1EC; --anth: #D9D7D2; --muted: #9C9EA4;
  --line: #2A2C31; --line-strong: #3A3D43;
  --gold: #D2AE6B; --gold-strong: #E2C28A; --gold-soft: #2A2419; --on-gold: #17130B;
  --free: #4CC27D; --free-bg: #13291C; --free-line: #2C6B45;
  --warn: #F0A24B; --warn-bg: #33240F; --crit: #F2796C; --crit-bg: #3A1715; --ok: #4CC27D; --ok-bg: #13291C;
  --s1: #1AA596; --s2: #9378F0; --s3: #BE8022; --s0: #8B8F97;
  --wa: #25D366; --wa-bg: #0B141A; --wa-out: #005C4B; --wa-in: #202C33;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); color: var(--ink); }
body { font-family: var(--f-body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---- Kopfleiste ---- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1320px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); background: none; border: 0; padding: 0; }
.mono { width: 36px; height: 36px; border-radius: 50%; background: var(--anth); color: var(--bg); display: grid; place-items: center; font-family: var(--f-display); font-size: 19px; font-style: italic; flex: none; }
.brand-name { font-family: var(--f-display); font-size: 21px; letter-spacing: .02em; line-height: 1; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.live { color: var(--ok); background: var(--ok-bg); }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.icon-btn svg { width: 18px; height: 18px; }
.role-sel { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; }

/* ---- Grundbausteine ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 14px; text-decoration: none; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { border-color: var(--anth); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--anth); color: var(--bg); border-color: var(--anth); }
.btn.primary:hover { background: var(--ink); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.btn.gold:hover { background: var(--gold-strong); }
.btn.ghost { border-color: transparent; background: none; }
.btn.danger { color: var(--crit); border-color: color-mix(in srgb, var(--crit) 40%, transparent); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.lg { padding: 16px 28px; font-size: 16.5px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--anth); }
.field .opt { font-weight: 500; color: var(--muted); }
.inp { width: 100%; border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--r-sm); padding: 11px 13px; font-size: 16px; }
.inp:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold-soft); }
.inp.sm { padding: 6px 9px; font-size: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stack { display: grid; gap: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--anth); white-space: nowrap; }
.chip.gold { background: var(--gold-soft); color: var(--gold-strong); }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.crit { background: var(--crit-bg); color: var(--crit); }
.sdot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.c1 { --sc: var(--s1); } .c2 { --sc: var(--s2); } .c3 { --sc: var(--s3); } .c0 { --sc: var(--s0); }
.sdot { background: var(--sc, var(--s0)); }
.note { font-size: 12.5px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--r-sm); padding: 9px 12px; background: var(--surface); }
.note b { color: var(--anth); }
.empty { text-align: center; padding: 28px 16px; color: var(--muted); }

/* ---- Kundenportal ---- */
.portal { max-width: 640px; margin: 0 auto; padding: 28px 16px 64px; }
.p-hero { text-align: center; display: grid; justify-items: center; gap: 10px; padding-block: 18px 26px; }
.p-logo { width: 84px; height: 84px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; position: relative; }
.p-logo::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--anth); }
.p-logo span { position: relative; z-index: 1; color: var(--bg); font-family: var(--f-display); font-style: italic; font-size: 38px; line-height: 1; }
.p-salon { font-family: var(--f-display); font-size: 17px; letter-spacing: .28em; text-transform: uppercase; }
.p-title { font-family: var(--f-display); font-weight: 500; font-size: clamp(34px, 8vw, 50px); line-height: 1.05; letter-spacing: -.01em; }
.p-title em { color: var(--gold); }
.p-lead { color: var(--muted); max-width: 40ch; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 18px 16px; display: grid; gap: 6px; min-height: 108px; align-content: start; transition: border-color .15s, box-shadow .15s; }
.choice:hover, .choice[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.choice svg { width: 24px; height: 24px; color: var(--gold); }
.choice b { font-size: 16px; }
.choice span { font-size: 13px; color: var(--muted); }
.cta-wrap { margin-top: 18px; }
.steps { display: flex; gap: 6px; margin-bottom: 22px; }
.steps i { flex: 1; height: 3px; border-radius: 3px; background: var(--line); }
.steps i.on { background: var(--gold); }
.p-head { display: grid; gap: 4px; margin-bottom: 20px; }
.p-head h2 { font-family: var(--f-display); font-weight: 500; font-size: 30px; line-height: 1.1; }
.back { border: 0; background: none; color: var(--muted); font-weight: 600; padding: 0; margin-bottom: 14px; display: inline-flex; gap: 6px; align-items: center; }
.tabs2 { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.tabs2 button { border: 0; background: none; padding: 10px; border-radius: 9px; font-weight: 600; color: var(--muted); }
.tabs2 button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.welcome { text-align: center; padding: 26px 18px; display: grid; gap: 8px; justify-items: center; }
.welcome h2 { font-family: var(--f-display); font-size: 34px; font-weight: 500; }
.last-box { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; background: var(--gold-soft); border-radius: var(--r-sm); width: 100%; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.staff-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 18px 14px; display: grid; justify-items: center; gap: 8px; text-align: center; transition: border-color .15s, box-shadow .15s; }
.staff-card:hover, .staff-card[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-size: 26px; color: #fff; background: var(--sc, var(--s0)); }
.avatar.any { background: var(--surface-2); color: var(--anth); }
.staff-card b { font-size: 16px; }
.staff-card span { font-size: 12.5px; color: var(--muted); }
.svc-cat { margin-top: 18px; }
.svc-cat h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 700; }
.svc-list { display: grid; gap: 8px; }
.svc { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; text-align: left; }
.svc:hover, .svc[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.svc b { font-weight: 600; }
.svc .meta { font-size: 13px; color: var(--muted); white-space: nowrap; }
.svc.again { background: var(--gold-soft); border-color: var(--gold); }
.days { display: grid; gap: 10px; }
.day { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: center; }
.day.dis { opacity: .5; }
.day-l b { display: block; font-size: 15px; }
.day-l span { font-size: 12.5px; color: var(--muted); }
.per { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.per button { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 9px; padding: 9px 4px; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; }
.per button .bx { width: 15px; height: 15px; border: 1.5px solid var(--line-strong); border-radius: 4px; display: grid; place-items: center; flex: none; }
.per button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-strong); }
.per button[aria-pressed="true"] .bx { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.per button .bx svg { width: 11px; height: 11px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--gold); margin-top: 2px; flex: none; }
.done { text-align: center; display: grid; justify-items: center; gap: 12px; padding-block: 30px; }
.bigcheck { width: 112px; height: 112px; border-radius: 50%; background: var(--ok-bg); display: grid; place-items: center; }
.bigcheck svg { width: 62px; height: 62px; color: var(--ok); }
.bigcheck path { stroke-dasharray: 60; stroke-dashoffset: 0; animation: draw .6s ease-out; }
@keyframes draw { from { stroke-dashoffset: 60; } }
.done h2 { font-family: var(--f-display); font-size: 34px; font-weight: 500; }
.summary { width: 100%; text-align: left; display: grid; gap: 8px; padding: 16px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.summary dt, .summary span:first-child { color: var(--muted); }

/* ---- Mitarbeiterbereich ---- */
.work { max-width: 1320px; margin: 0 auto; padding: 18px 16px 90px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 10px 12px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs button[aria-pressed="true"] { color: var(--ink); border-color: var(--gold); }
.badge { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: var(--on-gold); font-size: 11px; display: inline-grid; place-items: center; font-weight: 700; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-h h1 { font-family: var(--f-display); font-weight: 500; font-size: 30px; line-height: 1.1; }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.kpi { padding: 14px; display: grid; gap: 2px; text-align: left; }
button.kpi { cursor: pointer; }
button.kpi:hover { border-color: var(--line-strong); }
.kpi .v { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.2; }
.kpi .l { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi .s { font-size: 12px; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
.panel { padding: 16px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel-h h2 { font-size: 16px; font-weight: 700; }
.agenda { display: grid; }
.ag { display: grid; grid-template-columns: 52px 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--line); background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; width: 100%; }
.ag:first-child { border-top: 0; }
.ag:hover { background: var(--surface-2); }
.ag .t { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }
.ag .who { min-width: 0; }
.ag .who b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag .who span { font-size: 12.5px; color: var(--muted); }
.ag.free .t, .ag.free b { color: var(--free); }
.insight { background: var(--anth); color: var(--bg); border-color: var(--anth); }
.insight .muted, .insight .eyebrow { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.insight .big { font-family: var(--f-display); font-size: 38px; line-height: 1; }
.cmp { display: grid; gap: 8px; }
.cmp-row { display: grid; grid-template-columns: 120px 1fr 54px; gap: 8px; align-items: center; font-size: 13px; }
.cmp-bar { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--bg) 20%, transparent); position: relative; overflow: hidden; }
.cmp-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--gold); }
.cmp-bar i.std { background: color-mix(in srgb, var(--bg) 55%, transparent); }

/* ---- Kalender ---- */
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.cal-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.cal-bar h2 { font-family: var(--f-display); font-weight: 500; font-size: 24px; margin-right: 8px; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.cal-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.cal { display: grid; min-width: 520px; position: relative; }
.cal-head { display: contents; }
.cal-hc { position: sticky; top: 0; z-index: 3; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 10px; display: flex; gap: 8px; align-items: center; font-weight: 700; }
.cal-hc span { font-weight: 500; font-size: 12px; color: var(--muted); }
.cal-axis { position: relative; border-right: 1px solid var(--line); }
.cal-axis div { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-col { position: relative; border-right: 1px solid var(--line); background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px); touch-action: pan-x pan-y; }
.cal-col:last-child { border-right: 0; }
.cal-off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, transparent 6px 12px); }
.cal-free { position: absolute; left: 4px; right: 4px; border-radius: 8px; background: var(--free-bg); border: 1px dashed var(--free-line); color: var(--free); font-size: 11.5px; font-weight: 700; padding: 3px 7px; overflow: hidden; text-align: left; cursor: pointer; }
.cal-free:hover { border-style: solid; }
.ev { position: absolute; left: 4px; right: 4px; border-radius: 8px; padding: 4px 8px; overflow: hidden; font-size: 12px; line-height: 1.3; text-align: left; border: 1px solid color-mix(in srgb, var(--sc) 55%, transparent); background: color-mix(in srgb, var(--sc) 17%, var(--surface)); color: var(--ink); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.ev:hover { box-shadow: var(--shadow); z-index: 2; }
.ev b { font-weight: 700; }
.ev .tm { font-variant-numeric: tabular-nums; font-weight: 700; margin-right: 4px; }
.ev .sv { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.st-fertig { opacity: .62; }
.ev.st-noshow { background: repeating-linear-gradient(135deg, var(--crit-bg) 0 6px, var(--surface) 6px 12px); border-color: var(--crit); }
.ev.st-da { box-shadow: inset 0 0 0 2px var(--sc); }
.ev.st-verspaetet { border-color: var(--warn); border-style: dashed; }
.ev .flag { position: absolute; top: 4px; right: 6px; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--crit); z-index: 4; pointer-events: none; }
.now-line::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--crit); }
.drop-prev { position: absolute; left: 4px; right: 4px; border-radius: 8px; border: 2px dashed var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); z-index: 5; pointer-events: none; font-size: 12px; font-weight: 700; color: var(--gold-strong); padding: 3px 8px; }
.drop-prev.bad { border-color: var(--crit); background: color-mix(in srgb, var(--crit) 12%, transparent); color: var(--crit); }
.drag-ghost { position: fixed; z-index: 100; pointer-events: none; opacity: .92; transform: rotate(-1.5deg); box-shadow: var(--shadow); }
.side { display: grid; gap: 12px; position: sticky; top: 76px; }
.rq { padding: 12px; display: grid; gap: 8px; position: relative; }
.rq-h { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.rq-h b { font-size: 15px; }
.grip { display: inline-flex; align-items: center; gap: 6px; border: 1px dashed var(--line-strong); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--surface-2); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.grip svg { width: 14px; height: 14px; }
.kv { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 4px 10px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; }
.ai { border-radius: 10px; background: var(--gold-soft); padding: 10px 12px; display: grid; gap: 8px; }
.ai-h { font-size: 12px; font-weight: 700; color: var(--gold-strong); display: flex; align-items: center; gap: 6px; letter-spacing: .02em; }
.ai-h svg { width: 14px; height: 14px; }
.slots { display: flex; gap: 6px; flex-wrap: wrap; }
.slot { border: 1px solid var(--free-line); background: var(--surface); color: var(--ink); border-radius: 9px; padding: 6px 10px; font-size: 13px; font-weight: 600; display: grid; text-align: left; gap: 1px; }
.slot:hover { border-color: var(--free); background: var(--free-bg); }
.slot span { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.rq-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }

/* ---- Tabellen & Listen ---- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--surface-2); }

/* ---- WhatsApp ---- */
.wa-wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; }
.wa-list { padding: 6px; display: grid; align-content: start; max-height: 640px; overflow-y: auto; }
.wa-li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px; border-radius: 10px; border: 0; background: none; text-align: left; width: 100%; }
.wa-li:hover, .wa-li[aria-pressed="true"] { background: var(--surface-2); }
.wa-li .avatar { width: 40px; height: 40px; font-size: 16px; }
.wa-li b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-li span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; min-height: 520px; }
.phone-h { background: var(--wa); color: #fff; padding: 12px 16px; display: flex; gap: 10px; align-items: center; }
.phone-h .avatar { width: 36px; height: 36px; font-size: 15px; background: rgba(255, 255, 255, .25); }
.phone-h small { display: block; opacity: .8; font-size: 12px; }
.chat { background: var(--wa-bg); padding: 16px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: 560px; }
.bubble { max-width: min(78%, 420px); padding: 8px 11px 6px; border-radius: 10px; background: var(--wa-in); color: var(--ink); font-size: 14px; white-space: pre-wrap; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); align-self: flex-start; }
.bubble.out { align-self: flex-end; background: var(--wa-out); }
.bubble .meta { display: block; text-align: right; font-size: 11px; color: var(--muted); margin-top: 3px; }
.bubble.planned { opacity: .7; border: 1px dashed var(--line-strong); }
.bubble .wa-btn { display: block; margin: 8px -11px -6px; border-top: 1px solid var(--line); padding: 9px; text-align: center; color: var(--wa); font-weight: 700; background: none; border-left: 0; border-right: 0; border-bottom: 0; width: calc(100% + 22px); }
.bubble .wa-btn[disabled] { color: var(--muted); }
.day-sep { align-self: center; font-size: 11.5px; background: var(--surface); color: var(--muted); padding: 3px 10px; border-radius: 8px; }

/* ---- Statistik ---- */
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hbars { display: grid; gap: 9px; }
.hb { display: grid; grid-template-columns: 130px minmax(0, 1fr) 72px; gap: 10px; align-items: center; font-size: 13.5px; }
.hb .lab { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.hb .track { height: 14px; position: relative; }
.hb .bar { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; background: var(--gold); min-width: 2px; }
.hb .bar.st { background: var(--sc); }
.hb .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.cols { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; align-items: end; height: 150px; padding-top: 18px; border-bottom: 1px solid var(--line-strong); }
.col { display: grid; align-items: end; height: 100%; position: relative; }
.col i { display: block; background: var(--gold); border-radius: 4px 4px 0 0; min-height: 2px; }
.col em { position: absolute; left: 0; right: 0; text-align: center; font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); }
.col-l { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; font-size: 11.5px; color: var(--muted); text-align: center; padding-top: 6px; }
.heat { display: grid; grid-template-columns: 30px repeat(11, minmax(0, 1fr)); gap: 2px; font-size: 11px; color: var(--muted); }
.heat .h { height: 26px; border-radius: 3px; background: var(--gold); }
.heat .lbl { display: grid; place-items: center; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.tip { position: fixed; z-index: 200; background: var(--anth); color: var(--bg); font-size: 12.5px; padding: 6px 9px; border-radius: 7px; pointer-events: none; white-space: nowrap; box-shadow: var(--shadow); }

/* ---- Admin ---- */
.admin { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.anav { display: grid; gap: 2px; position: sticky; top: 76px; }
.anav button { text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 9px; font-weight: 600; color: var(--muted); }
.anav button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.savebar { position: sticky; bottom: 12px; display: flex; gap: 10px; justify-content: flex-end; align-items: center; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); margin-top: 16px; }
textarea.inp { min-height: 120px; font-size: 14px; line-height: 1.5; resize: vertical; }
.tpl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.wh { display: grid; grid-template-columns: 90px 1fr 1fr 70px; gap: 8px; align-items: center; }

/* ---- Modal & Toast ---- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(10, 10, 12, .45); display: grid; place-items: center; padding: 16px; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 20px; display: grid; gap: 14px; }
.modal-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.modal-h h2 { font-family: var(--f-display); font-weight: 500; font-size: 24px; line-height: 1.15; }
.durs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.durs button { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 10px; padding: 12px 4px; font-weight: 700; font-size: 15px; display: grid; gap: 2px; }
.durs button span { font-size: 11px; font-weight: 600; color: var(--muted); }
.durs button[aria-pressed="true"] { border-color: var(--anth); background: var(--anth); color: var(--bg); }
.durs button[aria-pressed="true"] span { color: inherit; opacity: .75; }
.ai-pred { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); text-align: left; width: 100%; }
.ai-pred[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--gold); }
.ai-pred .n { font-size: 26px; font-weight: 800; color: var(--gold-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hist { display: flex; gap: 6px; flex-wrap: wrap; }
.hist span { font-size: 12px; padding: 2px 8px; background: var(--surface); border-radius: 6px; font-variant-numeric: tabular-nums; font-weight: 600; }
.status-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.status-btns .btn { border-radius: 12px; padding: 12px; }
.status-btns .btn[aria-pressed="true"] { background: var(--anth); color: var(--bg); }
.toasts { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
.toast { background: var(--anth); color: var(--bg); padding: 11px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); animation: up .25s ease-out; }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }
.freed { padding: 12px 14px; display: grid; gap: 6px; border-color: var(--free-line); background: var(--free-bg); }
.prof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.prof div { background: var(--surface-2); border-radius: 10px; padding: 9px 10px; }
.prof b { display: block; font-size: 15px; }
.prof span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.mobile-tabs { display: none; }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cal-wrap { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 860px) {
  .grid2, .stat-grid, .wa-wrap, .admin, .tpl { grid-template-columns: minmax(0, 1fr); }
  .anav { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .anav button { white-space: nowrap; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wa-list { max-height: 240px; }
}
@media (max-width: 640px) {
  .top-in { gap: 8px; padding-block: 8px; }
  .brand-sub, .pill.mode-txt .txt { display: none; }
  .area-seg { order: 3; width: 100%; display: flex; }
  .area-seg button { flex: 1; padding-inline: 8px; }
  .work { padding-bottom: 96px; }
  .tabs.desk { display: none; }
  .mobile-tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); overflow-x: auto; gap: 2px; }
  .mobile-tabs button { flex: 1 0 auto; min-width: 64px; border: 0; background: none; display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 6px 4px; border-radius: 10px; position: relative; }
  .mobile-tabs button svg { width: 21px; height: 21px; }
  .mobile-tabs button[aria-pressed="true"] { color: var(--ink); background: var(--surface-2); }
  .mobile-tabs .badge { position: absolute; top: 2px; right: 8px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choices { grid-template-columns: 1fr 1fr; }
  .day { grid-template-columns: 1fr; }
  .hb { grid-template-columns: 96px minmax(0, 1fr) 62px; }
  .durs { grid-template-columns: repeat(2, 1fr); }
  .wh { grid-template-columns: 70px 1fr 1fr; }
  .wh .wh-off { grid-column: 2 / -1; }
  .toasts { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
