/* 🌿 Grundlayout */
body {
  margin: 0;
  padding: 20px;
  font-family: "Segoe UI", sans-serif;
  background-color: #f7f9fb;
  color: #333;
}

/* 📋 Tabellen-Stil */
table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ccc;
  background-color: white;
}

th, td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

th{
  background-color: #cce5ff;
}


#personenTabelle tbody tr:hover {
  background-color: #cce5ff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* 📦 Eingaben & Auswahl */
input, select, button {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

input[type="file"] {
  padding: 2px;
}

/* 🎯 Buttons */
button {
  background-color: #3498db;
  color: white;
  border: none;
  font-weight: 500;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #2980b9;
}

.actions {
  display: flex;
  gap: 5px;
  justify-content: center;
}

/* ➕ Leisten */
.top-bar {
  margin-bottom: 15px;
}

.top-bar button {
  width: auto;
  padding: 8px 16px;
  font-size: 16px;
}

/* 🪟 Modal & Overlay */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 20px;
  z-index: 1000;
  display: none;
  max-height: 80vh;
  width: 400px;
  overflow-y: auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.modal.active {
  display: block;
}

.modal label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  white-space: nowrap;
  justify-content: flex-start;
  width: 100%;
}

.overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  display: none;
}

.overlay.active {
  display: block;
}

/* 🌐 Graph-Ansicht (index.html) */
#graph {
  width: 100vw;
  height: 100vh;
  border: none;
  background-color: #ffffff;
}

#hinzufuegenBtn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 8px;
  font-size: 28px;
  font-weight: bold;
  background-color: #2ecc71;
  color: white;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease;
}

#hinzufuegenBtn:hover {
  background-color: #27ae60;
}

/* 🌐 Kontextmenü-Container */
#kontextmenue {
  position: absolute;
  display: none;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  border-radius: 4px;
  z-index: 1000;
}

#kontextmenue div {
  padding: 8px 12px;
  cursor: pointer;
}

#kontextmenue div:hover {
  background-color: #f3f3f3;
}


/* 🔁 Hover-Effekt */
#kontextmenue div:hover {
  background-color: #f0f0f0;
}


#edgeOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(128, 128, 128, 0.2); /* grauer Schleier */
  z-index: 1000; /* unter dem Kontextmenü, über dem Graph */
  pointer-events: none; /* erlaubt weiterhin Klicks auf den Graph */
}


