/* Helles, sachliches Erscheinungsbild. Die Markenfarbe (--brand) setzt jede Leiharbeitsfirma selbst.
   Systemschriften statt Web-Fonts: lädt schnell und überträgt keine Daten an Dritte (DSGVO). */
:root {
  --bg: #F4F6F8;
  --surface: #FFFFFF;
  --ink: #18212C;
  --ink-2: #3A4654;
  --muted: #667383;
  --line: #E1E6EB;
  --line-strong: #CBD3DC;
  --soft: #F7F9FA;
  --brand: #1F5FAD;
  --brand-ink: #FFFFFF;
  --brand-soft: #EAF1FA;
  --good: #1D7A4E; --good-bg: #E6F4EC;
  --warn: #A3540F; --warn-bg: #FDF0E3;
  --info: #2C5C99; --info-bg: #E8EFF8;
  --bad:  #B42318; --bad-bg:  #FDECEA;
  --pen: #0F2A55;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(24,33,44,.05), 0 1px 1px rgba(24,33,44,.03);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; color: var(--ink); }
h1 { font-size: 24px; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.eyebrow { font-size: 11px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.boot { padding: 30vh 16px; text-align: center; color: var(--muted); }

/* ---------- Kopfzeile ---------- */
.appbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.appbar-in { max-width: 1120px; margin: 0 auto; padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  display: flex; align-items: center; gap: 14px; min-height: 62px; }
.appbar .brandmark { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.appbar .logo { height: 36px; max-width: 160px; object-fit: contain; }
.appbar .firm { font-weight: 650; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar .firm small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.appbar .divider { width: 1px; height: 28px; background: var(--line); }
.usermenu { position: relative; }
.userbtn { display: flex; align-items: center; gap: 10px; background: none; border: 1px solid transparent; border-radius: 8px; padding: 5px 8px; }
.userbtn:hover { background: var(--soft); border-color: var(--line); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 650; font-size: 13px; flex: none; }
.userbtn .who { text-align: left; line-height: 1.2; }
.userbtn .who b { display: block; font-size: 14px; font-weight: 600; }
.userbtn .who span { font-size: 12px; color: var(--muted); }
.menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(24,33,44,.12); min-width: 210px; padding: 6px; display: flex; flex-direction: column; z-index: 20; }
.menu button { text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 6px; }
.menu button:hover { background: var(--soft); }
@media (max-width: 560px) { .userbtn .who { display: none; } .appbar .firm small { display: none; } .appbar .firm.has-logo, .appbar .divider { display: none; } }
.only-sm { display: none; }
@media (max-width: 640px) { .hide-sm { display: none; } .only-sm { display: block; } }

.subnav { max-width: 1120px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); display: flex; gap: 4px; overflow-x: auto; }
.subnav button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 12px 11px; font-weight: 550; color: var(--muted); white-space: nowrap; }
.subnav button[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
.subnav button:hover { color: var(--ink); }

/* ---------- Inhalt ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-right)) 64px max(16px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 18px; }
.page.wide { max-width: 1120px; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.card-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: 1.3fr 1fr 1.6fr; gap: 1px; background: var(--line); overflow: hidden; }
.facts > div { padding: 14px 18px; min-width: 0; background: var(--surface); }
.facts .v { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr 1fr; } .facts > div:last-child { grid-column: 1 / -1; } }

/* Woche */
.weekbar { display: flex; align-items: center; gap: 10px; }
.weekbar .kw { flex: 1; text-align: center; }
.weekbar .kw b { display: block; font-size: 18px; font-weight: 650; }
.weekbar .kw span { font-size: 13px; color: var(--muted); }
.iconbtn { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; flex: none; color: var(--ink-2); }
.iconbtn:hover { border-color: var(--line-strong); background: var(--soft); }
.iconbtn svg { width: 18px; height: 18px; }
.todaybtn { font-size: 13px; padding: 0 12px; width: auto; }

/* Status */
.banner { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--radius); font-size: 14px; font-weight: 550; }
.banner .dot, .pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.st-none { background: var(--surface); color: var(--muted); border: 1px dashed var(--line-strong); }
.st-open { background: var(--info-bg); color: var(--info); }
.st-half { background: var(--warn-bg); color: var(--warn); }
.st-done { background: var(--good-bg); color: var(--good); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.st-none { border-style: solid; border-color: var(--line); }
.notice { background: var(--warn-bg); color: var(--warn); border-radius: var(--radius); padding: 11px 14px; font-size: 14px; }
.notice.bad { background: var(--bad-bg); color: var(--bad); }
.notice.info { background: var(--brand-soft); color: var(--ink-2); }

/* Tage */
.day { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; gap: 14px; align-items: center; width: 100%; padding: 13px 18px;
  background: none; border: 0; border-top: 1px solid var(--line); text-align: left; }
.day:first-child { border-top: 0; }
button.day:not(:disabled):hover { background: var(--soft); }
button.day:disabled { cursor: default; }
.day .d { font-weight: 650; font-size: 15px; line-height: 1.15; }
.day .d small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.day.weekend .d { color: var(--muted); }
.day .t { font-family: var(--mono); font-size: 14px; color: var(--ink); white-space: nowrap; }
.day .task { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day .add { color: var(--brand); font-size: 14px; font-weight: 550; }
.day .free { color: var(--muted); font-size: 14px; }
.day .h { font-family: var(--mono); font-size: 16px; text-align: right; }
.flag { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 600; color: var(--warn); background: var(--warn-bg); border-radius: 4px; padding: 1px 6px; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 18px; border-top: 1px solid var(--line-strong); background: var(--soft); border-radius: 0 0 var(--radius) var(--radius); }
.total .mono { font-size: 20px; font-weight: 600; }

/* Unterschrift */
.sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .sigs { grid-template-columns: 1fr; } }
.pad { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pad-head { display: flex; justify-content: space-between; align-items: center; }
.paper { position: relative; background: #FFF; border: 1px solid var(--line-strong); border-radius: 8px; height: 140px; overflow: hidden; }
.paper canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.paper .baseline { position: absolute; left: 18px; right: 18px; bottom: 34px; border-bottom: 1px solid #C9D1DA; pointer-events: none; }
.paper .hint { position: absolute; left: 18px; bottom: 12px; font-size: 11px; color: #95A1AE; pointer-events: none; }
.paper img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.signed { font-size: 12px; color: var(--good); font-weight: 600; }
.waiting { border: 1px dashed var(--line-strong); border-radius: 8px; height: 140px; display: grid; place-items: center; padding: 16px; text-align: center; color: var(--muted); font-size: 14px; }

/* Formulare */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .help { font-size: 12px; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: #FFF; border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 12px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid color-mix(in srgb, var(--brand) 18%, transparent); outline-offset: 0; }
textarea { min-height: 80px; resize: vertical; }
input[type=color] { padding: 3px; height: 40px; width: 56px; flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 400px) { .grid3 { grid-template-columns: 1fr 1fr; } }
.actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.actions.start { justify-content: flex-start; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; padding: 9px 16px; font-weight: 600; font-size: 14px; border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(.94); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--soft); }
.btn-secondary:disabled { opacity: .5; cursor: not-allowed; }
.btn-danger { background: var(--surface); color: var(--bad); border-color: #F2C4BF; }
.btn-lg { padding: 12px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 2px 4px; color: var(--brand); font-size: 13px; font-weight: 550; }
.linkbtn:hover { text-decoration: underline; }

/* Tabellen / Listen */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--soft); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--soft); }
td.r, th.r { text-align: right; }
td .sub { font-size: 12px; color: var(--muted); }
td select { padding: 6px 10px; font-size: 14px; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; border: 1px solid var(--line); color: var(--muted); border-radius: 4px; padding: 1px 6px; }
.tag.off { background: var(--bad-bg); border-color: transparent; color: var(--bad); }
.list-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 14px; align-items: center; width: 100%; padding: 13px 18px;
  background: none; border: 0; border-top: 1px solid var(--line); text-align: left; }
.list-row:first-child { border-top: 0; }
.list-row:hover:not(:disabled) { background: var(--soft); }
.list-row:disabled { cursor: default; }
.list-row .name { font-weight: 600; }
.list-row .sub { font-size: 12px; color: var(--muted); }
.list-row .h { font-family: var(--mono); }
@media (max-width: 480px) { .list-row { grid-template-columns: minmax(0,1fr) auto; } .list-row .h { grid-column: 2; grid-row: 1; } .list-row .pill { grid-column: 1 / -1; justify-self: start; } }
.empty { padding: 36px 18px; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.empty b { color: var(--ink); }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.stat .v { font-size: 26px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c, var(--line-strong)); }
.toolbar { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.toolbar .field { flex: 1 1 220px; max-width: 320px; }
.toolbar .spacer { flex: 1; }

/* Anmeldung */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--bg); }
.auth-card { width: 100%; max-width: 400px; padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; }
.auth-card .logo { max-height: 64px; max-width: 220px; object-fit: contain; align-self: flex-start; }
.auth-card .firmname { font-size: 20px; font-weight: 650; }
.auth-foot { margin-top: 18px; text-align: center; font-size: 12px; color: var(--muted); }
.auth-accent { height: 4px; background: var(--brand); border-radius: var(--radius) var(--radius) 0 0; margin: -32px -28px 8px; }

/* Firmenprofil */
.logo-box { border: 1px dashed var(--line-strong); border-radius: 8px; height: 110px; display: grid; place-items: center; background: var(--soft); padding: 12px; }
.logo-box img { max-height: 86px; object-fit: contain; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #FFF; box-shadow: 0 0 0 1px var(--line-strong); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.preview { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.preview .pbar { background: #FFF; border-bottom: 1px solid var(--line); padding: 10px 14px; display: flex; gap: 10px; align-items: center; }
.preview .pbar img { height: 28px; max-width: 120px; object-fit: contain; }
.preview .pbody { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.copyline { display: flex; gap: 8px; }
.copyline input { font-family: var(--mono); font-size: 13px; background: var(--soft); }

/* Dialog */
.scrim { position: fixed; inset: 0; background: rgba(24,33,44,.42); z-index: 40; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dialog { background: var(--surface); border-radius: 14px; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 20px 50px rgba(24,33,44,.25); }
.dialog.wide { max-width: 760px; }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.dialog-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 560px) {
  .scrim { align-items: flex-end; padding: 0; }
  .dialog { border-radius: 16px 16px 0 0; max-height: 94vh; padding-bottom: env(safe-area-inset-bottom); }
}
.credentials { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.credentials dt { color: var(--muted); }
.credentials dd { margin: 0; font-family: var(--mono); overflow-wrap: anywhere; }
.history { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.history li { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.history li:first-child { border-top: 0; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(24px + env(safe-area-inset-bottom)); background: var(--ink); color: #FFF;
  padding: 10px 16px; border-radius: 8px; font-size: 14px; z-index: 60; box-shadow: 0 8px 20px rgba(0,0,0,.18); max-width: calc(100% - 32px); }
.toast.bad { background: var(--bad); }
@media (prefers-reduced-motion: no-preference) {
  .dialog { animation: rise .18s ease-out; }
  @keyframes rise { from { transform: translateY(12px); opacity: .5; } }
}

/* Version 2: Feiertage, Zuschläge, Postausgang, Einstellungen */
.day .holiday { font-size: 11px; font-weight: 650; color: var(--bad); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.day .tag { margin-top: 4px; }
tfoot td { background: var(--soft); border-top: 1px solid var(--line-strong); border-bottom: 0; }
table.settings td { padding: 8px 14px; }
table.settings input { max-width: 140px; padding: 6px 10px; }
.pct { display: inline-flex; align-items: center; gap: 6px; }
.pct input { width: 80px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
pre.msg { white-space: pre-wrap; font: 13px/1.5 var(--font); background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 8px 0 0; max-width: 520px; overflow-wrap: anywhere; }
td select { min-width: 190px; }
.namebtn { background: none; border: 0; padding: 0; font-weight: 650; color: var(--ink); text-align: left; }
.namebtn span { color: var(--brand); font-weight: 400; }
.namebtn:hover { color: var(--brand); text-decoration: underline; }
.actions-cell { min-width: 150px; }
.actions-cell .linkbtn { display: block; margin-left: auto; padding: 3px 0; }
td select { min-width: 160px; }

/* ---------- Version 1.2: Abo, Startseite, Registrierung ---------- */
.page-banner { max-width: 1120px; margin: 18px auto 0; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
.page-banner + .page { padding-top: 14px; }
.usage { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.usage > div { display: flex; flex-direction: column; gap: 2px; }
.usage .r { text-align: right; }
.copyline .prefix { display: flex; align-items: center; padding: 0 2px 0 4px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.check span a { color: var(--brand); }
.check { align-items: flex-start; }
.check input { margin-top: 2px; }

/* Startseite */
.lp-in { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.lp-bar { background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.lp-bar .lp-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.lp-brand { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--ink); text-decoration: none; }
.lp-nav { display: flex; align-items: center; gap: 10px; }
.lp-nav > a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: 14px; padding: 0 8px; }
.lp-nav .btn { text-decoration: none; }
@media (max-width: 560px) { .lp-nav > a:not(.btn), .lp-nav .btn-primary { display: none; } .lp-brand span { font-size: 14px; } }
.lp-hero { background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.lp-hero-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
@media (max-width: 880px) { .lp-hero-in { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; padding-bottom: 40px; } }
.lp-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.lp-copy h1 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
.lp-lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.lp-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.lp-cta .btn, .lp-price .btn { text-decoration: none; }
.lp-sheet { padding: 18px 20px; display: flex; flex-direction: column; box-shadow: 0 18px 48px rgba(24,33,44,.10); max-width: 440px; justify-self: center; width: 100%; }
.lp-sheet-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.lp-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.lp-row .tag { margin-left: 6px; }
.lp-sum { border-bottom: 0; font-weight: 650; }
.lp-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.lp-sigs > div { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px 8px; display: flex; flex-direction: column; }
.lp-sigs svg { height: 34px; width: 100%; }
.lp-sigs small { color: var(--good); font-weight: 600; font-size: 11px; border-top: 1px solid var(--line); padding-top: 4px; }
.lp-section { padding: 72px 0; }
.lp-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.01em; margin-bottom: 12px; }
.lp-sub { color: var(--ink-2); font-size: 17px; max-width: 60ch; margin-bottom: 32px; }
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; margin-top: 28px; }
@media (max-width: 880px) { .lp-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .lp-features { grid-template-columns: 1fr; } .lp-section { padding: 48px 0; } }
.lp-feature { border-top: 2px solid var(--brand); padding-top: 14px; }
.lp-feature h3 { font-size: 16px; margin-bottom: 6px; }
.lp-feature p { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.lp-pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 880px) { .lp-pricing { grid-template-columns: 1fr; } }
.lp-price, .lp-calc { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.lp-price { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 12px 32px rgba(24,33,44,.08); }
.lp-amount { display: flex; flex-direction: column; }
.lp-amount .mono { font-size: 44px; font-weight: 700; letter-spacing: -.02em; font-family: var(--font); font-variant-numeric: tabular-nums; }
.lp-amount small { color: var(--muted); font-size: 14px; }
.lp-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lp-list li { padding-left: 24px; position: relative; color: var(--ink-2); }
.lp-list li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg); }
.lp-calc h3 { font-size: 17px; }
.lp-range { display: flex; align-items: center; gap: 14px; }
.lp-range input { flex: 1; accent-color: var(--brand); padding: 0; border: 0; }
.lp-range output { min-width: 3ch; font-size: 18px; font-weight: 650; text-align: right; }
.lp-result { background: var(--brand-soft); border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.lp-result .mono { font-size: 28px; font-weight: 700; font-family: var(--font); font-variant-numeric: tabular-nums; }
.lp-result small { color: var(--ink-2); }
.lp-calc table td { padding: 8px 4px; }
.lp-faq { max-width: 760px; }
.lp-q { border-bottom: 1px solid var(--line); padding: 16px 0; }
.lp-q summary { cursor: pointer; font-weight: 600; font-size: 16px; }
.lp-q p { margin-top: 10px; color: var(--ink-2); line-height: 1.6; }
.lp-foot { border-top: 1px solid var(--line); background: var(--surface); }
.lp-foot .lp-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-size: 13px; color: var(--muted); }
.lp-links { display: flex; gap: 18px; flex-wrap: wrap; }
.lp-links a { color: var(--muted); }
.notice .linkbtn { color: inherit; text-decoration: underline; font-weight: 650; font-size: inherit; padding: 0; }

/* ---------- Version 1.3: Marke Stundenpass ---------- */
@font-face { font-family: "Roboto Slab"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/roboto-slab-700.woff") format("woff"); }
.auth-foot { display: flex; align-items: center; justify-content: center; gap: 6px; }
.lp-brand img { height: 32px; width: auto; display: block; }
.lp-tagline { color: #D7263D; }
.lp-copy h1, .lp-h2 { font-family: "Roboto Slab", Rockwell, Georgia, serif; font-weight: 700; letter-spacing: -0.01em; }
.lp-amount .mono { font-family: "Roboto Slab", Rockwell, Georgia, serif; }

/* ---------- Version 1.4: Urlaub, Überstunden, Kundenrechnungen ---------- */
.subnav .count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: #D7263D; color: #FFF; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.tag.ot { border-color: transparent; background: var(--brand-soft); color: var(--ink-2); }
.pill.abs { margin-top: 2px; }
.neg { color: var(--bad); }
.minibal { display: flex; align-items: center; gap: 20px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); }
.minibal > span:not(.go) { display: flex; flex-direction: column; }
.minibal b { font-size: 17px; }
.minibal .go { margin-left: auto; color: var(--brand); font-weight: 600; font-size: 14px; white-space: nowrap; }
.minibal:hover { border-color: var(--line-strong); }
@media (max-width: 420px) { .minibal .go { display: none; } }
.otbox { display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: start; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.otbox > div:first-child { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.otbox b { font-size: 20px; }
@media (max-width: 420px) { .otbox { grid-template-columns: 1fr; } }
.balgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .balgrid { grid-template-columns: 1fr; } }
.bal .big { font-size: 34px; font-weight: 700; line-height: 1.1; }
.bal .big small { font-size: 14px; font-weight: 400; color: var(--muted); font-family: var(--font); }
.bar { display: flex; height: 10px; border-radius: 5px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; font-size: 14px; }
.kv dt { color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.kv dd { margin: 0; text-align: right; }
.kv .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.req { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.req:first-of-type { border-top: 0; }
.req .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.req-actions { display: flex; gap: 8px; }
@media (max-width: 560px) { .req { grid-template-columns: 1fr; } .req-actions .btn { flex: 1; } }
.inv-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 200px; gap: 16px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.inv-row:first-child { border-top: 0; }
.inv-row .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.inv-act { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.linkrow { display: flex; gap: 10px; }
@media (max-width: 640px) { .inv-row { grid-template-columns: 1fr auto; } .inv-act { grid-column: 1 / -1; align-items: stretch; } .inv-act .btn { width: 100%; } }
.dialog h3 { margin-top: 4px; }

/* v1.5 – Kranktage */
.st-sick { background: #FDECEE; color: #B4202F; }
.pill.st-sick { border: 0; }
.notice.sick { background: #FDECEE; color: #8E1A26; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.sickline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -4px 0 2px; }
.sickline .small { flex: 1 1 220px; }
.req.sick { border-left: 3px solid #D7263D; }
.pagehead-actions { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.aupick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.list-row .linkrow { margin-top: 4px; }

/* v1.6 – Stundenlohn & Verrechnungssatz */
fieldset.rates { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2, #FAFBFC); }
fieldset.rates legend { font-weight: 650; font-size: 14px; padding: 0 6px; }
.euro { display: flex; align-items: center; gap: 8px; }
.euro input { flex: 1; min-width: 0; text-align: right; font-variant-numeric: tabular-nums; }
.euro span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.warnt { color: var(--warn); font-size: 12px; font-weight: 600; font-family: var(--font); }
.rates-cell { white-space: nowrap; }
.styles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.style-opt { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; background: var(--surface); }
.style-opt:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.style-opt input { position: absolute; opacity: 0; pointer-events: none; }
.style-opt:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.style-opt img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.style-name { font-weight: 650; }
.style-opt .linkbtn { align-self: flex-start; }

/* v1.8 – Bereichsgruppen */
.tabrow-wrap { max-width: 1120px; margin: 16px auto 0; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
.tabrow-wrap + .page, .tabrow-wrap + .page-banner { padding-top: 14px; }
.tabrow { display: flex; gap: 6px; overflow-x: auto; padding: 2px; }
.tabrow button { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 7px 14px; font-weight: 550; font-size: 14px; white-space: nowrap; }
.tabrow button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.tabrow button[aria-selected="true"] .count { background: #fff; color: #D7263D; }
.tabrow .count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: #D7263D; color: #FFF; font-size: 11px; font-weight: 700; }

/* Einsätze & Fristen */
.amp { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.amp::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.amp.green { background: var(--good-bg); color: var(--good); }
.amp.yellow { background: #FFF6D6; color: #8A6A00; }
.amp.orange { background: var(--warn-bg); color: var(--warn); }
.amp.red, .amp.over { background: #FDECEE; color: #B4202F; }
.amp.paused { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.meter { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 6px; min-width: 90px; }
.meter > span { display: block; height: 100%; border-radius: 3px; }
.hist-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hist-row:last-child { border-bottom: 0; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; }
a.doc-row { text-decoration: none; color: inherit; }
.newdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #D7263D; margin-right: 6px; vertical-align: 1px; }

/* Nachrichten */
.chat { display: grid; grid-template-columns: 280px 1fr; min-height: 460px; overflow: hidden; }
.chat.single { grid-template-columns: 1fr; min-height: 0; }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; max-height: 620px; }
.chat-item { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; }
.chat-item[aria-current="true"] { background: var(--brand-soft); }
.chat-item .name { font-weight: 600; }
.chat-item .count, .subnav .count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #D7263D; color: #fff; font-size: 11px; font-weight: 700; }
.chat-thread { display: flex; flex-direction: column; min-width: 0; }
.chat-head { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; max-height: 520px; min-height: 240px; background: var(--bg, #F6F7F9); }
.msg { max-width: 78%; align-self: flex-start; }
.msg.mine { align-self: flex-end; text-align: right; }
.msg .bub { display: inline-block; text-align: left; padding: 9px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); white-space: normal; overflow-wrap: anywhere; }
.msg.mine .bub { background: var(--brand); color: #fff; border-color: var(--brand); }
.msg.auto .bub { background: #FFF6D6; border-color: #F0E1A8; color: var(--ink); }
.msg .meta { font-size: 11px; color: var(--muted); margin-top: 3px; }
.composer { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); align-items: flex-end; }
.composer textarea { flex: 1; resize: vertical; min-height: 44px; }
@media (max-width: 720px) { .chat { grid-template-columns: 1fr; } .chat-list { max-height: 200px; border-right: 0; border-bottom: 1px solid var(--line); } }

/* Stempeluhr & Spesen */
.clockcard { padding: 14px 16px; }
.clock-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.clock-time { font-size: 30px; font-weight: 700; line-height: 1.15; }
.clock-time.paused { color: var(--warn); }
.clock-btns { display: flex; gap: 8px; }
.expbox { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.expbox summary { cursor: pointer; font-weight: 600; }
.tag.exp { background: #EEF6EE; color: #2E6B34; }
.langpick { align-self: flex-end; margin: -14px -10px -10px 0; }
.langpick select { padding: 4px 8px; min-height: 32px; font-size: 13px; width: auto; }
.auth-card { position: relative; }
.langlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Schichtplan */
table.plan th, table.plan td { white-space: nowrap; }
table.plan th.we, table.plan td.we { background: rgba(0,0,0,.02); }
.pcell { padding: 4px !important; min-width: 96px; }
.pcell button { width: 100%; min-height: 46px; border-radius: 8px; border: 1px dashed var(--line-strong); background: none; color: var(--muted); font-size: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer; }
.pcell button.shift { border: 1px solid var(--brand); background: var(--brand-soft); color: var(--ink); }
.pcell button.shift.draft { border-style: dashed; background: #FFF6D6; border-color: #E2C766; }
.pcell button span { font-size: 11px; color: var(--muted); max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.legend-chip { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--brand-soft); border: 1px solid var(--brand); vertical-align: -1px; }
.legend-chip.draft { background: #FFF6D6; border: 1px dashed #E2C766; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.planned { font-size: 13px; color: var(--brand); font-weight: 600; margin-bottom: 2px; }
.netstate { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; background: #2B3440; color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.2); max-width: calc(100% - 32px); text-align: center; }

/* Import */
.drop { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 28px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: var(--surface); }
.drop.over { border-color: var(--brand); background: var(--brand-soft); }
.mapgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 14px; }
.mapgrid .field span { font-size: 13px; font-weight: 600; }
