:root {
  --accent: #6366f1;
  --bg: #0f172a;
  --bg-2: #1e293b;
  --card: #1e293b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
}

* { 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;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--bg-2);
  border-bottom: 1px solid #334155;
}
.container {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}
h1 { margin-top: 0; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  border: none;
  padding: .6rem 1.2rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: filter .15s;
}
.btn:hover { filter: brightness(1.15); text-decoration: none; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--text);
}
.btn-danger { background: var(--danger); }
.btn-icon {
  background: transparent; border: none; cursor: pointer;
  font-size: 1.1rem; padding: .25rem .5rem; border-radius: 6px;
  opacity: .5; transition: all .15s; color: var(--text);
}
.btn-icon:hover { opacity: 1; background: rgba(239,68,68,.15); }

input[type=text], input[type=password], textarea, select {
  width: 100%;
  padding: .6rem .75rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid #334155;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}
label { display: block; margin: .75rem 0 .25rem; color: var(--muted); }

/* Projektkarten */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.card {
  background: var(--card);
  border-radius: 12px;
  padding: 1.25rem;
  border-left: 4px solid var(--accent);
  position: relative;
  transition: transform .15s;
}
.card:hover { transform: translateY(-2px); }
.card h3 { margin: 0 0 .5rem; }
.card .meta { color: var(--muted); font-size: .85rem; }
.card-actions {
  position: absolute;
  top: .5rem;
  right: .5rem;
}
.dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: .35rem;
  vertical-align: middle;
}

/* Farb-Auswahl */
.color-swatches {
  display: flex; gap: .5rem; flex-wrap: wrap;
  margin: .5rem 0;
}
.color-swatches input[type=radio] { display: none; }
.color-swatches label {
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  margin: 0;
  border: 3px solid transparent;
  transition: transform .15s;
}
.color-swatches input[type=radio]:checked + label {
  border-color: var(--text);
  transform: scale(1.15);
}

/* Ideen-Liste */
.idea {
  background: var(--card);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: .75rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.idea.done { opacity: .6; }
.idea.done .idea-title { text-decoration: line-through; }
.idea-title { font-weight: 600; margin-bottom: .25rem; }
.idea-desc { color: var(--muted); font-size: .9rem; }
.idea-meta { color: var(--muted); font-size: .8rem; margin-top: .35rem; }
.idea-actions { display: flex; gap: .35rem; align-items: center; }

.status-badge {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}
.status-neu      { background: #1e3a8a; color: #bfdbfe; }
.status-arbeit   { background: #78350f; color: #fed7aa; }
.status-erledigt { background: #064e3b; color: #a7f3d0; }

/* Cleanup Banner */
.cleanup-banner {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #78350f;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.cleanup-banner details { margin-top: .5rem; }
.cleanup-banner summary { cursor: pointer; font-weight: 600; }
.cleanup-banner ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.cleanup-banner small { color: #92400e; }
.cleanup-actions { display: flex; gap: .5rem; }
.cleanup-banner .btn-ghost { color: #78350f; border-color: #78350f; }

.flash {
  background: #d1fae5; color: #065f46;
  padding: .75rem 1rem; border-radius: 8px;
  margin-bottom: 1rem;
}

/* Login */
.login-box {
  max-width: 380px;
  margin: 6rem auto;
  padding: 2rem;
  background: var(--card);
  border-radius: 12px;
}
.login-box h1 { margin-top: 0; text-align: center; }
.error { color: var(--danger); margin: .5rem 0; }
