/* Grundlayout & Schrift */
.main {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f8f9fa;
  padding: 20px;
  min-height: 100vh;
}

.content {
  max-width: 900px;
  margin: 50px auto;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Titel & Buttons oben */
h1, h2 {
  color: #2c3e50;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

button:not(.btn-control) {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  margin-right: 10px;
  margin-bottom: 20px;
  transition: background 0.2s;
}

button:not(.btn-control):hover {
  background-color: #0056b3;
}

button:disabled {
  background-color: #ccc !important;
  cursor: not-allowed;
}

/* Der Produktbaum (Hierarchie) */
.baustein-list {
  list-style: none;
  padding-left: 25px;
  border-left: 1px dashed #ced4da;
}

.baustein-item {
  margin: 10px 0;
  position: relative;
}

/* Verbindungslinien-Effekt */
.baustein-item::before {
  content: "";
  position: absolute;
  top: 15px;
  left: -25px;
  width: 20px;
  border-top: 1px dashed #ced4da;
}

.baustein-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #e9ecef;
  padding: 10px 15px;
  border-radius: 6px;
  transition: all 0.2s;
}

.baustein-row:hover {
  border-color: #adb5bd;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Baustein Status */
.baustein-name {
  font-weight: 600;
  color: #495057;
  flex-grow: 1;
}

.notIncluded {
  color: #adb5bd !important;
  font-style: italic;
  text-decoration: line-through;
}

/* +/- Buttons */
.baustein-buttons {
  display: flex;
  gap: 5px;
  margin-left: 15px;
}

.btn-control {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid #dee2e6;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
}

.btn-control:hover:not(:disabled) {
  background: #e2e6ea;
}

/* Details, Tabellen & Inputs */
.extraInfo-container {
  background: #fdfdfe;
  border: 1px solid #eef2f7;
  padding: 15px;
  border-radius: 4px;
  margin-top: 10px;
  width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

th {
  text-align: left;
  font-size: 0.85rem;
  color: #6c757d;
  text-transform: uppercase;
  padding-bottom: 8px;
}

td {
  padding: 6px 0;
  border-bottom: 1px solid #f1f1f1;
}

input[type="text"],
input[type="number"] {
  padding: 4px 8px;
  border: 1px solid #ced4da;
  border-radius: 3px;
  width: 100%;
}

/* Fehlermeldungen */
.meldungen-container {
  color: #dc3545;
  background-color: #fff5f5;
  padding: 8px;
  border-left: 4px solid #dc3545;
  margin-top: 10px;
  font-size: 0.9rem;
}

/* Risikoobjekte */
.risikoobjekt-container {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.risikoobjekt-item-container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 0.9rem;
}
