* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f0f0f;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 2rem 1rem;
}

@media (max-width: 480px) {
  body {
    padding: 0;
  }
}

.container {
  width: 100%;
  max-width: 480px;
}

.card {
  background: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
}

@media (max-width: 480px) {
  .card {
    border-radius: 0;
    border: none;
    min-height: 100vh;
  }
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid #2a2a2a;
}

.card-header h1 {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

input {
  width: 100%;
  padding: 12px 14px;
  background: #242424;
  border: 1px solid #333;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #ffffff;
  outline: none;
  transition: border-color 0.15s;
}

input::placeholder {
  color: #555;
}

input:focus {
  border-color: #6366f1;
}

#hinzufuegen-button {
  width: 100%;
  padding: 12px;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

#hinzufuegen-button:hover {
  background: #4f46e5;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

li {
  display: flex;
  align-items: flex-start;
  padding: 12px 14px;
  background: #242424;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  gap: 10px;
  transition: border-color 0.15s;
}

li:hover {
  border-color: #444;
}

.aufgabe-text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  color: #e0e0e0;
  font-size: 0.95rem;
  padding-top: 4px;
  line-height: 1.4;
}

.aufgabe-buttons {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.aufgabe-buttons button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2a2a;
  border: 1px solid #333;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #666;
  transition: all 0.15s;
}

.aufgabe-buttons button:first-child:hover {
  background: #14532d;
  border-color: #16a34a;
  color: #4ade80;
}

.loeschen-button:hover {
  background: #450a0a !important;
  border-color: #ef4444 !important;
  color: #f87171 !important;
}

.leer-nachricht {
    color: #888;
    text-align: center;
    margin-top: 2rem;
}

#filter-buttons button.aktiv {
    background: #4f46e5;
    color: white;
}