:root {
  --bg: #f2f2f7; --card: #fff; --text: #1c1c1e; --muted: #8e8e93; --line: #e5e5ea;
  --accent: #0a7d5a; --accent-soft: #e3f4ee; --warn: #d9480f; --warn-soft: #fff1e8;
  --bad: #e03131; --bad-soft: #ffe8e8; --theke: #6741d9; --theke-soft: #efeafd; --note: #fffbe6;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Roboto, sans-serif; font-size: 16px; }
.app { max-width: 720px; margin: 0 auto; min-height: 100vh; position: relative; }
header { position: sticky; top: 0; z-index: 5; background: rgba(242,242,247,.94); backdrop-filter: blur(10px);
         padding: calc(env(safe-area-inset-top) + 12px) 16px 8px; }
.hrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hrow .who { font-size: 13px; color: var(--muted); }
h1 { font-size: 30px; margin: 4px 0 0; letter-spacing: -.5px; }
main { padding: 4px 16px calc(env(safe-area-inset-bottom) + 96px); }
.card { background: var(--card); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
.card.warn { background: var(--warn-soft); }
.card.note { background: var(--note); border-left: 4px solid #f2b705; white-space: pre-wrap; line-height: 1.45; }
.label { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 0 4px 6px; }
.card .label { margin: 0 0 6px; }
.big { font-size: 34px; font-weight: 700; letter-spacing: -1px; }
.sub { color: var(--muted); font-size: 14px; }
.ok { color: var(--accent); }
.shifts { margin: 6px 0; font-size: 16px; line-height: 1.6; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: var(--line); color: #555; vertical-align: middle; }
.pill.Service, .pill.pos { background: var(--accent-soft); color: var(--accent); }
.pill.Theke { background: var(--theke-soft); color: var(--theke); }
.pill.changed { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.row:last-child { border-bottom: 0; }
.row .t { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.row.today .d { color: var(--accent); font-weight: 700; }
.row.past { opacity: .75; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.btn { display: block; width: 100%; border: 0; background: var(--accent); color: #fff; font: inherit; font-size: 17px; font-weight: 600;
       padding: 14px; border-radius: 14px; cursor: pointer; margin-top: 10px; }
.btn.small { font-size: 15px; padding: 10px; }
.btn.ghost { background: var(--accent-soft); color: var(--accent); }
.btn.gray { background: var(--line); color: var(--text); }
.btn:disabled { opacity: .5; }
.chip { border: 0; background: #fff; border-radius: 99px; padding: 7px 12px; font: inherit; font-size: 14px; margin: 6px 6px 0 0; cursor: pointer; font-weight: 600; color: var(--warn); }
.link { background: none; border: 0; color: var(--accent); font: inherit; font-size: 15px; cursor: pointer; padding: 4px; }
.days { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; margin-bottom: 4px; scrollbar-width: none; }
.days button { border: 0; background: #fff; border-radius: 12px; padding: 7px 0; font: inherit; font-size: 12px; min-width: 46px; cursor: pointer; line-height: 1.25; position: relative; }
.days button b { display: block; font-size: 17px; }
.days button.sel { background: var(--accent); color: #fff; }
.days button.td { outline: 2px solid var(--accent); }
.days button .dot { position: absolute; top: 4px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); }
.mnav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mnav b { font-size: 17px; }
.mnav button { border: 0; background: #fff; border-radius: 10px; width: 40px; height: 34px; font-size: 18px; cursor: pointer; }
.ampel { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ampel span { font-size: 14px; font-weight: 600; padding: 6px 10px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.ampel span.bad { background: var(--bad-soft); color: var(--bad); }
.erow { padding: 10px 0; border-bottom: 1px solid var(--line); }
.erow:last-child { border-bottom: 0; }
.ehead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ebody { margin-top: 8px; display: grid; gap: 6px; }
.tline { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--text); border: 1px solid var(--line); background: #fafafa; border-radius: 9px; padding: 7px 8px; }
input[type=time] { min-width: 96px; }
textarea { width: 100%; min-height: 110px; resize: vertical; }
.field { display: grid; gap: 4px; margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.field input, .field select { width: 100%; }
.check { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-top: 10px; }
.check input { width: 20px; height: 20px; }
.tablewrap { overflow-x: auto; background: #fff; border-radius: 14px; margin-bottom: 12px; }
table { border-collapse: collapse; font-size: 12px; width: 100%; }
th, td { padding: 6px 6px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; }
th { position: sticky; top: 0; background: #fafafa; font-weight: 600; }
td.c-work { background: var(--accent-soft); }
td.c-urlaub { background: #e7f0ff; color: #1c64d9; }
td.c-krank { background: var(--bad-soft); color: var(--bad); }
td.c-frei { color: #bbb; }
tr.today td { font-weight: 700; }
tr.click { cursor: pointer; }
td.num, th.num { text-align: right; }
.neg { color: var(--bad); } .pos-n { color: var(--accent); }
nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 720px; display: flex; z-index: 5;
      background: rgba(249,249,249,.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 0 calc(env(safe-area-inset-bottom) + 6px); }
nav button { flex: 1; border: 0; background: none; font: inherit; font-size: 11px; color: var(--muted); padding: 4px 0; cursor: pointer;
             display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; }
nav button .ic { font-size: 22px; filter: grayscale(1); opacity: .55; }
nav button.active { color: var(--accent); }
nav button.active .ic { filter: none; opacity: 1; }
.badge { position: absolute; top: 0; left: 55%; background: #ff3b30; color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px;
         border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.notif { padding: 12px 0; border-bottom: 1px solid var(--line); }
.notif:last-child { border-bottom: 0; }
.notif.unread { font-weight: 600; }
.notif .when { font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 3px; }
.toast { position: fixed; bottom: 110px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.85); color: #fff; padding: 10px 16px;
         border-radius: 12px; font-size: 14px; opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 20; max-width: 90%; text-align: center; }
.toast.show { opacity: 1; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 15; display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.sheet { background: var(--bg); width: 100%; max-width: 720px; border-radius: 18px 18px 0 0; padding: 18px 16px calc(env(safe-area-inset-bottom) + 18px); max-height: 90vh; overflow-y: auto; }
.sheet h3 { margin: 0 0 4px; }
.login { max-width: 380px; margin: 40px auto; }
.login .logo { font-size: 54px; text-align: center; }
.login h2 { text-align: center; margin: 4px 0 20px; }
.login input, .login select { width: 100%; padding: 12px; font-size: 17px; }
.pin { letter-spacing: 6px; text-align: center; }
.grid7 { display: grid; grid-template-columns: 70px repeat(7, 1fr); gap: 4px; align-items: center; font-size: 13px; }
.grid7 input { width: 100%; padding: 6px 2px; text-align: center; }
@media (min-width: 740px) { .app { padding-top: 10px; } }
[hidden] { display: none !important; }
.btn.danger { background: var(--bad); }
.tick { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 99px; padding: 5px 10px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; margin-top: 4px; }
.tick.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.row.sick { background: var(--bad-soft); margin: 0 -16px; padding: 10px 16px; color: var(--bad); }
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qa button { border: 0; background: var(--bg); border-radius: 12px; padding: 12px 6px; font: inherit; font-size: 22px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.qa button span { font-size: 13px; font-weight: 600; color: var(--text); }
.mins { display: flex; flex-wrap: wrap; gap: 6px; }
.mins input { display: none; }
.mins span { display: inline-block; padding: 8px 12px; border-radius: 99px; background: var(--bg); font-weight: 600; font-size: 14px; cursor: pointer; }
.mins input:checked + span { background: var(--accent); color: #fff; }
.rw { display: flex; flex-wrap: wrap; gap: 4px; }
.rw:not(:empty) { margin-bottom: 6px; }
.warnr, .infor { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 8px; }
.warnr { background: var(--bad-soft); color: var(--bad); }
.infor { background: var(--line); color: #555; }
.chk { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); cursor: pointer; flex-wrap: wrap; }
.chk:last-child { border-bottom: 0; }
.chk input { width: 22px; height: 22px; accent-color: var(--accent); flex-shrink: 0; }
.chk .it { flex: 1; }
.chk.on .it { color: var(--muted); text-decoration: line-through; }
.chk .who { font-size: 12px; color: var(--accent); font-weight: 600; }
.clb { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 10px; }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.bar span { display: block; height: 100%; background: var(--accent); }
.tagw, .tagv { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 8px; }
.tagw { background: var(--warn-soft); color: var(--warn); }
.tagv { background: var(--theke-soft); color: var(--theke); }
.pzr { margin: 4px 4px 0 0; }
.clock .bigbtn { font-size: 22px; padding: 20px; border-radius: 18px; }
.clock .bigbtn.stop { background: var(--bad); }
.clock.on { box-shadow: inset 4px 0 0 var(--accent); }
.kiosk { max-width: 640px; margin: 20px auto; }
.kiosk h2 { text-align: center; margin: 4px 0; }
.kclock { text-align: center; font-size: 44px; font-weight: 700; letter-spacing: -1px; }
.kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kgrid button { border: 0; background: #fff; border-radius: 16px; padding: 26px 10px; font: inherit; font-size: 20px; font-weight: 600; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.kgrid button:active { background: var(--accent-soft); }
.pindots { text-align: center; font-size: 28px; letter-spacing: 6px; margin: 14px 0; min-height: 36px; }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 320px; margin: 0 auto 10px; }
.pinpad button { border: 0; background: #fff; border-radius: 16px; padding: 18px 0; font: inherit; font-size: 26px; font-weight: 600; cursor: pointer; }
.pinpad button.ok { background: var(--accent); color: #fff; }
.kover { position: fixed; inset: 0; background: rgba(244,242,236,.98); z-index: 30; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.hero .brow { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); gap: 8px; }
.hero .brow .t { text-align: right; font-weight: 600; }
.hero.on { box-shadow: inset 4px 0 0 var(--accent); }
.hero .bigbtn { font-size: 21px; padding: 18px; border-radius: 16px; }
.hero .bigbtn.stop { background: var(--bad); }
.hfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.fold { padding: 0; }
.fold > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; font-weight: 600; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: '›'; font-size: 22px; color: var(--muted); transition: transform .2s; margin-left: 4px; }
.fold[open] > summary::after { transform: rotate(90deg); }
.fold > summary > span:first-child { flex: 1; }
.fold > summary .sub { font-weight: 400; }
.fold .fbody { padding: 0 16px 12px; }
.fold .fbody > .card { background: none; padding: 0; margin: 0; box-shadow: none; }
.fold .fbody > .card > .ehead:first-child { display: none; }
.fold .fbody > .label { display: none; }
.card.slim { padding: 10px 16px; }
.trow { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 14px; }
.trow .btn { width: auto; margin: 0; }
.qa2 { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: none; }
.qa2 button { flex: 0 0 auto; border: 0; background: #fff; border-radius: 14px; padding: 10px 12px; font: inherit; font-size: 20px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 76px; }
.qa2 button span { font-size: 11px; font-weight: 600; color: var(--text); white-space: nowrap; }
.hint-act { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.hint-act .btn { width: auto; margin: 0; padding: 8px 16px; }
.ktabs { display: flex; gap: 8px; justify-content: center; margin: 10px 0 16px; }
.ktabs button { border: 0; background: #fff; border-radius: 99px; padding: 12px 22px; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; }
.ktabs button.on { background: var(--accent); color: #fff; }
.kgrid button .kprog { font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 6px; }
.kgrid button.done { background: var(--accent-soft); }
.fab { position: fixed; right: 18px; bottom: calc(env(safe-area-inset-bottom) + 84px); z-index: 12; width: 58px; height: 58px; border-radius: 50%; border: 0;
       background: #f2b705; font-size: 26px; box-shadow: 0 6px 18px rgba(0,0,0,.22); cursor: pointer; }
.fab .badge { top: -2px; left: auto; right: -2px; }
.nrow { display: flex; align-items: flex-start; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.nrow:last-child { border-bottom: 0; }
.nact { display: flex; gap: 6px; }
.nact .link { font-size: 18px; }
.dnote { padding: 10px 0; border-bottom: 1px solid var(--line); }
.dnote.done { opacity: .55; }
.dmeta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.dnew { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.dnew textarea { min-height: 54px; flex: 1; }
.dnew .btn { width: auto; margin: 0; }
.endchips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.endchips button { border: 0; background: #fff; border-radius: 12px; padding: 14px 0; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; }
.endchips button.on { background: var(--accent); color: #fff; }
.qe { border: 0; background: var(--accent-soft); color: var(--accent); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; justify-self: start; }
.vbar { display: flex; height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; margin: 10px 0 6px; }
.vbar span { display: block; height: 100%; }
.t1 { background: #868e96; } .t2 { background: var(--accent); } .t3 { background: #f2b705; }
.vleg { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.vleg i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 3px; vertical-align: middle; }
nav.many button { font-size: 9.5px; min-width: 0; letter-spacing: -.2px; }
nav.many button .ic { font-size: 20px; }
.vmonth { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 10px 0 2px; font-weight: 600; }
.isearch { width: 100%; padding: 12px 14px; font-size: 16px; border-radius: 12px; margin-bottom: 10px; background: #fff; }
.itiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.itiles button { border: 0; background: #fff; border-radius: 16px; padding: 16px 10px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.itiles button .ii { font-size: 30px; }
.itiles button .sub { font-weight: 400; font-size: 12px; }
.itiles button.hl { box-shadow: inset 0 0 0 2px #f2b705; }
.irow { cursor: pointer; }
.inr { display: inline-block; min-width: 30px; text-align: center; background: var(--accent); color: #fff; border-radius: 8px; padding: 2px 7px; font-size: 13px; font-weight: 700; }
.inr.big { font-size: 22px; padding: 4px 12px; }
.ifield { padding: 8px 0; border-bottom: 1px solid var(--line); }
.ifield:last-child { border-bottom: 0; }
.ifield span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.pitch { background: #fffbe6; border-radius: 10px; padding: 10px 12px; margin-top: 10px; line-height: 1.45; }
.ipage { line-height: 1.55; font-size: 15px; }
.decks { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin-bottom: 8px; }
.decks button { border: 0; background: #fff; border-radius: 12px; padding: 12px 6px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.decks button:disabled { opacity: .4; }
.fcard { background: #fff; border-radius: 22px; min-height: 260px; padding: 24px 18px; margin: 12px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.fcard .fq { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.fcard .ff { font-size: 26px; }
.fcard .fb { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); width: 100%; font-size: 18px; }
.iimg { width: 100%; max-height: 300px; object-fit: cover; border-radius: 14px; margin-bottom: 10px; cursor: zoom-in; }
.ivid { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 14px; margin-bottom: 10px; background: #000; }
.card.glass { display: flex; gap: 12px; align-items: center; background: #eef6ff; }
.card.glass img { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; cursor: zoom-in; }
.medrow { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; align-items: center; }
.medbox { width: 96px; display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--bg); border-radius: 12px; padding: 8px 4px; font-size: 13px; text-align: center; }
.medbox img, .medbox video { width: 80px; height: 60px; object-fit: cover; border-radius: 8px; }
.medbox span { font-size: 26px; }
.cthumb { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; margin-right: 10px; cursor: zoom-in; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.pgrid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: zoom-in; }
.login .logo img { height: 130px; width: auto; display: block; margin: 0 auto; }
.login .brand { text-align: center; font-family: Georgia, 'Times New Roman', serif; font-size: 28px; letter-spacing: 3px; text-transform: uppercase; margin-top: 10px; }
.login .brand + h2 { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 1px; margin-top: 2px; }
.row.click { cursor: pointer; }
/* Monatsplan */
.segs { display: flex; background: #e9e9ee; border-radius: 10px; padding: 3px; margin-bottom: 8px; }
.segs button { flex: 1; border: 0; background: none; padding: 7px; border-radius: 8px; font: inherit; font-weight: 600; color: var(--muted); }
.segs button.on { background: #fff; color: var(--text, #111); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.mlegend, .calsum { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; font-size: 12px; }
.mlegend span, .calsum span { padding: 3px 8px; border-radius: 99px; background: #fff; font-weight: 600; }
.calsum span { font-size: 13px; }
.mplan { max-height: 72vh; overflow: auto; }
.mplan table { font-size: 12px; }
.mplan thead th { position: sticky; top: 0; z-index: 2; background: #2f6f4f; color: #fff; text-align: center; padding: 6px 4px; }
.mplan thead th .sub { color: #cfe6d9; font-size: 10px; font-weight: 400; }
.mplan thead th.th-theke { background: #5b3fb8; }
.mplan thead th.th-theke .sub { color: #ddd3ff; }
.mplan .stick { position: sticky; left: 0; z-index: 1; background: #fff; text-align: left; min-width: 54px; }
.mplan thead th.stick { z-index: 3; background: #2f6f4f; }
.mplan td { text-align: center; line-height: 1.25; padding: 5px 4px; border-left: 1px solid var(--line); }
.mplan td.c-frei { color: #a0a0a0; font-style: italic; }
.mplan td .pos { font-size: 10px; color: var(--muted); }
.mplan tr.we td { background-color: #f6f6f8; }
.mplan tr.we td.c-work { background: #d6efe0; }
.mplan tr.we td.c-urlaub { background: #dbe7ff; }
.mplan tr.we td.stick { background: #f0f0f3; }
.mplan tr.wk td { border-top: 2px solid #8a8a8a; }
.mplan tr.today td.stick { background: #fff3c4; }
.mplan tr.today td { box-shadow: inset 0 2px 0 #f0b400, inset 0 -2px 0 #f0b400; }
.mplan tr.past { opacity: .6; }
.mplan tr.sum td { background: #fafafa; font-weight: 700; font-size: 11px; }
.mlegend .c-work, .calsum .c-work { background: var(--accent-soft); }
.mlegend .c-frei, .calsum .c-frei { color: #888; }
.mlegend .c-urlaub, .calsum .c-urlaub { background: #e7f0ff; color: #1c64d9; }
.mlegend .c-krank, .calsum .c-krank { background: var(--bad-soft); color: var(--bad); }
/* Mitarbeiter-Kalender */
.calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-h { text-align: center; font-size: 11px; color: var(--muted); font-weight: 600; }
.cal { min-height: 54px; border-radius: 8px; padding: 3px 2px; font-size: 10px; text-align: center; background: #f4f4f6; color: #999; cursor: pointer; line-height: 1.2; display: flex; flex-direction: column; gap: 2px; }
.cal b { font-size: 13px; color: #333; }
.cal.c-work { background: var(--accent-soft); color: #1b5e3b; font-weight: 600; }
.cal.c-urlaub { background: #e7f0ff; color: #1c64d9; }
.cal.c-krank { background: var(--bad-soft); color: var(--bad); }
.cal.today { outline: 2px solid #f0b400; }
.cal.past { opacity: .5; }
/* Feiertage & Messen */
.banner { border-radius: 12px; padding: 9px 12px; margin: 0 0 8px; font-size: 14px; }
.banner.hol { background: #fff0d9; color: #8a4b00; }
.banner.messe { background: #f1eaff; color: #5b3fb8; }
.mlegend .l-hol { background: #fff0d9; color: #8a4b00; }
.mlegend .l-messe { background: #f1eaff; color: #5b3fb8; }
.mlegend .l-we { background: #ececf1; }
.mplan tr.kwrow td { background: #e9e9ee; padding: 4px 6px; text-align: left; border-top: 2px solid #8a8a8a; font-size: 11px; }
.mplan .kwin { position: sticky; left: 6px; display: inline-block; white-space: normal; max-width: 330px; }
.mplan .tag { display: inline-block; border-radius: 99px; padding: 1px 7px; margin: 2px 2px 0 0; font-weight: 600; }
.mplan .tag.hol { background: #ffe1b3; color: #8a4b00; }
.mplan .tag.messe { background: #e3d8ff; color: #5b3fb8; }
.mplan tr.we td { background-color: #ececf1; }
.mplan tr.we td.stick { background: #e4e4ea; }
.mplan tr.hol td.stick { background: #ffe1b3; }
.mplan tr.hol td.c-frei { background: #fff6e8; }
.mplan tr.ev td.stick { box-shadow: inset 4px 0 0 #7b5cd6; }
.mplan .hname { font-size: 9px; color: #8a4b00; white-space: normal; max-width: 70px; line-height: 1.1; }
.mplan .ename { font-size: 9px; color: #5b3fb8; }
.cal.hol { box-shadow: inset 0 0 0 2px #f0a030; }
.cal.ev { border-bottom: 4px solid #7b5cd6; }
.calnotes { margin-top: 8px; font-size: 13px; display: flex; flex-direction: column; gap: 3px; }
.facts { background: #f6f3ea; border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.facts .frow { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px solid #e8e2d2; font-size: 14px; }
.facts .frow:last-child { border-bottom: 0; }
.facts .frow span { color: var(--muted); white-space: nowrap; }
.facts .frow b { text-align: right; font-weight: 600; }
.catchips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 4px; }
.catchips .chip { white-space: nowrap; margin: 0; background: #fff; color: var(--accent); }
.segs.small button { padding: 5px 4px; font-size: 13px; }
.dnew .segs { margin-bottom: 6px; }
.pchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.pchip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 11px; font: inherit; font-size: 14px; cursor: pointer; }
.pchip.work::before { content: '●'; color: #2f9e5f; margin-right: 4px; font-size: 10px; vertical-align: middle; }
.pchip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.pchip.on.work::before { color: #fff; }
.dto { font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.dnote.priv { border-left: 3px solid #7b5cd6; }
.dnew { flex-wrap: wrap; }
.dnew > .segs, .dnew > .pchips, .dnew > .sub { flex: 0 0 100%; width: 100%; }
.dnew > textarea { flex: 1 1 0; min-width: 0; }
/* Nachrichten: Neu / Gelesen */
.mhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; }
.mwrap { position: relative; }
.mwrap > .card { margin-bottom: 10px; }
.mwrap.isnew > .card { box-shadow: inset 4px 0 0 var(--accent), 0 2px 8px rgba(47,111,79,.15); }
.mwrap .newtag { position: absolute; top: -6px; left: 10px; z-index: 2; background: var(--bad); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 99px; }
.mwrap .readbtn { position: absolute; top: 8px; right: 8px; z-index: 2; border: 1px solid var(--line); background: #fff; color: var(--accent); border-radius: 99px; padding: 4px 10px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.mwrap > .card .label { padding-right: 90px; }
.mwrap.gone { opacity: .55; }
.ncard { background: #fff; }
/* Meine Putzwoche */
.pwday { border-top: 1px solid var(--line); padding: 8px 0; }
.pwday:first-of-type { border-top: 0; }
.pwday.today { background: #fff8e1; margin: 0 -12px; padding: 8px 12px; border-radius: 10px; }
.pwday.past { opacity: .7; }
.pwday.off .pwh { color: #aaa; }
.pwh { display: flex; justify-content: space-between; margin-bottom: 4px; }
.pwi { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; padding: 3px 0 3px 4px; }
.pwi.duty { color: #2f6f4f; font-weight: 600; }
.pwi.done span:first-child { color: #888; text-decoration: line-through; }
.pwi.late { color: var(--bad); }
.pwi .link { white-space: nowrap; font-size: 13px; }
.typepick { display: grid; gap: 8px; margin-top: 4px; }
.typepick button { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.typepick button span { font-size: 13px; color: var(--muted); }
.typepick button.on { border-color: var(--accent); background: var(--accent-soft); }

/* ================= Design 2: Bambus-Grün, warmes Papier, Gold – einheitliche Signalfarben ================= */
:root {
  --bg: #f4f2ec; --card: #ffffff; --text: #1b241f; --muted: #747b74; --line: #e8e4da;
  --accent: #1f6b4f; --accent-dark: #174f3b; --accent-soft: #e1f0e8;
  --gold: #b98a1e; --gold-soft: #fbf2d8; --note: #fdf6dc;
  --warn: #c2570c; --warn-soft: #fff0e1; --bad: #c62828; --bad-soft: #fde9e7;
  --info: #1d5fbf; --info-soft: #e5eefb; --theke: #6741d9; --theke-soft: #efeafd;
  --shadow: 0 1px 2px rgba(27,36,31,.05), 0 4px 14px rgba(27,36,31,.05);
}
body { -webkit-font-smoothing: antialiased; }
/* Kopf: grünes Band mit Gold-Linie */
header { background: linear-gradient(135deg, #1f6b4f 0%, #174f3b 100%); color: #fff; padding: calc(env(safe-area-inset-top) + 10px) 16px 12px; border-bottom: 3px solid var(--gold); margin-bottom: 12px; backdrop-filter: none; }
header:empty { display: none; }
header .hrow .who { color: rgba(255,255,255,.8); font-weight: 500; }
header .link { color: #fff; opacity: .9; font-size: 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 99px; padding: 4px 12px; }
header h1 { color: #fff; font-size: 26px; letter-spacing: -.3px; }
/* Karten */
.card { border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 16px; }
.fold .fbody > .card, .sheet .card .card { border: 0; box-shadow: none; }
.label { font-size: 11.5px; font-weight: 700; letter-spacing: .7px; color: #5d665f; margin: 14px 4px 6px; }
.card .label { margin: 0 0 6px; }
.sub { color: var(--muted); }
/* Signal-Karten: links farbiger Balken */
.card.warn { background: var(--warn-soft); border-color: #f6d3b3; border-left: 5px solid var(--warn); }
.card.note { background: var(--note); border-color: #eedfa6; border-left: 5px solid var(--gold); }
.card[style*="--bad-soft"] { border-color: #f3c5c0; border-left: 5px solid var(--bad); }
.banner { border: 1px solid transparent; }
.banner.hol { border-color: #f2d6a4; border-left: 5px solid #e08a00; }
.banner.messe { border-color: #d9ccfa; border-left: 5px solid var(--theke); }
/* Knöpfe */
.btn { border-radius: 13px; box-shadow: 0 2px 6px rgba(31,107,79,.22); transition: transform .06s, filter .15s; }
.btn:active { transform: scale(.985); filter: brightness(.95); }
.btn.ghost { box-shadow: none; border: 1px solid #c7e2d5; }
.btn.gray { box-shadow: none; background: #ebe8e0; }
.btn.danger { box-shadow: 0 2px 6px rgba(198,40,40,.25); }
.link { font-weight: 600; }
.backlink { display: block; margin: -4px 0 6px; padding-left: 0; }
.pill { background: #ece9e1; color: #555c56; }
.chip { border: 1px solid var(--line); color: var(--accent); }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
input, select, textarea { border-color: #dcd8cd; background: #fcfbf8; border-radius: 10px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #9fcdb8; outline-offset: 0; border-color: var(--accent); }
/* Navigation */
nav { background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(27,36,31,.06); }
nav button { color: #8a908a; font-weight: 600; }
nav button .ic { opacity: .5; }
nav button.active { color: var(--accent); }
nav button.active::before { content: ''; position: absolute; top: -6px; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
.badge { background: var(--bad); box-shadow: 0 0 0 2px #fff; }
.days button, .mnav button, .itiles button, .qa2 button, .endchips button, .ktabs button { border: 1px solid var(--line); box-shadow: var(--shadow); }
.days button.sel { border-color: var(--accent); }
.days button.td { outline: 2px solid var(--gold); }
.segs { background: #e9e5db; }
.mhead, .tablewrap { border: 1px solid var(--line); box-shadow: var(--shadow); }
.ampel span { border: 1px solid #c7e2d5; }
.ampel span.bad { border-color: #f3c5c0; }
/* Dienst-Karte hervorheben */
.hero { border-top: 4px solid var(--accent); }
.hero.on { box-shadow: var(--shadow); border-top-color: var(--gold); background: linear-gradient(#fffdf4, #fff 60px); }
.sheet { background: var(--bg); }
.sheet h3 { font-size: 20px; }
.fab { background: var(--gold); color: #fff; }
.toast { background: rgba(27,36,31,.92); }
.login .brand { color: var(--accent-dark); }
.mplan thead th, .mplan thead th.stick { background: var(--accent); }
.mwrap.isnew > .card { box-shadow: inset 5px 0 0 var(--accent), var(--shadow); }
.fold > summary { font-weight: 700; }
.facts { background: var(--gold-soft); }

/* ================= Pinnwand ================= */
.pinsum { cursor: pointer; border-left: 5px solid var(--info); }
.pinsum.hot { border-left-color: var(--bad); background: #fffaf9; }
.pinstats { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.pinstats .st { font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #ece9e1; color: #555c56; }
.pinstats .st.new { background: var(--info-soft); color: var(--info); }
.pinstats .st.prio { background: var(--bad-soft); color: var(--bad); }
.pinstats .st.poll { background: var(--theke-soft); color: var(--theke); }
.pinline { font-size: 14px; padding: 3px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcard { position: relative; border-left: 5px solid #9aa39c; }
.bcard.prio { border-left-color: var(--bad) !important; background: #fffaf9; }
.bcard.done { opacity: .7; border-left-color: #c9cdc8 !important; }
.bcard .newtag { position: absolute; top: -7px; right: 12px; background: var(--info); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.bcard.k-todo { border-left-color: #4b6b8a; } .bcard.k-kasse { border-left-color: #0e8a8a; } .bcard.k-wunsch { border-left-color: #d9730d; }
.bcard.k-defekt { border-left-color: #c62828; } .bcard.k-einkauf { border-left-color: #8a5a2b; } .bcard.k-idee { border-left-color: #c9a100; } .bcard.k-poll { border-left-color: var(--theke); }
.bhead { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.btag { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #ece9e1; color: #555c56; }
.btag.k-todo { background: #e6eef6; color: #33536f; } .btag.k-kasse { background: #dff3f3; color: #0b6b6b; } .btag.k-wunsch { background: #ffeeda; color: #a9560a; }
.btag.k-defekt { background: var(--bad-soft); color: var(--bad); } .btag.k-einkauf { background: #f3e8dc; color: #6f4720; } .btag.k-idee { background: #fbf2c9; color: #7a6200; } .btag.k-poll { background: var(--theke-soft); color: var(--theke); }
.btag.prio { background: var(--bad); color: #fff; } .btag.doing { background: var(--info-soft); color: var(--info); } .btag.ok { background: var(--accent-soft); color: var(--accent); }
.btitle { font-size: 16.5px; font-weight: 700; line-height: 1.3; }
.btext { margin-top: 4px; white-space: pre-wrap; color: #3d463f; font-size: 15px; }
.bmeta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.bact { display: flex; gap: 8px; margin-top: 6px; }
.bact .btn { margin: 0; }
.bcom { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 8px; }
.bc { padding: 6px 0; font-size: 14.5px; border-bottom: 1px dashed var(--line); }
.bextra { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; }
.bextra .link { font-size: 13px; padding-left: 0; }
.popts { display: grid; gap: 7px; margin-top: 10px; }
.popt { position: relative; overflow: hidden; text-align: left; border: 1.5px solid #d9ccfa; background: #fff; border-radius: 12px; padding: 10px 12px; font: inherit; cursor: pointer; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; color: var(--text); }
.popt .pbar { position: absolute; inset: 0 auto 0 0; background: var(--theke-soft); z-index: 0; }
.popt > span:not(.pbar) { position: relative; z-index: 1; }
.popt .ptxt { font-weight: 600; } .popt .pnum { font-weight: 700; color: var(--theke); font-variant-numeric: tabular-nums; }
.popt .pnames { flex: 0 0 100%; font-size: 12px; color: var(--muted); }
.popt.sel { border-color: var(--theke); box-shadow: 0 0 0 2px #d9ccfa; }
.popt:disabled { cursor: default; opacity: 1; }
.kindpick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kindpick button { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 13px; padding: 9px 10px; font: inherit; cursor: pointer; display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: center; }
.kindpick button span { font-size: 22px; grid-row: span 2; }
.kindpick button i { font-style: normal; font-size: 11.5px; color: var(--muted); line-height: 1.2; }
.kindpick button.on { border-color: var(--accent); background: var(--accent-soft); }
.fold .fbody > .bcard { border-radius: 0; border-top: 1px solid var(--line); border-left: 0 !important; padding: 12px 0 4px; margin-top: 6px; opacity: 1; }
.fold .fbody > .bcard:first-child { border-top: 0; margin-top: 0; }
/* Pinnwand als Listen */
.blist { border-left: 5px solid #9aa39c; padding: 12px 14px; }
.blist.k-todo { border-left-color: #4b6b8a; } .blist.k-kasse { border-left-color: #0e8a8a; } .blist.k-wunsch { border-left-color: #d9730d; }
.blist.k-defekt { border-left-color: #c62828; } .blist.k-einkauf { border-left-color: #8a5a2b; } .blist.k-idee { border-left-color: #c9a100; }
.blhead { display: flex; justify-content: space-between; align-items: center; font-size: 17px; margin-bottom: 4px; }
.blrow { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); transition: opacity .3s, transform .3s; }
.blrow.going { opacity: 0; transform: translateX(30px); }
.blrow.prio .bltxt { color: var(--bad); font-weight: 700; }
.blrow.done { align-items: center; }
.blrow.done .bltxt { color: var(--muted); text-decoration: line-through; text-decoration-color: #c9cdc8; }
.blchk { width: 26px; height: 26px; flex-shrink: 0; accent-color: var(--accent); margin: 1px 0 0; cursor: pointer; }
.bltxt { flex: 1; font-size: 16px; line-height: 1.3; cursor: pointer; min-width: 0; overflow-wrap: anywhere; }
.blmeta { display: block; font-size: 12px; color: var(--muted); font-weight: 400; text-decoration: none; margin-top: 2px; }
.blmore { color: var(--muted); font-size: 12px; padding: 4px 2px; }
.bldet { background: #faf8f3; border-radius: 10px; padding: 8px 10px; margin: 0 0 8px 36px; }
.blempty { padding: 4px 0 2px; font-size: 13px; }
.bladd { display: flex; gap: 8px; margin-top: 8px; }
.bladd input { flex: 1; min-width: 0; padding: 9px 10px; }
.bladd .btn { width: 46px; margin: 0; padding: 0; font-size: 22px; flex-shrink: 0; }
.bladdlink { display: block; font-size: 13px; padding: 8px 0 0; border-top: 1px solid var(--line); width: 100%; text-align: left; color: var(--muted); }
header .acbtn { background: rgba(255,255,255,.12); border: 0; color: rgba(255,255,255,.92); font: inherit; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 99px; cursor: pointer; }
td.c-aus { background: var(--warn-soft); color: var(--warn); }
.cal.c-aus { background: var(--warn-soft); color: var(--warn); }

/* Schicht-Übersicht (3 Tage) */
.bnav { display: flex; align-items: center; gap: 10px; margin: 2px 0 6px; }
.bnav b { flex: 1; text-align: center; font-size: 17px; color: var(--accent); }
.bnav > button:not(.link) { border: 0; background: #fff; border-radius: 10px; width: 40px; height: 34px; font-size: 20px; color: var(--accent); cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 4px; }
.bhead { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 4px 0 6px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.bhead > div { text-align: center; font-size: 13px; color: var(--muted); cursor: pointer; line-height: 1.2; }
.bhead > div b { display: block; font-size: 22px; font-weight: 600; color: var(--text); }
.bhead > div.td, .bhead > div.td b { color: var(--accent); }
.bhead > div.td b::after { content: ''; display: block; width: 6px; height: 6px; border-radius: 3px; background: var(--accent); margin: 2px auto 0; }
.bname { font-size: 15px; margin: 8px 2px 4px; color: var(--text); }
.bcol { display: flex; flex-direction: column; gap: 5px; }
.sb { border-radius: 10px; padding: 7px 8px; min-height: 64px; font-size: 13px; line-height: 1.3; cursor: pointer; display: flex; flex-direction: column; gap: 1px; overflow: hidden; }
.sb span { font-size: 12px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb b { font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.sb i { font-style: normal; font-size: 11.5px; margin-top: auto; padding-top: 3px; }
.sb.plan { background: #e9e6dd; color: #2b332e; }
.sb.done { background: var(--accent); color: #fff; }
.sb.live { background: #e9e6dd; color: #2b332e; box-shadow: inset 0 0 0 2px var(--accent); }
.sb.live i { color: var(--accent); font-weight: 600; }
.sb.pend { background: var(--gold); color: #fff; }
.sb.open { background: var(--bad); color: #fff; }
.sb.out { background: var(--bad-soft); color: var(--bad); }
.sb.away { background: #e6eef6; color: #3d5a75; justify-content: center; }
.sb.empty { background: transparent; border: 1px dashed var(--line); cursor: default; }
.sb.me { outline: 2px solid rgba(31,107,79,.25); outline-offset: 1px; }
.blegend { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); margin: 14px 2px 4px; align-items: center; }
.blegend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: -6px; vertical-align: -1px; }
.lg.plan { background: #e9e6dd; } .lg.done { background: var(--accent); } .lg.live { background: #e9e6dd; box-shadow: inset 0 0 0 2px var(--accent); } .lg.pend { background: var(--gold); } .lg.open { background: var(--bad); }

/* Tausch freigeben (Karten) */
.trbox { text-align: center; color: var(--muted); font-size: 14px; margin: 4px 0 10px; }
.trwho { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 10px 2px 6px; }
.trwho .av { width: 30px; height: 30px; border-radius: 15px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.trcard { display: flex; align-items: center; background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.07); padding: 12px 14px; gap: 14px; }
.trcard .dnum { font-size: 34px; font-weight: 700; line-height: 1; }
.trcard .dwd { font-size: 13px; color: var(--muted); line-height: 1.25; }
.trcard .sep { width: 1px; align-self: stretch; background: var(--line); }
.trcard .info b { font-size: 16px; display: block; }
.trcard .info span { font-size: 13px; color: var(--muted); }
.trswap { text-align: center; font-size: 24px; color: var(--accent); margin: 6px 0 0; }
.trbtns { display: flex; gap: 8px; margin-top: 14px; }
.trbtns .btn { flex: 1; margin: 0; }

/* Startseite: Kacheln + Nachrichten-Bereiche */
.itiles.three { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.itiles.three button { position: relative; padding: 14px 4px 10px; font-size: 13.5px; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.06); color: var(--text); }
.itiles.three button .ii { font-size: 28px; line-height: 1.1; }
.itiles.three button .sub { font-size: 11px; line-height: 1.2; min-height: 26px; }
.tbadge { position: absolute; top: 6px; right: 6px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
.tbadge.st { position: static; display: inline-block; height: auto; padding: 2px 8px; }
.tbadge.wait { background: var(--gold); }
.callbtn { display: block; text-align: center; text-decoration: none; background: var(--gold); color: #fff; margin-top: 10px; }
.chcard { cursor: pointer; border-left: 4px solid var(--line); }
.chcard.hot { border-left-color: var(--bad); }
.chhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 16px; }
.chprev { margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 7-Tage-Übersicht: schmale Kacheln */
.bgrid { grid-template-columns: repeat(7, 1fr); gap: 3px; }
.bhead > div { font-size: 11.5px; }
.bhead > div b { font-size: 17px; }
.bnav b { font-size: 15px; }
.bname { margin: 7px 2px 3px; font-size: 14px; }
.sb { border-radius: 7px; padding: 4px 1px; min-height: 42px; align-items: center; justify-content: center; text-align: center; gap: 0; }
.sb b { font-size: 10.5px; line-height: 1.25; font-weight: 600; letter-spacing: -.2px; }
.sb span { font-size: 10px; }
.sb i { font-size: 10px; margin-top: 1px; padding-top: 0; }
.sb.me { outline-width: 1.5px; outline-offset: 0; }
@media (min-width: 600px) { .sb b { font-size: 13px; } .sb { min-height: 50px; } }
/* Früher Feierabend (bis 21 Uhr) = gelb */
.sb.early { background: #fbe9a6; color: #6b4e00; }
.sb.live.early { box-shadow: inset 0 0 0 2px var(--accent); }
.lg.early { background: #fbe9a6; }
td.c-work.early, .mplan tr.we td.c-work.early, .cal.c-work.early { background: #fbe9a6; color: #6b4e00; }
.mlegend .c-early { background: #fbe9a6; color: #6b4e00; }
.row.earlyrow { background: #fdf3cd; margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 8px; }
.pill.early { background: #f7dc7a; color: #5e4500; }
.sb.empty { cursor: pointer; }
.sb.empty span { color: var(--muted); font-size: 10.5px; opacity: .8; }

/* Plan-Entwurf */
.card.draft { border: 2px solid var(--gold); background: var(--gold-soft); }
.dper { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 8px 0 4px; }
.dper span { background: #fff; border-radius: 8px; padding: 3px 8px; font-size: 13px; }
.dwarn { margin-top: 6px; background: #fff; border-radius: 10px; padding: 8px 10px; }
.dwarn summary { font-weight: 600; cursor: pointer; font-size: 14px; }
.dwarn .sub { margin-top: 4px; }
.sb.miss { background: #fff; color: var(--bad); box-shadow: inset 0 0 0 2px var(--bad); }
.sb.miss i { font-weight: 700; }
.lg.miss { background: #fff; box-shadow: inset 0 0 0 2px var(--bad); }
.laterow { align-items: center; gap: 8px; }

/* Unterschriftsfeld */
.sigwrap { position: relative; margin-top: 6px; border: 2px dashed var(--line); border-radius: 12px; background: #fff; }
.sigwrap canvas { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; touch-action: none; cursor: crosshair; border-radius: 10px; }
.sigwrap .sigline { position: absolute; left: 12px; right: 12px; bottom: 18%; border-bottom: 1px solid #bbb; color: #aaa; font-size: 12px; pointer-events: none; padding-bottom: 2px; }
.sigwrap.has { border-style: solid; border-color: var(--accent); }
.sigwrap.has .sigline { color: transparent; }
