/* Grundlayout */
body {
  background-color: #121212;
  color: #f5f5f5;
  font-family: 'Segoe UI', sans-serif;
}

h1 {
  color: #d4af37; /* gold */
  font-family: 'Cinzel', serif;
  margin-bottom: 1rem;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 2rem;
}

/* Formular */
.form-grid {
  display: grid;
  gap: 1rem;
}

textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #444;
  border-radius: 6px;
  background-color: #1e1e1e;
  color: #f5f5f5;
  resize: vertical;
}

textarea:focus {
  outline: none;
  border-color: #4caf50;
}

/* Button */
.btn {
  padding: 10px 20px;
  background-color: #4caf50;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: #43a047;
}

/* Tabelle */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.styled-table th,
.styled-table td {
  padding: 12px 16px;
  border: 1px solid #333;
  text-align: left;
  vertical-align: top;
}

.styled-table th {
  background-color: #2c2c2c;
  color: #d4af37;
  font-weight: bold;
}

.styled-table tr:nth-child(even) {
  background-color: #1c1c1c;
}

.styled-table tr:hover {
  background-color: #2a2a2a;
}

/* Meldungen */
.alert {
  padding: 12px 20px;
  margin-bottom: 1rem;
  border-radius: 6px;
  font-weight: bold;
}

.alert.success {
  background-color: #2e7d32;
  color: #c8facc;
}

.alert.error {
  background-color: #c62828;
  color: #ffdede;
}

.modal.hidden {
  display: none;
}
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: #1e1e1e;
  padding: 2rem;
  border-radius: 10px;
  max-width: 600px;
  width: 100%;
  color: #f5f5f5;
}

.modal-content h2 {
  margin-top: 0;
  color: #d4af37;
  font-family: 'Cinzel', serif;
}

.modal-content textarea {
  width: 100%;
  min-height: 80px;
  margin-bottom: 1rem;
  background-color: #121212;
  color: white;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 10px;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.btn.small {
  padding: 6px 12px;
  font-size: 0.9rem;
}

.btn.danger {
  background-color: #c62828;
}

.btn.danger:hover {
  background-color: #b71c1c;
}
