@media (min-width: 576px) {
  .modal-dialog {
    max-width: 80%; /* Setzt die maximale Breite auf 80% der Seitenbreite */
    margin: 1.75rem auto; /* Zentriert das Modal */
	width: 1000px;
  }
}
.breit .row {
  margin-bottom: 0px;
}

.terms-info {
  font-weight: bold;
  color: #007bff;
  cursor: help;
  border-bottom: 1px dotted #007bff;
  position: relative;
}

.terms-info::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 0.6em 0.8em;
  border-radius: 6px;
  white-space: pre-wrap;
  width: 260px;
  font-size: 0.9em;
  line-height: 1.4;
  letter-spacing: 0.2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  max-width: 360px;   /* mehr Platz */
  width: max-content; /* wächst bis max-width */
  min-width: 260px;   /* wie vorher, damit kurze Texte nicht schrumpfen */
}

.terms-info::before {
  content: "";
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #333;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.terms-info:hover::after,
.terms-info:hover::before {
  opacity: 1;
}

#group-question {
  border: 1px solid #ced4da;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 1.5rem;
  background-color: #f9f9f9;
}

#group-question label {
  font-weight: 600;
}

#group-name-wrapper {
  margin-top: 0.75rem;
}
button[data-tooltip] {
  position: relative;
  cursor: help;
}

/* Tooltip-Blase */
button[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 0.5em 0.75em;
  border-radius: 6px;
  font-size: 0.85em;
  white-space: pre-wrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
  max-width: 360px;   /* mehr Platz */
  width: max-content; /* wächst bis max-width */
  min-width: 260px;   /* wie vorher, damit kurze Texte nicht schrumpfen */
}

/* kleiner Pfeil */
button[data-tooltip]::before {
  content: "";
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #333;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9;
}

button[data-tooltip]:hover::after,
button[data-tooltip]:hover::before {
  opacity: 1;
}
