body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #e8f1ff;
  color: #0a1a33;
}

/* Werbeleiste */
.ad-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 20px;
  background: #1e4fa8;
  color: white;
}

.ad-images img {
  border-radius: 4px;
}

.discover-btn {
  margin-left: auto;
  background: #4a8bff;
  border: none;
  padding: 8px 14px;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

/* Hauptcontainer */
.center-container {
  max-width: 480px;
  margin: 120px auto;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  text-align: center;
}

/* Formular */
#task-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

#task-input {
  flex: 1;
  padding: 10px;
  border: 2px solid #4a8bff;
  border-radius: 6px;
}

.primary {
  background: #4a8bff;
  border: none;
  padding: 10px 16px;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

/* Aufgabenliste */
#task-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.task-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #d0d7e6;
}

.task-item.completed span {
  text-decoration: line-through;
  color: #888;
}

.task-item button {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
}

.task-item img {
  width: 20px;
  opacity: 0.7;
}

/* Footer */
.task-footer {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  justify-content: center;
  align-items: center;
}

.cookie-box {
  background: white;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  width: 320px;
}

.cookie-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.cookie-buttons button {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #4a8bff;
}

/* Cookie Settings Panel */
.settings-panel {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  justify-content: center;
  align-items: center;
}

.settings-inner {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 260px;
}

/* Fake Error Overlay */
.error-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  color: red;
  display: none;
  justify-content: center;
  align-items: center;
}

.error-box {
  background: black;
  padding: 20px;
  border: 3px solid red;
  border-radius: 10px;
  width: 400px;
  max-height: 80vh;
  overflow-y: auto;
  text-align: center;
}

#error-log {
  text-align: left;
  font-family: monospace;
  color: #ff4444;
}

/* Accessibility helper */
.visually-hidden {
  position: absolute;
  left: -9999px;
}
