/* Container Layout */
.container {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  align-items: flex-start;
}

/* Linke Spalte: Konfiguration */
.left-pane {
  flex: 2;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Rechte Spalte: Liste der Objekte */
.right-pane {
  flex: 1;
  background: #fdfdfe;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  min-height: 200px;
}

/* Titel-Styling */
h2 {
  color: #2c3e50;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  margin-top: 0;
}

h3 {
  grid-column: 1 / -1; /* Überschrift über beide Spalten im Grid */
  color: #007bff;
  font-size: 1.1rem;
  margin: 20px 0 10px 0;
}

/* Formular Styling */
.grid-form {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Zwei Spalten für Labels und Inputs */
  gap: 15px 20px;
  align-items: center;
  margin-top: 20px;
}

.grid-form label {
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
}

/* Inputs & Select */
input, select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

input:focus, select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Sonderfall: Alleinstehende Inputs ohne Label (Typ 1, 2 etc.) */
.grid-form input:not([id]) {
  grid-column: 1 / -1;
}

/* Submit Button */
.btn-submit {
  background-color: #28a745; /* Grün für "Hinzufügen" */
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 25px;
  width: 100%;
  transition: background 0.2s;
}

.btn-submit:hover:not(:disabled) {
  background-color: #218838;
}

.btn-submit:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Validierungshinweis */
h4 {
  font-size: 0.85rem;
  margin-top: 10px;
  text-align: center;
}

/* Rechte Liste Styling */
.right-pane ul {
  list-style: none;
  padding: 0;
}

.right-pane li {
  background: white;
  margin-bottom: 8px;
  padding: 10px 15px;
  border-radius: 5px;
  border-left: 4px solid #007bff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  font-size: 0.9rem;
  color: #495057;
}

/* Responsive Anpassung */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  .grid-form {
    grid-template-columns: 1fr;
  }
}
