/* === Allgemein === */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f2f4f8;
}

.container {
  max-width: 700px;
  margin: 40px auto;
  background: #fff;
  padding: 30px 40px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* === Überschriften === */
h1, h2 {
  text-align: center;
  color: #333;
}

h1 i, h2 i {
  margin-right: 8px;
  color: #4CAF50;
}

/* === Header === */
.dashboard-header {
  margin-bottom: 20px;
  text-align: center;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

/* === Buttons === */
.button-secondary {
  padding: 10px 18px;
  background-color: #f3f4f6;
  border: 1px solid #ccc;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.button-secondary:hover {
  background-color: #e5e7eb;
  border-color: #999;
  color: #000;
}

/* === Formular === */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 5px;
  color: #444;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="time"],
select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  font-family: inherit;
}

select {
  appearance: none;
  background-color: white;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23666" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position-x: 95%;
  background-position-y: 50%;
}

/* === Submit Button === */
button,
button[type="submit"] {
  width: 100%;
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 14px;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover,
button[type="submit"]:hover {
  background-color: #45a049;
}

/* === Einträge === */
#eintraege {
  border-top: 1px solid #ddd;
  padding-top: 20px;
}

.entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #f9f9f9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-size: 14px;
  gap: 10px;
}

.entry-content {
  display: flex;
  gap: 20px;
  align-items: center;
  flex: 1;
  flex-wrap: nowrap;
  min-width: 0;
}

.entry-content span {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #444;
}

.entry-preis {
  font-weight: 600;
  color: #333;
}

.delete-btn {
  background-color: transparent;
  border: none;
  color: #d11a2a;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delete-btn:hover {
  background-color: rgba(209, 26, 42, 0.1);
  color: #a0001d;
}
