
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f6f8;
  margin: 0;
  padding: 2em;
  display: flex;
  justify-content: center;
}

.heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
}

.heading-row h2 {
  margin: 0;
}

.heading-row .zurueck-link {
  font-size: 0.9em;
  text-decoration: none;
  color: #3498db;
}

.heading-row .zurueck-link:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 500px;
  background: white;
  border-radius: 12px;
  padding: 2em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.containerbreiter {
  width: 100%;
  max-width: 900px;
  background: white;
  border-radius: 12px;
  padding: 2em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
h2, h3 {
  margin-top: 0;
  color: #2c3e50;
}

/* Neue Flex-Zeile für Button + Info */
.button-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.button-row form {
  flex-grow: 1;
  margin: 0;
}

.button-row form button {
  width: 100%;
  white-space: nowrap;
}

form input, form select, form button {
  padding: 0.6em;
  margin: 0.4em 0;
  width: 100%;
  box-sizing: border-box;
  font-size: 1em;
}

form button {
  white-space: nowrap;
  background: #2980b9;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

form button:hover {
  background: #3498db;
}

form button:disabled {
    background-color: #e0e0e0;
    color: #aaa;
    border-color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
}

th, td {
  padding: 0.75em;
  text-align: left;
  border-bottom: 1px solid #ccc;
}

th {
  background: #ecf0f1;
}

/* Checkbox-Labels kompakter */
td label {
  white-space: nowrap; /* verhindert Umbruch */
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

button.editBtn, button.deleteBtn {
  padding: 0.3em 0.6em;
  margin-right: 0.4em;
  font-size: 0.9em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/*.editBtn { background-color: #27ae60; color: white; }
.deleteBtn { background-color: #c0392b; color: white; }
*/
#exportCsvBtn, #exportXlsxBtn, #exportPdfBtn {
  margin-top: 1em;
  margin-right: 0.5em;
  padding: 0.6em 1em;
  background: #34495e;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#exportCsvBtn:hover, #exportXlsxBtn:hover, #exportPdfBtn:hover {
  background: #2c3e50;
}

/* Kleines i-Symbol */
.info-icon {
  position: relative;
  font-size: 11px;
  color: #fff;
  background-color: #3498db;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  cursor: help;
  flex-shrink: 0;
}

/* Tooltip sichtbar bei Hover */
.info-icon:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Tooltip-Stil */
.tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: 320px;
  background-color: #333;
  color: #fff;
  text-align: left;
  padding: 8px;
  border-radius: 6px;
  position: absolute;
  z-index: 999;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.3s;
  font-size: 13px;
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
  white-space: normal;
}

.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

/* --- Responsive Design für Smartphones --- */
@media (max-width: 600px) {
  body {
    padding: 1em;
  }

  .container,
  .containerbreiter {
    padding: 1em;
    border-radius: 0;
    box-shadow: none;
  }

  h2, h3 {
    font-size: 1.4em;
  }

  form input, form select, form button {
    font-size: 1.1em;
    padding: 0.8em;
  }

  table {
    font-size: 0.9em;
    overflow-x: auto;
    display: block;
  }

  th, td {
    white-space: nowrap;
    padding: 0.6em;
  }

  button.editBtn, button.deleteBtn {
    font-size: 1em;
    padding: 0.5em;
  }

  #exportCsvBtn, #exportXlsxBtn, #exportPdfBtn {
    font-size: 1em;
    padding: 0.6em 0.8em;
    display: block;
    margin-bottom: 0.5em;
    width: 100%;
  }
}