@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --black:   #0a0a0a;
  --dark:    #1a1a1a;
  --grey1:   #333333;
  --grey2:   #666666;
  --grey3:   #999999;
  --grey4:   #cccccc;
  --grey5:   #e8e8e8;
  --grey6:   #f4f4f4;
  --white:   #ffffff;
  --red:     #d32f2f;
  --green:   #2e7d32;
  --orange:  #e65100;
  --sidebar: 224px;
  --nav-h:   60px;
  --r:       8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 15px; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--grey6); color: var(--black); min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ── LAYOUT ── */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar); background: var(--black); position: fixed;
  top: 0; left: 0; bottom: 0; z-index: 100; display: flex; flex-direction: column;
  overflow-y: auto;
}
.sb-logo { padding: 22px 20px 16px; border-bottom: 1px solid rgba(255,255,255,.07); }
.sb-logo-text { font-size: 1.45rem; font-weight: 800; color: var(--white); letter-spacing: -.03em; line-height: 1; }
.sb-logo-sub { font-size: .6rem; color: rgba(255,255,255,.3); margin-top: 4px; font-weight: 500; text-transform: uppercase; letter-spacing: .09em; line-height: 1.4; }
.sb-user { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; gap: 12px; }
.sb-av { width: 36px; height: 36px; background: rgba(255,255,255,.12); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; flex-shrink: 0; border: 1.5px solid rgba(255,255,255,.18); }
.sb-name { font-size: .8rem; font-weight: 600; color: var(--white); }
.sb-id { font-size: .63rem; color: rgba(255,255,255,.32); margin-top: 1px; }
.sb-nav { padding: 12px 10px; flex: 1; }
.sb-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-radius: 9px;
  font-size: .8rem; font-weight: 500; color: rgba(255,255,255,.42);
  transition: all .15s; cursor: pointer; text-decoration: none; border: none; background: none;
  width: 100%; margin-bottom: 2px; position: relative;
}
.sb-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .7; transition: opacity .15s; }
.sb-item:hover { color: rgba(255,255,255,.85); background: rgba(255,255,255,.06); }
.sb-item:hover svg { opacity: 1; }
.sb-item.active { color: var(--white); background: rgba(255,255,255,.1); font-weight: 600; }
.sb-item.active svg { opacity: 1; }
.sb-item.active::before { content:''; position:absolute; left:0; top:20%; bottom:20%; width:3px; background:var(--green); border-radius: 0 3px 3px 0; }
.sb-badge { margin-left: auto; background: var(--red); color: #fff; font-size: .58rem; font-weight: 700; padding: 2px 7px; border-radius: 10px; }
.sb-footer { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.06); }
.sb-footer a { font-size: .7rem; color: rgba(255,255,255,.28); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.sb-footer a:hover { color: rgba(255,255,255,.6); }
.sb-footer a svg { width: 13px; height: 13px; }

.main { margin-left: var(--sidebar); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

/* Mobile Bottom Nav */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: var(--nav-h); background: #111; display: none; z-index: 200; border-top: 1px solid rgba(255,255,255,.15); }
.bn-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .57rem; font-weight: 600; color: rgba(255,255,255,.5); text-decoration: none; text-transform: uppercase; letter-spacing: .05em; padding-bottom: 2px; transition: color .15s; position: relative; }
.bn-item svg { width: 20px; height: 20px; }
.bn-item.active { color: #fff; }
.bn-item.active::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 2px; background: var(--green); border-radius: 0 0 2px 2px; }

@media (max-width: 767px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding-bottom: var(--nav-h); }
  .bottom-nav { display: flex; }
}

/* ── TOPBAR (legacy – kept for compatibility) ── */
.topbar {
  background: var(--white); border-bottom: 1px solid var(--grey5);
  padding: 10px 16px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.topbar-left .greeting { font-size: .8rem; color: var(--grey2); font-weight: 400; }
.topbar-left .name { font-size: .95rem; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-logo { font-size: 1rem; font-weight: 800; letter-spacing: -.01em; }

/* ── PAGE HEADER (unified photo hero, all pages) ── */
.page-header {
  background: url('bg.jpg') center 38% / cover no-repeat;
  position: relative; flex-shrink: 0;
  padding: 20px 18px 26px;
}
.ph-ov {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.40) 100%);
}
.ph-in {
  position: relative; z-index: 1;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.ph-left { flex: 1; min-width: 0; }
.ph-ey {
  font-size: .58rem; color: rgba(255,255,255,.4); font-weight: 600;
  text-transform: uppercase; letter-spacing: .13em; margin-bottom: 7px;
}
.ph-tit {
  font-size: 1.35rem; font-weight: 800; color: #fff;
  line-height: 1.15; letter-spacing: -.025em; min-height: 1.2em;
}
.ph-sub { font-size: .74rem; color: rgba(255,255,255,.5); margin-top: 5px; font-weight: 400; }
.ph-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  flex-shrink: 0; padding-top: 2px;
}
.ph-logo { font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.ph-logout {
  display: flex; align-items: center; gap: 4px; font-size: .66rem; font-weight: 600;
  color: rgba(255,255,255,.55); padding: 5px 11px;
  background: rgba(255,255,255,.1); border-radius: 20px;
  border: 1px solid rgba(255,255,255,.18); transition: all .15s; text-decoration: none;
}
.ph-logout:hover { color: #fff; background: rgba(255,255,255,.2); }
.ph-action {
  display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 700;
  color: #fff; padding: 6px 12px; background: rgba(255,255,255,.15); border-radius: 20px;
  border: 1px solid rgba(255,255,255,.28); transition: all .15s; text-decoration: none;
}
.ph-action:hover { background: rgba(255,255,255,.25); }

/* ── PAGE ── */
.page { max-width: 680px; margin: 0 auto; padding: 12px 14px; }
@media (max-width: 600px) { .page { padding: 8px 10px; } }

/* ── CARDS ── */
.card {
  background: var(--white); border-radius: var(--r);
  border: 1px solid var(--grey5); padding: 14px;
  margin-bottom: 8px; animation: fadeUp .2s both;
}
.card-sm { padding: 12px; }
@keyframes fadeUp { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
.card-label {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--grey3); margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between;
}

/* ── CHECK-IN CARD ── */
.checkin-card {
  background: var(--black); border-radius: var(--r); padding: 20px;
  margin-bottom: 10px; color: var(--white); animation: fadeUp .2s both;
}
.checkin-title { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; opacity: .5; margin-bottom: 12px; }
.checkin-einsatz { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.checkin-sub { font-size: .78rem; opacity: .6; margin-bottom: 16px; }
.checkin-timer { font-size: 2.5rem; font-weight: 300; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-bottom: 16px; }
.checkin-btns { display: flex; gap: 8px; }
.btn-checkin { flex: 1; padding: 12px; background: var(--white); color: var(--black); border: none; border-radius: 6px; font-size: .82rem; font-weight: 700; font-family: inherit; cursor: pointer; transition: opacity .15s; }
.btn-checkin:hover { opacity: .85; }
.btn-checkout { flex: 1; padding: 12px; background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.3); border-radius: 6px; font-size: .82rem; font-weight: 700; font-family: inherit; cursor: pointer; transition: all .15s; }
.btn-checkout:hover { border-color: var(--white); }
.btn-manual { flex: 1; padding: 12px; background: transparent; color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.15); border-radius: 6px; font-size: .78rem; font-weight: 600; font-family: inherit; cursor: pointer; transition: all .15s; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.btn-manual:hover { color: var(--white); border-color: rgba(255,255,255,.3); }

/* ── EINSATZ ITEMS ── */
.einsatz-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--grey5);
}
.einsatz-item:last-child { border: none; padding-bottom: 0; }
.einsatz-date-box {
  width: 38px; height: 38px; background: var(--grey6); border-radius: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0; border: 1px solid var(--grey5);
}
.einsatz-date-box .day { font-size: .75rem; font-weight: 800; line-height: 1; }
.einsatz-date-box .mon { font-size: .55rem; font-weight: 600; color: var(--grey3); text-transform: uppercase; }
.einsatz-info { flex: 1; min-width: 0; }
.einsatz-name { font-size: .88rem; font-weight: 600; }
.einsatz-meta { font-size: .72rem; color: var(--grey3); margin-top: 2px; }
.einsatz-status { font-size: .65rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.es-offen   { background: var(--grey6); color: var(--grey2); border: 1px solid var(--grey5); }
.es-aktiv   { background: var(--black); color: var(--white); }
.es-done    { background: #e8f5e9; color: var(--green); }

/* ── MINI CALENDAR ── */
.month-cal { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }
.cal-hdr { font-size: .58rem; font-weight: 700; text-transform: uppercase; text-align: center; color: var(--grey4); padding: 3px 0; letter-spacing: .04em; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 600; border-radius: 4px;
  cursor: pointer; transition: all .15s; text-decoration: none; color: var(--black);
  position: relative;
}
.cal-day.empty { visibility: hidden; }
.cal-day.weekend { color: var(--grey4); cursor: default; }
.cal-day.filled { background: var(--black); color: var(--white); }
.cal-day.missing { color: var(--red); background: #fef2f2; }
.cal-day.missing::after { content:''; position: absolute; top: 2px; right: 2px; width: 4px; height: 4px; background: var(--red); border-radius: 50%; }
.cal-day.today { box-shadow: 0 0 0 1.5px var(--black); }
.cal-day.future { color: var(--grey5); cursor: default; }
.cal-day.holiday { color: var(--grey4); font-style: italic; cursor: default; }
.cal-legend { display: flex; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.cal-legend-item { display: flex; align-items: center; gap: 5px; font-size: .65rem; color: var(--grey3); font-weight: 500; }
.cal-legend-dot { width: 8px; height: 8px; border-radius: 2px; }

/* ── STATS ── */
.stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 10px; }
.stat { background: var(--white); border: 1px solid var(--grey5); border-radius: var(--r); padding: 12px; text-align: center; }
.stat .v { font-size: 1.5rem; font-weight: 800; color: var(--black); line-height: 1.1; }
.stat .l { font-size: .6rem; color: var(--grey3); margin-top: 3px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.stat.missing .v { color: var(--red); }

/* ── TÄTIGKEIT SELECTOR ── */
.t-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; }
.t-btn {
  padding: 14px 8px; border: 1px solid var(--grey5); border-radius: 6px;
  background: var(--white); cursor: pointer; text-align: center;
  transition: all .15s; font-family: inherit; font-weight: 600; font-size: .82rem; color: var(--grey1);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.t-btn .ico { font-size: 1.4rem; }
.t-btn:hover { border-color: var(--grey3); }
.t-btn.sel { background: var(--black); color: var(--white); border-color: var(--black); }
.t-custom { grid-column: span 2; flex-direction: row; justify-content: center; color: var(--grey3); font-size: .78rem; border-style: dashed; }
.t-custom:hover { color: var(--black); border-color: var(--grey3); border-style: dashed; }
.t-custom.sel { border-style: solid; }

/* ── TYPE PILLS ── */
.type-row { display: flex; gap: 6px; flex-wrap: wrap; }
.type-pill {
  padding: 7px 14px; border: 1px solid var(--grey5); border-radius: 20px;
  font-size: .75rem; font-weight: 600; cursor: pointer; transition: all .15s;
  background: var(--white); color: var(--grey2); display: flex; align-items: center; gap: 5px;
}
.type-pill:hover { border-color: var(--grey3); color: var(--black); }
.type-pill.sel { background: var(--black); color: var(--white); border-color: var(--black); }

/* ── TIME PICKER (iOS style) ── */
.time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.time-block { background: var(--grey6); border-radius: 8px; padding: 12px; }
.time-block label { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--grey3); display: block; margin-bottom: 6px; }
.time-block input[type="time"] {
  width: 100%; border: none; background: transparent; font-size: 1.3rem; font-weight: 300;
  font-family: 'Inter', sans-serif; color: var(--black); outline: none;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
  -webkit-appearance: none;
}
.time-total {
  background: var(--black); color: var(--white); border-radius: 8px;
  padding: 14px 16px; display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px;
}
.time-total .t { font-size: 1.8rem; font-weight: 300; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.time-total .d { font-size: .72rem; opacity: .6; text-align: right; line-height: 1.7; }
.pause-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--grey5); font-size: .82rem; }
.pause-row span { color: var(--grey2); font-size: .78rem; }
.pause-stepper { display: flex; align-items: center; gap: 10px; }
.pause-btn { width: 28px; height: 28px; border: 1px solid var(--grey5); border-radius: 50%; background: var(--white); font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s; font-family: inherit; }
.pause-btn:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.pause-val { font-size: .88rem; font-weight: 700; min-width: 36px; text-align: center; }

/* ── FORM ── */
.form-group { margin-bottom: 12px; }
.form-label { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--grey3); margin-bottom: 5px; display: block; }
.form-control {
  width: 100%; padding: 10px 12px; border: 1px solid var(--grey5);
  border-radius: 6px; font-size: .9rem; font-family: inherit;
  color: var(--black); background: var(--white); transition: border-color .15s; -webkit-appearance: none;
}
.form-control:focus { outline: none; border-color: var(--grey3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 18px; font-size: .8rem; font-family: inherit; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; border-radius: 6px; transition: all .15s; text-decoration: none;
}
.btn-black   { background: var(--black);  color: var(--white); border-color: var(--black); }
.btn-black:hover { background: var(--grey1); color: var(--white); }
.btn-green   { background: var(--green);  color: var(--white); border-color: var(--green); }
.btn-green:hover { background: #1b5e20; }
.btn-green:active { transform: scale(.97); }
.btn-outline { background: var(--white); color: var(--black); border-color: var(--grey5); }
.btn-outline:hover { border-color: var(--grey3); }
.btn-danger  { background: var(--red);   color: var(--white); border-color: var(--red); }
.btn-danger:hover { background: #b71c1c; }
.btn-full { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: .74rem; }
.btn-ghost { background: transparent; color: var(--grey3); border-color: var(--grey5); }
.btn-ghost:hover { color: var(--black); border-color: var(--grey4); }

/* ── STUNDEN ANIMATIONS ── */
@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
@keyframes slideUp   { from { opacity:0; transform:translateY(8px);  } to { opacity:1; transform:translateY(0); } }
@keyframes popIn     { 0%{opacity:0;transform:scale(.92)} 60%{transform:scale(1.03)} 100%{opacity:1;transform:scale(1)} }
@keyframes successPulse { 0%{box-shadow:0 0 0 0 rgba(46,125,50,.5)} 70%{box-shadow:0 0 0 10px rgba(46,125,50,0)} 100%{box-shadow:0 0 0 0 rgba(46,125,50,0)} }
.anim-slide-down { animation: slideDown .22s ease both; }
.anim-slide-up   { animation: slideUp   .22s ease both; }
.anim-pop        { animation: popIn     .25s cubic-bezier(.34,1.56,.64,1) both; }
.anim-success    { animation: successPulse .5s ease; }
.saved-flash     { animation: popIn .3s ease both, successPulse .5s ease .1s; }

/* ── TOGGLE SWITCH ── */
.toggle-row { display:flex; align-items:center; justify-content:space-between; padding:11px 0; border-bottom:1px solid var(--grey5); }
.toggle-row:last-child { border:none; padding-bottom:0; }
.toggle-label { font-size:.85rem; font-weight:500; }
.toggle-sub   { font-size:.7rem; color:var(--grey3); margin-top:1px; }
.toggle { position:relative; width:42px; height:24px; flex-shrink:0; }
.toggle input { opacity:0; width:0; height:0; }
.toggle-slider {
  position:absolute; inset:0; background:var(--grey5); border-radius:24px;
  cursor:pointer; transition:background .2s;
}
.toggle-slider::before {
  content:''; position:absolute; width:18px; height:18px; background:#fff;
  border-radius:50%; left:3px; top:3px; transition:transform .2s;
  box-shadow:0 1px 3px rgba(0,0,0,.2);
}
.toggle input:checked + .toggle-slider { background:var(--green); }
.toggle input:checked + .toggle-slider::before { transform:translateX(18px); }

/* ── ENTRY LIST ── */
.entry-list { }
.entry-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--grey5);
  animation: fadeUp .2s both;
}
.entry-item:last-child { border: none; }
.entry-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.entry-info { flex: 1; min-width: 0; }
.entry-title { font-size: .85rem; font-weight: 600; }
.entry-sub { font-size: .72rem; color: var(--grey3); margin-top: 1px; }
.entry-val { font-size: .85rem; font-weight: 700; flex-shrink: 0; }
.entry-actions { display: flex; gap: 3px; flex-shrink: 0; }
.act-btn { width: 28px; height: 28px; border: 1px solid var(--grey5); border-radius: 5px; background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s; padding: 0; }
.act-btn svg { width: 12px; height: 12px; stroke: var(--grey4); transition: stroke .15s; }
.act-btn.edit:hover { background: var(--black); border-color: var(--black); }
.act-btn.edit:hover svg { stroke: var(--white); }
.act-btn.del:hover { background: var(--red); border-color: var(--red); }
.act-btn.del:hover svg { stroke: var(--white); }

/* ── MODAL ── */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 400; display: flex; align-items: flex-end; }
.modal-sheet { background: var(--white); border-radius: 16px 16px 0 0; width: 100%; max-width: 640px; margin: 0 auto; max-height: 92vh; overflow-y: auto; padding: 20px 18px 32px; animation: slideUp .22s ease; }
@keyframes slideUp { from { transform:translateY(100%); } to { transform:translateY(0); } }
.modal-handle { width: 36px; height: 4px; background: var(--grey5); border-radius: 2px; margin: 0 auto 18px; }
.modal-title { font-size: .95rem; font-weight: 700; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; }
.modal-close { width: 30px; height: 30px; border: 1px solid var(--grey5); border-radius: 50%; background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--grey3); transition: all .15s; }
.modal-close:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* ── CONFIRM ── */
.confirm-bg { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; }
.confirm-box { background: var(--white); border-radius: 12px; padding: 22px 20px; width: 100%; max-width: 320px; animation: scaleIn .18s ease; }
@keyframes scaleIn { from { opacity:0; transform:scale(.95); } to { opacity:1; transform:scale(1); } }
.confirm-box h3 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.confirm-box p { font-size: .82rem; color: var(--grey2); margin-bottom: 18px; line-height: 1.5; }
.confirm-btns { display: flex; gap: 8px; }
.confirm-btns .btn { flex: 1; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 74px; left: 50%; transform: translateX(-50%) translateY(10px);
  background: var(--black); color: var(--white); padding: 10px 20px;
  border-radius: 20px; font-size: .78rem; font-weight: 600;
  opacity: 0; transition: all .22s; pointer-events: none; z-index: 600; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 768px) { .toast { bottom: 20px; } }

/* ── REMINDER MODAL ── */
.reminder-card { background: var(--black); color: var(--white); border-radius: 12px; padding: 24px; }
.reminder-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.reminder-card p { font-size: .82rem; opacity: .7; margin-bottom: 18px; line-height: 1.5; }

/* ── LOGIN ── */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--grey6); }
.login-card { background: var(--white); border-radius: 12px; padding: 32px 24px; width: 100%; max-width: 340px; border: 1px solid var(--grey5); }
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo .big { font-size: 2rem; font-weight: 800; }
.login-logo .sub { font-size: .72rem; color: var(--grey3); margin-top: 4px; }

/* ── MISC ── */
.divider { height: 1px; background: var(--grey5); margin: 12px 0; }
.tag { display: inline-flex; align-items: center; font-size: .65rem; font-weight: 600; padding: 2px 7px; border-radius: 4px; text-transform: uppercase; letter-spacing: .05em; }
.tag-ok   { background: #e8f5e9; color: var(--green); }
.tag-pend { background: var(--grey6); color: var(--grey2); border: 1px solid var(--grey5); }
.tag-red  { background: #fef2f2; color: var(--red); }
.progress { height: 4px; background: var(--grey5); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.progress-fill { height: 100%; background: var(--black); border-radius: 2px; transition: width .4s; }

/* ── KM Secondary ── */
.km-bar { background: var(--grey6); border: 1px solid var(--grey5); border-radius: var(--r); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.km-bar .kv { font-size: 1.1rem; font-weight: 800; }
.km-bar .ks { font-size: .72rem; color: var(--grey3); }

/* ── RANGE TABS ── */
.range-tabs { display: flex; gap: 2px; background: var(--grey6); border-radius: 6px; padding: 2px; width: 100%; }
.range-tab { flex: 1; padding: 5px 2px; border: none; border-radius: 4px; background: transparent; font-size: .63rem; font-weight: 600; cursor: pointer; color: var(--grey3); font-family: inherit; transition: all .15s; white-space: nowrap; }
.range-tab.active { background: var(--white); color: var(--black); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* ── EINSATZ ROW (Dashboard) ── */
.einsatz-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--grey5); }
.einsatz-row:last-child { border: none; padding-bottom: 0; }
.einsatz-date { width: 34px; text-align: center; flex-shrink: 0; }
.einsatz-day { font-size: .56rem; font-weight: 600; color: var(--grey3); text-transform: uppercase; letter-spacing: .04em; }
.einsatz-num { font-size: 1.05rem; font-weight: 800; line-height: 1.1; }
.einsatz-info { flex: 1; min-width: 0; }
.einsatz-title { font-size: .83rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.einsatz-time { font-size: .7rem; color: var(--grey3); margin-top: 1px; }
.einsatz-badge { font-size: .6rem; font-weight: 700; padding: 3px 8px; background: var(--grey6); color: var(--grey2); border-radius: 4px; white-space: nowrap; border: 1px solid var(--grey5); text-transform: uppercase; letter-spacing: .04em; }
.einsatz-badge.soon { background: var(--black); color: var(--white); border-color: var(--black); }

/* ── MISSING CARD ── */
.missing-card { background: #fef9ec; border-color: #f5d97e; }

/* ── MINI CALENDAR NEW ── */
.mc-hd { font-size: .57rem; font-weight: 700; text-transform: uppercase; text-align: center; color: var(--grey4); padding: 3px 0; letter-spacing: .04em; }
.mc-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: .67rem; font-weight: 600; border-radius: 4px; cursor: pointer; transition: all .15s; text-decoration: none; color: var(--black); position: relative; }
.mc-day.empty { visibility: hidden; }
.mc-day.weekend { color: var(--grey4); cursor: default; }
.mc-day.filled { background: var(--black); color: var(--white); }
.mc-day.missing { color: var(--red); background: #fef2f2; }
.mc-day.missing::after { content:''; position: absolute; top: 2px; right: 2px; width: 4px; height: 4px; background: var(--red); border-radius: 50%; }
.mc-day.today { box-shadow: 0 0 0 1.5px var(--black); }
.mc-day.future { color: var(--grey5); cursor: default; }
.mc-day.holiday { color: var(--grey4); font-style: italic; cursor: default; }

/* ── CALENDAR LEGEND ── */
.cal-legend { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.leg-item { display: flex; align-items: center; gap: 5px; font-size: .65rem; color: var(--grey3); font-weight: 500; }
.leg-dot { width: 9px; height: 9px; border-radius: 2px; }
.leg-dot.filled { background: var(--black); }
.leg-dot.missing { background: #fef2f2; border: 1px solid #fca5a5; }
.leg-dot.weekend { background: var(--grey5); }
.leg-dot.today-dot { box-shadow: 0 0 0 1.5px var(--black); background: transparent; }

/* ── STAT BOX ── */
.stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 10px; animation: fadeUp .2s both; }
.stat-box { background: var(--white); border: 1px solid var(--grey5); border-radius: var(--r); padding: 12px; text-align: center; }
.stat-val { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.stat-val span { font-size: .85rem; }
.stat-lbl { font-size: .58rem; font-weight: 600; color: var(--grey3); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }

/* ── ENTRY ROW ── */
.entry-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--grey5); }
.entry-row:last-child { border: none; }
.entry-dot-sm { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* ── ACTION BUTTONS ── */
.action-btn { width: 28px; height: 28px; border: 1px solid var(--grey5); border-radius: 5px; background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s; padding: 0; }
.action-btn svg { width: 12px; height: 12px; stroke: var(--grey4); transition: stroke .15s; }
.action-btn:hover { background: var(--black); border-color: var(--black); }
.action-btn:hover svg { stroke: var(--white); }
.action-btn.danger:hover { background: var(--red); border-color: var(--red); }

/* ── CHECKIN CARD ACTIVE ── */
.checkin-card.active .checkin-timer { font-size: 2.2rem; margin-bottom: 12px; }
.btn-checkout { width: 100%; padding: 12px; background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.3); border-radius: 6px; font-size: .82rem; font-weight: 700; font-family: inherit; cursor: pointer; transition: all .15s; display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn-checkout:hover { border-color: var(--white); }
.btn-checkin { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ── TÄTIGKEIT GRID (Stunden) ── */
.taet-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; }
.taet-btn { padding: 14px 8px; border: 1.5px solid var(--grey5); border-radius: 8px; background: var(--white); cursor: pointer; text-align: center; transition: all .15s; font-family: inherit; font-weight: 600; font-size: .82rem; color: var(--grey2); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.taet-icon { font-size: 1.5rem; }
.taet-btn:hover { border-color: var(--grey3); color: var(--black); }
.taet-btn.active { background: var(--black); color: var(--white); border-color: var(--black); }

/* ── TYPE PILL ACTIVE (Stunden) ── */
.type-pill.active { background: var(--black); color: var(--white); border-color: var(--black); }

/* ── TIME BLOCK ROW (Stunden) ── */
.time-block { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--grey6); }
.time-block:last-child { border: none; }
.time-block-label { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--grey3); width: 26px; flex-shrink: 0; }
.time-input { width: 90px; padding: 8px 10px; border: 1.5px solid var(--grey5); border-radius: 6px; font-size: .92rem; font-family: 'Inter',sans-serif; font-weight: 500; color: var(--black); background: var(--white); outline: none; -webkit-appearance: none; transition: border-color .15s; flex-shrink: 0; }
.time-input:focus { border-color: var(--grey3); }
.time-sep { font-size: .82rem; color: var(--grey4); flex-shrink: 0; }
.pause-stepper { display: flex; align-items: center; gap: 8px; }
.pause-stepper button { width: 26px; height: 26px; border: 1px solid var(--grey5); border-radius: 50%; background: var(--white); font-size: .9rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: inherit; transition: all .15s; }
.pause-stepper button:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.pause-stepper span { font-size: .8rem; font-weight: 700; min-width: 50px; text-align: center; }
.time-result { background: var(--black); color: var(--white); border-radius: 8px; padding: 12px 14px; margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.time-result > span:first-child { font-size: 1.5rem; font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.time-result-detail { display: flex; flex-direction: column; gap: 2px; font-size: .68rem; opacity: .6; line-height: 1.5; }

/* ── PILL BUTTON ── */
.pill-btn { padding: 5px 12px; border: 1px solid var(--grey5); border-radius: 20px; background: var(--white); font-size: .72rem; font-weight: 600; cursor: pointer; font-family: inherit; color: var(--grey2); transition: all .15s; }
.pill-btn:hover { border-color: var(--black); color: var(--black); }

/* ── BTN BLACK ── */
.btn-black { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-black:hover { background: var(--grey1); }

/* ── STUNDEN TIME ROWS ── */
.st-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--grey5); }
.st-row-last { border-bottom: 1px solid var(--grey5); }
.st-row:last-child, .st-row.st-row-last:last-child { border: none; }
.st-lbl { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--grey2); width: 40px; flex-shrink: 0; }
.st-times { display: flex; align-items: center; gap: 6px; flex: 1; }
.time-result-big { font-size: 1.6rem; font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.time-result { background: var(--black); color: var(--white); border-radius: 8px; padding: 12px 16px; margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ── DATE PICK ── */
.date-pick { border: 1.5px solid var(--grey5); border-radius: 6px; padding: 7px 10px; font-size: .9rem; font-weight: 600; font-family: 'Inter',sans-serif; color: var(--black); background: var(--white); outline: none; -webkit-appearance: none; transition: border-color .15s; }
.date-pick:focus { border-color: var(--grey3); }

/* ── TAET CUSTOM (spans 2 cols on 2-col grid) ── */
.taet-custom { grid-column: span 2; flex-direction: row; justify-content: center; gap: 8px; color: var(--grey3); font-size: .78rem; border-style: dashed; }
.taet-custom:hover { color: var(--black); border-style: dashed; border-color: var(--grey3); }
.taet-custom.active { border-style: solid; background: var(--black); color: var(--white); }
