.lernen-page {
  padding-bottom: 6rem;
}

.lernen-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 0 var(--horizontal-padding);
  margin-bottom: 4rem;
}

.lernen-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #334155;
}

.lernen-page .concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
}

.lernen-page a.concept-card {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 24px;
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(0, 0, 0, 0.03);
  text-decoration: none;
}

.lernen-page a.concept-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  color: var(--blue-sec);
}

.lernen-page a.concept-card span {
  line-height: 1.3;
}

.lernen-page a.concept-card img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

/* Module Grid */
.module-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 0 var(--horizontal-padding);
  margin-bottom: 6rem;
}

.module-card {
  background-color: var(--white);
  border-radius: 32px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.module-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.module-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.module-body {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.module-btn {
  align-self: flex-start;
}

@media (min-width: 768px) {
  .lernen-section {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .lernen-section.reverse {
    flex-direction: row-reverse;
  }

  .lernen-text {
    flex: 1;
    max-width: 550px;
  }

  .lernen-page .concept-grid {
    flex: 1;
    max-width: 600px;
    grid-template-columns: repeat(3, 1fr);
  }
  
  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
   .module-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
