.class-diagram {
  display: inline-block;
  min-width: 300px;
  position: absolute;
  background-color: white;
  left: 0;
  top: 0;
}

.class-diagram table {
  border-collapse: collapse;
  width: 100%;
}

.class-diagram td {
  border: 1px solid black;
  padding: 10px;
  text-align: center;
}

/* Verstecke die Methodenreihe im Standardmodus (Modus 1) */
[class-diagram][data-modus="1"] .method-row {
  display: none;
}

.object-diagram {
  display: inline-block;
  min-width: 300px;
  position: absolute;
  background-color: white;
  left: 0;
  top: 0;
  box-shadow: 0px 0px 0px 1px black;
  border-radius: 20px;
}

.object-diagram table {
  border-collapse: collapse;
  width: 100%;
}

.object-diagram td {
  border: none;
  padding: 10px;
  text-align: center;
}

/* Verstecke die Methodenreihe im Standardmodus (Modus 1) */
[object-diagram][data-modus="1"] .method-row {
  display: none;
}

/* Entferne den unteren Trennstrich unter dem Attributbereich im Modus 1 */
[object-diagram][data-modus="1"] tr:nth-child(2) td {
  border-bottom: none;
}

/* Zeige den unteren Trennstrich unterhalb des Attributbereichs im Modus 2 */
[data-modus="2"] .object-diagram tr:nth-child(2) td {
  border-bottom: 1px solid black;
}

/* Behalte den oberen Trennstrich im Attributbereich immer bei */
.object-diagram tr:nth-child(2) td {
  border-top: 1px solid black;
}

.object-diagram tr:first-child td:first-child {
  border-top-left-radius: 20px;
}

.object-diagram tr:first-child td:last-child {
  border-top-right-radius: 20px;
}

.object-diagram tr:last-child td:first-child {
  border-bottom-left-radius: 20px;
}

.object-diagram tr:last-child td:last-child {
  border-bottom-right-radius: 20px;
}
