/* style.css */
:root{
  --bg: #0b0e14;
  --panel: #111521;
  --muted: #9aa4b2;
  --text: #e6edf3;
  --brand: #6aa9ff;
  --accent: #19c37d;
  --border: #202636;
  --focus: #a6d1ff;
}

*{box-sizing:border-box}

html,body{
  height:100%;
}

body{
  margin:0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: radial-gradient(1200px 800px at 20% -10%, #10203a 0%, transparent 70%) no-repeat, var(--bg);
}

.container{
  max-width: 760px;
  margin: 0 auto;
  padding: 24px;
}

.header{
  display:flex;
  align-items: center;
  justify-content: space-between;
  gap:16px;
  margin-bottom:16px;
}

.title-wrap h1{
  margin:0;
  font-size: clamp(22px, 3.5vw, 30px);
  letter-spacing: 0.2px;
}

.subtle{
  margin:6px 0 0 0;
  color:var(--muted);
  font-size:14px;
}

.streak-card{
  background: linear-gradient(180deg, #121a2b, #0e1422);
  border:1px solid var(--border);
  padding:12px 14px;
  border-radius:16px;
  min-width: 170px;
  text-align:right;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.streak-line{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  margin-bottom:4px;
  font-weight:600;
}
.streak-emoji{filter: drop-shadow(0 1px 3px rgba(255,120,0,.3));}

.progress{
  margin: 12px 0 16px;
  padding: 12px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#0f1525;
}
.progress-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:var(--muted);
  font-size:14px;
  margin-bottom:8px;
}
.bar{
  width:100%;
  height:10px;
  background:#0b1120;
  border-radius:999px;
  overflow:hidden;
  border:1px solid #0c1224;
}
.bar-fill{
  height:100%;
  background: linear-gradient(90deg, var(--brand), #7ef0c1);
  transition: width .25s ease;
}

.checklist{
  display:grid;
  gap:10px;
  margin:18px 0;
}
.item {
  display: grid;
  grid-template-columns: 24px 1fr auto; /* Checkbox | Text | Zeit */
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, #0e1526, #0b1222);
  border:1px solid var(--border);
  padding:14px;
  border-radius:16px;
}
.item .time {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap; /* bleibt in einer Zeile */
}
.item input[type="checkbox"]{
  width:20px;height:20px;margin-top:2px;cursor:pointer;
}
.item label{
  flex:1;
  cursor:pointer;
}
.item .hint{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-top:3px;
}

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.btn{
  background: var(--brand);
  color:#0b0e14;
  border:none;
  padding:10px 14px;
  border-radius:12px;
  font-weight:700;
  cursor:pointer;
  transition: transform .06s ease;
}
.btn:active{ transform: translateY(1px); }
.btn.ghost{
  background: transparent;
  color: var(--text);
  border:1px solid var(--border);
}
.btn.small{ padding:8px 10px; font-size: 14px; }

.settings{
  border:1px solid var(--border);
  border-radius:16px;
  padding: 10px 14px;
  background:#0f1628;
  margin-bottom:10px;
}
.settings summary{
  cursor:pointer;
  font-weight:600;
}
.settings-inner{
  margin-top:8px;
  color:var(--muted);
  font-size:14px;
}
.settings .btn{ margin-right:8px; }

.footer{
  text-align:center;
  color:var(--muted);
  margin-top:10px;
}

a{ color: var(--focus); }
:focus-visible{ outline:2px solid var(--focus); outline-offset:3px; border-radius:6px; }
