:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #1d2330;
  --muted: #6b7280;
  --line: #e5e7eb;
  --green: #16a34a;
  --red: #dc2626;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1320; --card: #161c2d; --text: #e8eaf0; --muted: #9aa3b2;
    --line: #263048; --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
#app { width: 100%; max-width: 440px; padding: 16px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 4px 20px;
}
.brand { font-weight: 700; letter-spacing: 0.04em; }
.link {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 0.9rem; padding: 4px 8px;
}
.link:hover { color: var(--text); }

.centered { text-align: center; padding: 48px 0; }
.muted { color: var(--muted); }

.card {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px 24px 24px;
  text-align: center;
}
.user { margin: 0 0 4px; font-size: 1.4rem; }
.status { margin: 0 0 22px; color: var(--muted); font-weight: 600; }

.dot {
  display: inline-block; width: 0.62em; height: 0.62em;
  margin-right: 0.3em; border-radius: 50%; background: var(--red);
  animation: blink 1s steps(1, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.btn {
  border: none; border-radius: 14px; cursor: pointer;
  font-size: 1rem; font-weight: 600; padding: 14px 22px; color: #fff;
  transition: transform 0.05s ease, filter 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { filter: grayscale(0.4) opacity(0.6); cursor: default; }
.btn.primary { background: var(--green); }

.punch {
  display: block; width: 100%; font-size: 1.25rem; padding: 20px;
  border-radius: 18px; margin: 0 auto 18px;
}
.punch.out { background: var(--green); }   /* "Einstempeln" (currently clocked out) */
.punch.in  { background: var(--red); }      /* "Ausstempeln" (currently clocked in) */

.figures { margin: 0 0 8px; color: var(--text); }
.figures .net,
.figures .week { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 2px; }

.times-title { font-size: 0.95rem; color: var(--muted); text-align: left; margin: 22px 0 8px; }
.times { list-style: none; margin: 0; padding: 0; text-align: left; }
.times li {
  display: flex; justify-content: space-between;
  padding: 8px 2px; border-top: 1px solid var(--line);
}
.times li .span { font-variant-numeric: tabular-nums; }
.times .empty { color: var(--muted); border: none; padding: 8px 2px; }

.banner { margin-top: 16px; padding: 12px 14px; border-radius: 12px; font-size: 0.92rem; }
.notice { background: rgba(37, 99, 235, 0.12); color: var(--text); }
.error { background: rgba(220, 38, 38, 0.12); color: var(--red); }
