* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, sans-serif; background: #0f1216; color: #e6e9ef; }
header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; background: #161b22; border-bottom: 1px solid #262d38;
  position: sticky; top: 0; z-index: 10;
}
header h1 { font-size: 18px; }
.user { display: flex; gap: 12px; align-items: center; font-size: 14px; }
button {
  background: #2d6cdf; color: #fff; border: none; border-radius: 6px;
  padding: 8px 12px; cursor: pointer; font-size: 14px;
}
button:hover { background: #3a7bf0; }
#logout { background: #33404f; }

main { padding: 20px; max-width: 1200px; margin: 0 auto; }
.week-title { margin: 24px 0 10px; font-size: 15px; color: #8b97a7; text-transform: uppercase; letter-spacing: 1px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.day {
  background: #161b22; border: 1px solid #262d38; border-radius: 10px;
  padding: 12px; display: flex; flex-direction: column; gap: 8px;
}
.day h3 { font-size: 14px; color: #cdd5e0; }
.match {
  background: #12351f; border: 1px solid #1f6b3a; border-radius: 8px;
  padding: 8px 10px; font-size: 13px; line-height: 1.5;
}
.match .grp { font-weight: 600; color: #7ee2a2; }
.match .time { font-size: 15px; }
.match .abfahrt { color: #ffd27a; font-weight: 600; }
.nomatch { color: #6b7688; font-size: 12px; padding: 6px 0; }

.field { display: flex; flex-direction: column; gap: 2px; font-size: 12px; min-width: 0; }
.field label { color: #8b97a7; }
.field input {
  background: #0f1216; border: 1px solid #2b333f; color: #e6e9ef;
  border-radius: 6px; padding: 6px; font-size: 13px; width: 100%;
}
.field input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.field input[type="number"]::-webkit-outer-spin-button,
.field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.row { display: flex; gap: 6px; }
.row .field { flex: 1; }
.chk { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.chk input { width: 16px; height: 16px; }
.parts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.badge {
  font-size: 11px; background: #23303f; border-radius: 12px; padding: 2px 8px;
}
.badge.on { background: #1f6b3a; }

.overlay {
  position: fixed; inset: 0; background: #0b0e12ee; display: flex;
  align-items: center; justify-content: center; z-index: 100;
}
.login-box {
  background: #161b22; padding: 24px; border-radius: 12px; width: 300px;
  display: flex; flex-direction: column; gap: 10px; border: 1px solid #262d38;
}
.login-box input {
  background: #0f1216; border: 1px solid #2b333f; color: #e6e9ef;
  border-radius: 6px; padding: 10px;
}
.err { color: #ff6b6b; font-size: 13px; min-height: 16px; }
.hidden { display: none !important; }
