/* Handy-Ansicht für Mitarbeiter: groß, klar, wenig Text */
body { font-size: 18px; }
.top { background: var(--steel); color: #fff; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 4px solid var(--accent); position: sticky; top: 0; z-index: 10; }
.top .brand { font-weight: 700; font-size: 1rem; letter-spacing: .02em; }
.top .brand small { display: block; font-weight: 400; opacity: .8; font-size: .8rem; }
.top button { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); border-radius: 8px; padding: 6px 12px; font-size: .9rem; cursor: pointer; }
main { max-width: 560px; margin: 0 auto; padding: 16px 16px 60px; }
h1 { font-size: 1.5rem; margin: 6px 0 14px; }
h2 { font-size: 1.2rem; margin: 22px 0 10px; }

.back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--primary); font-weight: 700; font-size: 1.05rem; padding: 6px 0; cursor: pointer; }

.card { background: var(--card); border-radius: 14px; padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.today-card .big { font-size: 1.8rem; font-weight: 800; }
.today-card .sub { color: var(--muted); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  min-height: 112px; border-radius: 16px; border: 2px solid var(--line); background: #fff; font-size: 1.1rem; font-weight: 700; cursor: pointer; padding: 10px; color: var(--text); }
.tile .ico { font-size: 2.1rem; line-height: 1; }
.tile .tile-sub { font-size: .85rem; font-weight: 600; color: var(--muted); }
.tile-main { grid-column: 1 / -1; background: var(--primary); border-color: var(--primary); color: #fff; min-height: 96px; flex-direction: row; font-size: 1.3rem; }
.tile:active { transform: scale(.98); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 700; overflow-wrap: anywhere; }
.list .sub { color: var(--muted); font-size: .9rem; }
.list .dur { font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.list button.edit { border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 12px; font-weight: 700; cursor: pointer; }
.list li.click { cursor: pointer; }

.big-btn { width: 100%; padding: 18px; font-size: 1.2rem; border-radius: 14px; margin-top: 8px; }
.row-btns { display: flex; gap: 10px; }
.row-btns > * { flex: 1; }

/* Formular Arbeitszeit */
.f-label { display: block; font-weight: 700; margin: 18px 0 8px; font-size: 1.05rem; }
.date-row { display: flex; align-items: stretch; gap: 8px; }
.date-row button { flex: 0 0 56px; border: 2px solid var(--line); background: #fff; border-radius: 12px; font-size: 1.4rem; cursor: pointer; }
.date-box { flex: 1; position: relative; border: 2px solid var(--line); border-radius: 12px; background: #fff; padding: 10px 12px; text-align: center; font-weight: 700; }
.date-box small { display: block; color: var(--muted); font-weight: 500; }
.date-box input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.picker-btn { width: 100%; text-align: left; border: 2px solid var(--line); border-radius: 12px; background: #fff; padding: 14px; cursor: pointer; font-size: 1.05rem; }
.picker-btn.empty { color: var(--muted); border-style: dashed; }
.picker-btn .sub { display: block; color: var(--muted); font-size: .9rem; }

.dur-row { display: flex; align-items: center; gap: 10px; }
.stepper { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.stepper button { width: 58px; height: 62px; border: 0; background: #eef1f4; font-size: 1.8rem; font-weight: 700; cursor: pointer; }
.stepper output { width: 64px; text-align: center; font-size: 1.8rem; font-weight: 800; }
.dur-unit { font-weight: 700; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 16px; font-weight: 700; cursor: pointer; min-width: 64px; }
.chip.on { background: var(--steel); border-color: var(--steel); color: #fff; }
.text-in { width: 100%; padding: 14px; border: 2px solid var(--line); border-radius: 12px; font-size: 1.05rem; background: #fff; }
.pause-box { background: #f7f8fa; border: 2px solid var(--line); border-radius: 14px; padding: 4px 14px 14px; margin-top: 14px; }
.pause-box .f-label { margin-top: 12px; }
.pause-info { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; color: var(--muted); }
.pause-info button { background: none; border: 0; color: var(--primary); font-weight: 700; cursor: pointer; font-size: 1rem; }
.note-small { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }

/* Auswahl Auftrag */
.sheet { position: fixed; inset: 0; background: var(--bg); z-index: 50; display: flex; flex-direction: column; }
.sheet header { background: var(--steel); color: #fff; padding: 12px 16px; display: flex; gap: 10px; align-items: center; border-bottom: 4px solid var(--accent); }
.sheet header h2 { margin: 0; flex: 1; font-size: 1.15rem; }
.sheet header button { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.sheet .search { padding: 12px 16px; }
.sheet .scroll { overflow: auto; flex: 1; padding: 0 16px 30px; }
.sheet .grp { font-weight: 700; color: var(--muted); margin: 14px 0 6px; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
.opt { width: 100%; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; }
.opt .title { font-weight: 700; display: block; }
.opt .sub { color: var(--muted); font-size: .9rem; }

/* Erfolg */
.success { text-align: center; padding: 30px 10px; }
.success .check-ico { width: 96px; height: 96px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 3.4rem; display: flex; align-items: center; justify-content: center; margin: 10px auto 16px; }
.success h1 { color: var(--ok); }

/* Kennzahlen */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { background: #fff; border-radius: 12px; padding: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.kpi .lbl { color: var(--muted); font-size: .85rem; font-weight: 600; }
.kpi .val { font-size: 1.4rem; font-weight: 800; }
.kpi .val small { font-size: .85rem; font-weight: 600; color: var(--muted); }
.month-nav { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 14px; }
.month-nav button { border: 2px solid var(--line); background: #fff; border-radius: 10px; width: 52px; height: 46px; font-size: 1.3rem; cursor: pointer; }
.month-nav strong { font-size: 1.2rem; }
.day-row.weekend .title { color: var(--muted); }
.info-box { background: var(--info-bg); border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.warn-box { background: var(--warn-bg); border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.closed-box { background: #eceef1; border-radius: 12px; padding: 12px 14px; margin: 10px 0; color: var(--steel); font-weight: 600; }

/* Anmeldung */
.login { max-width: 380px; margin: 0 auto; padding: 28px 18px; text-align: center; }
.login .logo { width: 72px; height: 72px; margin: 0 auto 10px; display: block; }
.login h1 { margin: 0; }
.login .firm { color: var(--muted); margin: 2px 0 22px; }
.login input.user { text-align: center; font-size: 1.2rem; padding: 14px; border: 2px solid var(--line); border-radius: 12px; width: 100%; }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 22px 0 10px; height: 22px; }
.pin-dots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--steel); display: block; }
.pin-dots i.on { background: var(--steel); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.keypad button { height: 68px; font-size: 1.7rem; font-weight: 700; border-radius: 16px; border: 2px solid var(--line); background: #fff; cursor: pointer; }
.keypad button.ok { background: var(--primary); color: #fff; border-color: var(--primary); font-size: 1.2rem; }
.keypad button:active { background: #e6e9ed; }
.list .link-btn { padding: 6px 0; text-align: left; }
.link-btn { background: none; border: 0; color: var(--primary); font-weight: 600; cursor: pointer; padding: 8px; font-size: 1rem; }
.login .office { display: inline-block; margin-top: 26px; color: var(--muted); font-size: .95rem; }

/* Kalender */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.cal-h { text-align: center; font-weight: 700; font-size: .8rem; color: var(--muted); padding: 4px 0; }
.cal-cell { position: relative; min-height: 54px; border: 2px solid transparent; border-radius: 10px; background: #f7f8fa; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start; padding: 4px 0; cursor: pointer; font: inherit; color: var(--text); }
.cal-cell.blank { background: transparent; cursor: default; }
.cal-cell .n { font-weight: 700; font-size: 1rem; }
.cal-cell .m { font-size: .72rem; font-weight: 800; margin-top: 2px; }
.cal-cell.we { background: #eceef1; color: var(--muted); }
.cal-cell.ferien { box-shadow: inset 0 -5px 0 #f4c542; }
.cal-cell.hol { background: var(--err-bg); color: var(--err); }
.cal-cell.pfl { background: #ece3f7; color: #5b2f91; }
.cal-cell.url { background: var(--ok-bg); color: var(--ok); }
.cal-cell.krank { background: #f3ecfb; color: #6b3fa0; }
.cal-cell.pend { border: 2px dashed var(--ok); }
.cal-cell.today { border: 2px solid var(--primary); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 12px 2px; font-size: .85rem; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 16px; height: 16px; border-radius: 4px; display: inline-block; background: #f7f8fa; }
.lg.hol { background: var(--err-bg); } .lg.ferien { background: #f4c542; } .lg.pfl { background: #ece3f7; }
.lg.url { background: var(--ok-bg); } .lg.pend { border: 2px dashed var(--ok); } .lg.krank { background: #f3ecfb; }
.dlg-body ul { margin: 0; padding-left: 1.2em; } .dlg-body li { margin: 4px 0; }
.cal-cell .kol { font-size: .68rem; font-weight: 700; color: var(--steel); margin-top: auto; }
.cal-cell.voll { border: 2px solid var(--err); }
.lg.voll { border: 2px solid var(--err); background: #fff; }
.reject-box { background: var(--err-bg); color: var(--err); border-radius: 8px; padding: 8px 10px; margin-top: 6px; font-size: .95rem; }
.kg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 6px; }
.kg-btn { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; color: var(--text); cursor: pointer; }
.kg-btn span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.kg-btn strong { font-size: 1.35rem; }
.kg-btn.next { background: var(--primary); border-color: var(--primary); color: #fff; }
.kg-btn.next span { color: #dce8f7; }
.kg-btn.done { background: var(--ok-bg); border-color: #b9dfc3; }
.kg-btn:disabled { opacity: .45; cursor: default; }
.kg-sum { color: var(--text); font-size: .95rem; margin-top: 4px; line-height: 1.5; }
.day-times { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; background: #f7f8fa; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: .95rem; }
.day-times button { background: none; border: 0; color: var(--primary); font-weight: 700; cursor: pointer; font-size: 1rem; white-space: nowrap; }
.times input[type=time] { font-size: 1.5rem; padding: 10px; }
.vb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.vb label { min-width: 0; }
.vb label span { display: block; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.vb input { width: 100%; min-width: 0; font-size: 1.3rem; padding: 10px; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.vb-calc { font-size: 1.3rem; font-weight: 800; margin: 10px 0 0; }
