/* ==== MODULE COMPONENT ==== */
/* Styling for individual module blocks */

.modul {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  color: white;
  box-sizing: border-box;
  border: none;
  border-radius: var(--module-radius);
  overflow: hidden;
  padding: var(--module-padding);
  margin: var(--module-margin);
  position: relative;
  /* no transform/box-shadow transitions for simplicity */
  cursor: pointer;
  transition: all 0.2s ease;
}

.modul:not(.modul-platzhalter):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Modul Title */
.modul-titel {
  font-weight: bold;
  margin: 2px 0;
  font-size: var(--font-size-modul-titel);
  line-height: 1.2;
  width: 100%;
  text-align: center;
  word-break: break-word;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  padding: 0 4px;
}

/* Modul KP (Credit Points) */
.modul-kp {
  font-size: var(--font-size-modul-kp);
  margin: 2px 0;
  width: 100%;
  text-align: center;
  font-weight: bold;
  overflow: hidden;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ==== MODULE VARIANTS ==== */

/* Large Module */
.modul.large-module {
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Small Module */
.modul.small-module {
  border-radius: 4px;
}
