:root {
  --accent: #2f6f4f;
  --accent-dark: #245a3f;
  --bg: #f7f7f5;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #5f6b76;
  --border: #d8dee3;
  --focus: #1f6feb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

header h1 {
  font-size: 1.6rem;
  margin: 4px 0 4px;
  color: var(--accent-dark);
}

.label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}

.intro {
  margin: 0 0 24px;
  color: var(--muted);
}

.progress {
  height: 10px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  margin: 8px 0 4px;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.status {
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--accent-dark);
}

.opgaver {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opgave {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.opgave label {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  font-size: 1rem;
  min-height: 44px;
}

.opgave input[type="checkbox"] {
  width: 26px;
  height: 26px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.opgave input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.opgave.loest label span {
  text-decoration: line-through;
  color: var(--muted);
}

.opgaver .alle-loest {
  text-align: center;
  font-weight: 600;
  color: var(--accent-dark);
  padding: 8px 0;
}

.fejl {
  color: #b3261e;
  font-weight: 600;
}
