/* styles.css – Dark/Neutral Theme für Wunsch- & Grußbox (Inlinierte Version) */

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  /* background: var(--bg-dark); */
  background: #1a1a2e;
  /* color: var(--text); */
  color: #f3f4f6;
  margin: 0;
  line-height: 1.6;
}

/* Struktur */
.container {
  max-width: 760px;
  margin: 40px auto;
  /* padding: 0 16px; Originalwert, überschrieben in Kompakt-Anpassungen */
  padding: 8px; /* Aufgelöst von var(--spacing-s) */
}

/* Kartenbereiche */
.card {
  /* background: var(--card); */
  background: #1a1a2e;
  /* padding: 18px 20px; Originalwert, überschrieben in Kompakt-Anpassungen */
  padding: 8px; /* Aufgelöst von var(--spacing-m) */
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  /* margin: 16px 0; */
  margin: 16px 0;
  /* border: 1px solid var(--border); */
  border: 1px solid #3f414d;
}

label {
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
}

input[type="text"],
textarea {
  width: 80%;
  padding: 10px 12px;
  /* border: 1px solid var(--border); */
  border: 1px solid #3f414d;
  border-radius: 8px;
  /* background: var(--bg-section); */
  background: #2a2a4a;
  /* color: var(--text); */
  color: #f3f4f6;
  font-size: 1rem;
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  /* border-color: var(--accent); */
  border-color: #3b82f6;
  background: #2f313b;
}

input[type="password"],
textarea {
  width: 80%;
  padding: 10px 12px;
  /* border: 1px solid var(--border); */
  border: 1px solid #3f414d;
  border-radius: 8px;
  /* background: var(--bg-section); */
  background: #2a2a4a;
  /* color: var(--text); */
  color: #f3f4f6;
  font-size: 1rem;
}

input[type="password"]:focus,
textarea:focus {
  outline: none;
  /* border-color: var(--accent); */
  border-color: #3b82f6;
  background: #2f313b;
}

/* Buttons */
button,
.button {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  /* background: var(--accent); */
  background: #3b82f6;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover,
.button:hover {
  /* background: var(--accent-hover); */
  background: #2563eb;
}

.button.ghost {
  background: transparent;
  /* border: 1px solid var(--border); */
  border: 1px solid #3f414d;
  /* color: var(--text); */
  color: #f3f4f6;
}

.button.ghost:hover {
  /* background: var(--bg-section); */
  background: #2a2a4a;
}

button.danger,
.danger {
  /* background: var(--danger); */
  background: #ef4444;
}

button.danger:hover {
  background: #b91c1c;
}

/* Layout der Aktionen */
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Einträge */
.entry header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* margin-bottom: 8px; Originalwert, überschrieben in Kompakt-Anpassungen */
  /* margin-bottom: var(--spacing-xs); */
  margin-bottom: 4px; /* Aufgelöst von var(--spacing-xs) */
  font-size: 0.9rem;
  /* color: var(--muted); */
  color: #9ca3af;
}

.entry p {
  white-space: pre-wrap;
  font-size: 1rem;
  line-height: 1.4;
  /* margin: 0 0 var(--spacing-s) 0; */
  margin: 0 0 8px 0; /* Aufgelöst von var(--spacing-s) */
}

.entry form {
  /* Sorgt dafür, dass der Löschen-Button direkt unter der Nachricht ist */
  /* margin-top: var(--spacing-s); */
  margin-top: 8px; /* Aufgelöst von var(--spacing-s) */
  text-align: right; /* Löschen-Button nach rechts verschieben */
}

.entry button.danger {
  /* Kompakte Größe für den Löschen-Button */
  padding: 2px 8px;
  font-size: 0.8em;
}

/* Erfolgsmeldungen */
.success-message {
  /* background: var(--success-bg); */
  background: #14532d;
  /* color: var(--success-text); */
  color: #d1fae5;
  border: 1px solid #16a34a;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

/* Footer */
footer {
  text-align: center;
  /* color: var(--muted); */
  color: #9ca3af;
  font-size: 0.9rem;
  margin-top: 40px;
}

/* Abgesetzter Bereich hinter Formular */
main.container {
  /* background: var(--bg-section); */
  background: #2a2a4a;
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 600px) {
  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  button,
  .button {
    width: 100%;
  }
}

/* Anpassungen fÃ¼r die Eintragskarten (aus Kompakt-Anpassungen) */
.card {
    /* Fügt die überschriebene margin-bottom aus den Kompakt-Anpassungen hinzu */
    margin-bottom: 8px; /* Aufgelöst von var(--spacing-m) */
}

/* FÃ¼r den Online-ZÃ¤hler-Bereich */
/* Die !important Regel aus dem Original wurde entfernt, da die Variable nun inlined ist. */
.card[style="background:#2a2a4a;margin-bottom:20px;"] {
    margin-bottom: 8px !important; /* Aufgelöst von var(--spacing-m) */
}


/* Original-Scrollbar-Styling beibehalten (unverändert) */
body::-webkit-scrollbar { width: 8px; }
body::-webkit-scrollbar-track { background: transparent; }
body::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.3); border-radius: 4px; }
body::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.5); }