/* Overlay */
.gt-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 99999;
}

/* Sichtbar */
.gt-modal-overlay.is-open {
  display: flex;
}

/* Modal Box */
.gt-modal {
  width: min(720px, 100%);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  overflow: hidden;
  transform: translateY(6px);
}

/* Header */
.gt-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.gt-modal-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

/* Close Button */
.gt-modal-close {
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}

.gt-modal-close:hover {
  background: rgba(0,0,0,.06);
}

/* Body */
.gt-modal-body {
  padding: 16px 18px 18px;
  font-size: 15px;
  line-height: 1.45;
}

.gt-modal-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gt-pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  font-size: 13px;
}

/* Kurszellen: Hinweis "klickbar" */
table.cmsms_table td.cmsms_table_cell_aligncenter.gt-has-modal {
  cursor: pointer;
  position: relative;
}

table.cmsms_table td.cmsms_table_cell_aligncenter.gt-has-modal:hover {
  background: rgba(0,0,0,.04);
}

/* Mobile */
@media (max-width: 480px) {
  .gt-modal-title { font-size: 18px; }
  .gt-modal-body { font-size: 14px; }
}