*{margin:0;padding:0;box-sizing:border-box}

body{
  margin:0;
  font-family:Arial,sans-serif;
  background:linear-gradient(135deg,#0f172a,#1e293b);
  color:white;
}

header{
  text-align:center;
  padding:40px 20px 20px;
}

h1{
  font-size:42px;
  margin-bottom:10px;
}

p{
  color:#cbd5e1;
  font-size:18px;
}

.total-progress{
  max-width:700px;
  margin:20px auto 10px;
  background:#1e293b;
  border:1px solid #334155;
  border-radius:16px;
  padding:20px;
  box-shadow:0 4px 14px rgba(0,0,0,.35);
}

.total-progress strong{
  display:block;
  margin-bottom:10px;
}

.progress-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
}

.progressbar{
  width:100%;
  height:16px;
  background:#334155;
  border-radius:999px;
  overflow:hidden;
}

.progressfill{
  height:100%;
  width:0%;
  background:#22c55e;
  transition:.3s;
}

.container{
  max-width:1100px;
  margin:30px auto;
  padding:20px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}

.card{
  position:relative;
  background:#1e293b;
  border:1px solid #334155;
  border-radius:16px;
  padding:25px;
  text-decoration:none;
  color:white;
  box-shadow:0 4px 14px rgba(0,0,0,.35);
  transition:.2s;
  min-height:150px;
}

.card:hover{
  transform:translateY(-5px);
  border-color:#38bdf8;
  background:#243449;
}

.card.completed{
  border-color:#16a34a;
  background:#1f3b2b;
  box-shadow:
    0 0 20px rgba(34,197,94,.35),
    0 4px 14px rgba(0,0,0,.35);
}

.card.completed:hover{
  border-color:#22c55e;
  background:#244532;
}

.badge{
  display:none;
  position:absolute;
  top:18px;
  right:18px;
  background:#16a34a;
  color:white;
  font-size:11px;
  font-weight:bold;
  padding:6px 10px;
  border-radius:999px;
  letter-spacing:.5px;
}

.badge.show{
  display:inline-block;
}

.lesnummer{
  font-size:14px;
  color:#38bdf8;
  font-weight:bold;
  margin-bottom:12px;
}

.titel{
  font-size:20px;
  font-weight:bold;
  margin-bottom:10px;
}

.thema{
  font-size:14px;
  color:#cbd5e1;
}

.reset-button{
  background:#dc2626;
  color:#000;
  border:1px solid #475569;
  border-radius:8px;
  padding:6px 12px;
  font-size:20px;
  font-weight:bold;
  cursor:pointer;
  transition:.2s;
}

.reset-button:hover{
  background:#334155;
  color:#fff;
  border-color:#64748b;
}

footer{
  text-align:center;
  color:#94a3b8;
  padding:30px;
  font-size:14px;
}

@media(max-width:1000px){
  .container{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:650px){
  .container{
    grid-template-columns:1fr;
  }
}